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
the function check_plan is used to obtain the collection of stations around a certain location, which is ordered by the distance to the location. the user's neighbors_of_location attribute will be arranged by this collection plan: the plan in which to find out the collection x: the first coordinate the chosen location y: the second coordinate the chosen location
public void check_plan(Plan plan, double x, double y){ this.neighbors_of_location = new TreeMap<Double,Station>(); for(Station s: plan.getStations()){ this.neighbors_of_location.put(Math.sqrt(Math.pow(x-s.getPosition()[0],2) + Math.pow(y-s.getPosition()[1],2)),s); } System.out.println("Neighbors of the location ["+x+", "+y+"]: " + this.neighbors_of_location.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void suggestTourPlan(Tour alternativeRoute) throws JSONException, ParseException {\n String tourId = alternativeRoute.getTourName(); //get this from session\n Tour tourDetails = new TourDAOs().getTour(alternativeRoute.getTourName());\n System.out.println(\"Tour Details :\" + tourDetails.getStartDate() + \" \" + tourDetails.getEndDate());\n \n String start = tourDetails.getStartDate().substring(8);\n String end = tourDetails.getEndDate().substring(8);\n int tourDuration = Integer.parseInt(end) - Integer.parseInt(start);\n System.out.println(\"REAL DATE :\" + start + \" \" + end + \" \" + tourDuration);\n\n //get premium route details\n List<Route> routeDetails = new LocationRouteDAO().getDefaultRoute(tourId);\n //to print the locations of default route\n for (Route route : routeDetails) {\n System.out.println(\"Default Route list :\" + route.getLocationId());\n //System.out.println(location.getPoints());\n }\n\n int position = 0;\n int i = 0;\n ArrayList<Route> finalRoutes = new ArrayList<Route>();\n Route r = new Route();\n\n Route hotel = new Route();\n hotel.setDestinationPlaceName(routeDetails.get(0).getSourcePlaceName());\n hotel.setDestinationLatitude(routeDetails.get(0).getSourceLatitude());\n hotel.setDestinationLongitude(routeDetails.get(0).getSourceLongitude());\n finalRoutes.add(hotel);\n\n System.out.println(\"before proceeding with the loop :\" + finalRoutes.get(0).getDestinationPlaceName());\n\n //new code starts here\n for (Route route : routeDetails) {\n\n //get the location name of each location of the premium route\n String locName = route.getDestinationPlaceName();\n\n //find the category of the locName\n String locNameCategory = new LocationDAOs().getCategoryLocName(locName);\n\n //get all the locations that belongs to that category\n List<Location> categoryLocList = new ArrayList();\n categoryLocList = new LocationDAOs().getAllLocationsCategory(locNameCategory);\n\n //the location array that sends to the route generator algorithm\n ArrayList<Location> locations_details_ontology = new ArrayList();\n\n //to add the accommodation location as the first to the ontology array\n i++;\n\n Location loc1 = new Location();\n loc1.setLocationName(finalRoutes.get(finalRoutes.size() - 1).getDestinationPlaceName());\n loc1.setLatitude(finalRoutes.get(finalRoutes.size() - 1).getDestinationLatitude());\n loc1.setLongitude(finalRoutes.get(finalRoutes.size() - 1).getDestinationLongitude());\n locations_details_ontology.add(loc1);\n \n \n for (Location loc : categoryLocList) {\n\n if (!locations_details_ontology.get(0).getLocationName().equals(loc.getLocationName())) {\n Location l = new Location();\n l.setLocationName(loc.getLocationName());\n l.setLatitude(loc.getLatitude());\n l.setLongitude(loc.getLongitude());\n locations_details_ontology.add(l);\n }\n }\n \n //to print locations_details_ontology\n for (Location location : locations_details_ontology) {\n System.out.println(location.getLocationName() + \"----\"\n + location.getLatitude() + \"----\" + location.getLongitude());\n //System.out.println(location.getPoints());\n }\n\n //call the lagorithm to find out nearest locations to the first location in ontology array\n ArrayList<Route> routes = new RouteGenerator().RouteFinder(locations_details_ontology);\n\n // Loop all the routes to take the minimum distance of route.\n double min = 0;\n for (int k = 0; k < routes.size(); k++) {\n\n System.out.println(routes.get(k).getDistance());\n min = routes.get(0).getDistance();\n if (min >= routes.get(k).getDistance()) {\n min = routes.get(k).getDistance();\n r = routes.get(k);\n }\n }\n position++;\n r.setPosition(Integer.toString(position));\n\n boolean res = false;\n for (Route avail : finalRoutes) {\n\n if (r.getDestinationPlaceName().equals(avail.getDestinationPlaceName())) {\n res = true;\n }\n\n }\n if (res == false) {\n finalRoutes.add(r);\n }\n \n //to print final routes array\n for (Route fr : finalRoutes) {\n System.out.println(\"FINAL ROUTES ARRAY SANDUNI :\" + fr.getDestinationPlaceName());\n }\n\n }\n\n //get all location list from the database\n List<Location> allLocationList = new LocationDAOs().getAllLocationsList();\n // finalRoutes = new CustomizeRoute().DayPlanner(finalRoutes, allLocationList);\n\n //int m=0;\n //for (int es = 0; es <= m; es++) {\n for (int es = 0; es <= 4; es++) {\n finalRoutes = new CustomizeRoute().DayPlanner(finalRoutes, allLocationList);\n\n int estimatedDuration = Integer.parseInt(finalRoutes.get(finalRoutes.size() - 1).getDate());\n\n if (tourDuration < estimatedDuration) {\n finalRoutes.remove(finalRoutes.size() - 1);\n //m++;\n\n }\n }\n\n //print final routes array after customizing routes\n for (Route fr : finalRoutes) {\n System.out.println(\"FINAL ROUTES ARRAY ACCORDING TO DA PLAN :\" + fr.getDestinationPlaceName() + \" \" + fr.getDate());\n }\n\n //add alternative route to db\n int res = new LocationRouteDAO().addAlternativeRoute(finalRoutes, alternativeRoute.getTourName());\n\n if (res == 1) {\n System.out.println(\"SUCCESS!\");\n } else {\n System.out.println(\"FAILED!\");\n }\n\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}", "public void locationPlanner(View view) {\n Intent intent = new Intent(TravelPlanner.this, ScheduleTabSwitch.class);\n\n PlanGenerator planGenerator = new PlanGenerator();\n\n SQLiteHelper db = new SQLiteHelper(this);\n db.getWritableDatabase();\n planGenerator.generatePlan(db.getCurrentPlan(), dp.getYear(), dp.getMonth(), dp.getDayOfMonth());\n Plan currentPlan = planGenerator.getGeneratedPlan();\n\n int year = java.util.Calendar.getInstance().get(java.util.Calendar.YEAR);\n int month = java.util.Calendar.getInstance().get(java.util.Calendar.MONTH);\n int day = java.util.Calendar.getInstance().get(java.util.Calendar.DATE);\n if(db.getPlan(currentPlan.getDate()) == null) {\n if(curDate[0] < year || (curDate[0] == year && curDate[1] < month) ||\n (curDate[0] == year && curDate[1] == month && curDate[2] < day))\n Toast.makeText(TravelPlanner.this, \"Invalid date!\", Toast.LENGTH_SHORT).show();\n else if(currentPlan.getLocationCount() == 0)\n Toast.makeText(TravelPlanner.this, \"Empty Plan!\", Toast.LENGTH_SHORT).show();\n else {\n db.addPlan(currentPlan);\n List<Location> list2 = db.getCurrentPlan();\n for (Location l : list2)\n db.deleteLocationFromCurrentPlan(l);\n db.close();\n int[] date = curDate;\n intent.putExtra(\"locationList\", currentPlan.getlocationList());\n intent.putExtra(\"date\", date);\n startActivity(intent);\n }\n }\n else {\n Toast.makeText(TravelPlanner.this, \"Plan already exists!\", Toast.LENGTH_SHORT).show();\n }\n\n }", "public Plan calculatePlan(Heuristic heuristic) throws Exception {\n\t\tthis.currentState = new State(this.initialState);\n\t\tPlan plan = new Plan();\n\t\tplan.setOutput(output);\n\n\t\t// Push goal predicates from final state as list:\n\t\tstack.push(finalState.getPredicates());\n\t\t// Push individual goal predicates:\n\n\t\t// HEURISTIC: order the offices with a traveling salesmen solution\n\t\t// for example: NN algorithm\n\t\t// https://en.wikipedia.org/wiki/Nearest_neighbour_algorithm\n\t\t// start at served(o) with o closest to current position\n\t\t// then go on by choosing the nearest neighbor.\n\t\tList<Predicate> goalPredicates = heuristic.heuristicPushOrder(finalState.getPredicates().toList(),\n\t\t\t\tcurrentState);\n\t\tfor (Predicate singlePred : goalPredicates) {\n\t\t\tstack.push(singlePred);\n\t\t}\n\n\t\twhile (!stack.isEmpty()) {\n\t\t\tthis.output.println(\"-----\");\n\t\t\t// Look at element on top of stack:\n\t\t\tStripsElement currentElement = stack.pop();\n\n\t\t\tif (currentElement instanceof Operator) {\n\t\t\t\t// If element is an operator:\n\t\t\t\tOperator operator = (Operator) currentElement;\n\t\t\t\t// Apply operator to current state:\n\t\t\t\tcurrentState.applyOperator(operator);\n\t\t\t\t// Add operator to plan:\n\t\t\t\tplan.addOperator(operator);\n\n\t\t\t} else if (currentElement instanceof ConjunctivePredicate) {\n\t\t\t\t// If element is a list of predicates:\n\t\t\t\tConjunctivePredicate conjPred = (ConjunctivePredicate) currentElement;\n\t\t\t\t// TODO: report: we don't add a heuristic here because in the\n\t\t\t\t// coffee\n\t\t\t\t// problem this never happens.\n\n\t\t\t\t// Push all predicates from list that are not true in current\n\t\t\t\t// state to the stack:\n\t\t\t\tfor (Predicate falsePred : currentState.getFalseSinglePredicates(conjPred)) {\n\t\t\t\t\tstack.push(falsePred);\n\t\t\t\t}\n\t\t\t} else if (currentElement instanceof Predicate) {\n\t\t\t\t// If element is a single predicate:\n\t\t\t\tPredicate singlePred = (Predicate) currentElement;\n\t\t\t\tif (singlePred.isFullyInstantiated()) {\n\t\t\t\t\t// If predicate is fully instantiated:\n\t\t\t\t\tif (!currentState.isTrue(singlePred)) {\n\t\t\t\t\t\t// If predicate is not true in current state:\n\t\t\t\t\t\t// Find an operator to resolve the predicate\n\t\t\t\t\t\tOperator operator = findOperatorToResolve(singlePred);\n\t\t\t\t\t\t// Push the operator\n\t\t\t\t\t\tstack.push(operator);\n\t\t\t\t\t\tConjunctivePredicate preconditions = operator.getPreconditions();\n\t\t\t\t\t\t// Push a list of preconditions of the operator:\n\t\t\t\t\t\tstack.push(preconditions);\n\t\t\t\t\t\t// Push each single precondition:\n\t\t\t\t\t\t// TODO: report: don't change order here because it\n\t\t\t\t\t\t// changes the semantics of the operator and can make\n\t\t\t\t\t\t// the problem unsolvable. The order of preconditions\n\t\t\t\t\t\t// should not be changed for our three operators.\n\t\t\t\t\t\tfor (Predicate preconPart : preconditions.toList()) {\n\t\t\t\t\t\t\tstack.push(preconPart);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// if single predicate and true in current state: do\n\t\t\t\t\t\t// nothing\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// if single predicate not instantiated:\n\t\t\t\t\t// find constant to instantiate the variables and set this\n\t\t\t\t\t// constant in entire stack:\n\t\t\t\t\tinstantiate(singlePred, heuristic);\n\t\t\t\t\tthis.output.println(\" --->\\t\" + singlePred);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tthis.output.println(\"-----\");\n\t\treturn plan;\n\n\t}", "public Set<Square> validDestinations(Board b);", "public ArrayList<Double> search_plan(String user_id) {\n\t\tArrayList<Double> plan_info = new ArrayList<Double>(); // store the query result from plan table\n\t\ttry {\n\t\t\t//connect to the database with table: diet_plan\n\t\t\tConnection connection = this.getConnection();\n\t\t\t//prepare a SQL statement while leaving some parameters\n\t\t\tPreparedStatement stmt = connection.prepareStatement(\"SELECT fiber, energy, protein, fiber_serve, energy_serve, meat_serve, milk_serve FROM diet_plan where id = ? \");\n\t\t\t//PreparedStatement stmt = connection.prepareStatement(\"SELECT fiber, energy, protein, budget, fiber_serve, energy_serve, meat_serve, milk_serve FROM diet_plan where id = ? \");\n\t\t\tstmt.setString(1, user_id);//1 is the param location/index\n\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tplan_info.add(rs.getDouble(1));//fiber\n\t\t\t\tplan_info.add(rs.getDouble(2));//energy\n\t\t\t\tplan_info.add(rs.getDouble(3));//protein\n\t\t\t\t//plan.info.add(rs.getDouble(4));//budget\n\t\t\t\tplan_info.add(rs.getDouble(4));//fiber_serve\n\t\t\t\tplan_info.add(rs.getDouble(5));//energy_serve\n\t\t\t\tplan_info.add(rs.getDouble(6));//meat_serve\n\t\t\t\tplan_info.add(rs.getDouble(7));//milk_serve\n\t\t\t}\n\t\t\trs.close();\n\t\t\tstmt.close();\n\t\t\tconnection.close();\n\t\t} catch (Exception e) {\n\t\t\tlog.info(\"query error for search_plan: {}\", e.toString());\n\t\t\t//System.out.println(e);\n\t\t}\n\t\t//if (plan_info.size() != 0)\n\t\treturn plan_info;\n\n\t\t//throw new Exception(\"NOT FOUND\");\n\t}", "private void QueryDirections() {\n\t\tshowProgress(true, \"正在搜索导航路线...\");\n\t\t// Spawn the request off in a new thread to keep UI responsive\n\t\tfor (final FloorInfo floorInfo : floorList) {\n\t\t\tif (floorInfo.getPoints() != null\n\t\t\t\t\t&& floorInfo.getPoints().length >= 2) {\n\n\t\t\t\tThread t = new Thread() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t// Start building up routing parameters\n\t\t\t\t\t\t\tRouteTask routeTask = RouteTask\n\t\t\t\t\t\t\t\t\t.createOnlineRouteTask(\n\t\t\t\t\t\t\t\t\t\t\tfloorInfo.getRouteServerPath(),\n\t\t\t\t\t\t\t\t\t\t\tnull);\n\n\t\t\t\t\t\t\tRouteParameters rp = routeTask\n\t\t\t\t\t\t\t\t\t.retrieveDefaultRouteTaskParameters();\n\t\t\t\t\t\t\tNAFeaturesAsFeature rfaf = new NAFeaturesAsFeature();\n\t\t\t\t\t\t\t// Convert point to EGS (decimal degrees)\n\t\t\t\t\t\t\t// Create the stop points (start at our location, go\n\t\t\t\t\t\t\t// to pressed location)\n\t\t\t\t\t\t\t// StopGraphic point1 = new StopGraphic(mLocation);\n\t\t\t\t\t\t\t// StopGraphic point2 = new StopGraphic(p);\n\t\t\t\t\t\t\trfaf.setFeatures(floorInfo.getPoints());\n\t\t\t\t\t\t\trfaf.setCompressedRequest(true);\n\t\t\t\t\t\t\trp.setStops(rfaf);\n\n\t\t\t\t\t\t\t// Set the routing service output SR to our map\n\t\t\t\t\t\t\t// service's SR\n\t\t\t\t\t\t\trp.setOutSpatialReference(wm);\n\t\t\t\t\t\t\trp.setFindBestSequence(true);\n\t\t\t\t\t\t\trp.setPreserveFirstStop(true);\n\t\t\t\t\t\t\tif (floorInfo.getEndPoint() != null) {\n\t\t\t\t\t\t\t\trp.setPreserveLastStop(true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Solve the route and use the results to update UI\n\t\t\t\t\t\t\t// when received\n\t\t\t\t\t\t\tfloorInfo.setRouteResult(routeTask.solve(rp));\n\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tmException = e;\n\t\t\t\t\t\t\t// mHandler.post(mUpdateResults);\n\t\t\t\t\t\t}\n\t\t\t\t\t\trouteIndex++;\n\t\t\t\t\t\tif (routeIndex >= routeCount) {\n\t\t\t\t\t\t\tmHandler.post(mSetCheckMap);\n\t\t\t\t\t\t\tmHandler.post(mUpdateResults);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\t// Start the operation\n\t\t\t\tt.start();\n\t\t\t}\n\t\t}\n\n\t}", "public void seekWalls() {\n\t\t for (int j=0; j<visited[0].length; j++){\n\t\t\tfor (int i=visited.length-1; i>=0; i--) {\t\t\t\n\t\t\t\tif (i!=0 && j!= visited[0].length-1) {//general position\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i-1][j]) == maxComb && !isFree(i,j,2)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'N';\n\t\t\t\t\t\treturn;//not break!!!!! return to exit !\n\t\t\t\t\t}\n\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i][j+1]) == maxComb && !isFree(i,j,4)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'E';\t\n\t\t\t\t\t\treturn;\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if (i==0 && j!= visited[0].length-1) {\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i][j+1]) == maxComb && !isFree(i,j,4)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'E';\t\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if (i!=0 && j== visited[0].length-1) {\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i-1][j]) == maxComb && !isFree(i,j,2)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'N';\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\telse {//if (i==0 && j== visited[0].length-1) {\n\t\t\t\t\t//no solution\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void readyToTravel()\n {\n Position p = country1.readyToTravel(cityA, cityB);\n assertEquals(p.getFrom(), cityA);\n assertEquals(p.getTo(), cityB);\n assertEquals(p.getDistance(),4);\n assertEquals(p.getTotal(),4);\n //From.equals(To)\n p = country1.readyToTravel(cityA, cityA);\n assertEquals(p.getFrom(), cityA);\n assertEquals(p.getTo(), cityA);\n assertEquals(p.getDistance(),0);\n assertEquals(p.getTotal(),0);\n //No direct path from from to to.\n p = country1.readyToTravel(cityB, cityC);\n assertEquals(p.getFrom(), cityB);\n assertEquals(p.getTo(), cityB);\n assertEquals(p.getDistance(),0);\n assertEquals(p.getTotal(),0);\n //From not in the country.\n p = country1.readyToTravel(cityG, cityA);\n assertEquals(p.getFrom(), cityG);\n assertEquals(p.getTo(), cityG);\n assertEquals(p.getDistance(),0);\n assertEquals(p.getTotal(),0);\n \n //To is in another country\n p = country1.readyToTravel(cityD, cityF);\n assertEquals(p.getFrom(), cityD);\n assertEquals(p.getTo(), cityF);\n assertEquals(p.getDistance(),3);\n assertEquals(p.getTotal(),3);\n }", "List<ConnectingFlights> getPossibleRoutes(int loc_start_id, int loc_end_id);", "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 }", "public void evaluaVisibilidad(int posX, int posY)\n {\n \n /** Contiene todas las posibles casillas visibles.\n * Si en el proceso una casilla tapa, pasa a modo 'oclusion, y ocluye las demás hasta que llega al punto final (Las quita del Array)\n */\n this.casillasVisibles=new TreeSet<>();\n \n //Realizar la interpolacion\n boolean visible=true;\n CoordCasilla origen=new CoordCasilla(posX , posY);\n CoordCasilla destino;\n List<CoordCasilla>camino;\n \n /* Cell cell = new Cell();\n cell.setTile(mapaActual.getTileSets().getTileSet(0).getTile(138));*/\n \n //Calcular las interpolaciones\n for(CoordCasilla cc:MATRIZ_INTERPOLACION)\n {\n visible=true;\n destino=new CoordCasilla(origen.x +cc.x,origen.y+cc.y);\n camino= Analizador.interpola(origen, destino);\n \n \n for(CoordCasilla casillaEstudio:camino)\n {\n //Si la celda está fuera de limites no tiene sentido realizar el analisis de las casillas siguientes\n if(casillaEstudio.x<0 || casillaEstudio.x>this.anchoMapa-1 || casillaEstudio.y<0 || casillaEstudio.y>this.altoMapa - 1)\n break;\n \n \n if(!visible ) //No hay visibilidad, quitamos la casilla si la hay del TreeSet\n {\n //posibleVisibilidad.remove(celdaEstudio);\n continue;\n }\n else if(visible && this.capaViibilidad.getCell(casillaEstudio.x,casillaEstudio.y)!=null) //La casilla es limite de visibilidad\n visible=false;\n \n //TEST: Marcamos esta casilla como visible\n //this.capaAux.setCell(celdaEstudio.x, celdaEstudio.y,cell);\n \n //Llegados a este punto, quitamos la niebla de guerra de la casilla\n quitaNieblaDeGuerra(casillaEstudio);\n \n this.casillasVisibles.add(casillaEstudio);\n }\n }\n }", "public void showLiaisonByClick()\t{\r\n \tSystem.out.print(\"Cliquez votre route: \");\r\n \tif (dessin.waitClick()) {\r\n \t float lon = dessin.getClickLon() ;\r\n \t float lat = dessin.getClickLat() ;\r\n \t \r\n \t float minDist = Float.MAX_VALUE ;\r\n \t Liaison chosen = null;\r\n \t \r\n \t for(Liaison liaison: this.routes)\t{\r\n \t \tfloat londiff = liaison.getLongitude() - lon;\r\n \t \tfloat latdiff = liaison.getLatitude() - lat;\r\n \t \tfloat dist = londiff*londiff + latdiff*latdiff ;\r\n \t \tif(dist < minDist)\t{\r\n \t \t\tchosen = liaison;\r\n \t \t\tminDist = dist;\r\n \t \t}\r\n \t }\r\n \t \r\n\t \tchosen.dessiner(dessin, this.numzone, Color.red);\r\n\t \tthis.dessin.putText(chosen.getLongitude(), chosen.getLatitude(), chosen.toString());\r\n\t \tSystem.out.println(chosen);\r\n\r\n \t}\r\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 }", "public static void searchAlgortihm(int x, int y)\n\t{\n\t\tint dx = x;\n\t\tint dy = y;\n\t\tint numMovements = 1; // variable to indicate the distance from the user\n\t\t\n\t\t//check starting position\n\t\tcheckLocation(dx,dy, x, y);\n\n\t\tint minCoords = MAX_COORDS;\n\t\tminCoords *= -1; // max negative value of the grid\n\n\t\t// while - will search through all coordinates until it finds 5 events \n\t\twhile(numMovements < (MAX_COORDS*2)+2 && (closestEvents.size() < 5))\n\t\t{\n\t\t\t//first loop - \n\t\t\tfor(int i = 1; i <= 4; i++)\n\t\t\t{\n\t\t\t\tif(i == 1){ // // moving south-west\n\t\t\t\t\tfor(int j = 0; j < numMovements; j++){\n\t\t\t\t\t\tdx = j-x;\n\t\t\t\t\t\tdx *= -1; // reverse sign\n\t\t\t\t\t\tdy = (numMovements-j)+y;\n\t\t\t\t\t\tif((dx >= minCoords) && (dy <= MAX_COORDS)) // only check the coordinates if they are on the grid\n\t\t\t\t\t\t\tcheckLocation(dx, dy, x, y);\n\t\t\t\t\t\t/*else\n\t\t\t\t\t\t\tSystem.out.println(\"1 out of bounds - \" + dx + \",\" + dy);*/\n\t\t\t\t\t}\n\t\t\t\t}else if(i == 2){ // moving south-east\n\t\t\t\t\tfor(int j = 0; j < numMovements; j++){\n\t\t\t\t\t\tdx = (numMovements-j)-x;\n\t\t\t\t\t\tdx *= -1; // change sign\n\t\t\t\t\t\tdy = j-y; \n\t\t\t\t\t\tdy *= -1; // change sign\n\t\t\t\t\t\tif((dx >= minCoords) && (dy >= minCoords))\n\t\t\t\t\t\t\tcheckLocation(dx, dy, x, y);\n\t\t\t\t\t\t/*else\n\t\t\t\t\t\t\tSystem.out.println(\"2 out of bounds - \" + dx + \",\" + dy);*/\n\t\t\t\t\t}\n\t\t\t\t}else if(i == 3){ // moving north-east\n\t\t\t\t\tfor(int j = 0; j < numMovements; j++){\n\t\t\t\t\t\tdx = j+x;\n\t\t\t\t\t\tdy = (numMovements-j)-y;\n\t\t\t\t\t\tdy *= -1;\n\t\t\t\t\t\tif((dx <= MAX_COORDS) && (dy >= minCoords))\n\t\t\t\t\t\t\tcheckLocation(dx, dy, x, y);\n\t\t\t\t\t\t/*else\n\t\t\t\t\t\t\tSystem.out.println(\"3 out of bounds - \" + dx + \",\" + dy);*/\n\t\t\t\t\t}\n\t\t\t\t}else if(i == 4){ // moving north-west\n\t\t\t\t\tfor(int j = 0; j < numMovements; j++){\n\t\t\t\t\t\tdx = (numMovements-j)+x;\n\t\t\t\t\t\tdy = j+y;\n\t\t\t\t\t\tif((dx <= MAX_COORDS) && (dy <= MAX_COORDS))\n\t\t\t\t\t\t\tcheckLocation(dx, dy, x, y);\n\t\t\t\t\t\t/*else\n\t\t\t\t\t\t\tSystem.out.println(\"4 out of bounds - \" + dx + \",\" + dy);*/\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\n\t\t\t// increment the number of movements, from user coordinate\n\t\t\tnumMovements++;\n\n\t\t} // End of while\n\t}", "private static Boolean placeGoals()\n\t{\n\t\t_PF=new AStarPathFinder(board);\n\t\tArrayList<Point> goalList = new ArrayList<Point>();\n\n\t\tint tempGoals=goals;\n\t\tint goalsPlaced=0;\n\n\t\tint i;\n\t\tint j;\n\n\t\tif(corner==0 || corner==1)\n\t\t\ti=0;\n\t\telse \n\t\t\ti=rows-1;\n\n\t\tif(corner==0 || corner==3)\n\t\t\tj=0;\n\t\telse\n\t\t\tj=columns-1;\n\n\t\tfor(;i<rows && i>-1;)\n\t\t{\n\t\t\tfor(;j<columns && j>-1;)\n\t\t\t{\n\n\t\t\t\tif(board[i][j]==Cells.FLOOR && !_PF.findAReversedWay(pcolumn, prow, j, i).isEmpty())\n\t\t\t\t{\n\t\t\t\t\tgoalList.add(0, new Point(j, i));\n\t\t\t\t\ttempGoals--;\n\t\t\t\t\tgoalsPlaced++;\n\t\t\t\t}\n\n\t\t\t\tif(tempGoals<1)\n\t\t\t\t\tbreak;\n\n\t\t\t\telse if((goalsPlaced*goalsPlaced) > goals)\n\t\t\t\t{\n\t\t\t\t\tgoalsPlaced=0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif(corner==0 || corner==3)\n\t\t\t\t\tj++;\n\t\t\t\telse\n\t\t\t\t\tj--;\n\t\t\t}\n\n\t\t\tif(tempGoals<1)\n\t\t\t\tbreak;\n\n\t\t\tgoalsPlaced=0;\n\n\t\t\tif(corner==0 || corner==1)\n\t\t\t\ti++;\n\t\t\telse \n\t\t\t\ti--;\n\n\t\t\tif(corner==0 || corner==3)\n\t\t\t\tj=0;\n\t\t\telse\n\t\t\t\tj=columns-1;\n\t\t}\n\n\t\tif(goalList.size()!=goals)\n\t\t\treturn false;\n\n\t\tfor(Point temp : goalList)\n\t\t{\n\t\t\tboard[(int)temp.getY()][(int)temp.getX()]=Cells.GOAL;\n\t\t}\n\n\t\treturn true;\n\t}", "Place getNextPlace(Place next)\n{\n if (!visited.contains(next.goNorth()) && !(next.goNorth()).isWall()){\n soln.append(\"N\");\n visited.add(next.goNorth());\n //nearby.clear();\n return next.goNorth();\n }\n else if (!visited.contains(next.goEast()) && !next.goEast().isWall()){\n soln.append(\"E\");\n visited.add(next.goEast());\n //nearby.clear();\n return next.goEast();\n }\n else if (!visited.contains(next.goNorth()) && !next.goNorth().isWall()){\n soln.append(\"N\");\n visited.add(next.goNorth());\n //nearby.clear();\n return next.goNorth();\n }\n else if (!visited.contains(next.goNorth()) && !next.goNorth().isWall()){\n soln.append(\"N\");\n visited.add(next.goNorth());\n //nearby.clear();\n return next.goNorth();\n \n //nearby.clear();\n return null;\n} \n}", "private void computeSwingWaypoints(PlanarRegionsList planarRegionsList,\n FootstepPlan footstepPlan,\n SideDependentList<? extends Pose3DReadOnly> startFootPoses)\n {\n swingOverPlanarRegionsTrajectoryExpander.setDoInitialFastApproximation(swingPlannerParameters.getDoInitialFastApproximation());\n swingOverPlanarRegionsTrajectoryExpander.setFastApproximationLessClearance(swingPlannerParameters.getFastApproximationLessClearance());\n swingOverPlanarRegionsTrajectoryExpander.setNumberOfCheckpoints(swingPlannerParameters.getNumberOfChecksPerSwing());\n swingOverPlanarRegionsTrajectoryExpander.setMaximumNumberOfTries(swingPlannerParameters.getMaximumNumberOfAdjustmentAttempts());\n swingOverPlanarRegionsTrajectoryExpander.setMinimumSwingFootClearance(swingPlannerParameters.getMinimumSwingFootClearance());\n swingOverPlanarRegionsTrajectoryExpander.setMinimumAdjustmentIncrementDistance(swingPlannerParameters.getMinimumAdjustmentIncrementDistance());\n swingOverPlanarRegionsTrajectoryExpander.setMaximumAdjustmentIncrementDistance(swingPlannerParameters.getMaximumAdjustmentIncrementDistance());\n swingOverPlanarRegionsTrajectoryExpander.setAdjustmentIncrementDistanceGain(swingPlannerParameters.getAdjustmentIncrementDistanceGain());\n swingOverPlanarRegionsTrajectoryExpander.setMaximumAdjustmentDistance(swingPlannerParameters.getMaximumWaypointAdjustmentDistance());\n swingOverPlanarRegionsTrajectoryExpander.setMinimumHeightAboveFloorForCollision(swingPlannerParameters.getMinimumHeightAboveFloorForCollision());\n\n computeNominalSwingTrajectoryLength();\n\n for (int i = 0; i < footstepPlan.getNumberOfSteps(); i++)\n {\n PlannedFootstep footstep = footstepPlan.getFootstep(i);\n FramePose3D swingEndPose = new FramePose3D(footstep.getFootstepPose());\n FramePose3D swingStartPose = new FramePose3D();\n FramePose3D stanceFootPose = new FramePose3D();\n\n RobotSide swingSide = footstep.getRobotSide();\n RobotSide stanceSide = swingSide.getOppositeSide();\n\n if (i == 0)\n {\n swingStartPose.set(startFootPoses.get(swingSide));\n stanceFootPose.set(startFootPoses.get(stanceSide));\n }\n else if (i == 1)\n {\n swingStartPose.set(startFootPoses.get(swingSide));\n stanceFootPose.set(footstepPlan.getFootstep(i - 1).getFootstepPose());\n }\n else\n {\n swingStartPose.set(footstepPlan.getFootstep(i - 2).getFootstepPose());\n stanceFootPose.set(footstepPlan.getFootstep(i - 1).getFootstepPose());\n }\n\n swingOverPlanarRegionsTrajectoryExpander.expandTrajectoryOverPlanarRegions(stanceFootPose, swingStartPose, swingEndPose, planarRegionsList);\n if (swingOverPlanarRegionsTrajectoryExpander.wereWaypointsAdjusted())\n {\n footstep.setTrajectoryType(TrajectoryType.CUSTOM);\n Point3D waypointOne = new Point3D(swingOverPlanarRegionsTrajectoryExpander.getExpandedWaypoints().get(0));\n Point3D waypointTwo = new Point3D(swingOverPlanarRegionsTrajectoryExpander.getExpandedWaypoints().get(1));\n footstep.setCustomWaypointPositions(waypointOne, waypointTwo);\n\n double swingScale = Math.max(1.0, swingOverPlanarRegionsTrajectoryExpander.getExpandedTrajectoryLength() / nominalSwingTrajectoryLength);\n double swingTime = swingPlannerParameters.getAdditionalSwingTimeIfExpanded() + swingScale * swingPlannerParameters.getMinimumSwingTime();\n footstep.setSwingDuration(swingTime);\n swingTrajectories.add(CollisionFreeSwingCalculator.copySwingTrajectories(swingOverPlanarRegionsTrajectoryExpander.getSwingTrajectory()));\n }\n else\n {\n double swingScale = Math.max(1.0, swingOverPlanarRegionsTrajectoryExpander.getInitialTrajectoryLength() / nominalSwingTrajectoryLength);\n double swingTime = swingScale * swingPlannerParameters.getMinimumSwingTime();\n footstep.setSwingDuration(swingTime);\n swingTrajectories.add(null);\n }\n }\n }", "public abstract List<LocationDto> match_building(ScheduleDto schedule,SlotDto slot);", "@Test\n\tpublic void chooseCorrectStationsWhenPlanningShortestRide()\n\t\t\tthrows InvalidBikeTypeException, InvalidRidePlanPolicyException, NoValidStationFoundException {\n\t\tRidePlan bobRidePlan = n.createRidePlan(source, destination, bob, \"SHORTEST\", \"MECH\");\n\t\tRidePlan sRidePlan = new RidePlan(source, destination, sourceStationS, destStationS, \"SHORTEST\", \"MECH\", n);\n\t\tassertTrue(bobRidePlan.equals(sRidePlan));\n\t}", "Location selectMoveLocation(ArrayList<Location> locs);", "private void makeSubPlan(Plan plan,Time currentTime,ArrayList<POI> POIs,Time timeEnd,Trip trip,Plan mPlan,boolean skip){\n if(mPlan!=null) \n plan.makeCalculations(trip.getStartTime(),trip.getEndTime(),mPlan.getFullCost(),mPlan);\n else\n plan.makeCalculations(trip.getStartTime(),trip.getEndTime(),0,mPlan);\n POI last=plan.getLastPOI();\n for(int i=0; i< POIs.size();i++){\n // Check if iam in Time range or not\n if(!currentTime.compare(timeEnd))\n break;\n else{\n if(canInsertLast(plan, POIs.get(i), trip, currentTime,mPlan,skip)){\n // update current time & plan\n Time from = new Time (0,0);\n Time to = new Time (0,0);\n if(last!=null){\n // cal travel time\n currentTime.add(last.getShortestPath(POIs.get(i).getId()));\n // cal waste time\n int x = Time.substract(currentTime, POIs.get(i).getOpenTime());\n if(skip&&x!=-1)\n currentTime.add(x);\n \n from.hour = currentTime.hour;\n from.min = currentTime.min;\n // cal poi duration \n currentTime.add(POIs.get(i).getDuration());\n to.hour = currentTime.hour;\n to.min = currentTime.min;\n }\n else{\n if(mPlan==null){\n int x = Time.substract(currentTime, POIs.get(i).getOpenTime());\n if(skip&&x!=-1)\n currentTime.add(x);\n from.hour = currentTime.hour;\n from.min = currentTime.min;\n currentTime.add(POIs.get(i).getDuration());\n to.hour = currentTime.hour;\n to.min = currentTime.min;\n }\n else{\n POI mLast = mPlan.getLastPOI();\n if(mLast!=null)\n currentTime.add(mLast.getShortestPath(POIs.get(i).getId()));\n int x = Time.substract(currentTime, POIs.get(i).getOpenTime());\n if(skip&&x!=-1)\n currentTime.add(x);\n from.hour = currentTime.hour;\n from.min = currentTime.min;\n currentTime.add(POIs.get(i).getDuration());\n to.hour = currentTime.hour;\n to.min = currentTime.min;\n }\n }\n plan.insert(POIs.get(i), plan.getNOV(),from,to,null);\n if(mPlan!=null)\n plan.makeCalculations(trip.getStartTime(), trip.getEndTime(),mPlan.getFullCost(),mPlan);\n else\n plan.makeCalculations(trip.getStartTime(),trip.getEndTime(),0,mPlan);\n last=POIs.get(i);\n // Remove poi from POIs\n POIs.remove(i);\n i--;\n }\n }\n }\n }", "public void findNeighbours(ArrayList<int[]> visited , Grid curMap) {\r\n\t\tArrayList<int[]> visitd = visited;\r\n\r\n\t\t//System.out.println(\"FROM FIND NEIGHBOURS cur pos:\" +Arrays.toString(nodePos));\r\n\t\t//for(int j=0; j<visitd.size();j++) {\r\n\t\t\t//System.out.println(\"FROM FIND NEIGHBOURS\" +Arrays.toString(visited.get(j)));\r\n\t\t\t//System.out.println(\"FROM FIND NEIGHBOURS getvstd\" +Arrays.toString(visited.get(j)));\r\n\t\t//}\r\n\t\t//System.out.println(\"FROM FIND NEIGHBOURS\" +visited);\r\n\t\tCell left=curMap.getCell(0, 0);\r\n\t\tCell right=curMap.getCell(0, 0);\r\n\t\tCell upper=curMap.getCell(0, 0);\r\n\t\tCell down=curMap.getCell(0, 0);\r\n\t\t//the getStart() method returns x,y coordinates representing the point in x,y axes\r\n\t\t//so if either of [0] or [1] coordinate is zero then we have one less neighbor\r\n\t\tif (nodePos[1]> 0) {\r\n\t\t\tupper=curMap.getCell(nodePos[0], nodePos[1]-1) ; \r\n\t\t}\r\n\t\tif (nodePos[1] < M-1) {\r\n\t\t\tdown=curMap.getCell(nodePos[0], nodePos[1]+1);\r\n\t\t}\r\n\t\tif (nodePos[0] > 0) {\r\n\t\t\tleft=curMap.getCell(nodePos[0] - 1, nodePos[1]);\r\n\t\t}\r\n\t\tif (nodePos[0] < N-1) {\r\n\t\t\tright=curMap.getCell(nodePos[0]+1, nodePos[1]);\r\n\t\t}\r\n\t\t//for(int i=0;i<visitd.size();i++) {\r\n\t\t\t//System.out.println(Arrays.toString(visitd.get(i)));\t\r\n\t\t//}\r\n\t\t\r\n\t\t//check if the neighbor is wall,if its not add to the list\r\n\t\tif(nodePos[1]>0 && !upper.isWall() && (!exists(visitd,new int[] {nodePos[0], nodePos[1] - 1}))) {\r\n\t\t\t//Node e=new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] - 1},curMap);\r\n\t\t\t//if(e.getVisited()!=true) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] - 1}, curMap)); // father of the new nodes is this node\r\n\t\t\t//}\r\n\t\t}\r\n\t\tif(nodePos[1]<M-1 &&!down.isWall() && (!exists(visitd,new int[] {nodePos[0], nodePos[1] + 1}))){\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] + 1}, curMap));\r\n\t\t}\r\n\t\tif(nodePos[0]>0 && !left.isWall() && (!exists(visitd,new int[] {nodePos[0] - 1, nodePos[1]}))) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0] - 1, nodePos[1]}, curMap));\r\n\t\t}\r\n\t\tif(nodePos[0]<N-1 && !right.isWall() && (!exists(visitd,new int[] {nodePos[0] + 1, nodePos[1]}))) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0] + 1, nodePos[1]}, curMap));\r\n\t\t}\r\n\t\t//for(int i=0; i<NodeChildren.size();i++) {\r\n\t\t\t//System.out.println(\"Paidia sth find:\" + Arrays.toString(NodeChildren.get(i).getNodePos()));\r\n\t\t//}\r\n\t\t\t\t\t\t\r\n\t}", "public ArrayList<ArrayList<ModuleElement>> getAllShortestRoutes(Biochip grid, ModuleElement dest){\n\t\tArrayList<ArrayList<ModuleElement>> route_list = new ArrayList<ArrayList<ModuleElement>>(); \n\t\tArrayList<ModuleElement> crt_route = new ArrayList<ModuleElement>();\n\t\tdouble crt_value = grid.getCell(dest.x, dest.y).value; \n\t\tcrt_route.add(dest);\n\t\troute_list.add(crt_route);\n\t\t//this.printGrid(grid);\n\t\t//System.out.println(grid.getCell(dest.x, dest.y).value); \n\t\t//System.out.println(\"Get sh_route for dest = \" + dest.x + dest.y + \"crt_value=\" + crt_value); \n\n\t\twhile(crt_value>0){\n\t\t\tArrayList<ArrayList<ModuleElement>> new_route_list = new ArrayList<ArrayList<ModuleElement>>(); \n\t\t\tcrt_value --; \n\t\t\tfor (int k=0; k<route_list.size();k++){\n\t\t\t\t//System.out.println(\"k=\" + k); \n\t\t\t\tcrt_route = route_list.get(k); \n\t\t\t\tint i = crt_route.get(crt_route.size()-1).x;\n\t\t\t\tint j = crt_route.get(crt_route.size()-1).y;\n\t\t\t\t// neighbors\n\t\t\t\tif (j+1<grid.width){\n\t\t\t\t\tCell right_n = grid.getCell(i, j+1);\n\t\t\t\t\tArrayList<ModuleElement> r_route = this.createNewRoute(grid, crt_route, right_n, crt_value); \n\t\t\t\t\tif (r_route!=null) new_route_list.add(r_route); \t\n\t\t\t\t}\n\t\t\t\tif (j-1>=0) {\n\t\t\t\t\tCell left_n = grid.getCell(i, j-1);\n\t\t\t\t\tArrayList<ModuleElement> l_route = this.createNewRoute(grid, crt_route, left_n, crt_value); \n\t\t\t\t\tif (l_route!=null) new_route_list.add(l_route); \n\t\t\t\t} \n\t\t\t\tif (i-1>=0) {\n\t\t\t\t\tCell up_n = grid.getCell(i-1, j);\n\t\t\t\t\tArrayList<ModuleElement> u_route = this.createNewRoute(grid, crt_route, up_n, crt_value); \n\t\t\t\t\tif (u_route!=null) new_route_list.add(u_route); \n\t\t\t\t} \n\t\t\t\tif (i+1<grid.height) {\n\t\t\t\t\tCell down_n = grid.getCell(i+1, j);\n\t\t\t\t\tArrayList<ModuleElement> d_route = this.createNewRoute(grid, crt_route, down_n, crt_value); \n\t\t\t\t\tif (d_route!=null) new_route_list.add(d_route); \t\n\t\t\t\t} \n\t\t\t\t//System.out.println(\"new_route_list = \" + new_route_list); \n\t\t\t}\n\t\t\troute_list = new_route_list; \n\t\t}\n\t\t\n\t\treturn route_list; \n\t}", "boolean canPlaceCity(VertexLocation vertLoc);", "private void planningPaths(String url) {\n removePolyline();\n JSONObject json = new JSONObject();\n JSONObject origin = new JSONObject();\n JSONObject destination = new JSONObject();\n try {\n origin.put(\"lng\", 2.334595);\n origin.put(\"lat\", 48.893478);\n destination.put(\"lng\", destinationLng);\n destination.put(\"lat\", destinationLat);\n json.put(\"origin\", origin);\n json.put(\"destination\", destination);\n } catch (JSONException e) {\n }\n RequestBody body = RequestBody.create(MediaType.parse(\"application/json; charset=utf-8\"), String.valueOf(json));\n OkHttpClient client = new OkHttpClient();\n Request request = new Request.Builder().url(url).post(body).build();\n client.newCall(request).enqueue(new Callback() {\n @Override\n public void onFailure(Call call, IOException e) {\n Message msg = Message.obtain();\n Bundle bundle = new Bundle();\n bundle.putString(\"errorMsg\", e.getMessage());\n msg.what = ROUTE_PLANNING_FAILED;\n msg.setData(bundle);\n mHandler.sendMessage(msg);\n }\n\n @Override\n public void onResponse(Call call, Response response) throws IOException {\n try {\n String json = response.body().string();\n generateRoute(json);\n } catch (Exception e) {\n e.getMessage();\n }\n }\n });\n }", "public void generateNeighborhood(TSPSolution s){\r\n\t\tint [] rounte = new int[problem.city_num+1];\r\n\t\tfor(int i=0;i<problem.city_num;i++) rounte[i] = s.route[i];\r\n\t\trounte[problem.city_num] = rounte[0];\r\n\t\tint [] pos = new int[problem.city_num];\r\n\t\tproblem.calculatePosition(rounte, pos);\r\n\t\tint pos1 = 0;\r\n\t\tint pos2 = 0;\r\n\t\tfor(int k=0;k<problem.city_num;k++){\r\n\t\t\tint i = k;\r\n\t\t\tpos1 = i;\r\n\t\t\tint curIndex = rounte[i];\r\n\t\t\tint nextIndex = rounte[i+1];\r\n\t\t\tArrayList<Integer> candidate = problem.candidateList.get(curIndex);\r\n\t\t\tIterator<Integer> iter = candidate.iterator();\r\n\t\t\twhile(iter.hasNext()){\r\n\t\t\t\tint next = iter.next();\r\n\t\t\t\tpos2 = pos[next];\r\n\t\t\t\tint curIndex1 = rounte[pos2];\r\n\t\t\t\tint nextIndex1 = rounte[pos2+1];\r\n\t\t\t\tif(curIndex == nextIndex1) continue;\r\n\t\t\t\tif(curIndex == curIndex1) continue;\r\n\t\t\t\tif(nextIndex == nextIndex1) continue;\r\n\t\t\t\tif(curIndex1 == nextIndex) continue;\r\n\t\t\t\tint betterTimes = 0;\r\n\t\t\t\tTSPSolution solution = new TSPSolution(problem.city_num, problem.obj_num, -1);\r\n\t\t\t\tfor(int j=0;j<problem.obj_num;j++){\r\n\t\t\t\t\tint gain = problem.disMatrix[j*problem.city_num*problem.city_num+curIndex*problem.city_num+curIndex1] +\r\n\t\t\t\t\t\t\tproblem.disMatrix[j*problem.city_num*problem.city_num+nextIndex*problem.city_num+nextIndex1] - \r\n\t\t\t\t\t\t\t(problem.disMatrix[j*problem.city_num*problem.city_num+curIndex*problem.city_num+nextIndex]+\r\n\t\t\t\t\t\t\tproblem.disMatrix[j*problem.city_num*problem.city_num+curIndex1*problem.city_num+nextIndex1]);\r\n\t\t\t\t\tif(gain<0) betterTimes++;\r\n\t\t\t\t\tsolution.object_val[j] = s.object_val[j] + gain;\r\n\t\t\t\t}\r\n\t\t\t\tif(betterTimes==0) continue;\r\n\t\t\t\tsolution.route = s.route.clone();\r\n\r\n\t\t\t\tif(problem.kdSet.add(solution)){\r\n\t\t\t\t\tproblem.converse(pos1, pos2, solution.route, 0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public List<Location> neighbors (Location pos);", "private void drawMembersLocation () {\n // Ve tat ca cac vi tri thanh vien tren ban do\n ArrayList<TourMember> tourMembers = OnlineManager.getInstance().mTourList.get(tourOrder).getmTourMember();\n for (int i = 0; i < tourMembers.size(); i++) {\n TourMember tourMember = tourMembers.get(i);\n // Neu khong co vi tri thi khong ve\n if (tourMember.getmLocation() == null) {\n break;\n }\n // Thay doi mau vi tri thanh vien\n MapMemberPositionLayoutBinding memberLocationLayoutBinding = DataBindingUtil.inflate(getLayoutInflater(), R.layout.map_member_position_layout, null, false);\n // Thay doi trang thai markup\n // Kiem tra xem vai tro cua thanh vien trong tour\n int function = tourMember.getmFunction();\n // Kiem tra xem tour da dien ra chua\n if (function == 1) {\n // Truong doan, thay doi mau sac markup thanh do\n memberLocationLayoutBinding.memberLocationImage.setColorFilter(Color.RED, PorterDuff.Mode.SRC_ATOP);\n } else {\n // Cac thanh vien con lai, thay doi mau sac markup thanh xanh\n memberLocationLayoutBinding.memberLocationImage.setColorFilter(Color.BLUE, PorterDuff.Mode.SRC_ATOP);\n }\n // Marker google map\n View markerView = memberLocationLayoutBinding.getRoot();\n // Khoi tao marker\n MarkerOptions markerOptions = new MarkerOptions()\n .draggable(false)\n .title(tourMember.getUserInfo().getFullName())\n .position(tourMember.getmLocation())\n .icon(BitmapDescriptorFactory.fromBitmap(getMemberLocationBitmapFromView(markerView)));\n if (tourMember.getmFunction() == 0) {\n // Thanh vien\n markerOptions.snippet(getString(R.string.tour_function_member));\n } else if (tourMember.getmFunction() == 1) {\n // Truong doan\n markerOptions.snippet(getString(R.string.tour_function_leader));\n } else if (tourMember.getmFunction() == 2) {\n // Pho doan\n markerOptions.snippet(getString(R.string.tour_function_vice_leader));\n } else {\n // Phu huynh\n markerOptions.snippet(getString(R.string.tour_function_parent));\n }\n mMap.addMarker(markerOptions);\n\n // Goi su kien khi nhan vao tieu de thanh vien\n mMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n @Override\n public void onInfoWindowClick(Marker marker) {\n // TODO: Chuyen sang man hinh nhan tin khi nhan vao tieu de thanh vien\n return;\n// openTimesheetInfo(marker.getTitle());\n }\n });\n }\n }", "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 }", "@Test\n\tpublic void multipleSolutionsTest(){\n\t\tDjikstrasMap m = new DjikstrasMap();\t//Creates new DjikstrasMap object\n\t\t\n\t\tm.addRoad(\"Guildford\", \"Portsmouth\", 20.5, \"M3\");\t//Adds a road from Guildford to portsmouth to the map\n m.addRoad(\"Portsmouth\", \"Guildford\", 20.5, \"M3\");\n \n m.addRoad(\"Guildford\", \"Winchester\", 20.5, \"A33\");\t//Adds a road from Guildford to winchester to the map\n m.addRoad(\"Winchester\", \"Guildford\", 20.5, \"A33\");\n \n m.addRoad(\"Winchester\", \"Fareham\", 20.5, \"M27\");\t//Adds a road from winchester to fareham to the map\n m.addRoad(\"Fareham\", \"Winchester\", 20.5, \"M27\");\n\t\t\n m.addRoad(\"Portsmouth\", \"Fareham\", 20.5, \"M25\");\t//Adds a road from fareham to portsmouth to the map\n m.addRoad(\"Fareham\", \"Portsmouth\", 20.5, \"M25\");\n \n m.findShortestPath(\"Fareham\");\t//Starts the algorithm to find the shortest path\n \n List<String> temp = new ArrayList<String>();\t//Holds the route plan\n temp = m.createRoutePlan(\"Guildford\");\t//Calls methods to assign the route plan to temp\n \n assertEquals(\"1. Take the M27 to Winchester\",temp.get(0));\t//tests that the different lines in the route plan are correct and that the algorithm did indeed take the shortest route\n assertEquals(\"2. Take the A33 to Guildford\", temp.get(1));\n assertEquals(\"\", temp.get(2));\n assertEquals(\"The Journey will take 41 hours and .00 minutes long.\", temp.get(3));\n assertEquals(\"\", temp.get(4));\n \n assertEquals(5, temp.size());\t//tests to see that the route plan is 5 line large as it should be\n\t}", "private static Square[] reachableAdjacentSquares\n (GameBoard board, Square currLoc, int pno, \n int dontCheckMe, int numJumps, boolean adjacentToPlayer) {\n\n // list to store adjacent squares\n List<Square> squareList = new LinkedList<Square>();\n\n // calculate direction bias\n int direction = 0;\n switch (pno) {\n case 0: direction = 86; break;\n case 1: direction = Integer.rotateRight(163,1); break;\n case 2: direction = 171; break;\n case 3: direction = Integer.rotateRight(345, 1); break;\n }\n \n // check each available adajcency\n for ( int i = 0; i < 4; i++ ) {\n \n // calculate the x and y offsets\n int x = ((direction & 8) >> 3) * Integer.signum(direction);\n int y = ((direction & 16) >> 4) * Integer.signum(direction);\n\n // retrieve an adjacent square to compare\n Square checkLoc = board.getSquare(currLoc.getX() + x,\n currLoc.getY() + y);\n\n // modify bits for the next iteration\n direction = Integer.rotateRight(direction,1);\n\n // if check is not an invalid location...\n if ( checkLoc != null ) {\n\n // skip this check if there is a wall in the way\n if ( ( y == 1 && currLoc.getWallBottom() != null) ||\n ( y == -1 && checkLoc.getWallBottom() != null) ||\n ( x == 1 && currLoc.getWallRight() != null ) ||\n ( x == -1 && checkLoc.getWallRight() != null) )\n continue;\n \n // check if there is a player adjacent to where we are\n else if ( adjacentToPlayer && checkLoc.isOccupied() \n && i != dontCheckMe && numJumps < 3 ) {\n // Get the squares from the adjacent player\n Square[] adjToPlayer = reachableAdjacentSquares(board,\n checkLoc, pno, (i+2)%4, numJumps++, adjacentToPlayer);\n // Add the adjacent player's squares to the list\n for ( int j = 0; j < adjToPlayer.length; j++ )\n squareList.add(adjToPlayer[j]);\n } \n\n else\n // add this square to the list\n squareList.add(checkLoc);\n\n adjacentToPlayer = true;\n }\n }\n\n // return the array of adjacent squares\n return squareList.toArray(new Square[squareList.size()]);\n }", "public Wall nextNear( Point startingPoint, Point destinationPoint, Wall destinationWall ) {\n//System.out.print(\"nextNear. start: \" + startingPoint.toString() + \", end: \" + destinationPoint.toString());\n\n if ( this == destinationWall ) {\n return this;\n }\n\n if ( nextCornerPoint.equals( startingPoint ) ) {\n return previous;\n }\n\n if ( previousCornerPoint.equals( startingPoint ) ) {\n return next;\n }\n\n// Double destination = startingPoint.distance( destinationPoint );\n Double nextCorner = destinationPoint.distance( nextCornerPoint );\n Double previousCorner = destinationPoint.distance( previousCornerPoint );\n\n// System.out.print(\"... Distances - destination: \" + destination.toString()\n// + \", nextCorner: \" + nextCorner.toString()\n// + \", previousCorner: \" + previousCorner.toString());\n//\n// if ( destination <= nextCorner || destination <= previousCorner ) {\n// System.out.println( \". Returning current wall \" + this.toString() );\n// return this;\n// }\n// else\n// if ( nextCorner < previousCorner && ! nextCornerPoint.equals( startingPoint ) ) {\n if ( nextCorner < previousCorner ) {\n// System.out.println( \". Returning next \" + next.toString() );\n return next;\n }\n else\n// if ( ! previousCornerPoint.equals( startingPoint ) )\n {\n// System.out.println( \". Returning previous \" + previous.toString() );\n return previous;\n }\n// else {\n// System.out.println( \". Returning next \" + next.toString() + \" by default.\");\n// return next;\n// }\n }", "public static void robotInAGrid(){\n\t\tArrayList<Point> fails = new ArrayList<Point>(); //contains unreachable points\n\t\t//to start we'll put all \"off limits\" points in fails and then we'll add any points we determine to be unreachable as we go\n\t\tfor(int r = 0; r< grid.length; r++){\n\t\t\tfor(int c = 0; c <grid[0].length; c++){\n\t\t\t\tif(grid[r][c] == 1){\n\t\t\t\t\tfails.add(new Point(r, c));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tArrayList<Point> path = new ArrayList<Point>(); //contains the robot's path\n\t\t//call our recursive helper function\n\t\tif(getPath(grid.length-1, grid[0].length-1, path, fails)){\n\t\t\tfor(Point p: path){\n\t\t\t\tSystem.out.print(\"(\" + p.x + \", \" + p.y + \"), \");\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No path is possible\");\n\t\t}\n\t}", "@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 }", "public static ArrayList<XYCoord> findPossibleDestinations(Unit unit, GameMap gameMap, boolean includeOccupiedSpaces)\n {\n ArrayList<XYCoord> reachableTiles = new ArrayList<XYCoord>();\n\n if( null == unit || unit.x < 0 || unit.y < 0 )\n {\n System.out.println(\"WARNING! Finding destinations for ineligible unit!\");\n return reachableTiles;\n }\n\n // set all locations to false/remaining move = 0\n int[][] costGrid = new int[gameMap.mapWidth][gameMap.mapHeight];\n for( int i = 0; i < gameMap.mapWidth; i++ )\n {\n for( int j = 0; j < gameMap.mapHeight; j++ )\n {\n costGrid[i][j] = Integer.MAX_VALUE;\n }\n }\n\n // set up our search\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));\n searchQueue.add(root);\n // do search\n while (!searchQueue.isEmpty())\n {\n // pull out the next search node\n SearchNode currentNode = searchQueue.poll();\n // if the space is empty or holds the current unit, highlight\n Unit obstacle = gameMap.getLocation(currentNode.x, currentNode.y).getResident();\n if( obstacle == null || obstacle == unit || includeOccupiedSpaces ) // expandSearchNode will throw out spaces occupied by enemies\n {\n reachableTiles.add(new XYCoord(currentNode.x, currentNode.y));\n }\n\n expandSearchNode(unit, gameMap, currentNode, searchQueue, costGrid, false);\n\n currentNode = null;\n }\n\n return reachableTiles;\n }", "@Override\n public void computeTour(int timeout){\n long startTime = System.currentTimeMillis();\n ArrayList<Address> listAddress = this.planningRequest.getListAddress();\n this.deliveryGraph = new DeliveryGraph(listAddress);\n for(int i=0; i<listAddress.size();i++){\n HashMap<Intersection,Segment> pi = dijkstra(listAddress.get(i));\n deliveryGraph.addVertice(i,pi);\n }\n LinkedList<Path> tourCalculated = deliveryGraph.solveTSP(timeout, true);\n this.timedOutError = deliveryGraph.getTimedOutError();\n tour = new Tour(tourCalculated);\n long totalTime = System.currentTimeMillis() - startTime;\n this.setChanged();\n this.notifyObservers();\n System.out.println(\"Tour computed in \" + totalTime+\" ms with a timeout of \" + timeout + \" ms\");\n }", "public abstract HashSet<Location> getPossibleMovements(GameBoard board);", "@Test\n public void shouldListExpectedPlan() {\n OrgPlansListPage thePlansPage = open(OrgPlansListPage.class, organization.getName());\n thePlansPage.entriesContainer().shouldHave(text(plan.getName()));\n }", "public static Tour Cheapest (double distancematrix [][], List<Point> pointList) {\n Tour tour = new Tour(0);\n\n if (pointList.size() == 1){\n tour.addPoint(pointList.get(0));\n } else {\n\n int numbernodes;\n numbernodes = pointList.size();\n int visited[] = new int[numbernodes];\n int randomNum = ThreadLocalRandom.current().nextInt(1, numbernodes);\n int pointNumber = pointList.get(randomNum - 1).getPointNumber();;\n\n visited[pointNumber - 1] = 1;\n tour.addPoint(pointList.get(randomNum - 1));\n\n for (int i = 0; i < numbernodes; i++) {\n int cityIndex = pointList.get(i).getPointNumber() - 1;\n int pos = -1;\n if (visited[i] == 1) {\n } else {\n double distance;\n double minimum = Double.MAX_VALUE;\n int insertPoint = 0;\n for (int j = 1; j <= tour.getSize(); j++) {\n int vor = tour.getPoint((j - 1) % tour.getSize()).getPointNumber() - 1;\n int nach = tour.getPoint((j) % tour.getSize()).getPointNumber() - 1;\n distance = distancematrix[vor][cityIndex] + distancematrix[cityIndex][nach];\n if (distance < minimum) {\n minimum = distance;\n insertPoint = j % tour.getSize();\n pos = i;\n }\n }\n tour.insertPoint(insertPoint, pointList.get(i));\n visited[pos] = 1;\n }\n }\n }\n return tour;\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}", "@Override\n\t\tpublic void run() {\n\t\t\tshowProgress(false, null);\n\t\t\tboolean canRoute = false;\n\t\t\tfor (FloorInfo floorInfo : floorList) {\n\t\t\t\tArrayList<LocatorGeocodeResult> shelfList = floorInfo\n\t\t\t\t\t\t.getShelfList();\n\t\t\t\tif (shelfList.size() > 0) {\n\t\t\t\t\tStopGraphic points[] = new StopGraphic[shelfList.size()];\n\t\t\t\t\tint index = 1;\n\t\t\t\t\tfor (LocatorGeocodeResult result : shelfList) {\n\t\t\t\t\t\tString address = result.getAddress();\n\t\t\t\t\t\tif (index >= shelfList.size()\n\t\t\t\t\t\t\t\t&& !address.equals(floorInfo.getStartPoint())) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tPoint p = (Point) GeometryEngine.project(\n\t\t\t\t\t\t\t\tresult.getLocation(), wm, egs);\n\t\t\t\t\t\tif (address.equals(floorInfo.getStartPoint())) {\n\t\t\t\t\t\t\tpoints[0] = new StopGraphic(p);\n\n\t\t\t\t\t\t\tSystem.out.println(\"起始点x:\" + p.getX() + \" y:\"\n\t\t\t\t\t\t\t\t\t+ p.getY());\n\n\t\t\t\t\t\t} else if (floorInfo.getEndPoint() != null\n\t\t\t\t\t\t\t\t&& address.equals(floorInfo.getEndPoint())) {\n\t\t\t\t\t\t\tpoints[shelfList.size() - 1] = new StopGraphic(p);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tpoints[index++] = new StopGraphic(p);\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\tif (points[0] != null && points.length >= 2) {\n\t\t\t\t\t\tcanRoute = true;\n\t\t\t\t\t\trouteCount++;\n\t\t\t\t\t}\n\t\t\t\t\tfloorInfo.setPoints(points);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tclearAll();\n\t\t\tif (!canRoute) {\n\t\t\t\tToast.makeText(MapActivity.this, \"没有找到足够的点,无法导航\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t} else {\n\t\t\t\tQueryDirections();\n\t\t\t}\n\t\t}", "public List<Move> validMoves(){\n List<Move> results = new LinkedList<>();\n int kingVal = turn == WHITE ? WHITE_KING : BLACK_KING;\n int kingX = 0, kingY = 0;\n List<Piece> checks = null;\n kingSearch:\n for (int y = 0; y < 8; y++){\n for (int x = 0; x < 8; x++){\n if (board[y][x] == kingVal){\n kingX = x;\n kingY = y;\n checks = inCheck(x,y);\n break kingSearch;\n }\n }\n }\n if (checks.size() > 1){ // must move king\n for (int x = -1; x < 2; x++){\n for (int y = -1; y < 2; y++){\n if (kingX+x >= 0 && kingX + x < 8 && kingY+y >= 0 && kingY+y < 8){\n int val = board[kingY+y][kingX+x];\n if (val == 0 || turn == WHITE && val > WHITE_KING || turn == BLACK && val < BLACK_PAWN){\n // may still be a move into check, must test at end\n results.add(new Move(kingVal, kingX, kingY, kingX+x, kingY+y, val, 0, this));\n }\n }\n }\n }\n } else { // could be in check TODO: split into case of single check and none, identify pin/capture lines\n int queen = turn == WHITE ? WHITE_QUEEN : BLACK_QUEEN;\n int knight = turn == WHITE ? WHITE_KNIGHT : BLACK_KNIGHT;\n int rook = turn == WHITE ? WHITE_ROOK : BLACK_ROOK;\n int bishop = turn == WHITE ? WHITE_BISHOP : BLACK_BISHOP;\n for (int y = 0; y < 8; y++) {\n for (int x = 0; x < 8; x++) {\n int piece = board[y][x];\n if (piece == (turn == WHITE ? WHITE_PAWN : BLACK_PAWN)) { // pawns\n // regular | 2 move\n if (board[y+turn][x] == 0){\n if (y+turn == 0 || y + turn == 7){ // promotion\n results.add(new Move(piece, x, y, x, y + turn, 0, queen, this));\n results.add(new Move(piece, x, y, x, y + turn, 0, knight, this));\n results.add(new Move(piece, x, y, x, y + turn, 0, rook, this));\n results.add(new Move(piece, x, y, x, y + turn, 0, bishop, this));\n }\n else {\n results.add(new Move(piece, x, y, x, y + turn, 0, 0, this));\n if ((y == (turn == WHITE ? 1 : 6)) && board[y + 2 * turn][x] == 0) { // initial 2 move\n results.add(new Move(piece, x, y, x, y + 2*turn, 0, 0, this));\n }\n }\n }\n // capture\n for (int dx = -1; dx <= 1; dx += 2){\n if (x + dx >= 0 && x + dx < 8) {\n int val = board[y+turn][x+dx];\n if (val > 0 && (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN)){\n if (y + turn == 0 || y + turn == 7){ // promotion\n results.add(new Move(piece, x, y, x+dx, y + turn, val, queen, this));\n results.add(new Move(piece, x, y, x+dx, y + turn, val, knight, this));\n results.add(new Move(piece, x, y, x+dx, y + turn, val, rook, this));\n results.add(new Move(piece, x, y, x+dx, y + turn, val, bishop, this));\n } else {\n results.add(new Move(piece, x, y, x+dx, y + turn, val, 0, this));\n }\n }\n if (val == 0 && y == (turn == WHITE ? 4 : 3) && x+dx == enPassant){ // en passant\n results.add(new Move(piece, x, y, x+dx, y + turn, 0, 0, this));\n }\n }\n }\n\n } else if (piece == knight) { // knights TODO: lookup table\n for (int dx = -1; dx <= 1; dx += 2){\n for (int dy = -2; dy <= 2; dy += 4){\n if (x+dx >= 0 && x + dx < 8 && y + dy >= 0 && y + dy < 8){\n int val = board[y+dy][x+dx];\n if (val == 0 || (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN)){\n results.add(new Move(piece,x,y,x+dx,y+dy,val,0,this));\n }\n }\n if (x+dy >= 0 && x + dy < 8 && y + dx >= 0 && y + dx < 8){\n int val = board[y+dx][x+dy];\n if (val == 0 || (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN)){\n results.add(new Move(piece,x,y,x+dy,y+dx,val,0,this));\n }\n }\n }\n }\n } else if (piece == bishop) { // bishops\n for (int dx = -1; dx <= 1; dx += 2){\n for (int dy = -1; dy <= 1; dy += 2){\n int i = 1;\n while (x + dx*i >= 0 && x + dx*i < 8 && y + dy*i >= 0 && y + dy*i < 8){\n int val = board[y+dy*i][x+dx*i];\n if (val == 0){\n results.add(new Move(piece,x,y,x+dx*i,y+dy*i,val,0,this));\n } else {\n if (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN){\n results.add(new Move(piece,x,y,x+dx*i,y+dy*i,val,0,this));\n }\n break;\n }\n i++;\n }\n }\n }\n } else if (piece == rook) { // rooks\n for (int dx = -1; dx <= 1; dx+= 2){\n for (int ax = 0; ax < 2; ax++){\n int i = 1;\n while (ax==0 ? y+dx*i >= 0 && y+dx*i < 8 : x+dx*i >= 0 && x+dx*i < 8){\n int val = board[y+dx*i*(1-ax)][x+dx*i*ax];\n if (val == 0){\n results.add(new Move(piece,x,y,x+dx*i*ax,y+dx*i*(1-ax),val,0,this));\n } else {\n if (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN){\n results.add(new Move(piece,x,y,x+dx*i*ax,y+dx*i*(1-ax),val,0,this));\n }\n break;\n }\n i++;\n }\n }\n }\n } else if (piece == (turn == WHITE ? WHITE_QUEEN : BLACK_QUEEN)) { // queens\n // Diagonals - same as bishops\n for (int dx = -1; dx <= 1; dx += 2){\n for (int dy = -1; dy <= 1; dy += 2){\n int i = 1;\n while (x + dx*i >= 0 && x + dx*i < 8 && y + dy*i >= 0 && y + dy*i < 8){\n int val = board[y+dy*i][x+dx*i];\n if (val == 0){\n results.add(new Move(piece,x,y,x+dx*i,y+dy*i,val,0,this));\n } else {\n if (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN){\n results.add(new Move(piece,x,y,x+dx*i,y+dy*i,val,0,this));\n }\n break;\n }\n i++;\n }\n }\n }\n for (int dx = -1; dx <= 1; dx+= 2){\n for (int ax = 0; ax < 2; ax++){\n int i = 1;\n while (ax==0 ? y+dx*i >= 0 && y+dx*i < 8 : x+dx*i >= 0 && x+dx*i < 8){\n int val = board[y+dx*i*(1-ax)][x+dx*i*ax];\n if (val == 0){\n results.add(new Move(piece,x,y,x+dx*i*ax,y+dx*i*(1-ax),val,0,this));\n } else {\n if (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN){\n results.add(new Move(piece,x,y,x+dx*i*ax,y+dx*i*(1-ax),val,0,this));\n }\n break;\n }\n i++;\n }\n }\n }\n } else if (piece == (turn == WHITE ? WHITE_KING : BLACK_KING)) { // king\n for (int dx = -1; dx < 2; dx++){\n for (int dy = -1; dy < 2; dy++){\n if ((dx != 0 || dy != 0) && x+dx >= 0 && x + dx < 8 && y + dy >= 0 && y + dy < 8){\n int val = board[y+dy][x+dx];\n if (val == 0 || (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN)){\n results.add(new Move(piece,x,y,x+dx,y+dy,val,0,this));\n }\n }\n }\n }\n }\n }\n }\n // castle\n if (checks.size() == 0){\n if (turn == WHITE && (castles & 0b11) != 0){//(castles[0] || castles[1])){\n board[0][4] = 0; // remove king to avoid check test collisions with extra king\n if ((castles & WHITE_SHORT) != 0 && board[0][5] == 0 && board[0][6] == 0 && inCheck(5,0).size() == 0){\n //if (castles[0] && board[0][5] == 0 && board[0][6] == 0 && inCheck(5,0).size() == 0){\n results.add(new Move(WHITE_KING, 4, 0, 6, 0, 0, 0, this));\n }\n if ((castles & WHITE_LONG) != 0 && board[0][1] == 0 && board[0][2] == 0 && board[0][3] == 0 &&\n inCheck(3,0).size() == 0){\n //if (castles[1] && board[0][1] == 0 && board[0][2] == 0 && board[0][3] == 0 && inCheck(3,0).size() == 0){\n results.add(new Move(WHITE_KING, 4, 0, 2, 0, 0, 0, this));\n }\n board[0][4] = WHITE_KING;\n }else if (turn == BLACK && (castles & 0b1100) != 0){//(castles[2] || castles[3])) {\n board[7][4] = 0; // remove king to avoid check test collisions with extra king\n //if (castles[2] && board[7][5] == 0 && board[7][6] == 0 && inCheck(5, 7).size() == 0) {\n if ((castles & BLACK_SHORT) != 0 && board[7][5] == 0 && board[7][6] == 0 && inCheck(5, 7).size() == 0) {\n results.add(new Move(BLACK_KING, 4, 7, 6, 7, 0, 0, this));\n }\n //if (castles[3] && board[7][1] == 0 && board[7][2] == 0 && board[7][3] == 0 && inCheck(3, 7).size() == 0) {\n if ((castles & BLACK_LONG) != 0 && board[7][1] == 0 && board[7][2] == 0 && board[7][3] == 0 &&\n inCheck(3, 7).size() == 0) {\n results.add(new Move(BLACK_KING, 4, 7, 2, 7, 0, 0, this));\n }\n board[7][4] = BLACK_KING;\n }\n }\n }\n List<Move> fullLegal = new LinkedList<>();\n for (Move m : results){\n makeMove(m);\n turn = -turn;\n if (m.piece == WHITE_KING || m.piece == BLACK_KING){\n if (inCheck(m.toX,m.toY).size() == 0){\n fullLegal.add(m);\n }\n }else if (inCheck(kingX,kingY).size() == 0){\n fullLegal.add(m);\n }\n turn = -turn;\n undoMove(m);\n }\n Collections.sort(fullLegal, (o1, o2) -> o2.score - o1.score); // greatest score treated as least so appears first\n return fullLegal;\n }", "public List<MoveTicket> getValidSingleMovesAtLocation(Colour player, int location);", "public List<Spaceship> getShipAtPlanetNextTurn(Player aPlayer, Planet aPlanet){\r\n\t\tList<Spaceship> tempShipList = aPlayer.getGalaxy().getPlayersSpaceshipsOnPlanet(aPlayer, aPlanet);\r\n\t\tList<ShipMovement> shipMovemants = getShipMoves();\r\n\t\tfor (ShipMovement shipMovement : shipMovemants) {\r\n\t\t\tif(shipMovement.getDestinationName().equalsIgnoreCase(aPlanet.getName())){// adding ships with travel ordes against the planet.\r\n\t\t\t\tSpaceship tempShip = aPlayer.getGalaxy().findSpaceship(shipMovement.getSpaceShipID());\r\n\t\t\t\tif(!tempShipList.contains(tempShip)){\r\n\t\t\t\t\ttempShipList.add(tempShip);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(tempShip.isCarrier()){\r\n\t\t\t\t\tList<ShipToCarrierMovement> SqdToCarrierMovementList = getShipToCarrierMoves();\r\n\t\t\t\t\tfor (ShipToCarrierMovement shipToCarrierMovement : SqdToCarrierMovementList) {\r\n\t\t\t\t\t\tif(shipToCarrierMovement.getDestinationCarrierId() == tempShip.getId()){\r\n\t\t\t\t\t\t\ttempShipList.add(aPlayer.getGalaxy().findSpaceship(shipToCarrierMovement.getSpaceshipId()));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tList<Spaceship> shipListAtCarrierPlanet = aPlayer.getGalaxy().getPlayersSpaceshipsOnPlanet(aPlayer, tempShip.getLocation());\r\n\t\t\t\t\tfor (Spaceship spaceship : shipListAtCarrierPlanet) {\r\n\t\t\t\t\t\tif(spaceship.getCarrierLocation() == tempShip){\r\n\t\t\t\t\t\t\tboolean add = true;\r\n\t\t\t\t\t\t\tfor (ShipMovement shipMove : shipMovemants) {\r\n\t\t\t\t\t\t\t\tif(shipMove.getSpaceShipID() == spaceship.getId()){\r\n\t\t\t\t\t\t\t\t\tadd = false;\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\tif(add){\r\n\t\t\t\t\t\t\t\ttempShipList.add(spaceship);\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\t\r\n\t\t\t}else{\r\n\t\t\t\tSpaceship tempSpaceship = aPlayer.getGalaxy().findSpaceship(shipMovement.getSpaceShipID());\r\n\t\t\t\tif(tempSpaceship.getLocation() != null && tempSpaceship.getLocation() == aPlanet){// removing ships on the planet with move orders\r\n\t\t\t\t\ttempShipList.remove(tempSpaceship);\r\n\t\t\t\t\tif(tempSpaceship.isCarrier()){\r\n\t\t\t\t\t\tList<Spaceship> removeShips = new ArrayList<Spaceship>();\r\n\t\t\t\t\t\tfor (Spaceship tempShip : tempShipList) {\r\n\t\t\t\t\t\t\tif(tempShip.isSquadron()){\r\n\t\t\t\t\t\t\t\tList<ShipToCarrierMovement> SqdToCarrierMovementList = getShipToCarrierMoves();\r\n\t\t\t\t\t\t\t\tfor (ShipToCarrierMovement shipToCarrierMovement : SqdToCarrierMovementList) {\r\n\t\t\t\t\t\t\t\t\tif(shipToCarrierMovement.getDestinationCarrierId() == tempSpaceship.getId()){\r\n\t\t\t\t\t\t\t\t\t\tremoveShips.add(tempShip);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(tempShip.getCarrierLocation() == tempSpaceship){\r\n\t\t\t\t\t\t\t\t\tboolean add = true;\r\n\t\t\t\t\t\t\t\t\tfor (ShipMovement shipMove : shipMovemants) {\r\n\t\t\t\t\t\t\t\t\t\tif(shipMove.getSpaceShipID() == tempShip.getId()){\r\n\t\t\t\t\t\t\t\t\t\t\tadd = false;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif(add){\r\n\t\t\t\t\t\t\t\t\t\tremoveShips.add(tempShip);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\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\ttempShipList.removeAll(removeShips);\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 tempShipList;\r\n\t}", "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\t\t\t\tpublic List<KinderGarten> chercherParZone(Double longi, Double lat,Double rayon) {\n\t\t\t\t\tList<KinderGarten> list = new ArrayList<>();\n\t\t\t\t\tList<KinderGarten> list2 =(List<KinderGarten>) kindergartenRepo.findAll();\n\t\t\t\t\tfor(int i=0;i<list2.size();i++)\n\t\t\t\t\t\t\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(calculDis(longi,lat,list2.get(i).getLongi(),list2.get(i).getLatitude()));\n\t\t\t\t\t\tif(calculDis(longi,lat,list2.get(i).getLongi(),list2.get(i).getLatitude()) <= rayon)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlist.add(list2.get(i));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// long/lat/r\n\t\t\t\t\t//coord bd Ariana long:10.182733 lat: 36.900635 // long:10.804493 lat2 :36.460875\n\t\t\t\t\t\n\t\t\t\t\t//test 1 Ariana 10.1852049/36.8989212/1 \n\t\t\t\t\t\n\t\t\t\t\t//test 2 A GHANA 10.181863/36.806459/1 // long2:10.182039 lat2: 36.806021 \n\t\t\t\t\t//\n\t\t\t\t\treturn list;\n\t\t\t\t}", "public void checkCorrectDomainPlanSelected(Plans plan) {\n Assert.assertEquals(\"Selected plan does not match\", driver.waitAndGetText(LOC_SELECTED_PLAN), plan.getLabel());\n }", "private void createHeuristics() {\n int linkCount = 0, // Stores the number of linking squares for a\n // particular square\n testRow, // Knight's current row plus a move number value\n testCol; // Knight's current column plus a move number value\n\n // Adds a move number value to the knight's current row and tests\n // whether it is a move candidate.\n // If the location is on the game board, it increments the link count\n for (int row = 0; row < BOARD_SIZE; row++) {\n for (int col = 0; col < BOARD_SIZE; col++) {\n for (int moveNum = 0; moveNum < Knight.NUM_ALLOWED_MOVES; moveNum++) {\n testRow = row + currentKnight.getVerticalMoveValue(moveNum);\n testCol = col\n + currentKnight.getHorizontalMoveValue(moveNum);\n\n if (checkSquareExistsAndIsUnVisted(testRow, testCol) == true) {\n linkCount++;\n }\n }\n\n // Set accessibility and reset link count for next column\n setSquareAccessibility(row, col, linkCount);\n linkCount = 0;\n }\n }\n }", "private void locate() {\n possibleLocations[0][0] = false;\n possibleLocations[0][1] = false;\n possibleLocations[1][0] = false;\n do {\n location.randomGenerate();\n } while (!possibleLocations[location.y][location.x]);\n }", "private ArrayList<Location> getCandidateLocations(Location origin)\n {\n ArrayList<Location> locs = new ArrayList<>();\n Piece p = getPiece(origin);\n if (p==null)\n return locs;\n switch (p.getType())\n {\n case QUEEN:case ROOK:case BISHOP:\n locs = getLocations();break;\n case KNIGHT:case PAWN:case KING:\n locs = getLocationsWithin(getLocation(p),2);\n }\n return locs;\n }", "@Override\n\t//loc1 is the start location,loc2 is the destination\n\tpublic ArrayList<MapCoordinate> bfsSearch(MapCoordinate loc1, MapCoordinate loc2, Map m) {\n\t\tSystem.out.println(\"come into bfsSearch\");\n\t\tif(m.isAgentHasAxe() && m.isAgentHasKey()){\n\t\t\tLinkedList<State> queue=new LinkedList<State>();\n\t\t\tArrayList<MapCoordinate> Visited=new ArrayList<MapCoordinate>();\n\t\t\t\n\t\t\t//Visited.add(loc1);\n\t\t\tState s1=new State(loc1,m.getAgentHasNStones(),null);\n\t\t\tqueue.add(s1);\n\t\t\t\n\t\t\twhile(!queue.isEmpty()){\n\t\t\t\tState s=queue.remove();\n\t\t\t\tMapCoordinate currentLocation=s.getLocation();\n\t\t\t\tVisited.add(s.getLocation()); //add to visited every loop\n\t\t\t\tif(loc2.equals(currentLocation)){\n\t\t\t\t\t//means could reach loc2 from loc1\n\t\t\t\t\tArrayList<MapCoordinate> route=new ArrayList<MapCoordinate>();\n\t\t\t\t\twhile(s.getPrevState()!=null){\n\t\t\t\t\t\troute.add(0,s.getLocation()); //add to head\n\t\t\t\t\t\ts=s.getPrevState();\n\t\t\t\t\t}\n\t\t\t\t\treturn route;\n\t\t\t\t}\n\t\t\t\tMapCoordinate temp=new MapCoordinate(currentLocation.getX()+1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){//state move east\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){ //this is important else if(cTemp!='~'), not barely else,\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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\ttemp=new MapCoordinate(currentLocation.getX()-1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()+1);\n\t\t\t\tif(m.hasCoordinate(temp)){//state move north\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()-1);\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' ){\n\t\t\t\t\t\t\tif(cTemp=='~' &&s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t\treturn null;\n\t\t}else if(m.isAgentHasAxe()){ //only have axe\n\t\t\tLinkedList<State> queue=new LinkedList<State>();\n\t\t\tArrayList<MapCoordinate> Visited=new ArrayList<MapCoordinate>();\n\t\t\t\n\t\t\t//Visited.add(loc1);\n\t\t\tState s1=new State(loc1,m.getAgentHasNStones(),null);\n\t\t\tqueue.add(s1);\n\t\t\t\n\t\t\twhile(!queue.isEmpty()){\n\t\t\t\tState s=queue.remove();\n\t\t\t\tMapCoordinate currentLocation=s.getLocation();\n\t\t\t\tVisited.add(s.getLocation()); //add visited every loop\n\t\t\t\tif(loc2.equals(currentLocation)){\n\t\t\t\t\t//means could reach loc2 from loc1\n\t\t\t\t\tArrayList<MapCoordinate> route=new ArrayList<MapCoordinate>();\n\t\t\t\t\twhile(s.getPrevState()!=null){\n\t\t\t\t\t\troute.add(0,s.getLocation()); //add to head\n\t\t\t\t\t\ts=s.getPrevState();\n\t\t\t\t\t}\n\t\t\t\t\treturn route;\n\t\t\t\t}\n\t\t\t\tMapCoordinate temp=new MapCoordinate(currentLocation.getX()+1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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\ttemp=new MapCoordinate(currentLocation.getX()-1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()+1);\n\t\t\t\tif(m.hasCoordinate(temp)){//state move north\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()-1);\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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\treturn null;\n\t\t}else if(m.isAgentHasKey()){ //only have key\n\t\t\tLinkedList<State> queue=new LinkedList<State>();\n\t\t\tArrayList<MapCoordinate> Visited=new ArrayList<MapCoordinate>();\n\t\t\t\n\t\t\t//Visited.add(loc1);\n\t\t\tState s1=new State(loc1,m.getAgentHasNStones(),null);\n\t\t\tqueue.add(s1);\n\t\t\t\n\t\t\twhile(!queue.isEmpty()){\n\t\t\t\tState s=queue.remove();\n\t\t\t\tMapCoordinate currentLocation=s.getLocation();\n\t\t\t\tVisited.add(s.getLocation());\n\t\t\t\tif(loc2.equals(currentLocation)){\n\t\t\t\t\t//means could reach loc2 from loc1\n\t\t\t\t\tArrayList<MapCoordinate> route=new ArrayList<MapCoordinate>();\n\t\t\t\t\twhile(s.getPrevState()!=null){\n\t\t\t\t\t\troute.add(0, s.getLocation()); //add to head,in this fashion, return the right order of route\n\t\t\t\t\t\ts=s.getPrevState();\n\t\t\t\t\t}\n\t\t\t\t\treturn route;\n\t\t\t\t}\n\t\t\t\tMapCoordinate temp=new MapCoordinate(currentLocation.getX()+1,currentLocation.getY()); \n\t\t\t\tif(m.hasCoordinate(temp)){//state move east\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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\ttemp=new MapCoordinate(currentLocation.getX()-1,currentLocation.getY()); //state that move west\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()+1); //state move north\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()-1); //state move south\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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\treturn null;\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * \n\t\t **/\t\t\n\t\telse{ //have no key and axe\n\t\t\tSystem.out.println(\"come into the last elas clause\");\n\t\t\tLinkedList<State> queue=new LinkedList<State>();\n\t\t\tArrayList<MapCoordinate> Visited=new ArrayList<MapCoordinate>();\n\t\t\t\n\t\t\tVisited.add(loc1);\n\t\t\tState s1=new State(loc1,m.getAgentHasNStones(),null);\n\t\t\tqueue.add(s1);\n\t\t\t\n\t\t\t//int i=0;\n\t\t\twhile(!queue.isEmpty()){\n\t\t\t\t//i++;\n\t\t\t\t//System.out.println(\"come into while: \"+i);\n\t\t\t\tState s=queue.remove();\n\t\t\t\tMapCoordinate currentLocation=s.getLocation();\n\t\t\t\tVisited.add(s.getLocation()); //add visited, let program won't stuck in \n\t\t\t\tif(loc2.equals(currentLocation)){\n\t\t\t\t\t//means could reach loc2 from loc1\n\t\t\t\t\tSystem.out.println(\"return computed route\");\n\t\t\t\t\tArrayList<MapCoordinate> route=new ArrayList<MapCoordinate>();\n\t\t\t\t\twhile(s.getPrevState()!=null){\n\t\t\t\t\t\troute.add(0, s.getLocation()); //add to head\n\t\t\t\t\t\ts=s.getPrevState();\n\t\t\t\t\t}\n\t\t\t\t\tfor(MapCoordinate mc:route){\n\t\t\t\t\t\t//System.out.println(\"print returned route in bfssearch\");\n\t\t\t\t\t\tSystem.out.print(\"mc:\"+mc.getX()+\" \"+mc.getY()+\"->\");\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\treturn route;\n\t\t\t\t}\n\t\t\t\tMapCoordinate temp=new MapCoordinate(currentLocation.getX()+1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\t//System.out.println(\"1 if\");\n\t\t\t\t\tif(s.getPrevState()!=null &&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if\");\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 if\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 if\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 else\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for the initial state \n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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\ttemp=new MapCoordinate(currentLocation.getX()-1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.add(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for the initial state \n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\tSystem.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()+1);\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*'&&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for the initial state \n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\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\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()-1);\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}//do not do any action for not enough stones situation\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for the initial state \n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}//do not do any action for not enough stones situation\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\treturn null;\n\t\t}\n\t}", "public void computeOptimalDir(CameraPlacementProblem problem)\n {\n \tint i, maxX = problem.getMaxX();\n \tint j, maxY = problem.getMaxY();\n \tint pos, maxTiles, angle, angleBest, goodCov;\n\n \tArrayList<Camera> cameraTestList = new ArrayList<Camera>();\n\n \t//Clear previous list\n \toptimalDir.clear();\n\n \tCameraPlacementResult result = null;\n \tCameraPlacementResult testResult = null;\n\n \t//Result of all previous cameras together in cameraList\n\t\tresult = CameraPlacement.evaluatePlacement(problem, cameraList);\n\n \t// iteratively walk along bottom wall (Must do all ext/int walls respectively)\n\t\tfor (pos = 1; pos < maxX; pos += posIncre)\n\t\t{\n\t\t\t//Quick check if current location is valid (saves time)\n\t\t\tif (!isValid(pos, 1))\n\t\t\t\tbreak;\n\n\t\t\t//int[][] coverageMatrix = preCompute(problem);\n\t\t\tmaxTiles = 0;\n\t\t\tangleBest = 0;\n\n\t\t\t// Now iteratively through each possible angle \n\t\t\t//Increments of: 10 degrees\n\t\t\tfor (angle = 0; angle < 360; angle += angleIncre)\n\t\t\t{\n\t\t\t\t//Create new testCamera\n\t\t\t\tCamera testCamera = new Camera(new Pointd(pos, 1), angle);\n\t\t\t\t\n\t\t\t\t//Initialize goodCov\n\t\t\t\tgoodCov = 0;\n\t\t\t\t\n\t\t\t\tcameraTestList.add(testCamera);\n\n\t\t\t\t//Result of newly created camera, alone\n\t\t\t\ttestResult = CameraPlacement.evaluatePlacement(problem, cameraTestList);\n\n\t\t\t\t//Compute total good Coverage by camera (# tiles covered that were prev uncovered)\n\t\t\t\tgoodCov = computeGoodCoverage(result, testResult, problem);\n\n\n\t\t\t\t// If current cam angles covers ANY tiles add to dummy matrix\n\t\t\t\tif (goodCov > 0 && testResult.numIllegalPlacements == 0 && goodCov > maxTiles) \n\t\t\t\t{\n\t\t\t\t\t//update maxTiles (minus any overlap present), and angleBest\n\t\t\t\t\tmaxTiles = goodCov;\n\t\t\t\t\tangleBest = angle;\n\t\t\t\t}\n\n\t\t\t\t//And clear single camera from testList\n\t\t\t\tcameraTestList.clear();\n\t\t\t}\n\n\t\t\tif (maxTiles > 0)\n\t\t\t{\n\t\t\t\t//Concatentate bestInfo into double array\n\t\t\t\tint[] info = new int[4];\n\t\t\t\tinfo[0] = angleBest;\n\t\t\t\tinfo[1] = maxTiles;\n\t\t\t\tinfo[2] = pos;\n\t\t\t\tinfo[3] = 1;\n\n\t\t\t\t//Add tp optimalDir\n\t\t\t\toptimalDir.add(info);\n\t\t\t}\n\t\t\t//System.out.println(\"fin. with pos: \" + pos);\n\t\t}\n\n\t\t// iteratively walk along top wall (Must do all ext/int walls respectively)\n\t\tfor (pos = 1; pos < maxX; pos += posIncre)\n\t\t{\n\t\t\tif (!isValid(pos, maxY - 1))\n\t\t\t\tbreak;\n\n\t\t\t//int[][] coverageMatrix = preCompute(problem);\n\t\t\tmaxTiles = 0;\n\t\t\tangleBest = 0;\n\n\t\t\t// Now iteratively through each possible angle \n\t\t\t//Increments of: 10 degrees\n\t\t\tfor (angle = 0; angle < 360; angle += angleIncre)\n\t\t\t{\n\t\t\t\tCamera testCamera = new Camera(new Pointd(pos, maxY - 1), angle);\n\t\t\t\t\n\t\t\t\t//Initialize goodCov\n\t\t\t\tgoodCov = 0;\n\n\t\t\t\tcameraTestList.add(testCamera);\n\n\t\t\t\ttestResult = CameraPlacement.evaluatePlacement(problem, cameraTestList);\n\n\t\t\t\tgoodCov = computeGoodCoverage(result, testResult, problem);\n\n\t\t\t\t// If current cam angles covers ANY tiles add to dummy matrix\n\t\t\t\tif (goodCov > 0 && testResult.numIllegalPlacements == 0 && goodCov > maxTiles) \n\t\t\t\t{\n\n\t\t\t\t\t//update maxTiles (minus any overlap present), and angleBest\n\t\t\t\t\tmaxTiles = goodCov;\n\t\t\t\t\tangleBest = angle;\n\t\t\t\t}\n\n\t\t\t\t//And clear single camera from testList\n\t\t\t\tcameraTestList.clear();\n\t\t\t}\n\n\t\t\tif (maxTiles > 0)\n\t\t\t{\n\t\t\t\tint[] info = new int[4];\n\t\t\t\tinfo[0] = angleBest;\n\t\t\t\tinfo[1] = maxTiles;\n\t\t\t\tinfo[2] = pos;\n\t\t\t\tinfo[3] = maxY - 1;\n\n\t\t\t\t//Add tp optimalDir\n\t\t\t\toptimalDir.add(info);\n\t\t\t}\n\n\n\t\t\t//System.out.println(\"fin. with pos: \" + pos);\n\t\t}\n\t\t\n\t\t// iteratively walk along left wall (Must do all ext/int walls respectively)\n\t\tfor (pos = 1; pos < maxY; pos += posIncre)\n\t\t{\n\n\t\t\tif (!isValid(1, pos))\n\t\t\t\tbreak;\n\n\t\t\t//int[][] coverageMatrix = preCompute(problem);\n\t\t\tmaxTiles = 0;\n\t\t\tangleBest = 0;\n\t\t\t// Now iteratively through each possible angle \n\t\t\t//Increments of: 10 degrees\n\t\t\tfor (angle = 0; angle < 360; angle += angleIncre)\n\t\t\t{\n\t\t\t\t//Create new testCamera\n\t\t\t\tCamera testCamera = new Camera(new Pointd(1, pos), angle);\n\t\t\t\t\n\t\t\t\t//Initialize goodCov\n\t\t\t\tgoodCov = 0;\n\n\t\t\t\tcameraTestList.add(testCamera);\n\n\t\t\t\ttestResult = CameraPlacement.evaluatePlacement(problem, cameraTestList);\n\n\t\t\t\tgoodCov = computeGoodCoverage(result, testResult, problem);\n\n\t\t\t\t// If current cam angles covers ANY tiles add to dummy matrix\n\t\t\t\tif (goodCov > 0 && testResult.numIllegalPlacements == 0 && goodCov > maxTiles) \n\t\t\t\t{\n\n\t\t\t\t\t//update maxTiles (minus any overlap present), and angleBest\n\t\t\t\t\tmaxTiles = goodCov;\n\t\t\t\t\tangleBest = angle;\t\n\n\t\t\t\t}\n\n\t\t\t\t//And clear single camera from testList\n\t\t\t\tcameraTestList.clear();\n\t\t\t}\n\n\t\t\t//coverageDir.add(coverageMatrix);\n\n\t\t\tif (maxTiles > 0)\n\t\t\t{\n\t\t\t\tint[] info = new int[4];\n\t\t\t\tinfo[0] = angleBest;\n\t\t\t\tinfo[1] = maxTiles;\n\t\t\t\tinfo[2] = 1;\n\t\t\t\tinfo[3] = pos;\n\n\t\t\t\t//Add tp optimalDir\n\t\t\t\toptimalDir.add(info);\n\t\t\t}\n\n\t\t\t//System.out.println(\"fin. with pos: \" + pos);\n\t\t}\n\n\t\t// iteratively walk along right wall (Must do all ext/int walls respectively)\n\t\tfor (pos = 1; pos < maxY; pos += posIncre)\n\t\t{\n\n\t\t\tif (!isValid(maxX - 1, pos))\n\t\t\t\tbreak;\n\n\t\t\t//int[][] coverageMatrix = preCompute(problem);\n\t\t\tmaxTiles = 0;\n\t\t\tangleBest = 0;\n\t\t\t// Now iteratively through each possible angle \n\t\t\t//Increments of: 10 degrees\n\t\t\tfor (angle = 0; angle < 360; angle += angleIncre)\n\t\t\t{\n\t\t\t\t//Create new testCamera\n\t\t\t\tCamera testCamera = new Camera(new Pointd(maxX - 1, pos), angle);\n\t\t\t\t\n\t\t\t\t//Initialize goodCov\n\t\t\t\tgoodCov = 0;\n\n\t\t\t\tcameraTestList.add(testCamera);\n\n\t\t\t\ttestResult = CameraPlacement.evaluatePlacement(problem, cameraTestList);\n\n\t\t\t\tgoodCov = computeGoodCoverage(result, testResult, problem);\n\n\t\t\t\t// If current cam angles covers ANY tiles add to dummy matrix\n\t\t\t\tif (goodCov > 0 && testResult.numIllegalPlacements == 0 && goodCov > maxTiles) \n\t\t\t\t{\n\t\t\t\t\t//update maxTiles (minus any overlap present), and angleBest\n\t\t\t\t\tmaxTiles = goodCov;\n\t\t\t\t\tangleBest = angle;\n\t\t\t\t}\n\n\t\t\t\t//And clear single camera from testList\n\t\t\t\tcameraTestList.clear();\n\t\t\t}\n\n\t\t\t//coverageDir.add(coverageMatrix);\n\n\t\t\tif (maxTiles > 0)\n\t\t\t{\n\t\t\t\tint[] info = new int[4];\n\t\t\t\tinfo[0] = angleBest;\n\t\t\t\tinfo[1] = maxTiles;\n\t\t\t\tinfo[2] = maxX - 1;\n\t\t\t\tinfo[3] = pos;\n\n\t\t\t\t//Add tp optimalDir\n\t\t\t\toptimalDir.add(info);\n\t\t\t}\n\n\t\t\t//System.out.println(\"fin. with pos: \" + pos);\n\t\t}\n\n\t\t//================================================\n\t\t// Now need to do interior walls:/\n\t\t//================================================\n\t\t\n\t\tArrayList<Wall> interiorWalls = problem.getInteriorWalls();\n\t\tIterator intWallItr = interiorWalls.iterator();\n\n\t\twhile (intWallItr.hasNext())\n\t\t{\n\n\t\t\tWall wall = (Wall) intWallItr.next();\n\n\t\t\t//If vertical int wall\n\t\t\tif (wall.start.x == wall.end.x) \n\t\t\t{\n\t\t\t\t//For left side of wall\n\t\t\t\tfor (pos = (int) wall.start.y; pos <= wall.end.y; pos += posIncre)\n\t\t\t\t{\n\n\t\t\t\t\t//int[][] coverageMatrix = preCompute(problem);\n\t\t\t\t\tmaxTiles = 0;\n\t\t\t\t\tangleBest = 0;\n\t\t\t\t\t// Now iteratively through each possible angle \n\t\t\t\t\t//Increments of: 10 degrees\n\t\t\t\t\tfor (angle = 0; angle < 360; angle += angleIncre)\n\t\t\t\t\t{\n\t\t\t\t\t\t//Create new testCamera\n\t\t\t\t\t\tCamera testCamera = new Camera(new Pointd(wall.start.x, pos), angle);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Initialize goodCov\n\t\t\t\t\t\tgoodCov = 0;\n\n\t\t\t\t\t\tcameraTestList.add(testCamera);\n\n\t\t\t\t\t\ttestResult = CameraPlacement.evaluatePlacement(problem, cameraTestList);\n\n\t\t\t\t\t\tgoodCov = computeGoodCoverage(result, testResult, problem);\n\n\t\t\t\t\t\t// If current cam angles covers ANY tiles add to dummy matrix\n\t\t\t\t\t\tif (goodCov > 0 && testResult.numIllegalPlacements == 0 && goodCov > maxTiles) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//update maxTiles (minus any overlap present), and angleBest\n\t\t\t\t\t\t\tmaxTiles = goodCov;\n\t\t\t\t\t\t\tangleBest = angle;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//And clear single camera from testList\n\t\t\t\t\t\tcameraTestList.clear();\n\t\t\t\t\t}\n\n\t\t\t\t\t//coverageDir.add(coverageMatrix);\n\n\t\t\t\t\tif (maxTiles > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tint[] info = new int[4];\n\t\t\t\t\t\tinfo[0] = angleBest;\n\t\t\t\t\t\tinfo[1] = maxTiles;\n\t\t\t\t\t\tinfo[2] = (int) wall.start.x;\n\t\t\t\t\t\tinfo[3] = pos;\n\n\t\t\t\t\t\toptimalDir.add(info);\n\t\t\t\t\t}\n\n\n\t\t\t\t\t//Add tp optimalDir\n\t\t\t\t\t//System.out.println(\"fin. with pos: \" + pos);\n\t\t\t\t}\n\n\t\t\t\t//Now for right side of wall\n\t\t\t\tfor (pos = (int) wall.start.y; pos <= wall.end.y; pos += posIncre)\n\t\t\t\t{\n\n\t\t\t\t\t//int[][] coverageMatrix = preCompute(problem);\n\t\t\t\t\tmaxTiles = 0;\n\t\t\t\t\tangleBest = 0;\n\t\t\t\t\t// Now iteratively through each possible angle \n\t\t\t\t\t//Increments of: 10 degrees\n\t\t\t\t\tfor (angle = 0; angle < 360; angle += angleIncre)\n\t\t\t\t\t{\n\t\t\t\t\t\t//Create new testCamera\n\t\t\t\t\t\tCamera testCamera = new Camera(new Pointd(wall.start.x + 1, pos), angle);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Initialize goodCov\n\t\t\t\t\t\tgoodCov = 0;\n\n\t\t\t\t\t\tcameraTestList.add(testCamera);\n\n\t\t\t\t\t\ttestResult = CameraPlacement.evaluatePlacement(problem, cameraTestList);\n\n\t\t\t\t\t\tgoodCov = computeGoodCoverage(result, testResult, problem);\n\n\t\t\t\t\t\t// If current cam angles covers ANY tiles add to dummy matrix\n\t\t\t\t\t\tif (goodCov > 0 && testResult.numIllegalPlacements == 0 && goodCov > maxTiles) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//update maxTiles (minus any overlap present), and angleBest\n\t\t\t\t\t\t\tmaxTiles = goodCov;\n\t\t\t\t\t\t\tangleBest = angle;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//And clear single camera from testList\n\t\t\t\t\t\tcameraTestList.clear();\n\t\t\t\t\t}\n\n\t\t\t\t\t//coverageDir.add(coverageMatrix);\n\n\t\t\t\t\tif (maxTiles > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tint[] info = new int[4];\n\t\t\t\t\t\tinfo[0] = angleBest;\n\t\t\t\t\t\tinfo[1] = maxTiles;\n\t\t\t\t\t\tinfo[2] = (int) wall.start.x + 1;\n\t\t\t\t\t\tinfo[3] = pos;\n\n\t\t\t\t\t\t//Add tp optimalDir\n\t\t\t\t\t\toptimalDir.add(info);\n\t\t\t\t\t}\n\n\n\t\t\t\n\t\t\t\t\t//System.out.println(\"fin. with pos: \" + pos);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Else horizontal wall\n\t\t\telse\n\t\t\t{\n\t\t\t\t//For bottom side of wall\n\t\t\t\tfor (pos = (int) wall.start.x; pos <= wall.end.x; pos += posIncre)\n\t\t\t\t{\n\n\t\t\t\t\t//int[][] coverageMatrix = preCompute(problem);\n\t\t\t\t\tmaxTiles = 0;\n\t\t\t\t\tangleBest = 0;\n\t\t\t\t\t// Now iteratively through each possible angle \n\t\t\t\t\t//Increments of: 10 degrees\n\t\t\t\t\tfor (angle = 0; angle < 360; angle += angleIncre)\n\t\t\t\t\t{\n\t\t\t\t\t\t//Create new testCamera\n\t\t\t\t\t\tCamera testCamera = new Camera(new Pointd(pos, wall.start.y), angle);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Initialize goodCov\n\t\t\t\t\t\tgoodCov = 0;\n\n\t\t\t\t\t\tcameraTestList.add(testCamera);\n\n\t\t\t\t\t\ttestResult = CameraPlacement.evaluatePlacement(problem, cameraTestList);\n\n\t\t\t\t\t\tgoodCov = computeGoodCoverage(result, testResult, problem);\n\n\t\t\t\t\t\t// If current cam angles covers ANY tiles add to dummy matrix\n\t\t\t\t\t\tif (goodCov > 0 && testResult.numIllegalPlacements == 0 && goodCov > maxTiles) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//update maxTiles (minus any overlap present), and angleBest\n\t\t\t\t\t\t\tmaxTiles = goodCov;\n\t\t\t\t\t\t\tangleBest = angle;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//And clear single camera from testList\n\t\t\t\t\t\tcameraTestList.clear();\n\t\t\t\t\t}\n\n\t\t\t\t\t//coverageDir.add(coverageMatrix);\n\n\t\t\t\t\tif (maxTiles > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tint[] info = new int[4];\n\t\t\t\t\t\tinfo[0] = angleBest;\n\t\t\t\t\t\tinfo[1] = maxTiles;\n\t\t\t\t\t\tinfo[2] = pos;\n\t\t\t\t\t\tinfo[3] = (int) wall.start.y;\n\n\t\t\t\t\t\t//Add tp optimalDir\n\t\t\t\t\t\toptimalDir.add(info);\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(\"fin. with pos: \" + pos);\n\t\t\t\t}\n\n\t\t\t\t//Now for top side of wall\n\t\t\t\tfor (pos = (int) wall.start.x; pos <= wall.end.x; pos += posIncre)\n\t\t\t\t{\n\n\t\t\t\t\t//int[][] coverageMatrix = preCompute(problem);\n\t\t\t\t\tmaxTiles = 0;\n\t\t\t\t\tangleBest = 0;\n\t\t\t\t\t// Now iteratively through each possible angle \n\t\t\t\t\t//Increments of: 10 degrees\n\t\t\t\t\tfor (angle = 0; angle < 360; angle += angleIncre)\n\t\t\t\t\t{\n\t\t\t\t\t\t//Create new testCamera\n\t\t\t\t\t\tCamera testCamera = new Camera(new Pointd(pos, wall.start.y + 1), angle);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Initialize goodCov\n\t\t\t\t\t\tgoodCov = 0;\n\n\t\t\t\t\t\tcameraTestList.add(testCamera);\n\n\t\t\t\t\t\ttestResult = CameraPlacement.evaluatePlacement(problem, cameraTestList);\n\n\t\t\t\t\t\tgoodCov = computeGoodCoverage(result, testResult, problem);\n\n\t\t\t\t\t\t// If current cam angles covers ANY tiles add to dummy matrix\n\t\t\t\t\t\tif (goodCov > 0 && testResult.numIllegalPlacements == 0 && goodCov > maxTiles) \n\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\t//update maxTiles (minus any overlap present), and angleBest\n\t\t\t\t\t\t\tmaxTiles = goodCov;\n\t\t\t\t\t\t\tangleBest = angle;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//And clear single camera from testList\n\t\t\t\t\t\tcameraTestList.clear();\n\t\t\t\t\t}\n\n\t\t\t\t\t//coverageDir.add(coverageMatrix);\n\n\t\t\t\tif (maxTiles > 0)\n\t\t\t\t{\n\t\t\t\t\tint[] info = new int[4];\n\t\t\t\t\tinfo[0] = angleBest;\n\t\t\t\t\tinfo[1] = maxTiles;\n\t\t\t\t\tinfo[2] = pos;\n\t\t\t\t\tinfo[3] = (int) wall.start.y + 1;\n\n\t\t\t\t\t//Add tp optimalDir\n\t\t\t\t\toptimalDir.add(info);\n\t\t\t\t}\n\n\t\t\t\t\t//System.out.println(\"fin. with pos: \" + pos);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\t\n\n\t\t//for (j = 0; j < optimalDir.size(); j++)\n\t\t//\tSystem.out.println(\"[ \" + optimalDir.get(j)[0] + \" \" + optimalDir.get(j)[1] + \" \" + optimalDir.get(j)[2] + \" \" + optimalDir.get(j)[3] + \" ]\");\n }", "@Test\n public void testNeighbors() {\n\n // Make a bigger nanoverse.runtime.geometry than the one from setUp\n Lattice lattice = new TriangularLattice();\n hex = new Hexagon(lattice, 3);\n Boundary boundary = new Arena(hex, lattice);\n Geometry geometry = new Geometry(lattice, hex, boundary);\n\n Coordinate query;\n\n // Check center\n query = new Coordinate2D(2, 2, 0);\n assertNeighborCount(6, query, geometry);\n\n // Check corner\n query = new Coordinate2D(0, 0, 0);\n assertNeighborCount(3, query, geometry);\n\n // Check side\n query = new Coordinate2D(1, 0, 0);\n assertNeighborCount(4, query, geometry);\n }", "public BestPath getBestPath(String origin, String destination, FlightCriteria criteria, String airliner) {\r\n\t\tint originIndex = 0;\r\n\t\tif(airportNames.contains(origin)){\r\n\t\t\toriginIndex = airportNames.indexOf(origin);\r\n\t\t}\r\n\t\tint destinationIndex = 0;\r\n\t\tif(airportNames.contains(destination)){\r\n\t\t\tdestinationIndex = airportNames.indexOf(destination);\r\n\t\t}\r\n\t\tAirport start = allAirports.get(originIndex);\r\n\t\tAirport goal = allAirports.get(destinationIndex);\r\n\r\n\t\tPriorityQueue<Airport> queue = new PriorityQueue<Airport>();\r\n\t\r\n\t\tLinkedList<String> path = new LinkedList<String>();\r\n\r\n\t\tstart.setWeight(0);\r\n\t\tqueue.add(start);\r\n\t\tAirport current;\r\n\t\twhile(!queue.isEmpty()) {\r\n\t\t\tcurrent = queue.poll();\r\n\t\t\t\r\n\t\t\tif(current.compareTo(goal) == 0) {\r\n\t\t\t\tdouble finalWeight = current.getWeight();\r\n\t\t\t\t\r\n\t\t\t\twhile(current.compareTo(start) != 0){\r\n\t\t\t\t\t\r\n\t\t\t\t\tpath.addFirst(current.getAirport());\r\n\t\t\t\t\tcurrent = current.getPrevious();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tpath.addFirst(start.getAirport());\r\n\t\t\t\tBestPath bestPath = new BestPath(path, finalWeight);\r\n\t\t\t\treturn bestPath;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcurrent.visited = true;\r\n\t\t\tAirport neighbor = current;\r\n\t\t\tArrayList<Flight> currentFlights;\r\n\t\t\tfor (int i = 0; i < current.size(); i++){\r\n\t\t\t\tcurrentFlights = new ArrayList<Flight>();\r\n\t\t\t\tcurrentFlights = current.getOutgoingFlights();\r\n\t\t\t\tneighbor = currentFlights.get(i).getDestination();\r\n\t\t\t\tdouble neighborWeight = neighbor.getWeight();\r\n\t\t\t\tcurrentFlights.get(i).setWeight(criteria);\r\n\t\t\t\tdouble flightWeight = currentFlights.get(i).getFlightWeight();\r\n\t\t\t\tif((neighborWeight > (current.getWeight() + flightWeight)) && currentFlights.get(i).getCarrier() == airliner){\r\n\t\t\t\t\tqueue.add(neighbor);\r\n\t\t\t\t\tneighbor.setPrevious(current);\r\n\t\t\t\t\tneighbor.setWeight(current.getWeight() + flightWeight);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public ArrayList<Location> getValid(Location loc) {\n\n\tGrid<Actor> grid = getGrid();\n\tif (grid == null)\n\t return null;\n\n\tArrayList<Location> valid = new ArrayList<Location>();\n\tArrayList<Location> lastNode = crossLocation.peek();\n\tint[] dirs =\n { Location.SOUTH, Location.NORTH, Location.EAST, Location.WEST };\n\n\t// get the empty and valid location in the desire directions\n for (int d : dirs) {\n\n\t Location neighborLoc = loc.getAdjacentLocation(getDirection() + d);\n\t\t if (!lastNode.contains(neighborLoc) && grid.isValid(neighborLoc)) {\n\t\t\t\n\t\t\tActor actor = (Actor) grid.get(neighborLoc);\n\t\t\tif (grid.get(neighborLoc) == null || actor instanceof Flower) {\n\t\t\t \n\t\t\t valid.add(neighborLoc);\n\t\t\t} \n\t\t\n\t\t\tif (actor instanceof Rock && actor.getColor() == Color.RED) {\n\t\t\t\n\t\t\t isEnd = true;\n\t\t\t}\n\t\t }\n\t }\n\t \n\t\treturn valid;\n }", "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 }", "@Test\r\n void findRouteSameLine() {\r\n List<Station> route = model.findRoute(1, 20);\r\n assertNotNull(route);\r\n assertEquals(6, route.size());\r\n assertEquals(\"OakGrove\", route.get(0).getName());\r\n assertEquals(\"NorthStation\", route.get(5).getName());\r\n }", "@Override\n\tpublic void run(Plan plan) {\n\t\tPlan plan1 = this.supernetworkStrategyModel.newPlan(plan.getPerson());\n\t\tif(plan1 != null) {\n\t\t\tplan.getPlanElements().clear();\n\t\t\tfor (PlanElement pe: plan1.getPlanElements()) {\n\t\t\t\tplan.getPlanElements().add(pe);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t //System.out.println(\"...\");\n\t\t}\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\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 static void main(String[] args){\n\r\n Date d1 = new Date();\r\n\r\n List<Operator> userInputForOperatorsList = Arrays.asList(ALPIMARIN, CITYBREAK, COCOSTUR, EXPLORE, METEORTRAVEL); // this is what I expect to get from user input form of operators selection\r\n List<Destination> userInputForDestinationList = new ArrayList<Destination>();\r\n userInputForDestinationList.add(Destination.USA);\r\n userInputForDestinationList.add(Destination.CZECH);\r\n userInputForDestinationList.add(Destination.BULGARIA);\r\n userInputForDestinationList.add(Destination.ROMANIA);\r\n userInputForDestinationList.add(Destination.MOLDOVA);\r\n userInputForDestinationList.add(Destination.GERMANY);\r\n userInputForDestinationList.add(Destination.BELGIUM);\r\n userInputForDestinationList.add(Destination.FRANCE);\r\n userInputForDestinationList.add(Destination.GREECE);\r\n userInputForDestinationList.add(Destination.UKRAINE);\r\n userInputForDestinationList.add(Destination.TURKEY);\r\n userInputForDestinationList.add(Destination.AUSTRIA);\r\n userInputForDestinationList.add(Destination.EGYPT);\r\n userInputForDestinationList.add(Destination.ITALY);\r\n userInputForDestinationList.add(Destination.SPAIN);\r\n userInputForDestinationList.add(Destination.RUSSIA);\r\n userInputForDestinationList.add(Destination.MONTENEGRO); // this is what I expect to get from user input form of destinations selection\r\n\r\n int minPrice = 100; // expected to get prom the price selector\r\n int maxPrice = 1000; // expected to get prom the price selector\r\n\r\n List<Tour> output = new ArrayList<>(Helper.getResults(userInputForOperatorsList, userInputForDestinationList, minPrice, maxPrice)); //expected result for the output\r\n\r\n for (int i = 0; i < output.size(); i++){\r\n System.out.println(\r\n \"\\nPrice - \" + output.get(i).getPrice() +\r\n \"\\nDestination - \" + output.get(i).getDestination() +\r\n \"\\nDaysPeriod - \" + output.get(i).getPeriodInDays() +\r\n \"\\nSummary - \" + output.get(i).getSummary() +\r\n \"\\nLink - \" + output.get(i).getDirectLink()\r\n );\r\n }\r\n\r\n\r\n System.out.println(\"Size:\" + output.size());\r\n System.out.println(\"Start:\" + d1.toString());\r\n System.out.println(\"Stop:\" + new Date().toString());\r\n\r\n }", "public void testBoardAvailablePositions() {\n \tassertTrue(board6.hasAvailablePositionsForTile());\n \tList<PlacementLocation> expected = new ArrayList<PlacementLocation>();\n \tboard6.place(new Placement(Color.RED, 5, 21, Color.RED, 4, 16));\n \tboard6.place(new Placement(Color.RED, 4, 12, Color.RED, 5, 14));\n \tboard6.place(new Placement(Color.RED, 4, 8, Color.RED, 5, 11));\n \tboard6.place(new Placement(Color.RED, 5, 4, Color.RED, 4, 4));\n \tboard6.place(new Placement(Color.RED, 5, 1, Color.RED, 4, 0));\n \t\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 31)), board6.getCell(new Coordinate(5, 26))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 26)), board6.getCell(new Coordinate(4, 20))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(4, 20)), board6.getCell(new Coordinate(5, 24))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 24)), board6.getCell(new Coordinate(6, 29))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 29)), board6.getCell(new Coordinate(6, 30))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 30)), board6.getCell(new Coordinate(6, 31))));\n \t\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 29)), board6.getCell(new Coordinate(6, 28))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 24)), board6.getCell(new Coordinate(6, 28))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 24)), board6.getCell(new Coordinate(5, 23))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 24)), board6.getCell(new Coordinate(4, 19))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(4, 20)), board6.getCell(new Coordinate(4, 19))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(4, 20)), board6.getCell(new Coordinate(3, 15))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(4, 20)), board6.getCell(new Coordinate(4, 21))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 26)), board6.getCell(new Coordinate(4, 21))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 26)), board6.getCell(new Coordinate(5, 27))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 26)), board6.getCell(new Coordinate(6, 32))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 31)), board6.getCell(new Coordinate(6, 32))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 30)), board6.getCell(new Coordinate(7, 34))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 29)), board6.getCell(new Coordinate(7, 33))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 29)), board6.getCell(new Coordinate(7, 34))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 30)), board6.getCell(new Coordinate(7, 35))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 30)), board6.getCell(new Coordinate(7, 36))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 31)), board6.getCell(new Coordinate(7, 36))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 31)), board6.getCell(new Coordinate(7, 37))));\n \t\n \t\n \tfor (PlacementLocation location : board6.getAvailablePositionsForTile()) {\n \t\tif (!expected.contains(location))\n \t\t\tSystem.out.println(\"expected does not contain location: \" + location);\n \t}\n \tSet<PlacementLocation> locations = board6.getAvailablePositionsForTile();\n \tfor (PlacementLocation location : locations) {\n \t\tSystem.out.println(location);\n \t}\n \tfor (PlacementLocation location : expected) {\n \t\tif (!locations.contains(location))\n \t\t\tSystem.out.println(\"expected2 does not contain location: \" + location);\n \t}\n \t\n \tassertEquals(expected, board6.getAvailablePositionsForTile());\n \t\n \t\n }", "public boolean getLocationsFrom(double curLat, double curLon, Double num) {\r\n boolean locationsFromDB = true;\r\n String previousCurLat, previousCurLon;\r\n Log.d(\"Detailed analysis\",\"getting data from db, calling getdata function\");\r\n Cursor rs1 = myDB.getData(curLat, curLon, num);\r\n //In this condition if data not found locationsFromDB is set to false and then returned\r\n if (rs1.getCount() <= 0){\r\n System.out.println(rs1.getCount());\r\n locationsFromDB = false;\r\n Log.d(\"Detailed analysis\",\"Data not found\");\r\n }\r\n //In this condition if data is found need to do the further action of finding the user has moved or not and calculating the direction and distance if user has moved\r\n else {\r\n Log.d(\"Detailed analysis\", \"data found\");\r\n Double[] latArray = new Double[rs1.getCount()];\r\n Double[] lonArray = new Double[rs1.getCount()];\r\n int z = 0;\r\n double distanceBtwLocations = 0;\r\n double finalLat = 0.0;\r\n double finalLon = 0.0;\r\n while (rs1.moveToNext()) {\r\n latArray[z] = Double.parseDouble(rs1.getString(rs1.getColumnIndex(DBHelper.Locations_COLUMN_lat)));\r\n lonArray[z] = Double.parseDouble(rs1.getString(rs1.getColumnIndex(DBHelper.Locations_COLUMN_lon)));\r\n Log.d(\"Detailed Analysis\", latArray[z] +\", \" + lonArray[z] );\r\n double tempDistance = findDistanceBetweenPoints(latArray[z], lonArray[z], Math.round(curLat * 10000.0) / 10000.0, Math.round(curLon * 10000.0) / 10000.0);\r\n System.out.println(tempDistance + \" : tempDistance\");\r\n if (distanceBtwLocations < tempDistance) {\r\n finalLat = latArray[z];\r\n finalLon = lonArray[z];\r\n distanceBtwLocations = tempDistance;\r\n System.out.println(distanceBtwLocations + \" : distanceBtwLocations\");\r\n }\r\n z++;\r\n }\r\n if (distanceBtwLocations < 100 * 1606.34) {\r\n Log.d(\"Detailed Analysis\", \"Distance is not greater than 100 miles\");\r\n previousCurLat = String.valueOf(finalLat);//rs.getString(rs.getColumnIndex(DBHelper.Locations_COLUMN_lat));\r\n previousCurLon = String.valueOf(finalLon);//rs.getString(rs.getColumnIndex(DBHelper.Locations_COLUMN_lon));\r\n Cursor rs = myDB.getData(finalLat, finalLon, num);\r\n rs.moveToFirst();\r\n// condChoice = Integer.parseInt(rs.getString(rs.getColumnIndex(DBHelper.Locations_COLUMN_condChoice)));\r\n number = Double.parseDouble(rs.getString(rs.getColumnIndex(DBHelper.Locations_COLUMN_num)));\r\n Log.d(\"Detailed Analysis\", \"number while data found: \" + number);\r\n Log.d(\"Detailed Analysis\", \"Recent number value from getLocationsFrom: \" + number);\r\n Log.d(\"Detailed analysis\", \"Lattittude and Longitude points\" + \" \" + Double.parseDouble(previousCurLat) + \",\" + Double.parseDouble(previousCurLon) + \":\" + Math.round(curLat * 10000.0) / 10000.0 + \",\" + Math.round(curLon * 10000.0) / 10000.0);\r\n //if user has not moved then locationsFromDB is set to true and then returned\r\n if (Double.parseDouble(previousCurLat) == Math.round(curLat * 10000.0) / 10000.0 && Double.parseDouble(previousCurLon) == Math.round(curLon * 10000.0) / 10000.0) {\r\n Log.d(\"Detailed analysis\", \"lattitudes and longitudes are same\");\r\n rs.moveToFirst();\r\n locationValues = rs.getString(rs.getColumnIndex(DBHelper.Locations_COLUMN_results));\r\n locationsFromDB = true;\r\n } else {\r\n Log.d(\"Detailed analysis\", \"lattitudes and longitudes are not same\");\r\n float distance = 0;\r\n LatLng movedPoints;\r\n Log.d(\"Detailed analysis\", \"finding distance between lattitudes and longitudes\");\r\n distance = findDistanceBetweenPoints(Double.parseDouble(previousCurLat), Double.parseDouble(previousCurLon), curLat, curLon);\r\n Log.d(\"Detailed Analysis\", \"distance in meters\" + \" \" + distance);\r\n direction = SphericalUtil.computeHeading(new LatLng(Double.parseDouble(previousCurLat), Double.parseDouble(previousCurLon)), new LatLng(curLat, curLon));\r\n Log.d(\"Detailed Analysis\", \"direction in degrees\" + \" \" + direction);\r\n String values = rs.getString(rs.getColumnIndex(DBHelper.Locations_COLUMN_results));\r\n String valuesArray[] = values.split(\":\");\r\n Log.d(\"Detailed analysis\", \"finding random locations after moving a bit\");\r\n for (int i = 0; i < valuesArray.length; i++) {\r\n String pointsArray[] = valuesArray[i].split(\",\");\r\n Log.d(\"Detailed analysis\", \"lattitudes and longitudes points\" + pointsArray[0] + \" \" + pointsArray[1]);\r\n movedPoints = findMovedPoints(Double.parseDouble(pointsArray[0]), Double.parseDouble(pointsArray[1]), distance, direction);\r\n Log.d(\"Detailed Analysis\", \"latitude and longitude points after moving\" + \" \" + movedPoints);\r\n locationValues = findRandomLocations(movedPoints.latitude, movedPoints.longitude, 1, distance + 1);\r\n }\r\n }\r\n }\r\n else{\r\n locationValues = findRandomLocations(curLat, curLon, num, 30);\r\n }\r\n locationsFromDB = true;\r\n }\r\n return locationsFromDB;\r\n }", "private static List<Point> possibleNextPos(Point currPos, Point coord1, Point coord2, double buildingSideGrad, Point buildingCentre){\r\n\t\tvar coord1Lat = coord1.latitude();\r\n\t\tvar coord1Lon = coord1.longitude();\r\n\t\tvar coord2Lat = coord2.latitude();\r\n\t\tvar coord2Lon = coord2.longitude();\r\n\t\t\r\n\t\tvar currPosLon = currPos.longitude();\r\n\t\tvar currPosLat = currPos.latitude();\r\n\t\t\r\n\t\tvar buildingLon = buildingCentre.longitude();\r\n\t\tvar buildingLat = buildingCentre.latitude();\r\n\t\t\r\n\t\tvar dir1 = computeDir(coord1, coord2); //in the case that the drone is moving in the direction coord1 to coord2\r\n\t\tvar nextPosTemp1 = nextPos(dir1, currPos); //the temporary next position if the drone moves in dir1\r\n\t\t\r\n\t\tvar dir2 = computeDir(coord2, coord1); //in the case that the drone is moving in the direction coord2 to coord1\r\n\t\tvar nextPosTemp2 = nextPos(dir2, currPos); //the temporary next position if the drone moves in dir2 \r\n\t\t\r\n\t\tvar possibleNextPos = new ArrayList<Point>();\r\n\t\t\r\n\t\tif(Math.abs(buildingSideGrad)>=1) { //in this case, longitudes of building centre and drone current position are compared\r\n\t\t\t//coord1 to coord2 scenario\r\n\t\t\tif((coord1Lat>coord2Lat && buildingLon<currPosLon) || (coord1Lat<coord2Lat && buildingLon>currPosLon)) {\r\n\t\t\t\tdir1 = (dir1+10)%360; //angle increased such that drone doesn't fly over side of building\r\n\t\t\t\tnextPosTemp1 = nextPos(dir1, currPos);\r\n\t\t\t}\r\n\t\t\t//coord2 to coord1 scenario\r\n\t\t\tif((coord1Lat<coord2Lat && buildingLon<currPosLon) || (coord1Lat>coord2Lat && buildingLon>currPosLon)) {\r\n\t\t\t\tdir2 = (dir2+10)%360;\r\n\t\t\t\tnextPosTemp2 = nextPos(dir2, currPos);\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\telse { //in this case, latitudes of building centre and drone current position are compared\r\n\t\t\tif((coord1Lon>coord2Lon && buildingLat>currPosLat) || (coord1Lon<coord2Lon && buildingLat<currPosLat)) {\r\n\t\t\t\tdir1 = (dir1+10)%360; \r\n\t\t\t\tnextPosTemp1 = nextPos(dir1, currPos);\r\n\t\t\t}\r\n\r\n\t\t\tif((coord1Lon<coord2Lon && buildingLat>currPosLat) || (coord1Lon>coord2Lon && buildingLat<currPosLat)) {\r\n\t\t\t\tdir2 = (dir2+10)%360;\r\n\t\t\t\tnextPosTemp2 = nextPos(dir2, currPos);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tpossibleNextPos.add(nextPosTemp1);\r\n\t\tpossibleNextPos.add(nextPosTemp2);\r\n\t\t\r\n\t\treturn possibleNextPos;\r\n\t}", "public static HooverAIDataHolder processHooverAIDataHolder(HooverAIDataHolder hooverAIDataHolder) {\n DataPoint startingPoint = hooverAIDataHolder.getStartingPoint();\r\n // get grid bounds\r\n int maxX = hooverAIDataHolder.getMaxSize().getX();\r\n int maxY = hooverAIDataHolder.getMaxSize().getY();\r\n // prepare to parse driving insturctions\r\n String instructions = hooverAIDataHolder.getDrivingDirections();\r\n char[] discreteDirectionsArray = instructions.toCharArray();\r\n\r\n //intially just start with starting point\r\n DataPoint nextPoint = new DataPoint(startingPoint.getX(), startingPoint.getY());\r\n ArrayList<DataPoint> placesHoovered = new ArrayList();\r\n for (int i = 0; i < discreteDirectionsArray.length; i++) {\r\n\r\n int tempX = 0;\r\n int tempY = 0;\r\n\r\n char direction = discreteDirectionsArray[i];\r\n String directionString = Character.toString(direction);\r\n if (directionString.equalsIgnoreCase(\"N\")) // go north\r\n {\r\n\r\n tempY = nextPoint.getY();\r\n tempY = tempY + 1; // do move\r\n if (tempY > maxY) // we hit a wall, remove increment\r\n {\r\n tempY = tempY - 1;\r\n }\r\n\r\n nextPoint.setY(tempY);\r\n\r\n DataPoint entry = new DataPoint(nextPoint.getX(), nextPoint.getY());\r\n\r\n placesHoovered.add(entry);\r\n\r\n } else if (directionString.equalsIgnoreCase(\"S\")) // go south\r\n {\r\n tempY = nextPoint.getY();\r\n tempY = tempY - 1; // do move\r\n if (tempY < 0) // we hit a wall add value back in\r\n {\r\n tempY = tempY + 1;\r\n }\r\n nextPoint.setY(tempY);\r\n DataPoint entry = new DataPoint(nextPoint.getX(), nextPoint.getY());\r\n placesHoovered.add(entry);\r\n\r\n } else if (directionString.equalsIgnoreCase(\"W\")) // go west\r\n {\r\n tempX = nextPoint.getX();\r\n tempX = tempX - 1; // do move\r\n if (tempX < 0) // we hit a wall\r\n {\r\n tempX = tempX + 1;\r\n }\r\n nextPoint.setX(tempX);\r\n DataPoint entry = new DataPoint(nextPoint.getX(), nextPoint.getY());\r\n placesHoovered.add(entry);\r\n\r\n } else if (directionString.equalsIgnoreCase(\"E\")) // go east\r\n {\r\n tempX = nextPoint.getX();\r\n tempX = tempX + 1; // do move\r\n if (tempX > maxX) // wall\r\n {\r\n tempX = tempX - 1;\r\n }\r\n nextPoint.setX(tempX);\r\n DataPoint entry = new DataPoint(nextPoint.getX(), nextPoint.getY());\r\n placesHoovered.add(entry);\r\n\r\n }\r\n // read each char in string \r\n // logic is N = y + 1 \r\n // S = y - 1\r\n // E = x + 1\r\n // W = x - 1\r\n\r\n }\r\n\r\n hooverAIDataHolder.setRestingPoint(nextPoint);\r\n hooverAIDataHolder.setCleanedZones(placesHoovered);\r\n\r\n return hooverAIDataHolder;\r\n }", "public static List<Location> generateLocations() {\n\t\tList<Location> locations = new ArrayList<Location>();\n\t\t\n\t\tfor(AREA area : AREA.values()) {\n\t\t\tLocation l = new Location(area);\n\t\t\t\n\t\t\tswitch (area) {\n\t\t\tcase Study:\n\t\t\t\tl.neighbors.add(AREA.HW_SH);\n\t\t\t\tl.neighbors.add(AREA.HW_SL);\n\t\t\t\tl.neighbors.add(AREA.Kitchen);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase Hall:\n\t\t\t\tl.neighbors.add(AREA.HW_SH);\n\t\t\t\tl.neighbors.add(AREA.HW_HL);\n\t\t\t\tl.neighbors.add(AREA.HW_HB);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase Lounge:\n\t\t\t\tl.neighbors.add(AREA.HW_HL);\n\t\t\t\tl.neighbors.add(AREA.HW_LD);\n\t\t\t\tl.neighbors.add(AREA.Conservatory);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase Library:\n\t\t\t\tl.neighbors.add(AREA.HW_SL);\n\t\t\t\tl.neighbors.add(AREA.HW_LB);\n\t\t\t\tl.neighbors.add(AREA.HW_LC);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase BilliardRoom:\n\t\t\t\tl.neighbors.add(AREA.HW_HB);\n\t\t\t\tl.neighbors.add(AREA.HW_LB);\n\t\t\t\tl.neighbors.add(AREA.HW_BD);\n\t\t\t\tl.neighbors.add(AREA.HW_BB);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase DiningRoom:\n\t\t\t\tl.neighbors.add(AREA.HW_LD);\n\t\t\t\tl.neighbors.add(AREA.HW_BD);\n\t\t\t\tl.neighbors.add(AREA.HW_DK);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase Conservatory:\n\t\t\t\tl.neighbors.add(AREA.HW_LC);\n\t\t\t\tl.neighbors.add(AREA.HW_CB);\n\t\t\t\tl.neighbors.add(AREA.Lounge);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase Ballroom:\n\t\t\t\tl.neighbors.add(AREA.HW_BB);\n\t\t\t\tl.neighbors.add(AREA.HW_CB);\n\t\t\t\tl.neighbors.add(AREA.HW_BK);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase Kitchen:\n\t\t\t\tl.neighbors.add(AREA.HW_DK);\n\t\t\t\tl.neighbors.add(AREA.HW_BK);\n\t\t\t\tl.neighbors.add(AREA.Study);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase HW_SH:\n\t\t\t\tl.neighbors.add(AREA.Study);\n\t\t\t\tl.neighbors.add(AREA.Hall);\n\t\t\t\tbreak;\n\t\t\tcase HW_HL:\n\t\t\t\tl.neighbors.add(AREA.Hall);\n\t\t\t\tl.neighbors.add(AREA.Lounge);\n\t\t\t\tbreak;\n\t\t\tcase HW_SL:\n\t\t\t\tl.neighbors.add(AREA.Study);\n\t\t\t\tl.neighbors.add(AREA.Library);\n\t\t\t\tbreak;\n\t\t\tcase HW_HB:\n\t\t\t\tl.neighbors.add(AREA.Hall);\n\t\t\t\tl.neighbors.add(AREA.BilliardRoom);\n\t\t\t\tbreak;\n\t\t\tcase HW_LD:\n\t\t\t\tl.neighbors.add(AREA.Lounge);\n\t\t\t\tl.neighbors.add(AREA.DiningRoom);\n\t\t\t\tbreak;\n\t\t\tcase HW_LB:\n\t\t\t\tl.neighbors.add(AREA.Library);\n\t\t\t\tl.neighbors.add(AREA.BilliardRoom);\n\t\t\t\tbreak;\n\t\t\tcase HW_BD:\n\t\t\t\tl.neighbors.add(AREA.BilliardRoom);\n\t\t\t\tl.neighbors.add(AREA.DiningRoom);\n\t\t\t\tbreak;\n\t\t\tcase HW_LC:\n\t\t\t\tl.neighbors.add(AREA.Library);\n\t\t\t\tl.neighbors.add(AREA.Conservatory);\n\t\t\t\tbreak;\n\t\t\tcase HW_BB:\n\t\t\t\tl.neighbors.add(AREA.BilliardRoom);\n\t\t\t\tl.neighbors.add(AREA.Ballroom);\n\t\t\t\tbreak;\n\t\t\tcase HW_DK:\n\t\t\t\tl.neighbors.add(AREA.DiningRoom);\n\t\t\t\tl.neighbors.add(AREA.Kitchen);\n\t\t\t\tbreak;\n\t\t\tcase HW_CB:\n\t\t\t\tl.neighbors.add(AREA.Conservatory);\n\t\t\t\tl.neighbors.add(AREA.Ballroom);\n\t\t\t\tbreak;\n\t\t\tcase HW_BK:\n\t\t\t\tl.neighbors.add(AREA.Ballroom);\n\t\t\t\tl.neighbors.add(AREA.Kitchen);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlocations.add(l);\n\t\t}\n\t\t\n\t\treturn locations;\n\t}", "public void loadPlanDataInGui(LoadPlan plan, String finalDest) {\n String id = plan_num_label.getText();\n// Helper.startSession();\n// Query query = Helper.sess.createQuery(HQLHelper.GET_LOAD_PLAN_BY_ID);\n// query.setParameter(\"id\", Integer.valueOf(id));\n//\n// Helper.sess.getTransaction().commit();\n// List result = query.list();\n// LoadPlan plan = (LoadPlan) result.get(0);\n WarehouseHelper.temp_load_plan = plan;\n loadDestinationsRadioGroup(plan.getId());\n\n loadPlanDataToLabels(plan, finalDest);\n reloadPlanLinesData(Integer.valueOf(id), finalDest);\n //loadDestinations(Integer.valueOf(id));\n //Disable delete button if the plan is CLOSED\n if (WarehouseHelper.LOAD_PLAN_STATE_CLOSED.equals(plan.getPlanState())) {\n delete_plan_btn.setEnabled(false);\n close_plan_btn.setEnabled(false);\n export_to_excel_btn.setEnabled(true);\n edit_plan_btn.setEnabled(false);\n labels_control_btn.setEnabled(false);\n piles_box.setEnabled(false);\n set_packaging_pile_btn.setEnabled(false);\n } else {\n if (WarehouseHelper.warehouse_reserv_context.getUser().getAccessLevel() == GlobalVars.PROFIL_WAREHOUSE_AGENT\n || WarehouseHelper.warehouse_reserv_context.getUser().getAccessLevel() == GlobalVars.PROFIL_ADMIN) {\n close_plan_btn.setEnabled(true);\n } else {\n close_plan_btn.setEnabled(false);\n }\n if (WarehouseHelper.warehouse_reserv_context.getUser().getAccessLevel() == GlobalVars.PROFIL_ADMIN) {\n delete_plan_btn.setEnabled(true);\n } else {\n delete_plan_btn.setEnabled(false);\n }\n\n labels_control_btn.setEnabled(true);\n export_to_excel_btn.setEnabled(true);\n edit_plan_btn.setEnabled(true);\n piles_box.setEnabled(true);\n set_packaging_pile_btn.setEnabled(true);\n scan_txt.setEnabled(true);\n radio_btn_20.setEnabled(true);\n radio_btn_40.setEnabled(true);\n }\n }", "@Test\n public void runTest()\n { // Pueblo start to finish 34.97s\n\n\n this.myMap = myReader.readMapFile(\"data/AlamosaNetwork.xml\");\n myMap.setupMapAsServer();\n this.testAgent001 = getTestAgent();\n\n //System.out.println(\"Intersections2: \"+myMap.getIntersections());\n\n testLW.log(Level.INFO, \"this is another nother test\");\n\n System.out.println(\"\\nStarting test. . .\");\n // Pueblo start to finish 34.97s\n // from.setId(\"1040921516\"); // from.setId(\"01\"); // 1040921516 // 2\n // to.setId(\"864162469\"); // to.setId(\"10\"); // 864162469 // 50\n Long startTime = System.nanoTime();\n\n //GRIDheapAlg greedy = new GRIDheapAlg();\n GRIDpathfinder theALG = new GRIDpathfinder(myMap, \"BPR\");\n //GRIDheapDynamicAlg dyna = new GRIDheapDynamicAlg(myMap); //\n //myPathGreedy = greedy.shortestPath(networkMap,\"1040921516\",\"864162469\");\n\n //GRIDselfishAlg test001 = new GRIDselfishAlg(testAgent001, networkMap, 0L); // GRIDpathrecalc GRIDselfishAlg\n //GRIDpathrecalc test001 = new GRIDpathrecalc(testAgent001, networkMap, 0L); // GRIDpathrecalc GRIDselfishAlg\n //GRIDroute outRoute = new GRIDroute();\n /*GRIDpathrecalc test001 = new GRIDpathrecalc(testAgent001, networkMap, 0L); // GRIDpathrecalc GRIDselfishAlg\n outRoute = test001.findPath();*/\n GRIDroute outRoute = theALG.findPath(testAgent001, 0L);\n\n //ListIterator<String> pathIterator = outRoute.Intersections.listIterator();\n\n /*assertNotNull(myMap);\n assertNotNull(outRoute);\n assertTrue(outRoute.Intersections.size() > 0);*/\n\n //System.out.println(\"\\nShortest path: \"+myPathGreedy);\n //System.out.println(\"\\nShortest path: \"+myPathDynamic);\n\n //System.out.print(\"\\nPath:\\n\");\n //for (String intrx : outRoute.getIntersections())\n //{\n // System.out.print(intrx);\n // if(!intrx.equals(testAgent001.getDestination()))\n // System.out.print(\",\");\n //}\n\n //ArrayList<String> tempPathList = myMap.getPathByRoad(outRoute.getIntersections());\n\n //System.out.print(\"\\n\\nPath by Link:\\n\");\n //for (String path : tempPathList)\n //{\n // System.out.print(path);\n // if(!tempPathList.isEmpty()\n // && !path.equals(tempPathList.get(tempPathList.size() - 1)))\n // System.out.print(\",\");\n // }\n\n if(outRoute.getAgent_ID() != \"Destination unreachable\"){\n logWriter.log(Level.INFO, \"Route is: \" + outRoute.toString());\n\n System.out.println(\"Route is: \" + testAgent001.getOrigin() + outRoute.toString()\n +\" \"+testAgent001.getDestination());\n\n System.out.println(\"\\n\\nCalculated Travel Time: \"+outRoute.getcalculatedTravelTime());\n }\n else{\n System.out.println(\"Destination Unreachable\");\n }\n\n long stopTime = System.nanoTime();\n long timeToRun = ((stopTime - startTime)/1000000);\n\n System.out.print(\"\\nTook \" + timeToRun/1000.0 + \" Seconds\");\n System.out.print(\"\\n\\nAnd we're done.\\n\");\n }", "public ArrayList<Location> getValid(Location loc) {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn null;\n\t\t}\n\t\tArrayList<Location> valid = new ArrayList<Location>();\n\t\tfor (int d : DIRS) {\n\t\t\tLocation neighbor = loc.getAdjacentLocation(getDirection() + d);\n\n\t\t\tif (gr.isValid(neighbor)) {\n\t\t\t\tActor a = gr.get(neighbor);\n\t\t\t\tif (!isVisited[neighbor.getRow()][neighbor.getCol()] &&\n\t\t\t\t\t(a == null || a instanceof Flower)) {\n\t\t\t\t\tvalid.add(neighbor);\n\t\t\t\t} else if (a instanceof Rock && a.getColor().equals(Color.RED)) {\n\t\t\t\t\tisEnd = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn valid;\n\t}", "private void buildNewTree(PlanNode plan) {\n ILogicalOperator leftInput = plan.getLeafInput();\n skipAllIndexes(plan, leftInput);\n ILogicalOperator selOp = findSelectOrDataScan(leftInput);\n if (selOp != null) {\n addCardCostAnnotations(selOp, plan);\n }\n addCardCostAnnotations(findDataSourceScanOperator(leftInput), plan);\n }", "@Test\n void calculateRoute() {\n GPSObject n2 = new GPSObject(\"Centenary 2\");\n Location n1 = new Location(\"Centenary 2\",\"0\",n2);\n GPSObject n3 = new GPSObject(\"Thuto 1-5\");\n Location n4 = new Location(\"Thuto 1-5\",\"1\",n3);\n Locations loc = new Locations();\n assertNotNull(roo.calculateRoute(loc));\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\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}", "int[][] Naive(int m, Pointd[] points){\n int[][] tours = new int[m][];\n for(int i=0; i<m; i++){\n if(i<points.length%m) tours[i] = new int[points.length/m+1];\n else tours[i] = new int[points.length/m];\n }\n\n //Select the first point, find the next closest point, find the next closest point to that etc\n boolean[] alreadyInTour = new boolean[points.length];\n double minDistance;\n double distance;\n Pointd pointA;\n Pointd pointB;\n int index = 0;\n int n;\n\n for(int k=0; k<m; k++){\n //Each row of tours, first find a node that isn't in a tour\n n = 0;\n while(alreadyInTour[n]) n++;\n pointA = points[n];\n tours[k][0] = n;\n alreadyInTour[n] = true;\n\n int iterate = 0;\n int j=1;\n while(j<tours[k].length){\n if(!alreadyInTour[iterate]){\n minDistance = Double.MAX_VALUE;\n //Find next closest point to pointA\n for(int i=0; i<points.length; i++){\n pointB = points[i];\n if(!alreadyInTour[i]){\n distance = Math.sqrt( Math.pow(pointA.x - pointB.x, 2) + Math.pow(pointA.y - pointB.y, 2) );\n if(distance < minDistance){\n minDistance = distance;\n index = i;\n }\n }\n }\n //System.out.println(index);\n tours[k][j] = index;\n alreadyInTour[index] = true;\n j++;\n }\n iterate++;\n if(iterate >= points.length) iterate = 0;\n }\n }\n for(int i=0; i<tours.length; i++){\n //System.out.println(Arrays.toString(tours[i]));\n }\n return tours;\n }", "@Test\n public void testGetsAroundLocationI() throws DataSourceException, InvalidIdentifierException {\n // Get all demands from one location\n //\n Location where = new Location();\n where.setPostalCode(RobotResponder.ROBOT_POSTAL_CODE);\n where.setCountryCode(RobotResponder.ROBOT_COUNTRY_CODE);\n where = new LocationOperations().createLocation(where);\n\n ProposalOperations ops = new ProposalOperations();\n\n final Long ownerKey = 45678L;\n final Long storeKey = 78901L;\n Proposal first = new Proposal();\n first.setLocationKey(where.getKey());\n first.setOwnerKey(ownerKey);\n first.setStoreKey(storeKey);\n first = ops.createProposal(first);\n\n Proposal second = new Proposal();\n second.setLocationKey(where.getKey());\n second.setOwnerKey(ownerKey);\n second.setStoreKey(storeKey);\n second = ops.createProposal(second);\n\n first = ops.getProposal(first.getKey(), null, null);\n second = ops.getProposal(second.getKey(), null, null);\n\n List<Location> places = new ArrayList<Location>();\n places.add(where);\n\n List<Proposal> selection = ops.getProposals(places, 0);\n assertNotNull(selection);\n assertEquals(2, selection.size());\n assertTrue (selection.get(0).getKey().equals(first.getKey()) && selection.get(1).getKey().equals(second.getKey()) ||\n selection.get(1).getKey().equals(first.getKey()) && selection.get(0).getKey().equals(second.getKey()));\n // assertEquals(first.getKey(), selection.get(1).getKey()); // Should be second because of ordered by descending date\n // assertEquals(second.getKey(), selection.get(0).getKey()); // but dates are so closed that sometines first is returned first...\n }", "void onSucceedFindDirection(List<RouteBeetweenTwoPointsDTO> route);", "public static void main(String[] args) {\n\t\tint grid[][] = new int[][]\n\t\t\t { \n\t\t\t { 1, 1, 0, 0, 0, 0, 1, 0, 0, 0 }, \n\t\t\t { 0, 1, 0, 1, 0, 0, 0, 1, 0, 0 }, \n\t\t\t { 0, 0, 0, 1, 0, 0, 1, 0, 1, 0 }, \n\t\t\t { 1, 1, 1, 1, 0, 1, 1, 1, 1, 0 }, \n\t\t\t { 0, 0, 0, 1, 0, 0, 0, 1, 0, 1 }, \n\t\t\t { 0, 1, 0, 0, 0, 0, 1, 0, 1, 1 }, \n\t\t\t { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }, \n\t\t\t { 0, 1, 0, 0, 0, 0, 1, 0, 0, 0 }, \n\t\t\t { 0, 0, 1, 1, 1, 1, 0, 1, 1, 0 } \n\t\t\t };\n\t\t\n // Step 1: Obtain an instance of GridBasedTrafficControl.\n Configurator cfg = new DefaultConfigurator();\n GridBasedTrafficControl gbtc = cfg.getGridBasedTrafficControl(grid);\n\t\t\n\t // Step 2: Obtain path for Journey-1.\n\t Point source1 = new Point(0, 0);\n\t Point dest1 = new Point(3,4);\t \n\t String vehicleId1 = formVehicleId(source1);\n\t List<Point> path1 = gbtc.allocateRoute(vehicleId1, source1, dest1);\n\t System.out.println(\"Route for Journey-1:\" + path1);\n\t \n\t // Step 3: Obtain path for Journey-2.\n\t // This call will not return a route as the available route conflicts with the route\n\t // allocated for Journey-1.\n\t Point source2 = new Point(3, 0);\n\t Point dest2 = new Point(2,4);\n\t String vehicleId2 = formVehicleId(source2);\n\t List<Point> path2 = gbtc.allocateRoute(vehicleId2, source2, dest2);\n\t System.out.println(\"Route for Journey-2:\" + path2);\n\t \n\t // Step 4: Start Journey-1 and mark Journey-1 as complete.\n\t GridConnectedVehicle vehicle1 = new GridConnectedVehicle(vehicleId1, gbtc);\n\t vehicle1.selfDrive(path1);\n\t gbtc.markJourneyComplete(vehicleId1, source1, dest1);\n\t \n\t // Step 5: Retry call to obtain path for Journey-2.\n\t // This call should return a valid path as Journey-1 was marked as complete.\n\t path2 = gbtc.allocateRoute(formVehicleId(source2), source2, dest2);\n\t System.out.println(\"Route for Journey-2:\" + path2);\n\t \n\t // Step 6: Start Journey-2 and mark Journey-2 as complete.\n\t GridConnectedVehicle vehicle2 = new GridConnectedVehicle(vehicleId2, gbtc);\n\t vehicle2.selfDrive(path2);\n\t gbtc.markJourneyComplete(vehicleId2, source2, dest2);\n\t}", "private void navToPoint(Unit unit){\n\t\tMapLocation currentLocation = unit.location().mapLocation();\n\t\tMapLocation locationToTest;\n\t\tMapLocation targetLocation = orderStack.peek().getLocation();\n\t\tlong smallestDist=1000000000; //arbitrary large number\n\t\tlong temp;\n\t\tDirection closestDirection=null;\n\t\tint i=1;\n\t\t\n\t\tif(gc.isMoveReady(unitID)){\n\t\t\t//first find the direction that moves us closer to the target\n\t\t\tfor(Direction dir : Direction.values()){\n\t\t\t\tif (debug) System.out.println(\"this (\"+dir.name()+\") is the \"+i+\"th direction to check, should get to 9\");\n\t\t\t\tlocationToTest=currentLocation.add(dir);\n\t\t\t\t//make sure it is on the map and is passable\n\t\t\t\tif (debug){\n\t\t\t\t\tSystem.out.println(\"testing this location: \"+locationToTest);\n\t\t\t\t\tSystem.out.println(\"valid move? \"+gc.canMove(unitID, dir));\n\t\t\t\t}\n\t\t\t\tif(gc.canMove(unitID, dir)){\n\t\t\t\t\tif (debug)System.out.println(\"we can indeed move there...\");\n\t\t\t\t\t//make sure the location hasn't already been visited\n\t\t\t\t\tif(!pastLocations.contains(locationToTest)){\n\t\t\t\t\t\tif (debug)System.out.println(\"not been there recently...\");\n\t\t\t\t\t\t//at this point its a valid location to test, check its distance\n\t\t\t\t\t\ttemp = locationToTest.distanceSquaredTo(targetLocation);\n\t\t\t\t\t\tif (debug)System.out.println(\"distance :\"+temp);\n\t\t\t\t\t\tif (temp<smallestDist){\n\t\t\t\t\t\t\tif (debug)System.out.println(\"new closest!\");\n\t\t\t\t\t\t\t//new closest point, update accordingly\n\t\t\t\t\t\t\tsmallestDist=temp;\n\t\t\t\t\t\t\tclosestDirection=dir;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}//end of for-each loop\n\t\t}//end move ready if.\n\t\t\n\t\t//actual movement and maintenance of places recently visited\n\t\tif(closestDirection!=null){\n\t\t\tif (debug){\n\t\t\t\tSystem.out.println(\"found a closest direction, calling navInDirection()\");\n\t\t\t\tSystem.out.println(\"heading \"+closestDirection.name());\n\t\t\t}\n\t\t\tmoveInDirection(closestDirection, unit);\n\t\t\tcleanUpAfterMove(unit);\n\t\t}else{\n\t\t\t//can't get any closer\n\t\t\tif (debug) System.out.println(\"can't get closer, erasing past locations\");\n\t\t\tpastLocations.clear();\n\t\t}\n\t\t\n\t\t//have we arrived close enough?\n\t\tif(unit.location().mapLocation().distanceSquaredTo(targetLocation)<=howCloseToDestination){\n\t\t\t//atTargetLocation=true;\n\t\t\t\n\t\t\t//if order was a MOVE order, it is complete, go ahead and pop it off the stack\n\t\t\tif(orderStack.peek().getType().equals(OrderType.MOVE)){\n\t\t\t\torderStack.pop();\n\t\t\t}\n\t\t\tif (debug) System.out.println(\"Unit \"+unit.id()+\" arrived at destination.\");\n\t\t}\n\t\t\n\t\t;\n\t}", "boolean canPlaceSettlement(VertexLocation vertLoc, boolean free);", "public void getNeighbors(){\n // North \n if(this.row - this.value>=0){\n this.north = adjacentcyList[((this.row - this.value)*col_size)+col];\n }\n // South\n if(this.row + value<row_size){\n this.south = adjacentcyList[((this.row+this.value)*row_size)+col];\n }\n // East\n if(this.col + this.value<col_size){\n this.east = adjacentcyList[((this.col+this.value)+(this.row)*(col_size))];\n }\n // West\n if(this.col - this.value>=0){\n this.west = adjacentcyList[((this.row*col_size)+(this.col - this.value))];\n }\n }", "public HotelCard searchAdjacentHotels(Board board, Tuple res) {\n ArrayList<HotelCard> hotels = board.getHotels();\n ArrayList<HotelCard> adjacent_hotels = new ArrayList<>();\n ArrayList<Integer> ids = new ArrayList<>();\n int x1, x2, y1, y2, x3, y3, x4, y4;\n\n // Presentation of player's adjacent hotels\n System.out.println(ANSI() + \"Here are the available adjacent hotels:\" + ANSI_RESET);\n // right\n x1 = res.a;\n y1 = res.b + 1;\n // up \n x2 = res.a - 1;\n y2 = res.b;\n // left\n x3 = res.a;\n y3 = res.b - 1; \n // down\n x4 = res.a + 1;\n y4 = res.b;\n \n if (isNum(board.board[x1][y1]) != -1) {\n ids.add(isNum(board.board[x1][y1]));\n }\n if (isNum(board.board[x2][y2]) != -1) {\n ids.add(isNum(board.board[x2][y2]));\n }\n if (isNum(board.board[x3][y3]) != -1) {\n ids.add(isNum(board.board[x3][y3]));\n }\n if (isNum(board.board[x4][y4]) != -1) {\n ids.add(isNum(board.board[x4][y4]));\n }\n for (int id : ids) {\n for (HotelCard hc : hotels) {\n if (hc.getID() == id) {\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 adjacent_hotels.add(hc); \n }\n }\n }\n\n // Choose one adjacent hotel\n System.out.println(\"Please type the id of the hotel you want to buy\");\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 : adjacent_hotels) \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 Hotel ID from the above Hotels shown\" + ANSI_RESET);\n }\n }\n return null;\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 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}", "@Override\n\tpublic List<Cell> calcNeighbors(int row, int col) {\n\t\tList<Cell> neighborLocs = new ArrayList<>();\n\t\tint shift_constant = 1 - 2*((row+col) % 2);\n\t\tif(!includesDiagonals) {\n\t\t\tfor(int a = col - 1; a <= col + 1; a++) {\n\t\t\t\tif(a == col)\n\t\t\t\t\taddLocation(row + shift_constant,a,neighborLocs);\n\t\t\t\telse \n\t\t\t\t\taddLocation(row,a,neighborLocs);\n\t\t\t}\n\t\t\treturn neighborLocs;\n\t\t}\n\t\tfor(int b = col - 2; b <= col + 2; b++) {\n\t\t\tfor(int a = row; a != row + 2*shift_constant; a += shift_constant) {\n\t\t\t\tif(a == row && b == col)\n\t\t\t\t\tcontinue;\n\t\t\t\taddLocation(a,b,neighborLocs);\n\t\t\t}\n\t\t}\n\t\tfor(int b = col -1; b <= col + 1; b++) {\n\t\t\taddLocation(row - shift_constant,b,neighborLocs);\n\t\t}\n\t\treturn neighborLocs;\n\t}", "public GridPoint digitise() {\n\n Location myLocation = myLocation();\n GridPoint myGP = myGridPoint();\n //myLocationClick();\n points.add(myGridPoint());\n if (points.size() > 2) {\n\n\n mFinishButton.setVisibility(View.VISIBLE);\n\n }\n double latitude = myGridPoint().x;\n double longitude = myGridPoint().y;\n String stringLat = Double.toString(latitude);\n String stringLong = Double.toString(longitude);\n String coordPair = \" \" + stringLat + \",\" + stringLong;\n collectedPoints.add(coordPair);\n locations.add(myLocation);\n\n return myGP;\n\n }", "public ArrayList<Pair<Landmark, Double>> nearestLocations(Pair<Double, Double> userLocation, int num){\n ArrayList<Pair<Landmark, Double>> nearestList = new ArrayList<>();\n for(int i = 0; i < this.list.size(); i++){\n Landmark landmark = list.get(i);\n double latitude = landmark.getLatitude();\n double longitude = landmark.getLongitude();\n Pair<Double, Double> coordinate = new Pair<>(latitude, longitude);\n // TODO use latitude and longitude explicitly\n double dist = distanceBetween(userLocation, coordinate);\n int origin = nearestList.size();\n for( int j = 0; j < nearestList.size(); j++ ){\n if( dist < nearestList.get(j).second ){\n nearestList.add(j, new Pair<>(this.list.get(i), dist));\n if(nearestList.size() > num){\n nearestList.remove(num);\n }\n break;\n }\n }\n if( origin == nearestList.size() ){\n if( nearestList.size() < num ){\n nearestList.add(new Pair<>(this.list.get(i), dist));\n }\n }\n }\n return nearestList;\n }", "public void solveUsingLeastCostMethod() {\n\n this.solution = new Solution();\n\n Source[] proxySources = Arrays.copyOf(sources, sources.length);\n Destination[] proxyDestinations = Arrays.copyOf(destinations, destinations.length);\n int[][] matrix = new int[costs.length][costs[0].length];\n\n List<Integer> rows = new ArrayList<Integer>();\n List<Integer> columns = new ArrayList<Integer>();\n while ( rows.size() != proxySources.length && columns.size() != proxyDestinations.length ) {\n //getting minimum cell (if there is a tie, we choose where is the maximum quantity)\n int indexI,indexJ, value;\n indexI = 0;\n indexJ = 0;\n value = 0;\n boolean firstElement = true;\n for(int i=0;i<proxySources.length;i++) {\n if( !rows.contains(i) ) {\n for(int j=0;j<proxyDestinations.length;j++) {\n if( !columns.contains(j) ) {\n if ( firstElement ) {\n indexI = i;\n indexJ = j;\n value = costs[i][j];\n firstElement = false;\n }\n if( costs[i][j] < value ) {\n indexI = i;\n indexJ = j;\n value = costs[i][j];\n }\n else if( costs[i][j] == value ) {\n if( Math.min(proxySources[i].getSupply(),proxyDestinations[j].getDemand()) > Math.min(proxySources[indexI].getSupply(),proxyDestinations[indexJ].getDemand()) ) {\n indexI = i;\n indexJ = j;\n value = costs[i][j];\n }\n }\n }\n }\n }\n }\n int supply = proxySources[indexI].getSupply();\n int demand = proxyDestinations[indexJ].getDemand();\n\n\n this.solution.add(sources[indexI], destinations[indexJ], Math.min(supply,demand), costs[indexI][indexJ]);\n\n if ( supply < demand ) {\n proxySources[indexI].setSupply(0);\n proxyDestinations[indexJ].setDemand(demand - supply);\n rows.add(indexI);\n }\n else if( supply > demand ) {\n proxySources[indexI].setSupply(supply-demand);\n proxyDestinations[indexJ].setDemand(0);\n columns.add(indexJ);\n }\n else {\n proxySources[indexI].setSupply(0);\n proxyDestinations[indexJ].setDemand(0);\n rows.add(indexI);\n columns.add(indexJ);\n }\n }\n this.solution.showSolution();\n\n\n }", "public ArrayList<Location> getValid(Location loc) {\r\n Grid<Actor> gr = getGrid();\r\n if (gr == null) {\r\n return null;\r\n }\r\n ArrayList<Location> valid = new ArrayList<Location>();\r\n // 向上右下左四个方向找\r\n int dirs[] = {\r\n Location.AHEAD, Location.RIGHT, Location.HALF_CIRCLE,\r\n Location.LEFT };\r\n for (int i = 0; i < dirs.length; i++) {\r\n Location tarLoc = loc.getAdjacentLocation(dirs[i]);\r\n if (gr.isValid(tarLoc)) {\r\n if (gr.get(tarLoc) == null) {\r\n valid.add(tarLoc);\r\n }\r\n }\r\n }\r\n return valid;\r\n }", "@Override\n\tpublic Stack<Cell> makePlan(WorldMap worldMap, Cell start, CELLTYPE goalCellType) {\n\t\tHashtable<Cell, Cell> prev = new Hashtable<Cell, Cell>();\n\n\t\tCell target = breadthFirstSearch(worldMap, start, goalCellType, prev);\n\n\t\t// If target is null, the search wasn't able to find desired goal type\n\t\tif (target == null)\n\t\t\treturn null;\n\n\t\t// Returning a Stack<Cell> for the route plan\n\t\treturn constructPlan(worldMap, target, prev);\n\n\t}", "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 }", "private Calculator(){\r\n \t\t\tcollections=new JPanel(new CardLayout()); //use cardlayout for airplane selection screen and summary screen\r\n \t\t\tstartAPT=apt.get(start);\r\n \t\t\tdestnAPT=apt.get(destn);\r\n \t\t\taddDepartPlane(startAPT,destnAPT.getID(),1); //first plane selection, the first selection screen will not have \"continues previous plane\" option\r\n \t\t\tif(!multiDestn.isEmpty()){ // do this if there are more destination\r\n \t\t\t\taddDepartPlane(destnAPT,apt.get(multiDestn.get(0)).getID(), 2); //plane selection from destination 1 to destination 2\r\n \t\t\t\tfor(int i=1;i<multiDestn.size();++i){\r\n \t\t\t\t\taddDepartPlane(apt.get(multiDestn.get(i-1)),apt.get(multiDestn.get(i)).getID(), i+2); //plane selection from destination n to destination n+1\r\n \t\t\t\t}\r\n \t\t\t}\r\n\t\t\tdisplay.add(collections,BorderLayout.CENTER); //add collections to display panel\r\n \t\t\tint showWindow;\r\n \t\t\tboolean pass=false;\r\n \t\t\twhile(!pass){\r\n \t\t\t\tapnChoices.clear(); //clear airplane choice\r\n \t\t \t\tshowWindow=JOptionPane.showConfirmDialog(Planner.this, display, \"Airplane Selection\", JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);\r\n \t\t \t\tif (showWindow == JOptionPane.OK_OPTION){\r\n \t\t\t\t\tfor(SelectionPanel i: selected){\r\n \t\t\t\t\t\tapnChoices.add(i.getResult()); //get selected plane and add into airplane choice list\r\n \t\t\t\t\t}\r\n \t\t\t\t\tif (!apnChoices.contains(-10)){ //-10 means a selection is empty, without -10 means all selection is selected\r\n \t\t\t\t\tpass=true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t JOptionPane.showMessageDialog(Planner.this,\"Please fill all the selection\");\r\n \t\t\t\t}\r\n \t\t\t\telse pass=true; //cancel selection will make apnchoice list empty\r\n \t\t\t}\r\n \t\t\tselected.clear();\r\n \t\t\tif(!apnChoices.isEmpty()){ //if apnchoice is not empty start planning\r\n \t\t\t\tmakePlan();\r\n \t\t\t}\r\n \t\t\telse JOptionPane.showMessageDialog(Planner.this,\"Plan Canceled\");\r\n \t\t}", "@Test\n public void testBusinessClassReservationMethods() {\n \n busClassRes = new BusinessClassReservation(\"Passenger, One\", planeOneClass , true); //1A\n busClassRes.findSeat();\n\n busClassRes = new BusinessClassReservation(\"Passenger, Two\", planeOneClass, false); //1B\n busClassRes.findSeat();\n\n //firstClassRes = new FirstClassReservation(\"Passenger, Three\", planeOneClass, true); //2A\n //firstClassRes.findSeat();\n \n //firstClassRes = new FirstClassReservation(\"Passenger, Three\", planeOneClass, true); //2E\n //firstClassRes.findSeat();\n \n //firstClassRes = new FirstClassReservation(\"Passenger, Three\", planeOneClass, true); //3A\n //firstClassRes.findSeat();\n \n boolean[][] currentSeat = planeOneClass.getSeatOccupationMap();\n assertTrue(currentSeat[0][0]);\n assertTrue(currentSeat[0][1]);\n //assertTrue(currentSeat[1][0]);\n //assertTrue(currentSeat[1][5]);\n //assertTrue(currentSeat[2][0]);\n //assertTrue(currentSeat[2][5]);\n }", "public void goToLocation (Locator checkpoint) { //Patrolling Guard and Stationary Guard\r\n\t\tVector2i start = new Vector2i((int)(creature.getXlocation()/Tile.TILEWIDTH), (int)(creature.getYlocation()/Tile.TILEHEIGHT));\r\n\t\tint destx = (int)(checkpoint.getX()/Tile.TILEWIDTH);\r\n\t\tint desty = (int)(checkpoint.getY()/Tile.TILEHEIGHT);\r\n\t\tif (!checkCollision(destx, desty)) {\r\n\t\tVector2i destination = new Vector2i(destx, desty);\r\n\t\tpath = pf.findPath(start, destination);\r\n\t\tfollowPath(path);\r\n\t\t}\r\n\t\tarrive();\r\n\t}", "public BestPath getBestPath(String origin, String destination, FlightCriteria criteria) {\r\n\t\tint originIndex = 0;\r\n\t\tif(airportNames.contains(origin)){\r\n\t\t\toriginIndex = airportNames.indexOf(origin);\r\n\t\t}\r\n\t\tint destinationIndex = 0;\r\n\t\tif(airportNames.contains(destination)){\r\n\t\t\tdestinationIndex = airportNames.indexOf(destination);\r\n\t\t}\r\n\t\tAirport start = allAirports.get(originIndex);\r\n\t\tAirport goal = allAirports.get(destinationIndex);\r\n\r\n\t\tPriorityQueue<Airport> queue = new PriorityQueue<Airport>();\r\n\t\tLinkedList<String> path = new LinkedList<String>();\r\n\r\n\t\tstart.setWeight(0);\r\n\t\tqueue.add(start);\r\n\t\tAirport current;\r\n\t\twhile(!queue.isEmpty()) {\r\n\t\t\tcurrent = queue.poll();\r\n\t\t\tif(current.compareTo(goal) == 0) {\r\n\t\t\t\tdouble finalWeight = current.getWeight();\r\n\t\t\t\twhile(current.compareTo(start) != 0){\r\n\t\t\t\t\tpath.addFirst(current.getAirport());\r\n\t\t\t\t\tcurrent = current.getPrevious();\r\n\t\t\t\t}\r\n\t\t\t\tpath.addFirst(start.getAirport());\r\n\t\t\t\tBestPath bestPath = new BestPath(path, finalWeight);\r\n\t\t\t\treturn bestPath;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcurrent.visited = true;\r\n\t\t\tAirport neighbor = current;\r\n\t\t\tArrayList<Flight> currentFlights;\r\n\t\t\tfor (int i = 0; i < current.size(); i++){\r\n\t\t\t\tcurrentFlights = new ArrayList<Flight>();\r\n\t\t\t\tcurrentFlights = current.getOutgoingFlights();\r\n\t\t\t\tneighbor = currentFlights.get(i).getDestination();\r\n\t\t\t\t\r\n\t\t\t\tdouble neighborWeight = neighbor.getWeight();\r\n\t\t\t\tcurrentFlights.get(i).setWeight(criteria);\r\n\t\t\t\tdouble flightWeight = currentFlights.get(i).getFlightWeight();\r\n\t\t\t\tif(neighborWeight > (current.getWeight() + flightWeight)){\r\n\t\t\t\t\tqueue.add(neighbor);\r\n\t\t\t\t\tneighbor.setPrevious(current);\r\n\t\t\t\t\tneighbor.setWeight(current.getWeight() + flightWeight);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "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}", "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 }", "public void testRoute() {\r\n\t\tLog.i(\"JUNIT\", \"Routing test started\");\r\n\t\t// create route with known points\r\n\t\tRoute pr = new Route(new GeoLocation(49.904005, 10.859725),\r\n\t\t\t\tnew GeoLocation(49.902637, 10.870646));\r\n\t\tList<GeoLocation> listLocations = new LinkedList<GeoLocation>();\r\n\t\t// retrieve path\r\n\t\tlistLocations = pr.getPath();\r\n\r\n\t\t// check maneuver count == 7\r\n\t\t// assertEquals(listLocations.size(),7);\r\n\t\tassertTrue(listLocations.size() > 0);\r\n\t}", "public void moveIn(){\n //because findPlanet is static method, call it using its class name Planet\n //find the index of the current planet by calling the findPlanet method.\n int index=Planet.findPlanet(currPlanet.getName(),planets);\n if(index==0){\n //If the spaceship is already at the first planet in the planet list\n System.out.println(\"The spaceship \"+this.name+\" couldn't move in. No planet is closer in\");\n }else{\n //move closer into the solar system means the index-1 in the ArrayList of planets\n Planet moveToPlanet=planets.get(index-1);\n moveTo(moveToPlanet.getName());\n }\n }", "private static Square[] reachableAdjacentSquares\n (GameBoard board, Square currLoc, int pno) {\n return reachableAdjacentSquares(board, currLoc, pno, -1, 0,true);\n }", "@Test\n\tpublic void circleLeastStationTest() {\n\t\tList<String> newTrain = new ArrayList<String>();\n\t\tnewTrain.add(\"1\");\n\t\tnewTrain.add(\"4\");\n\t\tList<TimeBetweenStop> timeBetweenStops = new ArrayList<TimeBetweenStop>();\n\t\tTimeBetweenStop timeBetweenStop = new TimeBetweenStop(\"1\", \"4\", 20);\n\t\ttimeBetweenStops.add(timeBetweenStop);\n\t\tsubwaySystem.addTrainLine(newTrain, \"B\", timeBetweenStops);\n\t\t\n\t\tList<String> answer = new ArrayList<String>();\n\t\tanswer.add(\"1\");\n\t\tanswer.add(\"2\");\n\t\tanswer.add(\"3\");\n\t\tanswer.add(\"4\");\n\t\tTrip trip = subwaySystem.takeTrain(\"1\", \"4\");\n\t\tAssert.assertTrue(trip.isTripFound());\n\t\tAssert.assertEquals(9, trip.getDuration());\n\t\tAssert.assertTrue(TestHelper.checkAnswer(answer, trip.getStops()));\n\n\t\t//Add a new train, least time\n\t\tnewTrain = new ArrayList<String>();\n\t\tnewTrain.add(\"1\");\n\t\tnewTrain.add(\"4\");\n\t\ttimeBetweenStops = new ArrayList<TimeBetweenStop>();\n\t\ttimeBetweenStop = new TimeBetweenStop(\"1\", \"4\", 8);\n\t\ttimeBetweenStops.add(timeBetweenStop);\n\t\tsubwaySystem.addTrainLine(newTrain, \"C\", timeBetweenStops);\n\n\t\tanswer = new ArrayList<String>();\n\t\tanswer.add(\"1\");\n\t\tanswer.add(\"4\");\n\t\ttrip = subwaySystem.takeTrain(\"1\", \"4\");\n\t\tAssert.assertTrue(trip.isTripFound());\n\t\tAssert.assertEquals(8, trip.getDuration());\n\t\tAssert.assertTrue(TestHelper.checkAnswer(answer, trip.getStops()));\n\n\t\t//Add a new train, more stop but even less time\n\t\tnewTrain = new ArrayList<String>();\n\t\tnewTrain.add(\"2\");\n\t\tnewTrain.add(\"5\");\n\t\tnewTrain.add(\"6\");\n\t\tnewTrain.add(\"4\");\n\t\ttimeBetweenStops = new ArrayList<TimeBetweenStop>();\n\t\ttimeBetweenStop = new TimeBetweenStop(\"2\", \"5\", 2);\n\t\ttimeBetweenStops.add(timeBetweenStop);\n\t\ttimeBetweenStop = new TimeBetweenStop(\"5\", \"6\", 1);\n\t\ttimeBetweenStops.add(timeBetweenStop);\n\t\ttimeBetweenStop = new TimeBetweenStop(\"6\", \"4\", 2);\n\t\ttimeBetweenStops.add(timeBetweenStop);\n\t\tsubwaySystem.addTrainLine(newTrain, \"D\", timeBetweenStops);\n\n\t\tanswer = new ArrayList<String>();\n\t\tanswer.add(\"1\");\n\t\tanswer.add(\"2\");\n\t\tanswer.add(\"5\");\n\t\tanswer.add(\"6\");\n\t\tanswer.add(\"4\");\n\t\ttrip = subwaySystem.takeTrain(\"1\", \"4\");\n\t\tAssert.assertTrue(trip.isTripFound());\n\t\tAssert.assertEquals(7, trip.getDuration());\n\t\tAssert.assertTrue(TestHelper.checkAnswer(answer, trip.getStops()));\n\n\t\t//Add a new train, less time than above\n\t\tnewTrain = new ArrayList<String>();\n\t\tnewTrain.add(\"7\");\n\t\tnewTrain.add(\"2\");\n\t\tnewTrain.add(\"3\");\n\t\tnewTrain.add(\"4\");\n\t\ttimeBetweenStops = new ArrayList<TimeBetweenStop>();\n\t\ttimeBetweenStop = new TimeBetweenStop(\"7\", \"2\", 1);\n\t\ttimeBetweenStops.add(timeBetweenStop);\n\t\ttimeBetweenStop = new TimeBetweenStop(\"2\", \"3\", 3);\n\t\ttimeBetweenStops.add(timeBetweenStop);\n\t\ttimeBetweenStop = new TimeBetweenStop(\"3\", \"4\", 1);\n\t\ttimeBetweenStops.add(timeBetweenStop);\n\t\tsubwaySystem.addTrainLine(newTrain, \"E\", timeBetweenStops);\n\n\t\tanswer = new ArrayList<String>();\n\t\tanswer.add(\"1\");\n\t\tanswer.add(\"2\");\n\t\tanswer.add(\"3\");\n\t\tanswer.add(\"4\");\n\t\ttrip = subwaySystem.takeTrain(\"1\", \"4\");\n\t\tAssert.assertTrue(trip.isTripFound());\n\t\tAssert.assertEquals(6, trip.getDuration());\n\t\tAssert.assertTrue(TestHelper.checkAnswer(answer, trip.getStops()));\n\t}", "public boolean netzPlanBerechnung() throws SQLException {\n if(this.netz.getFreierPuffer() > -1) {\n // Abhängigkeiten setzen\n this.defineOrdersFirst(vorgangList);\n this.refInitSize = initVorgang.size(); \n \n for(int i=0; i< this.initVorgang.size(); ++i) {\n if(this.listIdCheck(initVorgang.get(i).getVorgangId())==false) { \n sortierteVorgaenge.add(initVorgang.get(i));\n }\n }\n \n for(int j=0; j<sortierteVorgaenge.size(); ++j) {\n sortierteVorgaenge.get(j).setNachf(con.ladeAlleNachf(sortierteVorgaenge.get(j).getVorgangId()));\n for(int k=0; k< sortierteVorgaenge.get(j).getNachf().size(); ++k) {\n if(this.listIdCheck(sortierteVorgaenge.get(j).getNachf().get(k).getVorgangId())==false) {\n sortierteVorgaenge.add(sortierteVorgaenge.get(j).getNachf().get(k));\n }\n }\n }\n \n for(int l=0; l<sortierteVorgaenge.size(); ++l) {\n if(l<this.refInitSize) {\n sortierteVorgaenge.get(l).setFez(sortierteVorgaenge.get(l).getDauer()); \n } \n if(l>=refInitSize) {\n vorgaengerCash = con.ladeAlleVorg(sortierteVorgaenge.get(l).getVorgangId()); \n for(int z=0; z<vorgaengerCash.size(); ++z) {\n for(int y=0; y<sortierteVorgaenge.size(); ++y) {\n if(vorgaengerCash.get(z).getVorgangId() == sortierteVorgaenge.get(y).getVorgangId()) {\n vorgaengerCash.get(z).setFez(sortierteVorgaenge.get(y).getFez());\n }\n }\n }\n this.minSt = vorgaengerCash.get(0).getFez();\n \n for(int p=0; p<vorgaengerCash.size(); ++p) {\n double minRef = vorgaengerCash.get(p).getFez();\n \n if(minRef < minSt) {\n minSt = minRef;\n }\n sortierteVorgaenge.get(l).setFaz(minSt);\n \n sortierteVorgaenge.get(l).setFez(sortierteVorgaenge.get(l).getFaz() + sortierteVorgaenge.get(l).getDauer());\n vorgaengerCash.clear();\n }\n }\n }\n System.out.println(\"===============================================================\");\n System.out.println(\"START DER BERECHNUNG DER SPAETESTEN ANFANGSZEITEN UND ENDZEITEN\");\n System.out.println(\"===============================================================\");\n this.sortierteVorgaengeRef = sortierteVorgaenge;\n this.defineOrdersLast(sortierteVorgaenge);\n this.refBackInitSize = backInit.size();\n for(int n=0; n<backInit.size(); ++n) {\n for(int o=0; o<sortierteVorgaenge.size(); ++o) {\n if(backInit.get(n).getVorgangId()==sortierteVorgaenge.get(o).getVorgangId()) {\n sortierteVorgaenge.get(o).setSez(netz.getEnde());\n sortierteVorgaenge.get(o).setSaz(netz.getEnde() - sortierteVorgaenge.get(o).getDauer());\n for(int x=0; x<sortierteVorgaengeRef.size(); ++x) {\n if(sortierteVorgaengeRef.get(x).getVorgangId()==backInit.get(n).getVorgangId()) {\n }\n }\n }\n }\n } \n \n for(int u=sortierteVorgaengeRef.size()-1; u>-1; --u) {\n vorgaengerCash = con.ladeAlleVorg(sortierteVorgaengeRef.get(u).getVorgangId());\n \n if(vorgaengerCash.size() != 0) {\n for(int y=0; y < vorgaengerCash.size(); ++y) {\n for(int c=0; c<sortierteVorgaenge.size(); ++c) {\n if(vorgaengerCash.get(y).getVorgangId()== sortierteVorgaenge.get(c).getVorgangId()) {\n for(int v=0; v<sortierteVorgaenge.size(); ++v) {\n if(sortierteVorgaengeRef.get(u).getVorgangId()== sortierteVorgaenge.get(v).getVorgangId()) {\n if(this.refSaz > sortierteVorgaenge.get(c).getSez() - sortierteVorgaenge.get(c).getDauer() || sortierteVorgaenge.get(c).getSaz()==0) {\n sortierteVorgaenge.get(c).setSez(sortierteVorgaenge.get(v).getSaz());\n sortierteVorgaenge.get(c).setSaz(sortierteVorgaenge.get(c).getSez() - sortierteVorgaenge.get(c).getDauer());\n this.refSaz = sortierteVorgaenge.get(c).getSez();\n }\n }\n } \n }\n }\n }\n }\n }\n vorgaengerCash.clear();\n }\n \n if(this.checkBetriebsmittelStatus(sortierteVorgaenge)==false) {\n this.netzDurabilityCheck = false;\n System.out.println(\"=================================================================================================\");\n System.out.println(\"Es ist nicht möglich den Netzplan mit den vorhandenen Betriebsmittelkapazitäten auszufuehren!!!\\n\");\n System.out.println(\"=================================================================================================\"); \n for(int n=0; n < bmgOutOfKapa.size(); ++n) {\n System.out.println(\"Dies liegt an dem Betriebsmittel mit der Id: \"+bmgOutOfKapa.get(n).getBetrMittelGrId());\n System.out.println(\"Betriebsmittelname: \"+bmgOutOfKapa.get(n).getNameBetrMittelGr());\n System.out.println(\"Der Vorgang, der die Kapazitaet der Betriebsmittelgruppe ueberschritten hat: \"+bmgOutOfKapa.get(n).getVorgangId());\n } \n } else {\n this.netzDurabilityCheck = true;\n System.out.println(\"=================================================================================================\");\n System.out.println(\"Die Betriebsmittelkapazitaeten reichen aus um den Netzplan auszufuehren!!!\\n\");\n System.out.println(\"=================================================================================================\");\n for(int d=0; d<sortierteVorgaenge.size(); ++d) {\n System.out.println(\"VorgangId: \"+sortierteVorgaenge.get(d).getVorgangId());\n System.out.println(\"VorgangsName: \"+sortierteVorgaenge.get(d).getName());\n System.out.println(\"VorgangsDauer: \"+sortierteVorgaenge.get(d).getDauer());\n System.out.println(\"VorgangsFaz: \"+sortierteVorgaenge.get(d).getFaz());\n System.out.println(\"VogangsFez:\" +sortierteVorgaenge.get(d).getFez());\n System.out.println(\"VorgangsSaz: \"+sortierteVorgaenge.get(d).getSaz());\n System.out.println(\"VorgangsSez: \"+sortierteVorgaenge.get(d).getSez()+\"\\n\\n\\n\");\n }\n } \n return this.netzDurabilityCheck;\n }" ]
[ "0.58404464", "0.57763994", "0.54877883", "0.547111", "0.54489523", "0.54454714", "0.53376746", "0.532744", "0.5297222", "0.5292374", "0.52584654", "0.5243841", "0.5230165", "0.5222705", "0.5205588", "0.5180243", "0.5174045", "0.51712793", "0.51673174", "0.5155867", "0.51481825", "0.51348305", "0.51293206", "0.5126852", "0.5111218", "0.51034087", "0.51021326", "0.50855625", "0.5084745", "0.50832164", "0.508156", "0.50719047", "0.50327456", "0.5026741", "0.50191396", "0.5017114", "0.5008768", "0.5008728", "0.5000438", "0.49962574", "0.49961805", "0.49960092", "0.49887234", "0.49854693", "0.49738288", "0.4959197", "0.49516362", "0.4951037", "0.4932447", "0.49294564", "0.492333", "0.49227253", "0.49209586", "0.49142092", "0.4911999", "0.49055457", "0.4897208", "0.48949113", "0.48938808", "0.48906055", "0.48874602", "0.4885884", "0.48748693", "0.48697528", "0.48604426", "0.48544797", "0.4854264", "0.48498806", "0.48480204", "0.48464298", "0.48442984", "0.4839075", "0.48376542", "0.48367503", "0.48363116", "0.48357671", "0.48325294", "0.48312217", "0.48304436", "0.48262313", "0.48164776", "0.48107958", "0.4805317", "0.48035902", "0.48031467", "0.48022074", "0.47942075", "0.47893283", "0.4788521", "0.4788159", "0.4786272", "0.47828776", "0.47805434", "0.4777839", "0.4773164", "0.47703156", "0.47674865", "0.47666064", "0.47664893", "0.47654754" ]
0.76619357
0
the function check_station is used to check out the current detailed info of a chosen station s: the station to check out the situation
public void check_station(Station s) throws Exception{ s.add_user(this); System.out.println("Station State: " + s.isState()); System.out.println("Station Id: " + s.getId()); System.out.println("Station Type: " + s.getType()); System.out.println("Station Position: " + s.getPosition()[0] + " " + s.getPosition()[1]); System.out.println("Mech Slots Available: " + (s.getPlaces_mech().size()-s.count_mech())); System.out.println("Elec Slots Available: " + (s.getPlaces_elec().size()-s.count_elec())); System.out.println("Mech Bicycles Available: " + (s.count_mech())); System.out.println("Elec Bicycles Available: " + (s.count_elec())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkStationExists() {\n\n stationExists = false;\n dataExists = false;\n stationExistsCount = 0;\n thisSubdesCount = 0;\n// stationIgnore = false;\n\n for (int i = 0; i < MAX_STATIONS; i++) {\n stationExistsArray[i] = false;\n loadedDepthMin[i] = 9999;\n loadedDepthMax[i] = -9999;\n spldattimArray[i] = \"\";\n currentsRecordCountArray[i] = 0;\n watphyRecordCountArray[i] = 0;\n stationStatusDB[i] = \"\";\n subdesCount[i] = 0;\n for (int j = 0; j < MAX_SUBDES; j++) {\n subdesArray[i][j] = \"\";\n } // for (int j = 0; j < MAX_SUBDES; j++)\n\n } // for (int i = 0; i < MAX_STATIONS; i++)\n\n // true if station with same station Id (first select) or\n // station with same date_start & latitude & longitude &\n // <data>.spltim & <data>.subdes (second select)\n String where = MrnStation.STATION_ID + \"='\" + station.getStationId() + \"'\";\n if (dbg) System.out.println(\"<br>checkStationExists: station: where = \" +\n where);\n\n // Is there already a station record with the same station-id?\n MrnStation[] tStation2 = new MrnStation().get(where);\n if (dbg) System.out.println(\"<br>checkStationExists: tStation2.length = \" +\n tStation2.length);\n if (tStation2.length > 0) {\n //stationStatusLD = \"di\"; // == duplicate station-id\n outputDebug(\"checkStationExists: station Id found: \" +\n station.getStationId(\"\"));\n stationExists = true;\n stationExistsArray[0] = true;\n } else {\n //stationStatusLD = \"ds\"; // == duplicate station (lat/lon/date/time)\n outputDebug(\"checkStationExists: station Id not found: \" +\n station.getStationId(\"\"));\n } // if (tStation2.length > 0)\n\n // are there any other stations around the same day that fall within the\n // latitude range? (it could include the station found above)\n\n // get the previous and next day for the select, in case the\n // spldattim is just before or after midnight\n java.text.SimpleDateFormat formatter =\n new java.text.SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n java.util.GregorianCalendar calDate = new java.util.GregorianCalendar();\n calDate.setTime(station.getDateStart());\n calDate.add(java.util.Calendar.DATE, -1);\n String dateStartMin = formatter.format(calDate.getTime());\n\n calDate.setTime(station.getDateEnd());\n calDate.add(java.util.Calendar.DATE, +1);\n String dateEndMax = formatter.format(calDate.getTime());\n\n where =\n MrnStation.DATE_START + \">=\" +\n Tables.getDateFormat(dateStartMin) + \" and \" +\n MrnStation.DATE_END + \"<=\" +\n Tables.getDateFormat(dateEndMax) + \" and \" +\n MrnStation.LATITUDE + \" between \" +\n (station.getLatitude()-areaRangeVal) + \" and \" +\n (station.getLatitude()+areaRangeVal) + \" and \" +\n MrnStation.LONGITUDE + \" between \" +\n (station.getLongitude()-areaRangeVal) + \" and \" +\n (station.getLongitude()+areaRangeVal);\n if (dbg) System.out.println(\"<br><br>checkStationExists: station: \" +\n \"where = \" + where);\n\n // get the records\n MrnStation[] tStation3 = new MrnStation().get(\n \"*\", where, MrnStation.STATION_ID);\n if (dbg) System.out.println(\"<br><br>checkStationExists: \" +\n \"tStation3.length = \" + tStation3.length);\n\n // put both sets of stations found in one array for processing\n tStation = new MrnStation[tStation2.length + tStation3.length];\n if (dbg) System.out.println(\"<br><br>checkStationExists: \" +\n \"tStation.length = \" + tStation.length);\n int ii = 0;\n for (int i = 0; i < tStation2.length; i++) { // same station_id\n tStation[ii] = tStation2[i];\n ii++;\n } // for (int i = 0; i < tStation2.length; i++)\n for (int i = 0; i < tStation3.length; i++) { // satem lat/lon/date/time\n tStation[ii] = tStation3[i];\n ii++;\n } // for (int i = 0; i < tStation3.length; i++)\n\n // process the records\n stationUpdated = false;\n for (int i = 0; i < tStation.length; i++) {\n\n // same station id already done\n if ((i == 0) ||\n !tStation[i].getStationId().equals(station.getStationId())) {\n\n if (tStation[i].getStationId().equals(station.getStationId())) {\n stationStatusTmp = \"di\"; // == duplicate station-id\n } else {\n stationStatusTmp = \"ds\"; // == duplicate station (lat/lon/date/time)\n } // if (tStation[i].getStationId().equals(station.getStationId()))\n\n String dbgMess = \"checkStationExists: station found in area: \" +\n i + \" \" + station.getStationId(\"\") + \" \" +\n tStation[i].getStationId(\"\");\n\n getExistingStationDetails(tStation[i], i);\n\n if (stationExistsArray[i]) {\n stationExistsCount++;\n\n outputDebug(dbgMess + \": within time range\");\n\n// if (loadFlag) {\n// updateStationDetails(i);\n// } else {\n // d == Duplicate stationId/station only\n // s == Subdes: duplicate Station (lat/lon/date/time) && subdes\n stationStatusDB[i] = stationStatusTmp;\n if (subdesCount[i] == 0) {\n // d == Duplicate stationId/station only (lat/lon/date/time)\n stationStatusDB[i] += \"d\";\n if (\"did\".equals(stationStatusDB[i])) {\n didCount++;\n } else {\n dsdCount++;\n } // if (\"did\".equals(stationStatusDB))\n } else { // if (subdesCount == 0)\n // s == Subdes: duplicate Station (lat/lon/date/time) && subdes\n stationStatusDB[i] += \"s\";\n if (\"dis\".equals(stationStatusDB[i])) {\n disCount++;\n } else {\n dssCount++;\n } // if (\"dia\".equals(stationStatusDB))\n\n thisSubdesCount += subdesCount[i];\n\n } // if (subdesCount == 0)\n// } // if (loadFlag)\n } else {\n outputDebug(dbgMess + \": NOT within time range\");\n } // if (stationExistsArray[i]) {\n\n } // if (!tStation.getStationId().equals(station.getStationId())\n\n } // for (int i = 0; i < tStation.length; i++)\n\n if (dbg) System.out.println(\"checkStationExists: stationStatusTmo = \" + stationStatusTmp);\n\n // either stations with same station Id or within same\n // area & date-time range found\n if (stationExists) {\n duplicateStations = true;\n if (dataExists) {\n stationStatusLD = \"dup\";\n } else {\n stationStatusLD = \"new\";\n newStationCount++;\n } // if (dataExists)\n } else {\n stationStatusLD = \"new\";\n newStationCount++;\n } // if (stationExists)\n\n if (dbg) System.out.println(\"checkStationExists: stationStatusLD = \" + stationStatusLD);\n if (dbg) System.out.println(\"checkStationExists: stationStatusTmo = \" + stationStatusTmp);\n for (int i = 0; i < tStation.length; i++) {\n if (dbg) System.out.println(\"checkStationExists: stationStatusDB[i] = \" +\n i + \" \" + stationStatusDB[i]);\n } // for (int i = 0; i < tStation.length; i++)\n\n }", "boolean isSetStation();", "private boolean isAtStation(){\n\n if (this.selectedTrain.getGPS().getCurrBlock().getStationName() != null){return true; }\n else { return false; }\n }", "void loadStation() {\n\n // only do this if the station does not exist\n if (!stationExists) {\n\n station.setStatusCode(35); // open & unknown\n if (!\"\".equals(passkey)) { // ub02\n station.setPasskey(passkey); // ub02\n } // if (!\"\".equals(passkey)) // ub02\n\n if (dbg3) System.out.println(\"<br>loadStation: put station = \" + station);\n if (dbg4) System.out.println(\"<br>loadStation: put station = \" + station);\n try {\n station.put();\n } catch(Exception e) {\n System.err.println(\"loadStation: put station = \" + station);\n System.err.println(\"loadStation: put sql = \" + station.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"loadStation: sql = \" + station.getInsStr());\n\n //stationCount++;\n\n if (!\"\".equals(sfriGrid.getGridNo(\"\"))) {\n try {\n sfriGrid.put();\n } catch(Exception e) {\n System.err.println(\"loadStation: put sfriGrid = \" + sfriGrid);\n System.err.println(\"loadStation: put sql = \" + sfriGrid.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadStation: put sfriGrid = \" + sfriGrid);\n } // if (!\"\".equals(sfriGrid.getGridNo(\"\")))\n\n weatherIsLoaded = false;\n\n } // if (!stationExists)\n\n }", "private void checkStationPresent(int station) throws JposException {\r\n Device.checkMember(station, SingleStations, JposConst.JPOS_E_ILLEGAL, \"Invalid print station: \" + station);\r\n Device.check(station == POSPrinterConst.PTR_S_JOURNAL && !Data.CapJrnPresent, JposConst.JPOS_E_ILLEGAL, \"No journal\");\r\n Device.check(station == POSPrinterConst.PTR_S_RECEIPT && !Data.CapRecPresent, JposConst.JPOS_E_ILLEGAL, \"No receipt\");\r\n Device.check(station == POSPrinterConst.PTR_S_SLIP && !Data.CapSlpPresent, JposConst.JPOS_E_ILLEGAL, \"No slip\");\r\n }", "void checkStationUIExists() {\n\n int recordCount = 9999;\n int duplicateCount = 0;\n\n String where = MrnStation.DATE_START + \"=\" +\n Tables.getDateFormat(station.getDateStart()) +\n \" and \" + MrnStation.LATITUDE +\n \" between \" + (station.getLatitude()-areaRangeVal) +\n \" and \" + (station.getLatitude()+areaRangeVal) +\n \" and \" + MrnStation.LONGITUDE +\n \" between \" + (station.getLongitude()-areaRangeVal) +\n \" and \" + (station.getLongitude()+areaRangeVal) ;\n if (dbg) System.out.println(\"<br>checkStationUIExists: where = \" + where);\n //outputDebug(\"checkStationUIExists: where = \" + where);\n\n MrnStation[] stns = new MrnStation().get(where);\n if (dbg) System.out.println(\"<br>checkStationUIExists: stns.length = \" + stns.length);\n //outputDebug(\"checkStationUIExists: number of stations found = \" + stns.length);\n\n String debugMessage = \"\\ncheckStationUIExists: duplicate UI check \\n \" +\n station.getDateStart(\"\").substring(0,10) +\n \", \" + ec.frm(station.getLatitude(),10,5) +\n \", \" + ec.frm(station.getLongitude(),10,5) +\n \", \" + station.getStnnam(\"\") +\n \" (\" + station.getStationId(\"\") + \")\";\n\n if (stns.length == 0) {\n outputDebug(debugMessage + \": duplicate UI not found\");\n } else {\n\n outputDebug(debugMessage);\n\n // check for duplicate station names (stnnam)\n while (recordCount > 0) {\n\n // count station names the same\n recordCount = 0;\n for (int i = 0; i < stns.length; i++) {\n if (stns[i].getStnnam(\"\").equals(station.getStnnam(\"\"))) {\n recordCount++;\n } // if (stns[i].getStnnam(\"\").equals(station.getStnnam(\"\")))\n } // for (int i = 0; i < stns.length; i++)\n\n if (dbg) System.out.println(\"<br>checkStationUIExists: recordCount = \" +\n recordCount + \", stnnam = \" + station.getStnnam(\"\"));\n\n debugMessage = \" \" + station.getStnnam(\"\") +\n \", recordCount (same stnnam) = \" + recordCount;\n\n if (recordCount > 0) {\n duplicateCount++;\n\n station.setStnnam(station.getStnnam(\"\") + duplicateCount);\n\n debugMessage += \" - new stnnam = \" +\n station.getStnnam(\"\");\n //outputDebug(debugMessage);\n if (dbg) System.out.println(\"checkStationUIExists: new stnnam = \" +\n station.getStnnam(\"\"));\n }// if (recordCount > 0)\n\n outputDebug(debugMessage);\n\n } // while (recordCount > 0)\n\n } // if (stns.length == 0)\n\n }", "void getExistingStationDetails(MrnStation tStation, int i) {\n // find out the existing station details for the report\n // check if also within a date-time range\n\n Timestamp tmpSpldattim = null;\n if (dataType == CURRENTS) {\n tmpSpldattim = currents.getSpldattim();\n } else if (dataType == SEDIMENT) {\n tmpSpldattim = sedphy.getSpldattim();\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n tmpSpldattim = watphy.getSpldattim();\n } // if (dataType == CURRENTS)\n\n // find the date range for this station\n java.util.GregorianCalendar calDate = new java.util.GregorianCalendar();\n calDate.setTime(tmpSpldattim); //Timestamp.valueOf(startDateTime));\n\n calDate.add(java.util.Calendar.MINUTE, -timeRangeVal);\n Timestamp dateTimeMinTs = new Timestamp(calDate.getTime().getTime());\n\n calDate.add(java.util.Calendar.MINUTE, timeRangeVal*2);\n Timestamp dateTimeMaxTs = new Timestamp(calDate.getTime().getTime());\n\n if (dbg) System.out.println(\"<br><br>getExistingStationDetails: \" +\n \"dateTimeMinTs = \" + dateTimeMinTs);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"dateTimeMaxTs = \" + dateTimeMaxTs);\n\n //if (dbg) System.out.println(\"<br>checkStationExists: in loop: \" +\n // \"tStation[i] = \" + tStation[i]);\n\n String where = \"STATION_ID='\" + tStation.getStationId() + \"'\";\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"data where = \" + where);\n String order = \"SUBDES\";\n\n String prevSubdes = \"\";\n int k = 0;\n\n //\n // are there any currents records for this station\n //------------------------------------------------\n tCurrents = new MrnCurrents().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents.length = \" + tCurrents.length);\n\n for (int j = 0; j < tCurrents.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents[j].getSpldattim() = \" +\n tCurrents[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tCurrents[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tCurrents[j].getSpldattim()) &&\n tCurrents[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tCurrents[j].getSpldattim()) &&\n// tCurrents[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tCurrents[j].getSpldattim(\"\");\n currentsRecordCountArray[i]++;\n\n if (dataType == CURRENTS) {\n dataExists = true;\n\n // get the min and max depth\n if (tCurrents[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tCurrents[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n if (tCurrents[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tCurrents[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", currents.getSubdes() = \" + currents.getSubdes(\"\"));\n //if (tCurrents[j].getSubdes(\"\").equals(subdes)) {\n if (tCurrents[j].getSubdes(\"\").equals(currents.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tCurrents[j].getSubdes(\"\").equals(currents.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tCurrents[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tCurrents[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tCurrents[j].getSubdes() = \" +\n tCurrents[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tCurrents[j].getSubdes(\"\");\n\n } // if (dataType == CURRENTS)\n\n } // if (dateTimeMinTs.before(tCurrents[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tCurrents.length; j++)\n\n //\n // are there any sedphy records for this station\n //------------------------------------------------\n tSedphy = new MrnSedphy().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy.length = \" + tSedphy.length);\n\n for (int j = 0; j < tSedphy.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy[j].getSpldattim() = \" + tSedphy[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tSedphy[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tSedphy[j].getSpldattim()) &&\n tSedphy[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tSedphy[j].getSpldattim()) &&\n// tSedphy[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tSedphy[j].getSpldattim(\"\");\n sedphyRecordCountArray[i]++;\n\n if (dataType == SEDIMENT) {\n dataExists = true;\n\n // get the min and max depth\n if (tSedphy[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tSedphy[j].getSpldep();\n } // if (tSedphy.getSpldep() < depthMin)\n if (tSedphy[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tSedphy[j].getSpldep();\n } // if (tSedphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", sedphy.getSubdes() = \" + sedphy.getSubdes(\"\"));\n //if (tSedphy[j].getSubdes(\"\").equals(subdes)) {\n if (tSedphy[j].getSubdes(\"\").equals(sedphy.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tSedphy[j].getSubdes(\"\").equals(sedphy.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tSedphy[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tSedphy[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tSedphy[j].getSubdes() = \" +\n tSedphy[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tSedphy[j].getSubdes(\"\");\n\n } // if (dataType == SEDIMENT)\n\n } // if (dateTimeMinTs.before(tSedphy[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tSedphy.length; j++)\n\n //\n // are there any watphy records for this station\n //------------------------------------------------\n tWatphy = new MrnWatphy().get(\"*\", where, order);\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy.length = \" + tWatphy.length);\n\n for (int j = 0; j < tWatphy.length; j++) {\n\n if (dbg) System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy[j].getSpldattim() = \" + tWatphy[j].getSpldattim());\n\n // only found if station_id's the same or also within date-time range\n if (tWatphy[j].getStationId().equals(station.getStationId()) ||\n (dateTimeMinTs.before(tWatphy[j].getSpldattim()) &&\n tWatphy[j].getSpldattim().before(dateTimeMaxTs))) {\n// if (dateTimeMinTs.before(tWatphy[j].getSpldattim()) &&\n// tWatphy[j].getSpldattim().before(dateTimeMaxTs)) {\n\n stationExists = true;\n stationExistsArray[i] = true;\n spldattimArray[i] = tWatphy[j].getSpldattim(\"\");\n watphyRecordCountArray[i]++;\n\n if ((dataType == WATER) || (dataType == WATERWOD)) {\n dataExists = true;\n\n // get the min and max depth\n if (tWatphy[j].getSpldep() < loadedDepthMin[i]) {\n loadedDepthMin[i] = tWatphy[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n if (tWatphy[j].getSpldep() > loadedDepthMax[i]) {\n loadedDepthMax[i] = tWatphy[j].getSpldep();\n } // if (tWaphy.getSpldep() < depthMin)\n\n // is it the same subdes ?\n if (dbg) System.out.println(\n \"<br>getExistingStationDetails: subdes = \" + subdes +\n \", watphy.getSubdes() = \" + watphy.getSubdes(\"\"));\n //if (tWatphy[j].getSubdes(\"\").equals(subdes)) {\n if (tWatphy[j].getSubdes(\"\").equals(watphy.getSubdes(\"\"))) {\n subdesCount[i]++;\n } // if (tWatphy[j].getSubdes(\"\").equals(watphy.getSubdes(\"\"))\n\n if (!prevSubdes.equals(tWatphy[j].getSubdes(\"\"))) {\n subdesArray[i][k] = tWatphy[j].getSubdes(\"\");\n if (\"\".equals(subdesArray[i][k])) subdesArray[i][k] = \"none\";\n if (dbg) {\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"k = \" + k);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"prevSubdes = \" + prevSubdes);\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"tWatphy[j].getSubdes() = \" +\n tWatphy[j].getSubdes(\"\"));\n System.out.println(\"<br>getExistingStationDetails: \" +\n \"subdesArray[i][k] = \" + subdesArray[i][k]);\n } // if (dbg)\n k++;\n } // if (!prevSubdes.equals(subdesArray[i][k])\n\n prevSubdes = tWatphy[j].getSubdes(\"\");\n\n } // if ((dataType == WATER) || (dataType == WATERWOD))\n\n } // if (dateTimeMinTs.before(tWatphy[j].getSpldattim()) ...\n\n } // for (int j = 0; j < tWatphy.length; j++)\n\n }", "public void setStation(String station) {\n \tthis.station = station;\n }", "private boolean isStation(SensorEvent e) {\n for (int[] p : STATION_POSITIONS) {\n if (atSensor(e, p[0], p[1])) {\n return true;\n }\n }\n return false;\n }", "void updateStation() {\n\n // only do this if the station did not exist ????\n if ((!stationExists || stationUpdated)\n && !\"\".equals(station.getStationId(\"\")) &&\n station.getMaxSpldep()!= Tables.FLOATNULL) { // for sediments\n\n MrnStation updStation = new MrnStation();\n updStation.setMaxSpldep(station.getMaxSpldep());\n\n MrnStation whereStation =\n new MrnStation(station.getStationId());\n\n try {\n whereStation.upd(updStation);\n } catch(Exception e) {\n System.err.println(\"updateStation: upd whereStation = \" + whereStation);\n System.err.println(\"updateStation: upd updStation = \" + updStation);\n System.err.println(\"updateStation: upd sql = \" + whereStation.getUpdStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>updateStation: upd whereStation = \" + whereStation);\n if (dbg3) System.out.println(\"<br>updateStation: upd updStation = \" + updStation);\n //if (dbg3) System.out.println(\"<br>updateStation: sql = \" + whereStation.getUpdStr());\n\n } // if (!stationExists)\n\n // commit this station's data - for stations with many depths\n common2.DbAccessC.commit(); //ub04\n\n }", "public void extendedErrorCheck(int station) throws JposException {\r\n boolean[][] relevantconditions = new boolean[][]{\r\n new boolean[]{Data.JrnEmpty, Data.JrnCartridgeState == POSPrinterConst.PTR_CART_REMOVED, Data.JrnCartridgeState == POSPrinterConst.PTR_CART_EMPTY, Data.JrnCartridgeState == POSPrinterConst.PTR_CART_CLEANING },\r\n new boolean[]{Data.RecEmpty, Data.RecCartridgeState == POSPrinterConst.PTR_CART_REMOVED, Data.RecCartridgeState == POSPrinterConst.PTR_CART_EMPTY, Data.RecCartridgeState == POSPrinterConst.PTR_CART_CLEANING },\r\n new boolean[]{Data.SlpEmpty, Data.SlpCartridgeState == POSPrinterConst.PTR_CART_REMOVED, Data.SlpCartridgeState == POSPrinterConst.PTR_CART_EMPTY, Data.SlpCartridgeState == POSPrinterConst.PTR_CART_CLEANING }\r\n };\r\n int[][] exterrors = new int[][]{\r\n new int[]{POSPrinterConst.JPOS_EPTR_JRN_EMPTY, POSPrinterConst.JPOS_EPTR_JRN_CARTRIDGE_REMOVED, POSPrinterConst.JPOS_EPTR_JRN_CARTRIDGE_EMPTY, POSPrinterConst.JPOS_EPTR_JRN_HEAD_CLEANING},\r\n new int[]{POSPrinterConst.JPOS_EPTR_REC_EMPTY, POSPrinterConst.JPOS_EPTR_REC_CARTRIDGE_REMOVED, POSPrinterConst.JPOS_EPTR_REC_CARTRIDGE_EMPTY, POSPrinterConst.JPOS_EPTR_REC_HEAD_CLEANING},\r\n new int[]{POSPrinterConst.JPOS_EPTR_SLP_EMPTY, POSPrinterConst.JPOS_EPTR_SLP_CARTRIDGE_REMOVED, POSPrinterConst.JPOS_EPTR_SLP_CARTRIDGE_EMPTY, POSPrinterConst.JPOS_EPTR_SLP_HEAD_CLEANING},\r\n };\r\n String[] errortexts = { \"Paper empty\", \"Cartridge removed\", \"Cartridge empty\", \"Head cleaning\" };\r\n Device.check(Data.PowerNotify == JposConst.JPOS_PN_ENABLED && Data.PowerState != JposConst.JPOS_PS_ONLINE, JposConst.JPOS_E_FAILURE, \"POSPrinter not reachable\");\r\n Device.checkext(Data.CoverOpen, POSPrinterConst.JPOS_EPTR_COVER_OPEN, \"Cover open\");\r\n for (int j = 0; j < relevantconditions.length; j++) {\r\n if (station == SingleStations[j]) {\r\n for (int k = 0; k < relevantconditions[j].length; k++) {\r\n Device.checkext(relevantconditions[j][k], exterrors[j][k], errortexts[k]);\r\n }\r\n }\r\n }\r\n }", "void checkStationId(int lineCount, String testStationId) {\n if (!stationId.equals(testStationId)) {\n outputError(lineCount + \" - Fatal - \" +\n \"Station Id does not match previous station record \" +\n stationId + \": \" + testStationId);\n } // if (!stationId.equals(station.getStationId(\"\")))\n }", "private void chkSTMST()\n\t{\n\t\ttry\n\t\t{\n\t\t\tM_strSQLQRY = \"Select count(*) from fg_stmst\";\n\t\t\tM_strSQLQRY += \" where st_CMPCD = '\"+cl_dat.M_strCMPCD_pbst+\"' and st_wrhtp = '\"+strWRHTP+\"'\";\n\t\t\tM_strSQLQRY += \" and st_prdtp = '\"+strPRDTP+\"'\";\n\t\t\tM_strSQLQRY += \" and st_lotno = '\"+strLOTNO+\"'\";\n\t\t\tM_strSQLQRY += \" and st_rclno = '\"+strRCLNO+\"'\";\n\t\t\tM_strSQLQRY += \" and st_pkgtp = '\"+strPKGTP+\"'\";\n\t\t\tM_strSQLQRY += \" and st_mnlcd = '\"+strMNLCD+\"'\";\n\t\t\tif(cl_dat.getRECCNT(M_strSQLQRY) > 0)\n\t\t\t\tupdSTMST();\n\t\t\telse{\n\t\t\t\tsetMSG(\"Record does not exist in FG_STMST\",'E');\n\t\t\t\tcl_dat.M_flgLCUPD_pbst = false;\n\t\t\t\t}\n\t\t}\n\t\tcatch(Exception L_EX)\n\t\t{\n\t\t\tsetMSG(L_EX,\"chkSTMST\");\n\t\t}\n\t}", "public boolean hasStation(String station) {\n if(this.station.equals(station)) {\n return true;\n } else {\n return false;\n }\n }", "private void check() {\n ShedSolar.instance.haps.post( Events.WEATHER_REPORT_MISSED );\n LOGGER.info( \"Failed to receive weather report\" );\n\n // check again...\n startChecker();\n }", "public void loadDataForStation(NDBCStation station) {\n\t\tif (station != null) {\n\t\t\tif (station.getLastUserUpdate().before(\n\t\t\t\t\tstation.getLastOnlineUpdate())) {\n\n\t\t\t\tDiveSiteOnlineDatabaseLink diveSiteOnlineDatabase = new DiveSiteOnlineDatabaseLink(\n\t\t\t\t\t\tgetActivity());\n\t\t\t\tdiveSiteOnlineDatabase\n\t\t\t\t\t\t.setDiveSiteOnlineLoaderListener(new DiveSiteOnlineDatabaseLink.OnlineDiveDataListener() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onOnlineDiveDataRetrievedComplete(\n\t\t\t\t\t\t\t\t\tArrayList<Object> resultList,\n\t\t\t\t\t\t\t\t\tString message, Boolean isError) {\n\t\t\t\t\t\t\t\t// Replace existing station with updated one\n\t\t\t\t\t\t\t\tif (resultList.size() > 0) {\n\t\t\t\t\t\t\t\t\tNDBCStation updatedNDBCStation = (NDBCStation) resultList\n\t\t\t\t\t\t\t\t\t\t\t.get(0);\n\t\t\t\t\t\t\t\t\tObject[] ndbcStations = mVisibleNDBCStationMarkers\n\t\t\t\t\t\t\t\t\t\t\t.keySet().toArray();\n\t\t\t\t\t\t\t\t\tfor (int i = 0; i < ndbcStations.length; i++) {\n\t\t\t\t\t\t\t\t\t\tif (((NDBCStation) ndbcStations[i])\n\t\t\t\t\t\t\t\t\t\t\t\t.getStationId() == updatedNDBCStation\n\t\t\t\t\t\t\t\t\t\t\t\t.getStationId()) {\n\t\t\t\t\t\t\t\t\t\t\tNDBCStation existingNDBCStation = (NDBCStation) ndbcStations[i];\n\t\t\t\t\t\t\t\t\t\t\tMarker existingMarker = mVisibleNDBCStationMarkers\n\t\t\t\t\t\t\t\t\t\t\t\t\t.get(existingNDBCStation);\n\n\t\t\t\t\t\t\t\t\t\t\tmVisibleNDBCStationMarkers\n\t\t\t\t\t\t\t\t\t\t\t\t\t.remove(existingNDBCStation);\n\t\t\t\t\t\t\t\t\t\t\tmVisibleNDBCStationMarkers.put(\n\t\t\t\t\t\t\t\t\t\t\t\t\tupdatedNDBCStation,\n\t\t\t\t\t\t\t\t\t\t\t\t\texistingMarker);\n\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tshowDataForStation(updatedNDBCStation);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\t\tgetActivity()\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\tmessage, Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onOnlineDiveDataProgress(Object result) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onOnlineDiveDataPostBackground(\n\t\t\t\t\t\t\t\t\tArrayList<Object> resultList, String message) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\tdiveSiteOnlineDatabase.updateNDBCDataForStation(station, \"1\");\n\t\t\t} else {\n\t\t\t\tshowDataForStation(station);\n\t\t\t}\n\t\t}\n\t}", "public boolean isChecked(String stationName){\n switch (stationName){\n case(\"a1\"):\n return westStation.isSelected();\n case(\"a2\"):\n return eastStation.isSelected();\n case(\"b1\"):\n return northStation.isSelected();\n case(\"b2\"):\n return southStation.isSelected();\n case(\"main_station\"):\n return mainStation.isSelected();\n }\n return false;\n }", "@Test\n\tpublic void hasWorkstationTest(){\n\t\tcmcSystem.logInUser(2);\n\t\tOrder testOrder = makeOrder(new ModelA());\n\t\tcmcSystem.logInUser(2);\n\t\tOrder testOrder2 = makeOrder(new ModelB());\n//\t\tOrder testOrder3 = makeOrder(new ModelC());\n//\t\tOrder testOrder4 = makeOrder(new ModelX());\n//\t\tcmcSystem.logInUser(2);\n//\t\tOrder testOrder5 = makeOrder(new ModelY());\n\t\tcmcSystem.logInUser(1);\n\t\tassemblyLine.setStatus(Status.OPERATIONAL, 1);\n\t\tassertTrue(assemblyLine.supports(testOrder));\n\t\tassertTrue(assemblyLine.supports(testOrder2));\n//\t\tassertFalse(assemblyLine.supports(testOrder3));\n//\t\tassertFalse(assemblyLine.supports(testOrder4));\n//\t\tassertFalse(assemblyLine.supports(testOrder5));\n\t}", "public String getFromStation();", "private static void checkStatus() {\n\r\n\t\tDate date = new Date();\r\n\t\tSystem.out.println(\"Checking at :\"+date.toString());\r\n\t\tString response = \"\";\r\n\t\ttry {\r\n\t\t\tresponse = sendGET(GET_URL_COVAXIN);\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//System.out.println(response.toString());\r\n\t\tArrayList<Map> res = formatResponse(response);\r\n\r\n\t\tres = checkAvailability(res);\r\n\t\tif(res.size()>0)\r\n\t\t\tnotifyUser(res);\r\n\t\t//System.out.println(emp.toString());\r\n\t}", "private void checkWifiStep1() {\n\n Log.i(\"checkk\", \"ikan\");\n\n WifiManager wifiManager= (WifiManager)getApplicationContext().getSystemService(Context.WIFI_SERVICE);\n\n WifiInfo wifiInfo = wifiManager.getConnectionInfo();\n\n String name = wifiInfo.getSSID();\n\n //String macbabyyy = wifiInfo.getMacAddress();\n\n String bssiddda = wifiInfo.getBSSID();\n\n //wifiInfo.get\n\n // Log.i(\"checkk mac\",macbabyyy);\n Log.i(\"checkk bssid\",bssiddda);\n Log.i(\"checkk ssid\",name);\n\n Toast.makeText(getApplicationContext(),\"wifi ini :\"+ name, Toast.LENGTH_LONG).show();\n\n //asking fine location permission\n\n String constWifiName = \"\\\"arif0527 2.4GHz@unifi\\\"\";\n\n if(name.equals(constWifiName)){\n\n Log.i(\"checkk BERJAYA : \",bssiddda);\n Toast.makeText(getApplicationContext(),\"BERJAYA :\"+ name, Toast.LENGTH_LONG).show();\n message.setText(\"BERJAYA!!\");\n }\n\n\n }", "public String get_station_name () {\n if (!this.on) {\n return null;\n }\n\n return this.stationName;\n }", "void saveCurrentStation();", "public String get_station_location () {\n if (!this.on) {\n return null;\n }\n\n return this.stationLocation;\n }", "public void setFromStation(String fromStation);", "void loadData() {\n\n // update if\n // station does not exist OR\n // the station exists and should be updated\n // don't update if the depth is rejected, regardless of the above 2\n\n String tmpStationId = \"\";\n if (dataType == CURRENTS) {\n tmpStationId = currents.getStationId(\"\");\n } else if (dataType == SEDIMENT) {\n tmpStationId = sedphy.getStationId(\"\");\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n tmpStationId = watphy.getStationId(\"\");\n } // if (dataType == CURRENTS)\n if (dbg3) System.out.println(\"<br>loadData: tmpStationId = \" + tmpStationId);\n if (dbg3) System.out.println(\"<br>loadData: rejectDepth = \" + rejectDepth);\n if (dbg3) System.out.println(\"<br>loadData: stationExists = \" + stationExists);\n if (dbg3) System.out.println(\"<br>loadData: stationUpdated = \" + stationUpdated);\n if (dbg3) System.out.println(\"<br>loadData: dataExists = \" + dataExists);\n if (dbg3) System.out.println(\"<br>loadData: if = \" +\n (!\"\".equals(tmpStationId) && !rejectDepth &&\n (!stationExists || stationUpdated || !dataExists)));\n if (dbg3) System.out.println(\"<br>loadData: dataType = \" + dataType);\n\n//<br>loadData: tmpStationId = WOD007919212\n//<br>loadData: rejectDepth = false\n//<br>loadData: stationExists = true\n//<br>loadData: stationUpdated = false\n//<br>loadData: dataExists = true\n\n if (!\"\".equals(tmpStationId) && !rejectDepth &&\n (!stationExists || stationUpdated || !dataExists || (thisSubdesCount == 0))) {\n\n // was it a duplicate station with a different station-id?\n // as we can't update station-id's in oracle (used as FK elsewhere),\n // we have to update the watphy record's station id\n if (dbg4) System.out.println(\"<br>loadData: stationIDs = \" +\n station.getStationId(\"\") + \" \" + tmpStationId);\n //if (!station.getStationId(\"\").equals(watphy.getStationId(\"\"))) {\n if (!station.getStationId(\"\").equals(tmpStationId)) {\n if (dataType == CURRENTS) {\n currents.setStationId(station.getStationId(\"\"));\n } else if (dataType == SEDIMENT) {\n sedphy.setStationId(station.getStationId(\"\"));\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n if (dbg4) System.out.println(\"<br>loadData: put watphy = \" + watphy);\n watphy.setStationId(station.getStationId(\"\"));\n if (dbg4) System.out.println(\"<br>loadData: put watphy = \" + watphy);\n } // if (dataType == CURRENTS)\n } // if (!station.getStationId(\"\").equals(tmpStationId))\n\n if (dataType == CURRENTS) {\n\n // insert the currents record\n if (dbg4) System.out.println(\"<br>loadData: put currents1 = \" +\n currents);\n try {\n currents.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put currents1 = \" + currents);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + currents.getInsStr());\n e.printStackTrace();\n } // try-catch\n\n //common2.DbAccessC.commit();\n if (dbg4) System.out.println(\"<br>loadData: put currents2 = \" +\n currents);\n //dataCodeEnd = currents.getCode();\n //if (dbg3) System.out.println(\"<br>loadData: put dataCodeEnd = \" + dataCodeEnd);\n currentsCount++;\n\n currents = new MrnCurrents();\n\n // set initial values for currents\n currents.setSpldattim(startDateTime);\n currents.setSubdes(subdes);\n\n } else if (dataType == SEDIMENT) {\n\n // set default values\n sedphy.setDeviceCode(1); // == unknown\n sedphy.setMethodCode(1); // == unknown\n sedphy.setStandardCode(1); // == unknown\n\n // insert the sedphy and child records\n if (dbg4) System.out.println(\"<br>loadData: put sedphy1 = \" + sedphy);\n try {\n sedphy.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put sedphy1 = \" + sedphy);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + sedphy.getInsStr());\n e.printStackTrace();\n } // try-catch\n\n //common2.DbAccessC.commit();\n if (dbg3) System.out.println(\"<br>loadData: put sedphy2 = \" + sedphy);\n dataCodeEnd = sedphy.getCode();\n if (dbg3) System.out.println(\"<br>loadData: put dataCodeEnd = \" + dataCodeEnd);\n\n //sedphyCount++;\n\n if (!sedchem1.isNullRecord()) {\n sedchem1.setSedphyCode(dataCodeEnd);\n try {\n sedchem1.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put sedchem1 = \" + sedchem1);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + sedchem1.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put sedchem1 = \" + sedchem1);\n sedchem1Count++;\n } // if (!sedchem1.isNullRecord()\n\n if (!sedchem2.isNullRecord()) {\n sedchem2.setSedphyCode(dataCodeEnd);\n try {\n sedchem2.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put sedchem2 = \" + sedchem2);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + sedchem2.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put sedchem2 = \" + sedchem2);\n sedchem2Count++;\n } // if (!sedchem2.isNullRecord()\n\n if (!sedpol1.isNullRecord()) {\n sedpol1.setSedphyCode(dataCodeEnd);\n try {\n sedpol1.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put sedpol1 = \" + sedpol1);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + sedpol1.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put sedpol1 = \" + sedpol1);\n sedpol1Count++;\n } // if (!sedpol1.isNullRecord()\n\n if (!sedpol2.isNullRecord()) {\n sedpol2.setSedphyCode(dataCodeEnd);\n try {\n sedpol2.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put sedpol2 = \" + sedpol2);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + sedpol2.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put sedpol2 = \" + sedpol2);\n sedpol2Count++;\n } // if (!sedpol2.isNullRecord()\n\n sedphy = new MrnSedphy();\n sedchem1 = new MrnSedchem1();\n sedchem2 = new MrnSedchem2();\n sedpol1 = new MrnSedpol1();\n sedpol2 = new MrnSedpol2();\n\n // set initial values for sedphy\n sedphy.setSpldattim(startDateTime);\n sedphy.setSubdes(subdes);\n\n } else if ((dataType == WATER) || (dataType == WATERWOD)) {\n\n // set default values\n watphy.setDeviceCode(1); // == unknown\n watphy.setMethodCode(1); // == unknown\n watphy.setStandardCode(1); // == unknown\n\n // insert the watphy and child records\n if (dbg4) System.out.println(\"<br>loadData: put watphy1 = \" + watphy);\n try {\n watphy.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put watphy1 = \" + watphy);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + watphy.getInsStr());\n e.printStackTrace();\n } // try-catch\n\n //common2.DbAccessC.commit();\n if (dbg3) System.out.println(\"<br>loadData: put watphy2 = \" + watphy);\n dataCodeEnd = watphy.getCode();\n if (dbg3) System.out.println(\"<br>loadData: put dataCodeEnd = \" + dataCodeEnd);\n\n watphyCount++;\n\n if (dbg4) System.out.println(\"<br>loadData: put watProfQC = \" + watProfQC);\n if (!watProfQC.isNullRecord()) {\n watProfQC.setStationId(station.getStationId(\"\"));\n watProfQC.setSubdes(watphy.getSubdes(\"\"));\n if (dbg4) System.out.println(\"<br>loadData: put watProfQC = \" + watProfQC);\n try {\n watProfQC.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put watProfQC1 = \" + watProfQC);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + watProfQC.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put watProfQC = \" + watProfQC);\n } // if (!watProfQC.isNullRecord()\n\n if (dbg4) System.out.println(\"<br>loadData: put watQC = \" + watQC);\n if (!watQC.isNullRecord()) {\n try {\n watQC.setWatphyCode(dataCodeEnd);\n watQC.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put watQC = \" + watQC);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + watQC.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put watQC = \" + watQC);\n } // if (!watQC.isNullRecord())\n\n if (!watchem1.isNullRecord()) {\n watchem1.setWatphyCode(dataCodeEnd);\n try {\n watchem1.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put watchem1 = \" + watchem1);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + watchem1.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put watchem1 = \" + watchem1);\n watchem1Count++;\n } // if (!watchem1.isNullRecord()\n\n if (!watchem2.isNullRecord()) {\n watchem2.setWatphyCode(dataCodeEnd);\n try {\n watchem2.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put watchem2 = \" + watchem2);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + watchem2.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put watchem2 = \" + watchem2);\n watchem2Count++;\n } // if (!watchem2.isNullRecord()\n\n if (!watchl.isNullRecord()) {\n watchl.setWatphyCode(dataCodeEnd);\n try {\n watchl.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put watchl = \" + watchl);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + watchl.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put watchl = \" + watchl);\n watchlCount++;\n } // if (!watchl.isNullRecord())\n\n if (!watnut.isNullRecord()) {\n watnut.setWatphyCode(dataCodeEnd);\n try {\n watnut.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put watnut = \" + watnut);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + watnut.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put watnut = \" + watnut);\n watnutCount++;\n } // if (!watnut.isNullRecord())\n\n if (!watpol1.isNullRecord()) {\n watpol1.setWatphyCode(dataCodeEnd);\n try {\n watpol1.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put watpol1 = \" + watpol1);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + watpol1.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put watpol1 = \" + watpol1);\n watpol1Count++;\n } // if (!watpol1.isNullRecord()\n\n if (!watpol2.isNullRecord()) {\n watpol2.setWatphyCode(dataCodeEnd);\n try {\n watpol2.put();\n } catch(Exception e) {\n System.err.println(\"loadData: put watpol2 = \" + watpol2);\n System.err.println(\"loadData: station = \" + station);\n System.err.println(\"loadData: put sql = \" + watpol2.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadData: put watpol2 = \" + watpol2);\n watpol2Count++;\n } // if (!watpol2.isNullRecord()\n\n watphy = new MrnWatphy();\n watchem1 = new MrnWatchem1();\n watchem2 = new MrnWatchem2();\n watchl = new MrnWatchl();\n watnut = new MrnWatnut();\n watpol1 = new MrnWatpol1();\n watpol2 = new MrnWatpol2();\n\n watProfQC = new MrnWatprofqc();\n watQC = new MrnWatqc();\n\n // set initial values for watphy\n watphy.setSpldattim(startDateTime);\n watphy.setSubdes(subdes);\n\n } // if (dataType == CURRENTS)\n\n } // if (!rejectDepth && (!stationExists || stationUpdated))\n }", "public String getStation() {\n return stationName;\n }", "public void ValidationData() {\n try {\n ConnectionClass connectionClass = new ConnectionClass();\n connect = connectionClass.CONN();\n if (connect == null) {\n ConnectionResult = \"Check your Internet Connection\";\n } else {\n String query = \"Select No from machinestatustest where Line='\" + Line + \"' and Station = '\" + Station + \"'\";\n Statement stmt = connect.createStatement();\n ResultSet rs = stmt.executeQuery(query);\n if (rs.next()) {\n Validation = rs.getString(\"No\");\n }\n ConnectionResult = \"Successfull\";\n connect.close();\n }\n } catch (Exception ex) {\n ConnectionResult = ex.getMessage();\n }\n }", "void checkTwoStations(int stations, int[] stationIndex, int[] station) throws JposException {\r\n switch (stations) {\r\n case POSPrinterConst.PTR_S_JOURNAL_RECEIPT:\r\n case POSPrinterConst.PTR_TWO_RECEIPT_JOURNAL:\r\n Device.check(!Data.CapConcurrentJrnRec, JposConst.JPOS_E_ILLEGAL, \"No concurrent printing on journal and receipt\");\r\n stationIndex[0] = getStationIndex(station[0] = POSPrinterConst.PTR_S_JOURNAL);\r\n stationIndex[1] = getStationIndex(station[1] = POSPrinterConst.PTR_S_RECEIPT);\r\n break;\r\n case POSPrinterConst.PTR_S_JOURNAL_SLIP:\r\n case POSPrinterConst.PTR_TWO_SLIP_JOURNAL:\r\n Device.check(!Data.CapConcurrentJrnSlp, JposConst.JPOS_E_ILLEGAL, \"No concurrent printing on journal and slip\");\r\n stationIndex[0] = getStationIndex(station[0] = POSPrinterConst.PTR_S_JOURNAL);\r\n stationIndex[1] = getStationIndex(station[1] = POSPrinterConst.PTR_S_SLIP);\r\n break;\r\n case POSPrinterConst.PTR_S_RECEIPT_SLIP:\r\n case POSPrinterConst.PTR_TWO_SLIP_RECEIPT:\r\n Device.check(!Data.CapConcurrentRecSlp, JposConst.JPOS_E_ILLEGAL, \"No concurrent printing on receipt and slip\");\r\n stationIndex[0] = getStationIndex(station[0] = POSPrinterConst.PTR_S_SLIP);\r\n stationIndex[1] = getStationIndex(station[1] = POSPrinterConst.PTR_S_RECEIPT);\r\n break;\r\n default:\r\n throw new JposException(JposConst.JPOS_E_ILLEGAL, \"Invalid print stations: \" + stations);\r\n }\r\n Device.check(SidewaysCommand[station[0]] != null || SidewaysCommand[station[1]] != null, JposConst.JPOS_E_ILLEGAL, \"No support for printing to two stations when one station is in sideways print mode\");\r\n Device.check(PagemodeCommand[station[0]] != null || PagemodeCommand[station[1]] != null, JposConst.JPOS_E_ILLEGAL, \"No support for printing to two stations when one station is in page mode\");\r\n Device.check(TransactionCommand[station[0]] != null || TransactionCommand[station[1]] != null, JposConst.JPOS_E_ILLEGAL, \"No support for printing to two stations when one station is in transaction print mode\");\r\n }", "private void checkClick(MouseEvent event) {\n SolarSystem mouseOver = findClosestSolarSystem(new Point((int) event.getX() - 5, (int) event.getY() - 5));\n if (mouseOver != null && travelable.contains(mouseOver)) {\n selectedSolarSystem = mouseOver;\n animateInfoScreen(true);\n solarSystemName.setText(mouseOver.name());\n ObservableList<Planet> planets = FXCollections.observableArrayList(mouseOver.planets());\n planetList.setItems(planets);\n fuelInfo.setText(\"Current:\\n\" + player.getShip().getFuel() + \"\\n\\nCost:\\n\" + player.distanceToSolarSystem(mouseOver) + \"\\n\\nSum:\\n\" + (player.getShip().getFuel() - player.distanceToSolarSystem(mouseOver)));\n drawUniverse();\n } else {\n drawUniverse();\n }\n }", "double getStation();", "public void setStationName(String name){\r\n this.name = name;\r\n }", "org.landxml.schema.landXML11.Station xgetStation();", "public void addStation(String station) {\n this.station = station;\n }", "@Test\n public void testIsStation() {\n System.out.println(\"isStation\");\n Block instance = new Block(\"Green\",\"A\",2,328.1,3.281,180.455,\"STATION; PIONEER\",1,1,3.281,4.9215);\n boolean expResult = true;\n boolean result = instance.isStation();\n assertEquals(expResult, result);\n }", "public void setFromStationName(String fromStationName);", "@Override\n\t\t\tpublic void doTimerCheckWork() {\n\n\t\t\t\tif (isWifiApEnabled(mWifiManager)) {\n\t\t\t\t\tLog.v(TAG, \"Wifi enabled success!\");\n\t\t\t\t\tthis.exit();\n\t\t\t\t} else {\n\t\t\t\t\tLog.v(TAG, \"Wifi enabled failed!\");\n\t\t\t\t}\n\t\t\t}", "void setStation(double station);", "private void handleStationAction(){\n\t\tString station = cbStation.getText();\n\t\t\n\t\tif(quotList != null){\n\t\t\ttry{\n\t\t\t\tcbCustomer.removeAll();\n\t\t\tfor(int i = 0; i < quotList.length; i++){\n\t\t\t\tif(station.equals(quotList[i].getStationCode())){\n\t\t\t\t\tcbCustomer.add(quotList[i].getCustomerName());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tString[] items = cbCustomer.getItems();\n\t\t\tcbCustomer.removeAll();\n\t\t\tArrays.sort(items, String.CASE_INSENSITIVE_ORDER);\n\t\t\tcbCustomer.setItems(items);\n\t\t\t\n\t\t\ttxtBookingType.setText(\"\");\n\t\t\ttxtType.setText(\"\");\n\t\t\ttxtQuotationId.setText(\"\");\n\t\t\t}catch(Exception exception){\n\t\t\t\texception.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public String toStringSta_() {\n\t\treturn \"Station: \"+ name+ \", Adresse: \" + address + \", CB: \" + ((banking) ? \"oui\" : \"non\" ) + \", bonus: \" + ((bonus) ? \"oui\" : \"non\" )\n\t\t\t\t+ \", Etat: \" + ((status) ? \"OK\" : \"Fermé\" );\n\t}", "public SingleStation(int station_ID, String station_Name, ArrayList<Integer> go_live_date, String status) {\n\t\tthis.station_ID = station_ID;\n\t\tthis.station_Name = station_Name;\n\t\tthis.go_live_date = go_live_date;\n\t\tthis.status = status;\n\t}", "public int show(int sit_checker)\n {\n int ret_val = 0;\n for(Room temp : data_set)\n {\n if(temp.get_situation() == sit_checker)\n {\n ++ret_val;\n System.out.print(temp.room_number() + \" - \");\n }\n }\n if(ret_val > 0)\n System.out.println(\"\\n(-1 for cancel operation)\");\n return ret_val;\n }", "private void CheckIntoVenue(final double latitude, final double longitude,\n \t\t\tint rat,String alpharat, final String messagetoshout, final String venueid) {\n \t\tmProgress.show();\n \n \t\tnew Thread() {\n \t\t\t@Override\n \t\t\tpublic void run() {\n \t\t\t\tint what = 0;\n \n \t\t\t\ttry {\n \n \t\t\t\t\tLog.e(\"MYT\", mFsqApp.checkIn(latitude, longitude,\n \t\t\t\t\t\t\tmessagetoshout, venueid));\n \t\t\t\t} catch (Exception e) {\n \t\t\t\t\twhat = 1;\n \t\t\t\t\te.printStackTrace();\n \t\t\t\t}\n \n \t\t\t\tmProgress.dismiss();\n //\t\t\t\tmfsHandler.sendMessage(mfscheckinHandler.obtainMessage(what));\n \t\t\t}\n \t\t}.start();\n \t}", "@Test\n public void updateStationUsesStationZoneToUpdateStation()\n {\n StationDao mockStationDao = mock(StationDao.class);\n LundergroundFacade facade = new LundergroundFacade();\n facade.setStationDao(mockStationDao);\n ArgumentCaptor<Station> args = ArgumentCaptor.forClass(Station.class);\n\n facade.updateStation(SOME_ID, SOME_NAME, SOME_ZONE);\n\n verify(mockStationDao).updateStation(args.capture());\n assertThat(args.getValue()\n .getZone(), equalTo(SOME_ZONE));\n }", "public static boolean checkSensorState()\n\t{\n\t\tboolean state = false;\n\t\ttry\n\t\t{\t\n\t\t\t\tfor (SensorData sData : sCollect.getList())\n\t\t\t\t{\n\t\t\t\t\tif (sData.getId().equals(ConnectionManager.getInstance().currentSensor(0).getSerialNumber()))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(sData.getState().equals(Constants.SENSOR_STATE_STOCK))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tstate = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}catch (SensorNotFoundException e)\n\t\t{\n\t\t\tstatusBar.setText(e.getMessage());\n\t\t}\n\t\treturn state;\n\t}", "@Override\r\n\tpublic boolean update(Station obj) {\n\t\treturn false;\r\n\t}", "@Override\n\t\t\tpublic void doTimerCheckWork() {\n\n\t\t\t\tif (CommonUtil.isWifiApEnabled(mWifiManager)) {\n\t\t\t\t\tLog.v(TAG, \"Wifi enabled success!\");\n\t\t\t\t\tIntent intentService = new Intent(mContext,\n\t\t\t\t\t\t\tProcessMsgService.class);\n\t\t\t\t\tmContext.startService(intentService);\n\t\t\t\t\tString action = Constants.ACTION_HOTSPOT_AVAILABLE;\n\t\t\t\t\tIntent intent = new Intent(action);\n\t\t\t\t\tmContext.sendBroadcast(intent);\n\t\t\t\t\tthis.exit();\n\t\t\t\t} else {\n\t\t\t\t\tString action = Constants.ACTION_HOTSPOT_UNAVAILABLE;\n\t\t\t\t\tIntent intent = new Intent(action);\n\t\t\t\t\tmContext.sendBroadcast(intent);\n\t\t\t\t\tLog.v(TAG, \"Wifi enabled failed!\");\n\t\t\t\t}\n\t\t\t}", "boolean hasSsid();", "boolean hasFlightdetails();", "private void validt() {\n\t\t// -\n\t\tnmfkpinds.setPgmInd99(false);\n\t\tstateVariable.setZmsage(blanks(78));\n\t\tfor (int idxCntdo = 1; idxCntdo <= 1; idxCntdo++) {\n\t\t\tproductMaster.retrieve(stateVariable.getXwabcd());\n\t\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t\t// BR00005 Product not found on Product_Master\n\t\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\t\tmsgObjIdx = setMsgObj(\"OEM0003\", \"XWABCD\", msgObjIdx, messages);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// - If addition, pull the price from file:\n\t\t\tif (nmfkpinds.funKey06()) {\n\t\t\t\tstateVariable.setXwpric(stateVariable.getXwanpr());\n\t\t\t}\n\t\t\t// -\n\t\t\tstoreMaster.retrieve(stateVariable.getXwaacs());\n\t\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t\t// BR00006 Store not found on Store_Master\n\t\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\t\tmsgObjIdx = setMsgObj(\"OES0369\", \"XWAACS\", msgObjIdx, messages);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tstockBalances.retrieve(stateVariable.getXwabcd(), stateVariable.getXwaacs());\n\t\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t\t// BR00007 Store not found on Stock_Balances or CONDET.Contract_Qty >\n\t\t\t// BR Onhand_Quantity\n\t\t\tif (nmfkpinds.pgmInd99() || (stateVariable.getXwa5qt() > stateVariable.getXwbhqt())) {\n\t\t\t\tmsgObjIdx = setMsgObj(\"OES0370\", \"XWAACS\", msgObjIdx, messages);\n\t\t\t\tnmfkpinds.setPgmInd99(true);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// - Transaction Type:\n\t\t\ttransactionTypeDescription.retrieve(stateVariable.getXwricd());\n\t\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t\t// BR00008 Trn_Hst_Trn_Type not found on Transaction_type_description\n\t\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\t\tstateVariable.setXwtdsc(all(\"-\", 20));\n\t\t\t\tmsgObjIdx = setMsgObj(\"OES0371\", \"XWRICD\", msgObjIdx, messages);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// - Unit of measure:\n\t\t\t// BR00009 U_M = 'EAC'\n\t\t\tif (equal(\"EAC\", stateVariable.getXwa2cd())) {\n\t\t\t\tstateVariable.setUmdes(replaceStr(stateVariable.getUmdes(), 1, 11, um[1]));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tnmfkpinds.setPgmInd99(true);\n\t\t\t\tmsgObjIdx = setMsgObj(\"OES0372\", \"XWA2CD\", msgObjIdx, messages);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "private void chkLTMST(){\n\t\ttry{\n\t\t\tM_strSQLQRY = \"Select count(*) from pr_ltmst\";\n\t\t\tM_strSQLQRY += \" where lt_CMPCD = '\"+cl_dat.M_strCMPCD_pbst+\"' and lt_prdtp = '\"+strPRDTP+\"'\";\n\t\t\tM_strSQLQRY += \" and lt_lotno = '\"+strLOTNO+\"'\";\n\t\t\tM_strSQLQRY += \" and lt_rclno = '\"+strRCLNO+\"'\";\n\t\t\t//System.out.println(\"select prltmst :\"+M_strSQLQRY);\n\t\t\tif(cl_dat.getRECCNT(M_strSQLQRY) > 0)\n\t\t\t\tupdLTMST();\n\t\t\telse\n\t\t\t{\n\t\t\t\tsetMSG(\"Record does not exist in PR_LTMST\",'E');\n\t\t\t\t//cl_dat.M_flgLCUPD_pbst = false;\n\t\t\t}\n\t\t}catch(Exception L_EX)\n\t\t{\n\t\t\tsetMSG(L_EX,\"chkLTMST\");\n\t\t}\n\t}", "private static void checkTouchpoint(DBConnection dbConnection,int id, String sshUserName, String sshUserPass, String server, boolean status) throws JSchException, IOException, InterruptedException{\n\t\t\n\t\tString owner= \"\";\t\t\n\t\tString sw = \"\";\n\t\tString swVersion= \"\";\n\t\tString os= \"\";\n\t\tString oracle= \"\";\n\t\tString jboss=\"\";\n\t\tString java=\"\";\n\t\t\t\n\t\t\n\n\t\tSSHClient tpHostSSHClient = new SSHClient();\n\t\t\n\t\tif (status){\n\t\n\t\t\t// Connect to the server\n\t\t\ttpHostSSHClient.connect(sshUserName, sshUserPass, server, SSH_PORT);\n\t\t\t\n\t\t\t//OS Version\n\t\t\tint exitCode = tpHostSSHClient.send(\"uname -a\");\n\t\t\tAssert.assertFalse(exitCode != 0, \"uname -a failed with exit code: \" + exitCode);\n\t\t\tos = ServerStatusUtils.parseOS(tpHostSSHClient.getLastResponse());\n\t\t\t\n\t\t\t//Check if Assure is installed\n\t\t\ttpHostSSHClient.send(\"cat /etc/passwd | grep assure | awk -F: '{ print $1 }'\");\n\t\t\tAssert.assertFalse(exitCode != 0, \"cat /etc/passwd | grep assure | awk -F: '{ print $1 }' a failed with exit code: \" + exitCode);\n\t\t\tsw=ServerStatusUtils.swInstalled(tpHostSSHClient.getLastResponse());\n\t\t\t\n\t\t\t//Assure Version\n\t\t\ttpHostSSHClient.send(\"assure version\");\n\t\t\tAssert.assertFalse(exitCode != 0, \"assure version failed with exit code: \" + exitCode);\n\t\t\tswVersion=ServerStatusUtils.parseAssureVersion(tpHostSSHClient.getLastResponse());\n\t\t\t\n\t\t\t//Owner\n\t\t\ttpHostSSHClient.send(\"cat /etc/motd |grep Current |cut -d \\\\[ -f 2 |cut -d \\\\] -f 1\");\n\t\t\tAssert.assertFalse(exitCode != 0, \"Check for owner failed with exit code: \" + exitCode);\n\t\t\towner=ServerStatusUtils.parseOwner(tpHostSSHClient.getLastResponse());\n\t\t\t\n\t\t\t//Oracle\n\t\t\ttpHostSSHClient.send(\"$ORACLE_HOME/bin/sqlplus -v |grep SQL\");\n\t\t\tAssert.assertFalse(exitCode != 0, \"Check for Oracle Version failed with exit code: \" + exitCode);\n\t\t\toracle=ServerStatusUtils.parseOracle(tpHostSSHClient.getLastResponse());\n\t\t\t\n\t\t\t//Jboss\n\t\t\ttpHostSSHClient.send(\" ls /opt/arantech/current/ |grep jboss- |grep -v client\");\n\t\t\tAssert.assertFalse(exitCode != 0, \"Check for Jboss failed with exit code: \" + exitCode);\n\t\t\tjboss=ServerStatusUtils.parseJboss(tpHostSSHClient.getLastResponse());\n\t\t\t\n\t\t\t//Java\n\t\t\ttpHostSSHClient.send(\"java -version\");\n\t\t\tAssert.assertFalse(exitCode != 0, \"Check for Oracle Version failed with exit code: \" + exitCode);\n\t\t\tjava=ServerStatusUtils.parseJava(tpHostSSHClient.getLastResponse());\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tServerStatusUtils.statusWriter(dbConnection, id, server, (status)?\"alive\":\"stopped\", os, sw, swVersion, owner, oracle, jboss, java);\n\n\t}", "@Test\n public void getStationUsesStationDaoToRetrieveStationById()\n {\n StationDao mockStationDao = mock(StationDao.class);\n LundergroundFacade facade = new LundergroundFacade();\n facade.setStationDao(mockStationDao);\n\n facade.getStation(SOME_ID);\n\n verify(mockStationDao).getStation(anyLong());\n }", "private void checkConnectivity() {\n ConnectivityManager conMan = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo.State mobile = conMan.getNetworkInfo(0).getState();\n NetworkInfo.State wifi = conMan.getNetworkInfo(1).getState();\n if (!(mobile == NetworkInfo.State.CONNECTED || wifi == NetworkInfo.State.CONNECTED)) {\n Toast.makeText(context, R.string.data_error_message, Toast.LENGTH_LONG).show();\n }\n }", "public ArrayList<Station> searchTrainTimes ( String stationName,int deparH, String befAft) {\r\n ArrayList<Station> result = new ArrayList<>();\r\n \r\n Station station;\r\n String s_name;\r\n int hh;\r\n int mm;\r\n \r\n AdditionalTestData();\r\n \r\n Iterator<Station> iterator = stationList.iterator();\r\n \r\n // record start time\r\n long sTime = System.currentTimeMillis();\r\n while (iterator.hasNext()) {\r\n \r\n station = iterator.next();\r\n s_name = station.getStationName();\r\n hh = station.getDepartureHour();\r\n mm = station.getDepartureMinute();\r\n \r\n System.out.println(\"Searching..........: \" + stationName + \"----\" + deparH);\r\n \r\n if( befAft.compareTo( \"After\" ) == 0) {\r\n if( s_name.compareTo( stationName ) == 0 && hh >= deparH )\r\n result.add(station);\r\n }\r\n \r\n if( befAft.compareTo( \"Before\" ) == 0) {\r\n if( s_name.compareTo( stationName ) == 0 && hh <= deparH)\r\n result.add(station);\r\n }\r\n }\r\n \r\n long eTime = System.currentTimeMillis();\r\n \r\n long timeNeeded = eTime - sTime;\r\n System.out.println(\"Time needed:\" + timeNeeded);\r\n \r\n return result; \r\n }", "private ObStation getStationInfo(String icao) {\n ObStation station = null;\n ObStationDao dao = new ObStationDao();\n if (dao != null) {\n try {\n station = dao.queryByIcao(icao);\n } catch (Exception e) {\n statusHandler.handle(Priority.ERROR, icao\n + \" -Could not create datauri in getStationInfo() \", e);\n }\n }\n\n return station;\n }", "private boolean checkTravel(int month, int day) throws SQLException {\n\t\tcheckTravelStatement.clearParameters();\n\t\tcheckTravelStatement.setInt(1, month);\n\t\tcheckTravelStatement.setInt(2, day);\n\t\tcheckTravelStatement.setString(3, this.username);\n\t\tResultSet result = checkTravelStatement.executeQuery();\n\t\tresult.next();\n\t\tboolean out = result.getInt(1) == 1;\n\t\tif (DEBUG) {\n\t\t\tSystem.out.println(\"checkTravel: \"+result.getInt(1)+\"\\n\");\n\t\t}\n\t\tresult.close();\n\t\treturn out;\n\t}", "public abstract void selfCheck(MCTSConfig config);", "@Override\n public boolean onMarkerClick(Marker marker) {\n\n marker.showInfoWindow();\n marker.setTag(true);\n totalCounter = totalCounter + 1;\n\n // If both stations have been selected save destination station id to array\n\n if ((totalCounter % 2) == 0 ) {\n\n // Iterate current stations and save its id to array\n\n for (int i = 0; i < currentStations.size(); i++) {\n if (currentStations.get(i).getName().equals(marker.getTitle())) {\n stationIDs[1] = currentStations.get(i).getId();\n }\n }\n\n // If destination station is the same as start station, prompt user to select a different station\n\n if (stationIDs[0] == stationIDs[1]) {\n\n stationIDs[1] = -1;\n totalCounter = totalCounter - 1;\n Helpers.showToast(getApplicationContext(), \"Select a different station for destination\");\n\n } else {\n infoMessage.setText(\"Destination: \" + marker.getTitle());\n }\n\n } else {\n\n // If number of stations selected is not an even number, mark their tag with false value\n\n stationIDs[0] = -1;\n stationIDs[1] = -1;\n\n for (Marker currentMarker : mMarkerArray) {\n marker.hideInfoWindow();\n currentMarker.setTag(false);\n }\n\n // Iterate current stations and save its id to array\n\n for (int i = 0; i < currentStations.size(); i++) {\n if (currentStations.get(i).getName().equals(marker.getTitle())) {\n stationIDs[0] = currentStations.get(i).getId();\n }\n }\n marker.showInfoWindow();\n marker.setTag(true);\n infoMessage.setText(\"From station: \" + marker.getTitle());\n }\n return true;\n }", "public abstract void checkingCommand(String nameOfCommand, ArrayList<Unit> units);", "@Test\n public void getStationUsesStationDaoToRetrieveStationByName()\n {\n StationDao mockStationDao = mock(StationDao.class);\n LundergroundFacade facade = new LundergroundFacade();\n facade.setStationDao(mockStationDao);\n\n facade.getStation(SOME_NAME);\n\n verify(mockStationDao).getStation(anyString());\n }", "int gas_station() {\n int sol = 0; // numar minim de opriri\n int fuel = m; // fuel este cantitatea curenta de combustibil din rezervor (a.k.a cat a ramas)\n\n for (int i = 1; i <= n; ++i) {\n fuel -= (dist[i] - dist[i - 1]); // ma deplasez de la locatia anterioara la cea curenta\n // intotdeauna cand ajung intr-o benzinarie ma asigur am suficient\n // combustibil sa ajung la urmatoarea - initial pot sa ajung de la A la dist[1]\n\n // daca nu am ajuns in ultima benziarie\n // verifica daca trebuie sa reincarc (rezervor gol sau cantitate insuficienta pentru a ajunge la benzinaria urmatoare)\n if (i < n && (fuel == 0 || dist[i+1] - dist[i] > fuel)) {\n ++sol;\n fuel = m;\n }\n }\n\n return sol;\n }", "public String getStationld() {\n return stationld;\n }", "@Override\n public void onChanged(@Nullable Station newStation) {\n if (mThisStation != null && newStation!= null &&\n mThisStation.getStreamUri().equals(newStation.getStreamUri())) {\n\n String newName = newStation.getStationName();\n long newImageSize = newStation.getStationImageSize();\n String newMetaData = newStation.getMetadata();\n\n String oldName = mThisStation.getStationName();\n long oldImageSize = mThisStation.getStationImageSize();\n String oldMetaData = mThisStation.getMetadata();\n\n // CASE: NAME\n if (!(newName.equals(oldName))) {\n updateStationNameView(newStation);\n }\n // CASE: IMAGE\n else if (newImageSize != oldImageSize) {\n updateStationImageView(newStation);\n }\n // CASE: METADATA\n else if (!(newMetaData.equals(oldMetaData))) {\n updateStationMetadataView(newStation);\n }\n // CASE: PLAYBACK STATE\n if (mPlaybackState != newStation.getPlaybackState()) {\n mPlaybackState = newStation.getPlaybackState();\n changeVisualState(newStation);\n }\n\n // update this station\n mThisStation = newStation;\n\n }\n }", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\r\n\t\tprivate void checkJobInstanceStatus() {\r\n \t\r\n \tString checkId = UUID.randomUUID().toString();\r\n \t\r\n \tlogger.info(checkId + \", [LivingTaskManager]: start checkJobInstanceStatus\"\r\n \t\t\t+ \", mapSize:\" + livingJobInstanceClientMachineMap.size() \r\n \t\t\t+ \", keySet:\" + LoggerUtil.displayJobInstanceId(livingJobInstanceClientMachineMap.keySet()));\r\n \t\r\n \tint checkAmount = 0;\r\n \t\r\n \tIterator iterator = livingJobInstanceClientMachineMap.entrySet().iterator();\r\n \t\twhile(iterator.hasNext()) { \r\n \t\t\tMap.Entry entry = (Map.Entry)iterator.next();\r\n \t\t\tServerJobInstanceMapping.JobInstanceKey key = (ServerJobInstanceMapping.JobInstanceKey)entry.getKey();\r\n \t\t\t\r\n \t\t\tList<RemoteMachine> machineList = (List<RemoteMachine>)entry.getValue();\r\n \t\t\t\r\n \t\t\tif(CollectionUtils.isEmpty(machineList)) {\r\n \t\t\t\tlogger.info(checkId + \", [LivingTaskManager]: checkJobInstanceStatus machineList isEmpty\"\r\n \t \t\t\t+ \", mapSize:\" + livingJobInstanceClientMachineMap.size() + \", key:\" + key);\r\n \t\t\t\tcontinue ;\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tsynchronized(machineList) {\r\n \t\t\t\tIterator<RemoteMachine> iteratorMachineList = machineList.iterator();\r\n \t\t\t\twhile(iteratorMachineList.hasNext()) {\r\n \t\t\t\t\t\r\n \t\t\t\t\tRemoteMachine client = iteratorMachineList.next();\r\n \t\t\t\t\t\r\n \t\t\t\t\tResult<String> checkResult = null;\r\n try {\r\n client.setTimeout(serverConfig.getHeartBeatCheckTimeout());\r\n InvocationContext.setRemoteMachine(client);\r\n checkResult = clientService.heartBeatCheckJobInstance(key.getJobType(), key.getJobId(), key.getJobInstanceId());\r\n handCheckResult(key, checkResult, client);\r\n } catch (Throwable e) {\r\n logger.error(\"[LivingTaskManager]: task checkJobInstanceStatus error, key:\" + key, e);\r\n handCheckResult(key, null, client);\r\n } finally {\r\n \tcheckAmount ++;\r\n }\r\n \t\t\t\t\t\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\t\r\n \t\t}\r\n \t\t\r\n \t\tlogger.info(checkId + \", [LivingTaskManager]: finish checkJobInstanceStatus\"\r\n \t\t\t\t+ \", mapSize:\" + livingJobInstanceClientMachineMap.size() + \", checkAmount:\" + checkAmount);\r\n }", "@Test\n\tpublic void circleLeastStationTest() {\n\t\tList<String> newTrain = new ArrayList<String>();\n\t\tnewTrain.add(\"1\");\n\t\tnewTrain.add(\"4\");\n\t\tList<TimeBetweenStop> timeBetweenStops = new ArrayList<TimeBetweenStop>();\n\t\tTimeBetweenStop timeBetweenStop = new TimeBetweenStop(\"1\", \"4\", 20);\n\t\ttimeBetweenStops.add(timeBetweenStop);\n\t\tsubwaySystem.addTrainLine(newTrain, \"B\", timeBetweenStops);\n\t\t\n\t\tList<String> answer = new ArrayList<String>();\n\t\tanswer.add(\"1\");\n\t\tanswer.add(\"2\");\n\t\tanswer.add(\"3\");\n\t\tanswer.add(\"4\");\n\t\tTrip trip = subwaySystem.takeTrain(\"1\", \"4\");\n\t\tAssert.assertTrue(trip.isTripFound());\n\t\tAssert.assertEquals(9, trip.getDuration());\n\t\tAssert.assertTrue(TestHelper.checkAnswer(answer, trip.getStops()));\n\n\t\t//Add a new train, least time\n\t\tnewTrain = new ArrayList<String>();\n\t\tnewTrain.add(\"1\");\n\t\tnewTrain.add(\"4\");\n\t\ttimeBetweenStops = new ArrayList<TimeBetweenStop>();\n\t\ttimeBetweenStop = new TimeBetweenStop(\"1\", \"4\", 8);\n\t\ttimeBetweenStops.add(timeBetweenStop);\n\t\tsubwaySystem.addTrainLine(newTrain, \"C\", timeBetweenStops);\n\n\t\tanswer = new ArrayList<String>();\n\t\tanswer.add(\"1\");\n\t\tanswer.add(\"4\");\n\t\ttrip = subwaySystem.takeTrain(\"1\", \"4\");\n\t\tAssert.assertTrue(trip.isTripFound());\n\t\tAssert.assertEquals(8, trip.getDuration());\n\t\tAssert.assertTrue(TestHelper.checkAnswer(answer, trip.getStops()));\n\n\t\t//Add a new train, more stop but even less time\n\t\tnewTrain = new ArrayList<String>();\n\t\tnewTrain.add(\"2\");\n\t\tnewTrain.add(\"5\");\n\t\tnewTrain.add(\"6\");\n\t\tnewTrain.add(\"4\");\n\t\ttimeBetweenStops = new ArrayList<TimeBetweenStop>();\n\t\ttimeBetweenStop = new TimeBetweenStop(\"2\", \"5\", 2);\n\t\ttimeBetweenStops.add(timeBetweenStop);\n\t\ttimeBetweenStop = new TimeBetweenStop(\"5\", \"6\", 1);\n\t\ttimeBetweenStops.add(timeBetweenStop);\n\t\ttimeBetweenStop = new TimeBetweenStop(\"6\", \"4\", 2);\n\t\ttimeBetweenStops.add(timeBetweenStop);\n\t\tsubwaySystem.addTrainLine(newTrain, \"D\", timeBetweenStops);\n\n\t\tanswer = new ArrayList<String>();\n\t\tanswer.add(\"1\");\n\t\tanswer.add(\"2\");\n\t\tanswer.add(\"5\");\n\t\tanswer.add(\"6\");\n\t\tanswer.add(\"4\");\n\t\ttrip = subwaySystem.takeTrain(\"1\", \"4\");\n\t\tAssert.assertTrue(trip.isTripFound());\n\t\tAssert.assertEquals(7, trip.getDuration());\n\t\tAssert.assertTrue(TestHelper.checkAnswer(answer, trip.getStops()));\n\n\t\t//Add a new train, less time than above\n\t\tnewTrain = new ArrayList<String>();\n\t\tnewTrain.add(\"7\");\n\t\tnewTrain.add(\"2\");\n\t\tnewTrain.add(\"3\");\n\t\tnewTrain.add(\"4\");\n\t\ttimeBetweenStops = new ArrayList<TimeBetweenStop>();\n\t\ttimeBetweenStop = new TimeBetweenStop(\"7\", \"2\", 1);\n\t\ttimeBetweenStops.add(timeBetweenStop);\n\t\ttimeBetweenStop = new TimeBetweenStop(\"2\", \"3\", 3);\n\t\ttimeBetweenStops.add(timeBetweenStop);\n\t\ttimeBetweenStop = new TimeBetweenStop(\"3\", \"4\", 1);\n\t\ttimeBetweenStops.add(timeBetweenStop);\n\t\tsubwaySystem.addTrainLine(newTrain, \"E\", timeBetweenStops);\n\n\t\tanswer = new ArrayList<String>();\n\t\tanswer.add(\"1\");\n\t\tanswer.add(\"2\");\n\t\tanswer.add(\"3\");\n\t\tanswer.add(\"4\");\n\t\ttrip = subwaySystem.takeTrain(\"1\", \"4\");\n\t\tAssert.assertTrue(trip.isTripFound());\n\t\tAssert.assertEquals(6, trip.getDuration());\n\t\tAssert.assertTrue(TestHelper.checkAnswer(answer, trip.getStops()));\n\t}", "private void checkin() {\r\n\t\tif (admittedinterns < 20) {\r\n\t\t\tDoctorManage();\r\n\t\t\taddinterns(1);\r\n\t\t\tScreentocharge();\r\n\t\t} else {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Por el dia no se admiten mas pacientes\");\r\n\t\t\t\r\n\t\t}\r\n\t}", "public String findManagerGasStation()\r\n\t{\r\n\t\tString gasStationS = \"none\";\r\n\t\tResultSet rs = null;\r\n\t\tArrayList<String> crr = new ArrayList<>();\r\n\t\t\r\n\t\tString selectQuery = \"select gasStation FROM employees where username = ?\";\r\n\t\tcrr.add(marketingManagerUsername);\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tClientUI.chat.accept(\"\");\r\n\t\t\trs = ChatClient.selectWithParameters(selectQuery, crr);\r\n\t\t\t\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tgasStationS = rs.getString(\"gasStation\");\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error : MarketingRepUpdateFromEmployee : client server problem\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn gasStationS;\r\n\t}", "@Test\n public void setStationDaoSetsStationDaoToUseWhenRetrievingStationDetails()\n {\n StationDao mockStationDao = mock(StationDao.class);\n LundergroundFacade facade = new LundergroundFacade();\n\n facade.setStationDao(mockStationDao);\n facade.getAllStations();\n\n verify(mockStationDao).retrieveAll();\n }", "TTC getSTART_STATION() {\n return START_STATION;\n }", "public void receivedDataFromStation(int station, String data) {}", "public void signalCheck() {\n if(moves.length == 0){\n setiHaveCheck(false);\n pathToKing = null;\n rangeOfCheck = null;\n }\n for(int i = 0; i < moves.length; i++) {\n Space tmp = Board.fetchSpace(moves[i]);\n if(tmp.getPiece() != null) {\n if(this.getType().charAt(0) != tmp.getPiece().getType().charAt(0) && tmp.getPiece().getType().charAt(1) == 'K') {\n setiHaveCheck(true);\n calcPathToKing(tmp);\n break;\n }\n else {\n setiHaveCheck(false);\n pathToKing = null;\n rangeOfCheck = null;\n }\n }\n else {\n setiHaveCheck(false);\n pathToKing = null;\n rangeOfCheck = null;\n }\n }\n }", "private void checkWifi() {\n\t\tConnectivityManager manger = (ConnectivityManager) context\n\t\t\t\t.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\tNetworkInfo info = manger.getActiveNetworkInfo();\n\t\tboolean flag = (info != null && info.isConnected());\n\t\tif (!flag) {\n\t\t\tToast.makeText(context, R.string.communication, Toast.LENGTH_LONG)\n\t\t\t\t\t.show();\n\t\t\tnew Handler().postDelayed(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tcheckWifi();\n\t\t\t\t}\n\t\t\t}, 4000);\n\t\t} else {\n\t\t\tRegisterActivity.REGISTER_FLAG = true;\n\t\t}\n\t}", "public void placePowerStation() {\n this.powerStation = true;\n\n }", "private Observer<Station> createStationObserver() {\n return new Observer<Station>() {\n @Override\n public void onChanged(@Nullable Station newStation) {\n\n // check if this station parameters have changed\n if (mThisStation != null && newStation!= null &&\n mThisStation.getStreamUri().equals(newStation.getStreamUri())) {\n\n String newName = newStation.getStationName();\n long newImageSize = newStation.getStationImageSize();\n String newMetaData = newStation.getMetadata();\n\n String oldName = mThisStation.getStationName();\n long oldImageSize = mThisStation.getStationImageSize();\n String oldMetaData = mThisStation.getMetadata();\n\n // CASE: NAME\n if (!(newName.equals(oldName))) {\n updateStationNameView(newStation);\n }\n // CASE: IMAGE\n else if (newImageSize != oldImageSize) {\n updateStationImageView(newStation);\n }\n // CASE: METADATA\n else if (!(newMetaData.equals(oldMetaData))) {\n updateStationMetadataView(newStation);\n }\n // CASE: PLAYBACK STATE\n if (mPlaybackState != newStation.getPlaybackState()) {\n mPlaybackState = newStation.getPlaybackState();\n changeVisualState(newStation);\n }\n\n // update this station\n mThisStation = newStation;\n\n }\n }\n };\n }", "void openSavedStationList();", "public void checkRecipe() {\n \t\tIStationRecipe previous = currentRecipe;\n \t\tif ((currentRecipe == null) || !currentRecipe.matches(crafting)) {\n \t\t\tcurrentRecipe = BetterStorageCrafting.findMatchingStationRecipe(crafting);\n \t\t\tif (currentRecipe == null)\n \t\t\t\tcurrentRecipe = VanillaStationRecipe.findVanillaRecipe(this);\n \t\t}\n \t\tif ((previous != currentRecipe) || !recipeOutputMatches()) {\n \t\t\tprogress = 0;\n \t\t\tcraftingTime = ((currentRecipe != null) ? currentRecipe.getCraftingTime(crafting) : 0);\n \t\t\texperience = ((currentRecipe != null) ? currentRecipe.getExperienceDisplay(crafting) : 0);\n \t\t\tif (!outputIsReal)\n \t\t\t\tfor (int i = 0; i < output.length; i++)\n \t\t\t\t\toutput[i] = null;\n \t\t}\n \t\tArrays.fill(requiredInput, null);\n \t\tif (currentRecipe != null)\n \t\t\tcurrentRecipe.getCraftRequirements(crafting, requiredInput);\n \t\tupdateLastOutput();\n \t}", "public abstract boolean sensorFound();", "@Test\n public void updateStationUsesStationNameToUpdateStation()\n {\n StationDao mockStationDao = mock(StationDao.class);\n LundergroundFacade facade = new LundergroundFacade();\n facade.setStationDao(mockStationDao);\n ArgumentCaptor<Station> args = ArgumentCaptor.forClass(Station.class);\n\n facade.updateStation(SOME_ID, SOME_NAME, SOME_ZONE);\n\n verify(mockStationDao).updateStation(args.capture());\n assertThat(args.getValue()\n .getName(), equalTo(SOME_NAME));\n }", "public boolean getLocationNow(AppCompatActivity activity) {\n boolean connected;\n ActivityCompat.requestPermissions(activity, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, REQUEST_LOCATION);\n mLocationManager = (LocationManager) activity.getSystemService(Context.LOCATION_SERVICE);\n\n if (!mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {\n buildAlertMessageNoGps(activity);\n connected = false;\n } else if (mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {\n getLocation(activity);\n connected = true; }\n else {connected = false;}\n return connected;\n }", "void xsetStation(org.landxml.schema.landXML11.Station station);", "@Test\n public void updateStationUsesStationIdToUpdateStation()\n {\n StationDao mockStationDao = mock(StationDao.class);\n LundergroundFacade facade = new LundergroundFacade();\n facade.setStationDao(mockStationDao);\n ArgumentCaptor<Station> args = ArgumentCaptor.forClass(Station.class);\n\n facade.updateStation(SOME_ID, SOME_NAME, SOME_ZONE);\n\n verify(mockStationDao).updateStation(args.capture());\n assertThat(args.getValue()\n .getId(), equalTo(SOME_ID));\n }", "public void buildStation(Station station) {\n stations.add(station);\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"Station: \"+ name+ \", Adresse: \" + address + \", Wiki: Velos: \" + UVelosDispos + \", Places: \"\n\t\t\t\t+ UPlacesDispos + \", CB: \" + ((banking) ? \"oui\" : \"non\" ) + \", bonus: \" + ((bonus) ? \"oui\" : \"non\" )\n\t\t\t\t+ \", Etat: \" + ((status) ? \"OK\" : \"Fermé\" ) +\", Places libres: \" + available_bike_stands\n\t\t\t\t+ \", Velos disponibles: \" + available_bikes;\n\t}", "private void checkLocationConnection() {\n LocationManager locationManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);\n String message = \"\";\n\n // prepare output message to indicate whether location services are enabled\n try {\n message = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER) ?\n \"Location Services are enabled!\" :\n \"Location Services are not enabled!\";\n } catch(Exception e) { e.printStackTrace(); }\n\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }", "public String getFromStationName();", "@Override\r\n public boolean checkSpaces(ParkingSpace[] parkingSpaces, CarParkPanel panel)\r\n { \r\n \r\n //sets i = 10 to enable first set of bays to be searched\r\n int i = 10;\r\n boolean found = false;\r\n \r\n //try and find a free space from bays 11-15\r\n if(this.searchElevenToFifteen(found, i, parkingSpaces, panel) == true)\r\n {\r\n found = true;\r\n }\r\n\r\n \r\n //if not found then searches bays 1-5\r\n if(found ==false)\r\n {\r\n //sets i = 1 to enable the next set of bays to be searched\r\n i = 0;\r\n if(this.searchOneToFive(found, i, parkingSpaces, panel) == true)\r\n {\r\n found = true;\r\n }\r\n }\r\n \r\n //if still not found, then search bays 6-10\r\n if(found==false)\r\n { \r\n //sets i = 6 to enable next set of bays to be searched\r\n i=5;\r\n if(this.searchSixToTen(found, i, parkingSpaces, panel) == true)\r\n {\r\n found = true;\r\n }\r\n }\r\n \r\n if(found == false) //displays the result if the search failed.\r\n {\r\n this.displayResult(found, i , panel);\r\n }\r\n \r\n return found;\r\n \r\n }", "public void setEnabledAllStationsWithPeople(){\n Station station;\n for(JCheckBox checkBox : checkbox2StationName.keySet()){\n String stationName = checkbox2StationName.get(checkBox);\n if(stationName.equals(\"main_station\")){\n station = city.getMainStation();\n }\n else{\n station = city.getBusStations().get(stationName);\n }\n\n if(checkBox.isSelected() && !city.existsBusThatStopsAtStation(station)){\n checkBox.setEnabled(false);\n }\n else if(city.existsBusThatStopsAtStation(station)){\n checkBox.setEnabled(true);\n checkBox.setSelected(false);\n }\n }\n }", "public StnInfoAPIParser(Element stnBase, StationInfo currentStation) {\r\n\t\t//Now for the more specialised ones\r\n\t\tElement station = stnBase.getChild(\"station\");\r\n\t\t\r\n\t\t//<station/>\r\n\t\tstation.setElementListener(StationListener);\r\n\t\tstation.getChild(\"name\").setEndTextElementListener(NameEndListener);\r\n\t\tstation.getChild(\"abbr\").setEndTextElementListener(AbbrEndListener);\r\n\t\tstation.getChild(\"gtfs_latitude\").setEndTextElementListener(LatEndListener);\r\n\t\tstation.getChild(\"gtfs_longitude\").setEndTextElementListener(LongEndListener);\r\n\t\t\r\n\t\tstation.getChild(\"address\").setEndTextElementListener(StreetListener);\r\n\t\tstation.getChild(\"city\").setEndTextElementListener(CityListener);\r\n\t\tstation.getChild(\"county\").setEndTextElementListener(CountyListener);\r\n\t\tstation.getChild(\"state\").setEndTextElementListener(StateListener);\r\n\t\tstation.getChild(\"zipcode\").setEndTextElementListener(ZipListener);\r\n\t\t\r\n\t\t//<station><north_routes/></station>\r\n\t\tElement nroutes = station.getChild(\"north_routes\");\r\n\t\tnroutes.setElementListener(NRoutesListener);\r\n\t\tnroutes.getChild(\"route\").setEndTextElementListener(RouteListener);\r\n\t\t//<station><south_routes/></station>\r\n\t\tElement sroutes = station.getChild(\"south_routes\");\r\n\t\tsroutes.setElementListener(SRoutesListener);\r\n\t\tsroutes.getChild(\"route\").setEndTextElementListener(RouteListener);\r\n\r\n\t\t//<station><north_platforms/></station>\r\n\t\tElement nplats = station.getChild(\"north_platforms\");\r\n\t\tnplats.setElementListener(NPlatsListener);\r\n\t\tnplats.getChild(\"platform\").setEndTextElementListener(PlatformListener);\r\n\t\t//<station><south_platforms/></station>\r\n\t\tElement splats = station.getChild(\"south_platforms\");\r\n\t\tsplats.setElementListener(SPlatsListener);\r\n\t\tsplats.getChild(\"platform\").setEndTextElementListener(PlatformListener);\r\n\r\n\t\tstation.getChild(\"platform_info\").setEndTextElementListener(PlatInfoListener);\r\n\t\t\r\n\t\t//Misc Info\r\n\t\tstation.getChild(\"intro\").setEndTextElementListener(IntroListener);\r\n\t\tstation.getChild(\"cross_street\").setEndTextElementListener(CrossStreetListener);\r\n\t\tstation.getChild(\"food\").setEndTextElementListener(FoodListener);\r\n\t\tstation.getChild(\"shopping\").setEndTextElementListener(ShoppingListener);\r\n\t\tstation.getChild(\"attraction\").setEndTextElementListener(AttractionListener);\r\n\t\tstation.getChild(\"link\").setEndTextElementListener(LinkListener);\r\n\t}", "@Test\n public void getStationPassesStationNameToStationDao()\n {\n StationDao mockStationDao = mock(StationDao.class);\n LundergroundFacade facade = new LundergroundFacade();\n facade.setStationDao(mockStationDao);\n\n facade.getStation(SOME_NAME);\n\n verify(mockStationDao).getStation(eq(SOME_NAME));\n }", "@Test\n public void getStationPassesStationIdToStationDao()\n {\n StationDao mockStationDao = mock(StationDao.class);\n LundergroundFacade facade = new LundergroundFacade();\n facade.setStationDao(mockStationDao);\n\n facade.getStation(SOME_ID);\n\n verify(mockStationDao).getStation(eq(SOME_ID));\n }", "public boolean checkSystem() {\n print(\"Testing ELEVATOR.--------------------------------------------------\");\n final double kCurrentThres = 0.5;\n if(getPosition() < 0){\n zeroPosition();\n }\n spx.set(ControlMode.PercentOutput, -0.1);\n srx.set(ControlMode.PercentOutput, -0.1);\n Timer.delay(0.2);\n srx.set(ControlMode.PercentOutput, 0.0);\n spx.set(ControlMode.PercentOutput, 0.0);\n Timer.delay(0.1);\n; srx.setNeutralMode(NeutralMode.Coast);\n spx.setNeutralMode(NeutralMode.Coast);\n\n double testSpeed = .75;\n double testDownSpeed = -0.05;\n double testUpTime = 1;\n\n\n if(getPosition() < 0){\n zeroPosition();\n }\n // test climber srx\n final double SRXintialEncoderPos = Math.abs(getPosition());\n srx.set(ControlMode.PercentOutput, testSpeed);\n Timer.delay(testUpTime);\n srx.set(ControlMode.PercentOutput, 0.0);\n final double currentSRX = RobotContainer.PDP.getCurrent(Constants.ELEVATOR_SRX_PDP);\n final double positionSRX = getPosition();\n //srx.set(ControlMode.PercentOutput, testDownSpeed);\n //Timer.delay(0.1);\n \n Timer.delay(2.0);\n\n if(getPosition() < 0){\n zeroPosition();\n }\n\n // Test climber spx\n final double SPXintialEncoderPos = Math.abs(getPosition());\n spx.set(ControlMode.PercentOutput, testSpeed);\n Timer.delay(testUpTime);\n final double currentSPX = RobotContainer.PDP.getCurrent(Constants.ELEVATOR_SPX_PDP);\n final double positionSPX = getPosition();\n spx.set(ControlMode.PercentOutput, testDownSpeed);\n Timer.delay(0.1);\n spx.set(ControlMode.PercentOutput, 0.0);\n\n Timer.delay(1.0);\n //Reset Motors\n spx.follow(srx); \n srx.setNeutralMode(NeutralMode.Brake);\n spx.setNeutralMode(NeutralMode.Brake);\n\n print(\"ELEVATOR SRX CURRENT: \" + currentSRX + \" SPX CURRENT: \" + currentSPX);\n print(\"ELEVATOR SRX ENCODER INIT POS: \" + SRXintialEncoderPos + \" END POS: \" + positionSRX);\n print(\"ELEVATOR SPX ENCODER INIT POS: \" + SRXintialEncoderPos + \" END POS: \" + positionSPX);\n\n boolean failure = false;\n\n print(\"!%!%#$!%@ - WRITE A TEST FOR THE ELEVATOR LIMIT SWITCHES!!!!!!!!!\");\n\n if (currentSRX < kCurrentThres) {\n failure = true;\n print(\"!!!!!!!!!!!!!!!!! ELEVATOR SRX Current Low !!!!!!!!!!!!!!!!!\");\n }\n\n if (currentSPX < kCurrentThres) {\n failure = true;\n print(\"!!!!!!!!!!!!!!!! ELEVATOR SPX Current Low !!!!!!!!!!!!!!!!!!!\");\n }\n\n if (!Util.allCloseTo(Arrays.asList(currentSRX, currentSPX), currentSRX, 5.0)) {\n failure = true;\n print(\"!!!!!!!!!!!!!!!! ELEVATOR Currents Different !!!!!!!!!!!!!!!!!\");\n }\n\n if (Math.abs(positionSRX - SRXintialEncoderPos) <= 0){\n failure = true;\n print(\"!!!!!!!!!!!! ELEVATOR Encoder didn't change position SRX !!!!!!!!!!!!!\");\n }\n\n if (Math.abs(positionSPX - SPXintialEncoderPos) <= 0){\n failure = true;\n print(\"!!!!!!!!!!!! ELEVATOR Encoder didn't change position SPX !!!!!!!!!!!!!\");\n }\n\n return failure;\n }", "public synchronized void take(Station s, Bicycle b, Bank_Card bank_card) throws Exception{\r\n\t\tif(!s.equals(this.last_routine.getSource())){System.out.println(\"CHOOSE THE STATION OF YOUR ROUTINE\");throw new Exception(\"WRONG STATION\");}\r\n\t\tif(this.bicycle!=null){System.out.println(\"Already Got a Bicycle\");throw new Exception(\"ALREADY GOT A BIKE\");}\r\n\t\ts.remove_user(this);\r\n\t\tif(!s.isState()){System.out.println(\"offline - out of order!\");throw new Exception(\"OFFLINE\");}\r\n\t\tthis.setPosition(s.getPosition());\r\n\t\tif(b instanceof Bicycle_Mech){\r\n\t\t\tif(s.count_mech() == 0){System.out.println(\"no more mech bicycles available\");}\r\n\t\t\telse{\r\n\t\t\t\tfor(Map.Entry<Slot,Bicycle_Mech> me:s.getPlaces_mech().entrySet()){\r\n\t\t\t\t\tif(me.getValue()!=null){\r\n\t\t\t\t\t\tthis.bicycle = me.getValue();s.getPlaces_mech().put(me.getKey(), null);\r\n\t\t\t\t\t\ts.setRent_times(s.getRent_times()+1);s.notify_users();\r\n\t\t\t\t\t\tthis.bicycle.setNumber_rides(this.bicycle.getNumber_rides()+1);\r\n\t\t\t\t\t\tif(bank_card.getOwner().equals(this)){this.bicycle.setBank_card_to_use(bank_card);}\r\n\t\t\t\t\t\tif(!bank_card.getOwner().equals(this)){System.out.println(\"choose a right bank card\");throw new Exception(\"WRONG BANK CARD USER\");}\t\r\n\t\t\t\t\t\tthis.bicycle.setUser(this);\r\n\t\t\t\t\t\tthis.setPosition(s.getPosition());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(b instanceof Bicycle_Elec){\r\n\t\t\tif(s.count_elec() == 0){System.out.println(\"no more elec bicycles available\");}\r\n\t\t\telse{\r\n\t\t\t\tfor(Map.Entry<Slot,Bicycle_Elec> me:s.getPlaces_elec().entrySet()){\r\n\t\t\t\t\tif(me.getValue()!=null){\r\n\t\t\t\t\t\tthis.bicycle = me.getValue();s.getPlaces_elec().put(me.getKey(), null);\r\n\t\t\t\t\t\ts.setRent_times(s.getRent_times()+1);s.notify_users();\r\n\t\t\t\t\t\tthis.bicycle.setNumber_rides(this.bicycle.getNumber_rides()+1);\r\n\t\t\t\t\t\tif(bank_card.getOwner().equals(this)){this.bicycle.setBank_card_to_use(bank_card);}\r\n\t\t\t\t\t\tif(!bank_card.getOwner().equals(this)){System.out.println(\"choose a right bank card\");throw new Exception(\"WRONG BANK CARD USER\");}\t\r\n\t\t\t\t\t\tthis.bicycle.setUser(this);\r\n\t\t\t\t\t\tthis.setPosition(s.getPosition());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void populateDestStationCodes() {\n\t\ttry {\n\t\t\tString stationCode = handler.getStationCode();\n\t\t\tStationsDTO[] station = null;\n\t\t\tif (stationCode != null) {\n\t\t\t\tstation = handler.getAllAssociatedStations();\n\t\t\t}\n\t\t\tif (null != station) {\n\t\t\t\tint len = station.length;\n\n\t\t\t\tfor (int i = 0; i < len; i++) {\n\t\t\t\t\tcoStation.add(station[i].getName() + \" - \"\n\t\t\t\t\t\t\t+ station[i].getId());\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}", "public String getToStation();", "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 }", "@Test\n\tpublic void chooseCorrectStationsWhenPlanningShortestRide()\n\t\t\tthrows InvalidBikeTypeException, InvalidRidePlanPolicyException, NoValidStationFoundException {\n\t\tRidePlan bobRidePlan = n.createRidePlan(source, destination, bob, \"SHORTEST\", \"MECH\");\n\t\tRidePlan sRidePlan = new RidePlan(source, destination, sourceStationS, destStationS, \"SHORTEST\", \"MECH\", n);\n\t\tassertTrue(bobRidePlan.equals(sRidePlan));\n\t}", "public boolean checkRoomAvailabilty(String date,String startTime,String endTime ,String confID);", "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}", "org.landxml.schema.landXML11.Station xgetStaStart();" ]
[ "0.72415644", "0.70061296", "0.6745967", "0.6628404", "0.6537179", "0.6423364", "0.61322016", "0.6121183", "0.60161173", "0.6014853", "0.59487605", "0.5900004", "0.58851177", "0.58306694", "0.583055", "0.57799387", "0.57174677", "0.5655246", "0.5645081", "0.56269646", "0.5612584", "0.5564211", "0.55387807", "0.5531849", "0.549575", "0.54654217", "0.5461678", "0.54562604", "0.545314", "0.54142", "0.5344709", "0.5342527", "0.53416747", "0.5327692", "0.5304793", "0.5300762", "0.5295856", "0.52803445", "0.526931", "0.52024156", "0.5197907", "0.51873136", "0.5184723", "0.51562285", "0.515413", "0.51240414", "0.51183134", "0.51176995", "0.50948954", "0.50944984", "0.5091703", "0.5083625", "0.5077388", "0.50617844", "0.5060076", "0.5056158", "0.5055125", "0.50475013", "0.504302", "0.50370824", "0.50321245", "0.5025296", "0.50252455", "0.5024177", "0.5015227", "0.5014076", "0.50098", "0.4999977", "0.4991562", "0.49898005", "0.4988104", "0.49869978", "0.4985636", "0.49829906", "0.49775615", "0.49755335", "0.49752653", "0.49751747", "0.49741942", "0.49700993", "0.496939", "0.49673206", "0.49603856", "0.49517307", "0.49436486", "0.49384493", "0.4934159", "0.49212566", "0.49138927", "0.49135557", "0.49121785", "0.49096838", "0.49063173", "0.49054718", "0.49053454", "0.4891864", "0.48915845", "0.48895183", "0.48727328", "0.48617956" ]
0.77275664
0
the function deconnect_station is used to cut off connections to a certain station s: the station to cut off connections.
public void deconnect_station(Station s) throws Exception{ s.remove_user(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void unsetStation();", "void unsaveCurrentStation();", "public LWTRTPdu disConnect() throws IncorrectTransitionException;", "public LWTRTPdu disConnectAcpt() throws IncorrectTransitionException;", "public LWTRTPdu disConnectRsp() throws IncorrectTransitionException;", "public void disconnectFromClientAndServer() {\n //sends disconnect message to server\n this.sendMessages(Arrays.asList(\"DISCONNECT\"));\n \n //disconnect self\n this.isConnectedToClientServer = false;\n board.disconnectFromClientServer();\n this.inputQueue = null;\n this.outputQueue = null;\n \n //make all boundaries visible\n for (Boundary boundary : board.boundaries){\n boundary.makeVisible();\n }\n board.neighbors.changeDown(\"\");\n board.neighbors.changeLeft(\"\");\n board.neighbors.changeRight(\"\");\n board.neighbors.changeUp(\"\");\n \n //remove all balls\n board.clearBalls();\n }", "public void remove(Station station)\n {\n world.removeActor(station.getId());\n\n for (int i = 0; i < stations.length; ++i)\n {\n if (station == stations[i])\n {\n stations[i] = null;\n break;\n }\n }\n }", "public void stopNetwork();", "public void trimRoutes(){\n Station firstStation = null;\n Station s = null;\n Link link = null;\n if (trainState instanceof TrainReady)\n s = ((TrainReady) trainState).getStation();\n if (trainState instanceof TrainArrive)\n link = ((TrainArrive) trainState).getLink();\n if (trainState instanceof TrainDepart)\n link = ((TrainDepart) trainState).getLink();\n\n if (trainState instanceof TrainReady){\n firstStation = s;\n } else if (trainState instanceof TrainArrive){\n firstStation = link.getTo();\n } else if (trainState instanceof TrainDepart){\n firstStation = link.getFrom();\n }\n\n Iterator<Route> routeIterator = routes.iterator();\n while (routeIterator.hasNext()) {\n Route route = routeIterator.next();\n Iterator<Link> iter = route.getLinkList().iterator();\n while (iter.hasNext()){\n Link track = iter.next();\n if (!track.getFrom().equals(firstStation))\n iter.remove();\n else\n break;\n }\n if (route.getLinkList().size() == 0) {\n routeIterator.remove();\n }\n }\n }", "public void deleteStation (int index){\n\n // check if the current station is the one to be deleted\n if(index == currentStation && !isPaused){\n radioPlayer.pause();\n isPaused = true;\n currentStation = 0;\n }\n\n if(currentStation > index) {\n currentStation = currentStation -1;\n }\n\n // search the station, and delete it, also update the xml file\n try {\n radioList.remove(index);\n rewriteXmlSource();\n } catch (Exception e) {\n e.printStackTrace();\n //TODO report this\n Log.e(LOG_TAG, \"Error on deleting\");\n }\n\n }", "@Override\r\n public boolean disconnectWifi() {\r\n nwmDevice.getDevice().Disconnect();\r\n return true;\r\n }", "public void deconnectar() {\n connection = null;\n }", "public void disconnected(Service service, String localConnectorName, int peerId) {\n \n }", "public LWTRTPdu disConnectReq() throws IncorrectTransitionException;", "public void disconnect(){\n\t\tfor (NodeInfo peerInfo : peerList) {\r\n\t\t\t// send leave to peer\r\n\t\t\tsend(\"0114 LEAVE \" + ip + \" \" + port, peerInfo.getIp(), peerInfo.getPort());\r\n\t\t\t\r\n\t\t\tfor (NodeInfo peerInfo2 : peerList) {\r\n\t\t\t\tif (!peerInfo.equals(peerInfo2)) {\r\n\t\t\t\t\tString joinString = \"0114 JOIN \" + peerInfo2.getIp() + \" \" + peerInfo2.getPort();\r\n\t\t\t\t\t\r\n\t\t\t\t\tsend(joinString, peerInfo.getIp(), peerInfo.getPort());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tunRegisterBootstrapServer(serverIp, serverPort, ip, port, username);\r\n\t\t\tapp.printInfo(\"Node disconnected from server....\");\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\t//socket = null;\r\n\t}", "public void disconnectedFrom(ServerDescriptor desc);", "public void disconnectSensor() {\n try {\n resultConnection.releaseAccess();\n } catch (NullPointerException ignored) {\n }\n }", "private void disconnectWifi() {\n assertTrue(\"Wifi not disconnected\", mWifiManager.disconnect());\n mWifiManager.disableNetwork(mWifiManager.getConnectionInfo().getNetworkId());\n mWifiManager.saveConfiguration();\n }", "public static void disconnect()\n\t{\n\t\tTASK_LIST.add(ArduinoComms::disconnectInternal);\n\t\tTASK_LIST.add(ArduinoComms::notifyDisconnected);\n\t\t//TODO if waiting at socket.connect from connect() notify the tread\n\t}", "public void disconnectConvo() {\n convo = null;\n setConnStatus(false);\n }", "public void removeDeviceServiceLink();", "void exitCurrentStationCard();", "public void disconnect(ClientAddress clientAddress);", "private void destroy(DynamicConnectivity.Splay s) {\n }", "abstract protected void onDisconnection();", "public void disconnect() {if(mEnable) mBS.disconnect();}", "@Override\n\t\t\tpublic void onDisconnectRemoteNode(String url) {\t\t\t\t\n\t\t\t}", "public void disconnect() {\n SocketWrapper.getInstance(mContext).disConnect();\n }", "protected void processDisconnection(){}", "private void disconnect() {\n System.out.println(String.format(\"連線中斷,%s\",\n clientSocket.getRemoteSocketAddress()));\n final int delete = thisPlayer.id - 1;\n player[delete] = null;\n empty.push(delete);\n }", "public void seDeconnecter(){\n try {\n\t\ttopicConn.close();\n\t} catch (JMSException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n }", "@SubscribeEvent\n public void onFMLNetworkClientDisconnectionFromServer(ClientDisconnectionFromServerEvent event) {\n hypixel = false;\n bedwars = false;\n }", "public void disconnect() {\r\n\t\tif (connected.get()) {\r\n\t\t\tserverConnection.getConnection().requestDestToDisconnect(true);\r\n\t\t\tconnected.set(false);\r\n\t\t}\r\n\t}", "@ApiOperation(value = \"Supprime une firestation\")\n @DeleteMapping(\"/firestation\")\n public ResponseEntity deleteFirestation(@RequestParam String address, @RequestParam String station) {\n log.info(\"Request to: \" + request.getRequestURI(), address, station);\n return firestationService.deleteFirestation(address, station);\n }", "public void disconnect()\n {\n isConnected = false;\n }", "public void doOnDisconnect() {\n\t\t// Shut off any sensors that are on\n\t\tMainActivity.this.runOnUiThread(new Runnable() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\n\t\t\t\tresetAllOperations();\n\n\t\t\t\t\n\t\t\t\t// Make sure the LEDs go off\n\t\t\t\tif (droneApp.myDrone.isConnected) {\n\t\t\t\t\tdroneApp.myDrone.setLEDs(0, 0, 0);\n\t\t\t\t}\n\n\n\t\t\t\t// Only try and disconnect if already connected\n\t\t\t\tif (droneApp.myDrone.isConnected) {\n\t\t\t\t\tdroneApp.myDrone.disconnect();\n\t\t\t\t}\n\n\t\t\t\t// Remind people how to connect\n\t\t\t\ttvConnectInfo.setVisibility(TextView.VISIBLE);\n\t\t\t}\n\t\t});\n\t}", "public void removeUnit(FlowUnit u)\n\t\t{\n\t\tunits.remove(u);\n\t\tList<FlowConn> toRemove=new LinkedList<FlowConn>();\n\t\tfor(FlowConn c:conns)\n\t\t\tif(c.toUnit==u || c.fromUnit==u)\n\t\t\t\ttoRemove.add(c);\n\t\tconns.removeAll(toRemove);\n\t\t//TODO mark as updated\n\t\t}", "public void removeEdge(int s,int d) throws Exception\r\n\t{\r\n\t\tif(s>=0&&s<n&&d>=0&&d<n)\r\n\t\t{\r\n\t\t\tLinkedList l=g.get(s);\r\n\t\t\tl.deleteMatched(g.get(d).getHead());\r\n\t\t\t\r\n\t\t\t//undirected graph\r\n\t\t\tLinkedList l1=g.get(d);\r\n\t\t\tl1.deleteMatched(g.get(s).getHead());\r\n\t\t}\r\n\t}", "public Station stationOpposite(Station station) {\n Preconditions.checkArgument(station.equals(station1) || station.equals(station2));\n\n return (station == station1) ? station2 : station1;\n }", "public void disconnectSSH(){\n\t log.info(\"Trying to disconnect to device \"+deviceIP+\" ...\\n\");\n\t session.disconnect();\n\t if(!session.isConnected())\n\t\t log.info(\"Successfully disconnected from device \"+deviceIP+\"\\n\");\n\t else\n\t\t log.error(\"Unable to disconnect to the device \"+deviceIP+\"\\n\");\n\t if(FETCHING_DATA_VIA_DATABASE){\n\t\t dbConnect.closeConnection();\n\t\t log.info(\"Successfully closed the database. \");\n\t }\n }", "public void removeNeuron(int index){\n for (Connection con:neurons.get(index).getUpStream()) {\n con.getFromNeuron().removeDownStream(con);\n }\n for (Connection con:neurons.get(index).getDownStream()) {\n con.getToNeuron().removeUpStream(con);\n }\n neurons.remove(index);\n }", "@FXML\r\n\tprivate void deconnecter()\r\n\t{\r\n\t\tchatModel.getConnectionEstablishedProperty().set(false);\r\n\t\tclient.closeClientSocket();\r\n\t\tPlatform.runLater(() -> ChatModel.getInstance().getStatusMessagesList()\r\n\t\t\t\t.add(\"Chat ended: you disconnected.\"));\r\n\t}", "private void cleanUpConnection(boolean tearDown, String reason) {\n if (DBG) log(\"Clean up connection due to \" + reason);\n\n // Clear the reconnect alarm, if set.\n if (mReconnectIntent != null) {\n AlarmManager am =\n (AlarmManager) phone.getContext().getSystemService(Context.ALARM_SERVICE);\n am.cancel(mReconnectIntent);\n mReconnectIntent = null;\n }\n\n for (PdpConnection pdp : pdpList) {\n if (tearDown) {\n Message msg = obtainMessage(EVENT_DISCONNECT_DONE, reason);\n pdp.disconnect(msg);\n } else {\n pdp.clearSettings();\n }\n }\n stopNetStatPoll();\n\n /*\n * If we've been asked to tear down the connection,\n * set the state to DISCONNECTING. However, there's\n * a race that can occur if for some reason we were\n * already in the IDLE state. In that case, the call\n * to pdp.disconnect() above will immediately post\n * a message to the handler thread that the disconnect\n * is done, and if the handler runs before the code\n * below does, the handler will have set the state to\n * IDLE before the code below runs. If we didn't check\n * for that, future calls to trySetupData would fail,\n * and we would never get out of the DISCONNECTING state.\n */ \n if (!tearDown) {\n setState(State.IDLE);\n phone.notifyDataConnection(reason);\n mActiveApn = null;\n } else if (state != State.IDLE) {\n setState(State.DISCONNECTING);\n }\n }", "public static void disconnection(DisconnectionEvent e)\n\t{\n\t\tDisplay.getDefault().asyncExec(new Runnable(){\n\n\t\t\t@Override\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tif(!e.getState() && e.getNumOfConnectedSensors()==0)\n\t\t\t\t{\n\t\t\t\t\tresetGuiData();\n\t\t\t\t\tconfigButton.setEnabled(false);\n\t\t\t\t\tstatusBar.setText(\"Sensor \" + e.getSensorPath() + \" has been disconnected. Please connect sensor for configuration\");\n\t\t\t\t} else if (!e.getState() && shell.isVisible() && e.getNumOfConnectedSensors() == 1)\n\t\t\t\t{\n\t\t\t\t\tconfigButton.setEnabled(true);\n\t\t\t\t\tresetGuiData();\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tsetData();\n\t\t\t\t\t\tstatusBar.setText(\"Only Sensor \" + ConnectionManager.getInstance().currentSensor(0).getSensorPath()\n\t\t\t\t\t\t\t\t+ \" has been connected\");\n\t\t\t\t\t}\n\t\t\t\t\tcatch (SensorNotFoundException e)\n\t\t\t\t\t{\n\t\t\t\t\t\tstatusBar.setText(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} else if (e.getState())\n\t\t\t\t{\n\t\t\t\t\tstatusBar.setText(\"Please connect any sensor for configuration!\");\n\t\t\t\t\tresetGuiData();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t}", "public void disconnect(ClientAddress clientAddress, InetSocketAddress reconnect, Integer delay);", "@Override\n public void Disconnect() {\n bReConnect = true;\n }", "public void onNetDisConnect() {\n\n\t}", "public void shutdownNetwork() {\r\n networkPlayer.stop();\r\n }", "final public void disconnect() {\n \n _input.removeInputConnection();\n _output.removeConnection(this);\n\n \n }", "public void disconnect() {\n try {\n theCoorInt.unregisterForCallback(this);\n theCoorInt = null;\n }\n catch (Exception e) {\n simManagerLogger.logp(Level.SEVERE, \"SimulationManagerModel\", \n \"closeSimManager\", \"Exception in unregistering Simulation\" +\n \"Manager from the CAD Simulator.\", e);\n }\n }", "void disconnect(String reason);", "private void removeConnections(String name_agent) {\n JConnector c;\n int i = 0;\n while (i < connections.size()) {\n c = connections.get(i);\n if(c.isConnection()){\n if(c.getSourceConnectionName().equals(name_agent) || c.getDestConnectionName().equals(name_agent)){\n connections.remove(i);\n i=0;\n }\n i++;\n }else{\n if(c.getAgentName().equals(name_agent)){\n connections.remove(i);\n i=0;\n }\n i++;\n }\n }\n }", "public void disconnect(){\n\n\t\tserverConnection.disconnect();\n\t}", "public void Stop_Connection(){\n keepWalking = false; //gia na stamatisei to chat alliws to thread dn ginete interrupt gt dn stamataei i liturgeia tou.\n Chat_Thread.interrupt();\n try {\n if(oos != null) oos.close();\n if(ois != null) ois.close();\n } catch (IOException ex) {\n Logger.getLogger(ChatWithCC.class.getName()).log(Level.SEVERE, null, ex);\n }\n try {\n if(socket !=null) socket.close();\n } catch (IOException ex) {\n Logger.getLogger(ChatWithCC.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void disconnect() {\n\t\t\n\t\ttry { \n\t\t\tif(sInput != null) sInput.close();\n\t\t} catch(Exception e) {} \n\t\t\n\t\t\n\t\ttry {\n\t\t\tif(sOutput != null) sOutput.close();\n\t\t} catch(Exception e) {} \n\t\t\n\t\t\n try{\n\t\t\tif(socket != null) socket.close();\n\t\t} catch(Exception e) {}\n\t\t\n // informa ao Gui\n if(clientGui != null) clientGui.connectionFailed();\n\t\t\t\n\t}", "public void cleanUpConnections()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tfor (int i = 0; i < this.electricityNetworks.size(); i++)\r\n\t\t\t{\r\n\t\t\t\tthis.electricityNetworks.get(i).cleanUpArray();\r\n\r\n\t\t\t\tif (this.electricityNetworks.get(i).conductors.size() == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.electricityNetworks.remove(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tFMLLog.severe(\"Failed to clean up wire connections!\");\r\n\t\t}\r\n\t}", "public void updatePlayerAfterDelete(Station station) {\n mThisStation = station;\n updateStationViews();\n setVisualState();\n }", "public void disconnect() {\n try {\n Socket socket = new Socket(\"127.0.0.1\",33333);\n ObjectOutputStream outputStream = new ObjectOutputStream(socket.getOutputStream());\n clientMain.clientData[1] = \"no\";\n outputStream.writeObject(clientMain.clientData);\n\n clientMain.showConnectionPage();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\t\t\t\tpublic void onClientDisconnect(ServerConnection sc) {\n\t\t\t\t}", "public ShutdownHelper(Station station) {\n super();\n try {\n this.ap = station.getSrv();\n } catch (RemoteException e) {\n System.err.println(\"Communication Error: \" + e.toString());\n }\n this.station = station;\n }", "public void disconnect() {}", "public void disconnectedFromHost();", "void dropPkt();", "public void disconnectFrom(Airport that)\n\t{\n\t\tif(!connections.contains(that)) {\n\t\t\treturn;\n\t\t}\n\t\tconnections.remove(that);\n\t}", "public void onDisconnect(HeaderSet req, HeaderSet resp) {\r\n if(req == null)\r\n return;\r\n try {\r\n //clientBluetoothAddress = req.getHeader(HeaderSet.NAME).toString();\r\n Object reqType = req.getHeader(HeaderSets.REQUEST_TYPE);\r\n if(reqType == null)\r\n return;\r\n if (reqType.toString().equals(Types.REQUEST_DISCONNECT)) {\r\n parent.removeClient(clientBluetoothAddress);\r\n //AlertDisplayer.showAlert(\"Disconnected\", \"btADDR : \" +clientBluetoothAddress,parent.gui.getDisplay(),parent.gui.getList());\r\n }\r\n \r\n } catch (IOException e) {\r\n System.err.println(\"Exception in DataTransaction.onConnect()\");\r\n \r\n }\r\n }", "public void disconnect()\n {\n \tLog.d(TAG, \"disconnect\");\n\n \tif(this.isConnected) {\n \t\t// Disable the client connection if have service\n \t\tif(mLedService != null) {\n \t\t\tthis.disable();\n \t\t}\n \t\t\n \t\t// Unbind service\n mContext.unbindService(mServiceConnection);\n \n this.isConnected = false;\n \t}\n }", "@Override\r\n\tpublic void removeTempSeat(Seat seat) {\n\t\t\r\n\t}", "public void disconnectSerial(int theValue) \n{\n //check to make sure we're in run mode and that the serial port is connected\n if(running ==1 && sPort != null)\n {\n sPort.stop();//stop/disconnect the serial port \n sPort = null;//set the serial port to null, incase another function checks for connectivity\n //curIdField.setValue(\"No Servo Connected\");//change current id field to a prompt\n //curIdField.valueLabel().style().marginLeft = 0;\n //dynaModelNameField.setValue(\"\");//change model name field to nothing\n //servoScanned = 0; //disconnecting the serial port also disconnects any currently connected sercos\n //hide the scan set and test group\n controGroup.setVisible(false);\n // setGroup.setVisible(false);\n // testGroup.setVisible(false);\n //make visible the statup prompt\n startupGroup.setVisible(true);\n\n //unlock connect button and change apperance, lock disconnect button and change apperance\n connectButton.unlock();\n connectButton.setColorBackground(color(2,52,77));\n autoSearchButton.unlock();\n autoSearchButton.setColorBackground(color(2,52,77));\n disconnectButton.lock();\n disconnectButton.setColorBackground(color(200));\n \n }\n}", "public void disconnect( ) {\n disconnect( \"\" );\n }", "public void decomminsionHost( int hostId );", "public synchronized void disconnect()\r\n\t\t{\r\n\t\tif (state == RUNNING)\r\n\t\t stop();\r\n\t\tif (state == CLOSING_DOWN)\r\n\t\t {\r\n // Close the server socket\t\t \r\n try {\r\n \t\tserverSocket.close();\r\n \t}\r\n catch (IOException e)\r\n {\r\n }\r\n \r\n \t\t// flag the server as stopped\r\n \t\tstate = STOPPED;\r\n\t\t }\r\n\t\t}", "static void disconnect(FlowGraph graph, Inlet inlet) {\n if (!(inlet instanceof InPort)) {\n throw new IllegalArgumentException(\"Invalid outlet passed to graph\");\n }\n\n InPort inPort = (InPort) inlet;\n\n if (!graph.equals(inPort.getGraph())) {\n throw new IllegalArgumentException(\"Outlet or inlet does not belong to graph\");\n }\n\n inPort.finish(null);\n inPort.cancel(null);\n }", "public void disconnect() {\n\t\t\n\t}", "public void disconnect();", "public void disconnect();", "public void disconnect();", "public void disconnect();", "public void disconnect() {\n if (serverSocket != null) {\n try {\n serverSocket.close();\n Log.i(TAG, \"ServerSocket closed\");\n } catch (IOException e) {\n Log.e(TAG, \"Error closing the serverSocket\");\n }\n }\n\n sendDisconnectionMessage();\n\n // FIXME - Change this into a message sent it listener\n // Wait 2 seconds to disconnection message was sent\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n public void run() {\n WiFiDirectUtils.clearServiceRequest(wiFiP2PInstance);\n WiFiDirectUtils.stopPeerDiscovering(wiFiP2PInstance);\n WiFiDirectUtils.removeGroup(wiFiP2PInstance);\n\n serverSocket = null;\n isRegistered = false;\n clientsConnected.clear();\n }\n }, 2000);\n }", "public void unbindService(ServiceConnection connection);", "public void Disconnect(View view){\n Intent intent=new Intent(this,Activity_Connect.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);//clearing backstack to open connect page\n startActivity(intent);\n Toast.makeText(this, \"Device disconnected\", Toast.LENGTH_SHORT).show();\n finish();\n }", "@Override\r\n\t\t\t\tpublic void onClientDisconnect(ServerConnection sc) {\n\t\t\t\t\tSystem.out.println(\"CLIENT DISCONNECTED FROM SERVER.\");\r\n\t\t\t\t}", "public void removeOccupiedConnections(List<ConnectionPoint> connections)\n\t\t{\n\t\t\tList<ConnectionPoint> toBeRemoved = new LinkedList<ConnectionPoint>();\n\n\t\t\tfor (ConnectionPoint conn : connections)\n\t\t\t{\n\t\t\t\tif (conn.getAnchor().isOccopied())\n\t\t\t\t\ttoBeRemoved.add(conn);\n\t\t\t}\n\n\t\t\tconnections.removeAll(toBeRemoved);\n\t\t}", "@ReactMethod\n public void isRemoveWifiNetwork(String ssid, final Callback callback) {\n List<WifiConfiguration> mWifiConfigList = wifi.getConfiguredNetworks();\n for (WifiConfiguration wifiConfig : mWifiConfigList) {\n String comparableSSID = ('\"' + ssid + '\"'); //Add quotes because wifiConfig.SSID has them\n if (wifiConfig.SSID.equals(comparableSSID)) {\n wifi.removeNetwork(wifiConfig.networkId);\n wifi.saveConfiguration();\n callback.invoke(true);\n return;\n }\n }\n callback.invoke(false);\n }", "public void doDisconnect() {\n Debug.logInfo(\"MQTT Disconnecting clientId[\" + client.getClientId() + \"] of [\" + client.getServerURI() + \"] ... \", MODULE);\n\n IMqttActionListener discListener = new IMqttActionListener() {\n public void onSuccess(IMqttToken asyncActionToken) {\n Debug.logInfo(\"Disconnect Completed\", MODULE);\n state = DISCONNECTED;\n carryOn();\n }\n\n public void onFailure(IMqttToken asyncActionToken, Throwable exception) {\n ex = exception;\n state = ERROR;\n Debug.logError(\"Disconnect failed\" + exception, MODULE);\n carryOn();\n }\n\n public void carryOn() {\n synchronized (caller) {\n donext = true;\n caller.notifyAll();\n }\n }\n };\n\n try {\n client.disconnect(null, null);\n } catch (MqttException e) {\n state = ERROR;\n donext = true;\n ex = e;\n }\n }", "public abstract void disconnectInDirection(N n1, N n2);", "void removeDevice(int networkAddress);", "public synchronized void disconnect(boolean unregister)\n {\n final String actionDescription = \"Disconnect Cohort Manager\";\n\n log.debug(actionDescription);\n\n try\n {\n cohortConnectionStatus = CohortConnectionStatus.DISCONNECTING;\n\n if (cohortRegistry != null)\n {\n cohortRegistry.disconnectFromCohort(unregister);\n }\n\n if (cohortSingleTopicConnector != null)\n {\n cohortSingleTopicConnector.disconnect();\n }\n\n if (cohortRegistrationTopicConnector != null)\n {\n cohortRegistrationTopicConnector.disconnect();\n }\n\n if (cohortTypesTopicConnector != null)\n {\n cohortTypesTopicConnector.disconnect();\n }\n\n if (cohortInstancesTopicConnector != null)\n {\n cohortInstancesTopicConnector.disconnect();\n }\n\n cohortConnectionStatus = CohortConnectionStatus.DISCONNECTED;\n }\n catch (ConnectorCheckedException error)\n {\n log.debug(actionDescription + \" FAILED with connector checked exception\");\n\n /*\n * Throw runtime exception to indicate that the cohort registry is not available.\n */\n throw new OMRSConnectorErrorException(OMRSErrorCode.COHORT_DISCONNECT_FAILED.getMessageDefinition(cohortName),\n this.getClass().getName(),\n actionDescription,\n error);\n\n }\n catch (Exception error)\n {\n log.debug(actionDescription + \" FAILED with exception\");\n\n throw error;\n }\n\n log.debug(actionDescription + \" COMPLETE\");\n }", "private void deleteConnections() {\n for (int i = 0; !this.sourceConnections.isEmpty(); ) {\n LinkElement wire = (LinkElement) this.sourceConnections.get(i);\n wire.detachSource();\n wire.detachTarget();\n this.graphElement.removeEdge(wire.getEdgeId(), wire);\n }\n\n for (int i = 0; !this.targetConnections.isEmpty(); ) {\n LinkElement wire = (LinkElement) this.targetConnections.get(i);\n wire.detachSource();\n wire.detachTarget();\n this.graphElement.removeEdge(wire.getEdgeId(), wire);\n }\n }", "private void disconnect() {\n\t\ttry { \n\t\t\tif(sInput != null) sInput.close();\n\t\t}\n\t\tcatch(Exception e) {}\n\t\ttry {\n\t\t\tif(sOutput != null) sOutput.close();\n\t\t}\n\t\tcatch(Exception e) {}\n try{\n\t\t\tif(socket != null) socket.close();\n\t\t}\n\t\tcatch(Exception e) {}\n\t\t\n\t\t// Notify the GUI\n \n\t\tif(cg != null)\n\t\t\tcg.connectionFailed();\n\t\t\t\n\t}", "@Override\n public void onDisconnectLegRequest(DisconnectLegRequest ind) {\n\n }", "@Override\n public void removeConnection(World world, BlockPos pos, Direction direction) {\n for(int i = 0; i < connections.size(); i++) {\n FluidConnection conn = connections.get(i);\n if(conn.direction == direction) {\n if(conn.type == FLUID_IN) conn.type = FLUID_IN_OUT;\n else if(conn.type == FLUID_IN_OUT) conn.type = FLUID_OUT;\n else connections.remove(i);\n return;\n }\n }\n }", "void removeSinks(McastRoute route, HostId hostId, Set<ConnectPoint> connectPoints);", "public void disconnect() {\n watchDog.terminate();\n synchronized (sync) {\n if (!connections.isEmpty()) {\n while (connections.size() > 0) {\n ThreadConnection tconn = connections.pop();\n try {\n tconn.conn.rollback();\n tconn.conn.close();\n } catch (SQLException e) {\n }\n }\n }\n }\n this.setChanged();\n this.notifyObservers(\"disconnect\");\n }", "public void disconnect()\n {\n try\n {\n if ( m_wagon != null )\n {\n m_wagon.disconnect();\n }\n }\n catch ( ConnectionException e )\n {\n m_log.error( \"Error disconnecting Wagon\", e );\n }\n }", "public void disconnect() {\n\n try {\n if (inputStream != null) {\n inputStream.close();\n }\n\n if (outputStream != null) {\n outputStream.close();\n }\n\n if (socket != null ) {\n socket.close();\n connected = socket.isClosed();\n }\n } catch (IOException e) {\n logger.error(\"S7Client error [disconnect]: \" + e);\n }\n }", "public static void disconnect(Context context) {\n Intent intent = new Intent(context, BandCollectionService.class);\n intent.putExtra(BAND_ACTION, BandAction.DISCONNECT);\n context.startService(intent);\n }", "public void disconnect(){ \r\n if (matlabEng!=null){ \r\n matlabEng.engEvalString (id,\"bdclose ('all')\");\r\n matlabEng.engClose(id);\r\n matlabEng=null;\r\n id=-1; \r\n }\r\n }", "public void disconnect() {\n/* 244 */ this.delegate.disconnect();\n/* */ }", "public void deleteNetWS() {\r\n/* 142 */ this._has_netWS = false;\r\n/* */ }", "void closeNetwork();" ]
[ "0.68330127", "0.61471415", "0.59052503", "0.57216704", "0.5684313", "0.564936", "0.5637305", "0.5633318", "0.5554094", "0.5542665", "0.5518332", "0.54998577", "0.5485421", "0.5485094", "0.545623", "0.54072106", "0.53973025", "0.5366943", "0.5349149", "0.53267837", "0.53196496", "0.53124017", "0.53114146", "0.5297873", "0.5275124", "0.5267166", "0.524294", "0.5240942", "0.52241755", "0.5205603", "0.52039415", "0.5199859", "0.519951", "0.5196363", "0.5187706", "0.51847315", "0.5176366", "0.5172777", "0.51549", "0.51451886", "0.5145171", "0.51302534", "0.5127498", "0.5126911", "0.5122985", "0.5122093", "0.51191884", "0.5097964", "0.5097404", "0.5088188", "0.50837123", "0.5082725", "0.5080452", "0.5080132", "0.5079899", "0.5062979", "0.5057542", "0.5052158", "0.50473", "0.5034649", "0.50294256", "0.5025718", "0.50233483", "0.5021985", "0.5019712", "0.50197077", "0.50101566", "0.49958915", "0.49934986", "0.49866888", "0.49839112", "0.49819383", "0.49736318", "0.49694878", "0.49694878", "0.49694878", "0.49694878", "0.4967148", "0.49637666", "0.49609435", "0.49576604", "0.49554607", "0.49528143", "0.4945876", "0.49301645", "0.49272144", "0.4925413", "0.49197498", "0.49183124", "0.49130607", "0.49123883", "0.49089804", "0.4900745", "0.48976514", "0.4890348", "0.48841056", "0.48832855", "0.48805675", "0.48797196", "0.48767942" ]
0.7352574
0
/ / / /
private void mouseDownInMove() /* */ { /* 122 */ if (this.downNode < 0) return; /* 123 */ if (this.bn != null) this.oldPos.setLocation(this.bn.getPos(this.downNode)); else { /* 124 */ this.oldPos.setLocation(this.mn.getPos(this.downNode)); /* */ } /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public abstract String division();", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "private boolean slash() {\r\n return MARK(OPERATOR) && CHAR('/') && gap();\r\n }", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "public void gored() {\n\t\t\n\t}", "public String toString(){ return \"DIV\";}", "private int parent(int i){return (i-1)/2;}", "public String ring();", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "private int leftChild(int i){return 2*i+1;}", "double passer();", "static void pyramid(){\n\t}", "public void stg() {\n\n\t}", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "void mo33732Px();", "Operations operations();", "private int rightChild(int i){return 2*i+2;}", "private void division()\n\t{\n\t\tFun = Function.DIVIDE; //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}", "@Override\n\tpublic float dividir(float op1, float op2) {\n\t\treturn op1 / op2;\n\t}", "void sharpen();", "void sharpen();", "double defendre();", "public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }", "public int generateRoshambo(){\n ;]\n\n }", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "String divideAtWhite()[]{ return null; }", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "double volume(){\n return width*height*depth;\n }", "public void skystonePos4() {\n }", "void ringBell() {\n\n }", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public static void method1(){\n System.out.println(\"*****\");\n System.out.println(\"*****\");\n System.out.println(\" * *\");\n System.out.println(\" *\");\n System.out.println(\" * *\");\n }", "public int division(int x,int y){\n System.out.println(\"division methods\");\n int d=x/y;\n return d;\n\n }", "void mo21076g();", "private boolean dividingByZero(String operator){\n if (numStack.peek() == 0 && operator.equals(\"/\")){\n return true;\n }\n return false;\n }", "@Override\n public void bfs() {\n\n }", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "Parallelogram(){\n length = width = height = 0;\n }", "public Divide(){\n }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "@Override\r\n\tpublic void div(int x, int y) {\n\t\t\r\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "@Override\npublic void div(int a, int b) {\n\t\n}", "private double triangleBase() {\n return cellWidth() / BASE_WIDTH;\n }", "double volume() {\n\treturn width*height*depth;\n}", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\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}", "int getWidth() {return width;}", "int width();", "public void divide(int dirOp1, int dirOp2, int dirRes) {\n //traduce casos de direccionamiento indirecto\n dirOp1 = traduceDirIndirecto(dirOp1);\n dirOp2 = traduceDirIndirecto(dirOp2);\n if (ManejadorMemoria.isConstante(dirOp1)) { // OPERANDO 1 CTE\n String valor1 = this.directorioProcedimientos.getConstantes().get(dirOp1).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { //RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n } else if (ManejadorMemoria.isGlobal(dirOp1)) { // OPERANDO 1 GLOBAL\n String valor1 = this.registroGlobal.getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n } else { // OPERANDO 1 LOCAL\n String valor1 = this.pilaRegistros.peek().getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES 2 LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { //OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n }\n }", "public static void main(String[] args) {\n\n\n\n System.out.println(4 * (1.0 - (1 / 3) + (1 / 5) - (1 / 7) + (1 / 9) - (1 / 11)));\n\n System.out.println(4 * (1.0 - (1/3) + (1/5) - (1/7)\n + (1 / 9) - (1/11) + (1/13)));\n }", "public static void topHalf() {\n \t\n for( int i = 1; i <= SIZE; i++){\n for(int spaces = 1; spaces <= 3*SIZE - 3*i; spaces++) {\n System.out.print(\" \"); \n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"__/\");\n }\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n System.out.print(\"||\");\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"\\\\__\");\n }\n \n System.out.println();\n }\n \n System.out.print(\"|\");\n \n for(int i = 1; i <= 6 * SIZE; i++) {\n System.out.print(\"\\\"\");\n }\n \n System.out.println(\"|\");\n }", "@Override\r\n\tpublic int div() {\n\t\treturn 0;\r\n\t}", "private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }", "public double getWidth() { return _width<0? -_width : _width; }", "double getPerimeter(){\n return 2*height+width;\n }", "public void mo3376r() {\n }", "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}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic double divide(double in1, double in2) {\n\t\treturn 0;\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "public static void main (String[] args){\n Scanner s=new Scanner(System.in);\n int n=s.nextInt();\n if(n%2==1)\n {\n n=n/2;\n n++;\n }\n else\n {\n n=n/2;\n }\n for(int i=1;i<=n;i++)\n {\n for(int k=1;k<=i-1;k++)\n {\n System.out.print(\" \");\n }\n for(int j=1;j<=((2*n-1)-2*(i-1));j++)\n {\n if(j==1||j==((2*n-1)-2*(i-1)))\n System.out.print(\"*\");\n else\n System.out.print(\" \");\n }\n System.out.println();\n }\n for(int i=2;i<=n;i++)\n {\n for(int k=1;k<=n-i;k++)\n {\n System.out.print(\" \");\n }\n for(int j=1;j<i*2;j++)\n {\n if(j==1||j==(i*2-1))\n System.out.print(\"*\");\n else\n System.out.print(\" \");\n }\n System.out.println();\n }\n\t}", "public RMPath getPath() { return RMPath.unitRectPath; }", "void walk() {\n\t\t\n\t}", "public static void giant() {\n System.out.println(\" --------- \");\n System.out.println(\" | / \\\\| \");\n System.out.println(\" ZZZZZH | O | HZZZZZ \");\n System.out.println(\" H ----------- H \");\n System.out.println(\" ZZZZZHHHHHHHHHHHHHHHHHHHHHZZZZZ \");\n System.out.println(\" H HHHHHHHHHHH H \");\n System.out.println(\" ZZZZZH HHHHHHHHHHH HZZZZZ \");\n System.out.println(\" HHHHHHHHHHH \");\n System.out.println(\" HHH HHH \");\n System.out.println(\" HHH HHH \");\n }", "public void title ()\n {\n\tprintSlow (\" _ __\");\n\tprintSlow (\" ___ | ' \\\\\");\n\tprintSlow (\" ___ \\\\ / ___ ,'\\\\_ | .-. \\\\ /|\");\n\tprintSlow (\" \\\\ / | |,'__ \\\\ ,'\\\\_ | \\\\ | | | | ,' |_ /|\");\n\tprintSlow (\" _ | | | |\\\\/ \\\\ \\\\ | \\\\ | |\\\\_| _ | |_| | _ '-. .-',' |_ _\");\n\tprintSlow (\" // | | | |____| | | |\\\\_|| |__ // | | ,'_`. | | '-. .-',' `. ,'\\\\_\");\n\tprintSlow (\" \\\\\\\\_| |_,' .-, _ | | | | |\\\\ \\\\ // .| |\\\\_/ | / \\\\ || | | | / |\\\\ \\\\| \\\\\");\n\tprintSlow (\" `-. .-'| |/ / | | | | | | \\\\ \\\\// | | | | | || | | | | |_\\\\ || |\\\\_|\");\n\tprintSlow (\" | | | || \\\\_| | | | /_\\\\ \\\\ / | |` | | | || | | | | .---'| |\");\n\tprintSlow (\" | | | |\\\\___,_\\\\ /_\\\\ _ // | | | \\\\_/ || | | | | | /\\\\| |\");\n\tprintSlow (\" /_\\\\ | | //_____// .||` `._,' | | | | \\\\ `-' /| |\");\n\tprintSlow (\" /_\\\\ `------' \\\\ | AND `.\\\\ | | `._,' /_\\\\\");\n\tprintSlow (\" \\\\| HIS `.\\\\\");\n\tprintSlow (\" __ __ _ _ _ _ \");\n\tprintSlow (\" | \\\\/ | (_) | | /\\\\ | | | | \");\n\tprintSlow (\" | \\\\ / | __ _ __ _ _ ___ __ _| | / \\\\ __| |_ _____ _ __ | |_ _ _ _ __ ___ \");\n\tprintSlow (\" | |\\\\/| |/ _` |/ _` | |/ __/ _` | | / /\\\\ \\\\ / _` \\\\ \\\\ / / _ \\\\ '_ \\\\| __| | | | '__/ _ \\\\\");\n\tprintSlow (\" | | | | (_| | (_| | | (_| (_| | | / ____ \\\\ (_| |\\\\ V / __/ | | | |_| |_| | | | __/\");\n\tprintSlow (\" |_| |_|\\\\__,_|\\\\__, |_|\\\\___\\\\__,_|_| /_/ \\\\_\\\\__,_| \\\\_/ \\\\___|_| |_|\\\\__|\\\\__,_|_| \\\\___|\");\n\tprintSlow (\" __/ | \");\n\tprintSlow (\" |___/ \\n\\n\\n\");\n\n\n }", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "double area() {\nSystem.out.println(\"Inside Area for Triangle.\");\nreturn dim1 * dim2 / 2;\n}", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }", "public SoNode \ngetCurPathTail() \n{\n//#ifdef DEBUG\n if (currentpath.getTail() != (SoFullPath.cast(getCurPath())).getTail()){\n SoDebugError.post(\"SoAction::getCurPathTail\\n\", \n \"Inconsistent path tail. Did you change the scene graph\\n\"+\n \"During traversal?\\n\");\n }\n//#endif /*DEBUG*/\n return(currentpath.getTail());\n}", "@Override\n\tpublic void breath() {\n\n\t}", "public static void main(String[] args) {\nint i,j,k;\r\nint num=5;\r\nfor(i=0;i<num;i++){\r\n\tfor(j=0;j<i;j++){\r\n\t\tSystem.out.print(\" \");\r\n\t}\r\n\tfor(k=num; k>=2*i-1; k--){\r\n\t\tSystem.out.print(\"*\");\r\n\t}\r\n\t\r\n\tSystem.out.println();\r\n}\r\n\t}", "@Override\n\tpublic void div(double dx, double dy) {\n\t\t\n\t}", "public PathCode getCurPathCode() { return /*appliedTo.curPathCode*/currentpathcode;}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "static String division (String s1, String s2) {\r\n if (s2==null || s2.length()==0) return s1;\r\n return product (s1, invert(s2));\r\n }", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public static void body() {\n \tfor(int i = 1; i <= SIZE*SIZE; i++) {\n for(int j = 1; j <= 3*SIZE-(SIZE-1); j++) {\n System.out.print(\" \");\n }\n \n System.out.print(\"|\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"||\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"|\");\n \n System.out.println();\n }\n }", "private int uniquePaths(int x, int y, int[][] dp) {\n \t\tif (x == 0 || y == 0) return 1;\n \t\tif (dp[x][y] == 0)\n \t\t\tdp[x][y] = uniquePaths(x - 1, y, dp) + uniquePaths(x, y - 1, dp);\n \t\treturn dp[x][y];\n \t}", "public void star(float x, float y, float r, float R) {\n float angle = TWO_PI / 5;\n float halfAngle = angle/2.0f;\n beginShape();\n noStroke();\n for (float a = 0; a < TWO_PI; a += angle) {\n float sx = x + cos(a) * r;\n float sy = y + sin(a) * r;\n vertex(sx, sy);\n sx = x + cos(a+halfAngle) * R;\n sy = y + sin(a+halfAngle) * R;\n vertex(sx, sy);\n }\n endShape(CLOSE);\n}", "@Override\r\n\tpublic void CalcPeri() {\n\t\tSystem.out.println(4*side);\t\r\n\t}", "public int upright();", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tint n = 7;\r\n\t\tfor (int i = n; i >= 0; i--) {\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t for(int j=0; j<n-i; j++) {\r\n\t\t\t \r\n\t\t\t System.out.print(\" \");\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\r\n\t\t\tfor (int j = n; j >= n-i; j--) {\r\n\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public void backSlash() {\n text.append(\"\\\\\");\n }", "public static void main(String[] args){\t\n\t\tchar op = '/';\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"첫번째 정수입니다.\");\n\t\tint num1 = scan.nextInt();\n\t\t\n\t\tSystem.out.println(\"두번째 정수입니다.\");\n\t\tint num2 = scan.nextInt();\n\t\tint num3=0;\n\t\tif(op=='+'){\n\t\t\tnum3 = num1+num2;\n\t\t}\n\t\telse if(op=='-'){\n\t\t\tnum3 = num1-num2;\n\t\t}\n\t\telse if(op=='*'){\n\t\t\tnum3 = num1*num2;\n\t\t}\n\t\telse if(op=='/'){\n\t\t\tif(num2==0){\n\t\t\tSystem.out.println(\"오류입니다.\");\n\t\t}\n\t\t\t\n\t\t\tnum3 = num1/num2;\n\t\t}\n\t\tSystem.out.printf(\"%d%c%d=%d\" ,num1,op,num2,num3);\n\t\t\n\t\t\n\t}", "public final void testSlash() \n\t\t\tthrows ParserConfigurationException, IOException, SAXException \n\t{\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnðýþnn\");\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnønn\");\n\t\tassertSingleResult(\"8\", fldName, \"nnunn\");\n\t}", "AngleResource inclination();", "public abstract void squareRootThis();", "public UniquePathsII() {\n\t\t// Initialization here. \n\t\t//\t\tcount = 0;\n\t}", "@Override\n\tpublic void space() {\n\t\t\n\t}" ]
[ "0.5907387", "0.5575842", "0.54291975", "0.53248495", "0.5295296", "0.5272114", "0.52588725", "0.5256441", "0.5159524", "0.51412994", "0.51103354", "0.5097666", "0.5026484", "0.50228465", "0.5010535", "0.49753603", "0.49681365", "0.49662355", "0.49319422", "0.49270096", "0.4916357", "0.48799485", "0.48737174", "0.48737174", "0.4856577", "0.4840987", "0.48409632", "0.48401523", "0.4839511", "0.4837979", "0.48342818", "0.48327494", "0.48188826", "0.4816355", "0.48035547", "0.47989768", "0.4789936", "0.4785267", "0.47714382", "0.47653928", "0.47617722", "0.47558272", "0.47529352", "0.47506705", "0.47478396", "0.4743794", "0.47434178", "0.4736814", "0.47289127", "0.47198948", "0.47160646", "0.47118866", "0.47048014", "0.47022858", "0.46953875", "0.46911028", "0.46888545", "0.46880993", "0.46875685", "0.46838588", "0.46822548", "0.46719605", "0.46709624", "0.4668998", "0.46653587", "0.46653587", "0.4664348", "0.46588087", "0.46568492", "0.4653733", "0.4648362", "0.4647564", "0.4647137", "0.4642751", "0.4637472", "0.4635858", "0.46347678", "0.46341434", "0.46335825", "0.46325722", "0.46305606", "0.46301442", "0.4624859", "0.46225402", "0.46141773", "0.46130148", "0.46122608", "0.46089038", "0.46082693", "0.46056968", "0.46054214", "0.46017182", "0.4601235", "0.46002957", "0.4595077", "0.4594101", "0.45935148", "0.4592122", "0.45916712", "0.45881292", "0.45866796" ]
0.0
-1
/ / / / / /
private void mouseUpInMove() /* */ { /* 134 */ if (this.downNode < 0) { return; /* */ } /* 136 */ this.bn.setPos(this.downNode, 0, 0); /* 137 */ int i = this.bn.isClose(this.upPoint, 6); /* 138 */ if ((i != -2) || (this.upPoint.x < 0) || (this.upPoint.x > getSize().width) || (this.upPoint.y < 0) || (this.upPoint.y > getSize().height)) /* */ { /* */ /* 141 */ this.bn.setPos(this.downNode, this.oldPos); /* 142 */ HelpPanel.showError("Too close to another node or out of border!"); /* */ } else { /* 144 */ this.bn.setPos(this.downNode, this.upPoint); /* */ } /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "private int rightChild(int i){return 2*i+2;}", "public void gored() {\n\t\t\n\t}", "double passer();", "public abstract String division();", "public String ring();", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public String toString(){ return \"DIV\";}", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "void sharpen();", "void sharpen();", "static void pyramid(){\n\t}", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "Operations operations();", "int getWidth() {return width;}", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "double volume(){\n return width*height*depth;\n }", "@Override\n public void bfs() {\n\n }", "void mo33732Px();", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public void stg() {\n\n\t}", "public void skystonePos4() {\n }", "public int generateRoshambo(){\n ;]\n\n }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "public void getTile_B8();", "int width();", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "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 part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "Parallelogram(){\n length = width = height = 0;\n }", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "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 void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public double getWidth() {\n return this.size * 2.0; \n }", "void walk() {\n\t\t\n\t}", "@Override\npublic void processDirection() {\n\t\n}", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "public void SubRect(){\n\t\n}", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "public double getWidth() { return _width<0? -_width : _width; }", "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}", "double getPerimeter(){\n return 2*height+width;\n }", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "public Integer getWidth(){return this.width;}", "private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }", "public double getPerimiter(){return (2*height +2*width);}", "void ringBell() {\n\n }", "int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "@Override\r\n public void draw()\r\n {\n\r\n }", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "void block(Directions dir);", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}", "@Override\n\tpublic void draw3() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "double seBlesser();", "private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }", "public void skystonePos2() {\n }", "double volume() {\n\treturn width*height*depth;\n}", "private void buildPath() {\r\n int xNext = 1;\r\n int yNext = map.getStartPos() + 1;\r\n CellLayered before = cells[yNext][xNext];\r\n while(true)\r\n {\r\n Byte[] xy = map.getDirection(xNext-1, yNext-1);\r\n xNext = xNext + xy[0];\r\n yNext = yNext + xy[1];\r\n\r\n CellLayered next = cells[yNext][xNext];\r\n\r\n if(xy[0]==-1)\r\n before.setRight(false);\r\n else\r\n before.setRight(true);\r\n before.setPath(true);\r\n if(next==null)\r\n break;\r\n\r\n before.setNextInPath(next);\r\n before = next;\r\n }\r\n }", "void table(){\n fill(0);\n rect(width/2, height/2, 600, 350); // boarder\n fill(100, 0 ,0);\n rect(width/2, height/2, 550, 300); //Felt\n \n \n}", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public wall() { //default constructor makes a 10x10 square extending right and down from the pixel located at 5,5\r\n x = 5;\r\n y = 5;\r\n height = 10;\r\n width = 10;\r\n }", "public int upright();", "double getNewWidth();", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}", "public void skystonePos3() {\n }", "public void leerPlanesDietas();", "long getWidth();", "public static void body() {\n \tfor(int i = 1; i <= SIZE*SIZE; i++) {\n for(int j = 1; j <= 3*SIZE-(SIZE-1); j++) {\n System.out.print(\" \");\n }\n \n System.out.print(\"|\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"||\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"|\");\n \n System.out.println();\n }\n }", "public void snare();", "public void strength1(float x, float y){\n noStroke();\n fill(80);\n rect(x+7,y,66,6);\n bezier(x+7,y,x,y+1,x,y+5,x+7,y+6);\n bezier(x+73,y,x+80,y+1,x+80,y+5,x+73,y+6);\n rect(x+7,y+1,13,3);//1st blue ba\n bezier(x+7,y+1,x+1,y+2.5f,x+1,y+3.5f,x+7,y+4);\n}", "public void skystonePos5() {\n }", "void GenerateBoardPath() {\n\t\t\t\n\t\t\tint rows = board.getRowsNum();\n\t\t\tint columns = board.getColsNum();\n\t\t\tint space_number = 1; \n\t\t\t\n\t\t\t\n\t\t\tfor (int i = rows - 1; i >= 0; i--) \n\t\t\t\t//If the row is an odd-number, move L-R\n\t\t\t\tif (i % 2 != 0) {\n\t\t\t\t\tfor (int j = 0; j < columns; j++) \n\t\t\t\t\t\tBoardPathRepository.put(space_number++, board.getTile(i, j));}\n\t\t\t\telse {\n\t\t\t\t\tfor (int j = columns-1; j >=0; j--) \n\t\t\t\t\t\tBoardPathRepository.put(space_number++, board.getTile(i, j));\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t}" ]
[ "0.5475258", "0.5382969", "0.52975744", "0.52931476", "0.5212751", "0.5184087", "0.51620936", "0.5139127", "0.509892", "0.50700736", "0.5064612", "0.50379485", "0.49882936", "0.49350035", "0.49133053", "0.4904552", "0.4904552", "0.4895881", "0.489463", "0.48927748", "0.48925203", "0.4887277", "0.48805135", "0.48711538", "0.4864513", "0.4864415", "0.48637888", "0.48625618", "0.48510286", "0.48308665", "0.48268887", "0.48259", "0.4821082", "0.48197708", "0.48174876", "0.48127863", "0.48123902", "0.4812346", "0.48119196", "0.48110032", "0.48110032", "0.480419", "0.4798305", "0.47941896", "0.47893223", "0.47892547", "0.4788593", "0.47841203", "0.4776782", "0.4773375", "0.47685406", "0.4765791", "0.47614262", "0.4760587", "0.47605675", "0.475963", "0.47479397", "0.47366896", "0.47357148", "0.47329682", "0.47321844", "0.47306448", "0.47293493", "0.4722273", "0.47205484", "0.4720543", "0.47162944", "0.4713207", "0.47126883", "0.4708455", "0.4699808", "0.46947607", "0.46926662", "0.46925187", "0.46869498", "0.46864334", "0.46864113", "0.46819192", "0.46819192", "0.46811858", "0.4678837", "0.46628356", "0.46627232", "0.4660936", "0.46561608", "0.46538582", "0.46524933", "0.46493474", "0.4647901", "0.4647361", "0.46458247", "0.46458247", "0.46456298", "0.46436247", "0.46431977", "0.4641026", "0.46402365", "0.46373904", "0.46354383", "0.4634731", "0.4633185" ]
0.0
-1
/ / / / /
private void mouseDownReqEvi() /* */ { /* 159 */ if (this.downNode >= 0) { /* */ boolean bool; /* 161 */ if (this.bn != null) bool = this.bn.isObserved(this.downNode); else /* 162 */ bool = this.mn.isObserved(this.downNode); /* 163 */ if (bool) { HelpPanel.showError("This variable has been observed."); /* */ } /* 165 */ else if (this.server == null) { /* 166 */ HelpPanel.addHelp("Please enter server address/port."); /* 167 */ Network.VectorDialog localVectorDialog = new Network.VectorDialog(this.frame, this, "Simulator Infor", getPrompt(), getDefault(), 16, 100, 100); /* */ /* */ /* */ /* */ /* 172 */ localVectorDialog.setVisible(true); /* */ } else { /* 174 */ requestAndEnterEvi(this.downNode); /* */ } /* */ } /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "private int parent(int i){return (i-1)/2;}", "public abstract void bepaalGrootte();", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public void gored() {\n\t\t\n\t}", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "public abstract String division();", "private int leftChild(int i){return 2*i+1;}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "double passer();", "public String ring();", "private int rightChild(int i){return 2*i+2;}", "public String toString(){ return \"DIV\";}", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "static void pyramid(){\n\t}", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "public void stg() {\n\n\t}", "void mo33732Px();", "Operations operations();", "void sharpen();", "void sharpen();", "public void skystonePos4() {\n }", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "double volume(){\n return width*height*depth;\n }", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "public int generateRoshambo(){\n ;]\n\n }", "@Override\n public void bfs() {\n\n }", "public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "int getWidth() {return width;}", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "Parallelogram(){\n length = width = height = 0;\n }", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "void ringBell() {\n\n }", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "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}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "int width();", "private boolean slash() {\r\n return MARK(OPERATOR) && CHAR('/') && gap();\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}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "void walk() {\n\t\t\n\t}", "double getPerimeter(){\n return 2*height+width;\n }", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "public double getWidth() { return _width<0? -_width : _width; }", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "@Override\npublic void processDirection() {\n\t\n}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "double volume() {\n\treturn width*height*depth;\n}", "@Override\r\n public void draw()\r\n {\n\r\n }", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "public static void method1(){\n System.out.println(\"*****\");\n System.out.println(\"*****\");\n System.out.println(\" * *\");\n System.out.println(\" *\");\n System.out.println(\" * *\");\n }", "@Override\n\tpublic void draw3() {\n\n\t}", "private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }", "int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}", "double defendre();", "public void getTile_B8();", "public void SubRect(){\n\t\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}", "void mo21076g();", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "public double getWidth() {\n return this.size * 2.0; \n }", "public void skystonePos2() {\n }", "public void skystonePos5() {\n }", "public double getPerimiter(){return (2*height +2*width);}", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "public static void topHalf() {\n \t\n for( int i = 1; i <= SIZE; i++){\n for(int spaces = 1; spaces <= 3*SIZE - 3*i; spaces++) {\n System.out.print(\" \"); \n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"__/\");\n }\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n System.out.print(\"||\");\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"\\\\__\");\n }\n \n System.out.println();\n }\n \n System.out.print(\"|\");\n \n for(int i = 1; i <= 6 * SIZE; i++) {\n System.out.print(\"\\\"\");\n }\n \n System.out.println(\"|\");\n }", "public static void body() {\n \tfor(int i = 1; i <= SIZE*SIZE; i++) {\n for(int j = 1; j <= 3*SIZE-(SIZE-1); j++) {\n System.out.print(\" \");\n }\n \n System.out.print(\"|\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"||\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"|\");\n \n System.out.println();\n }\n }", "public void skystonePos3() {\n }", "double seBlesser();", "public wall() { //default constructor makes a 10x10 square extending right and down from the pixel located at 5,5\r\n x = 5;\r\n y = 5;\r\n height = 10;\r\n width = 10;\r\n }", "void block(Directions dir);", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "public static void main(String[] args) {\nint i,j,k;\r\nint num=5;\r\nfor(i=0;i<num;i++){\r\n\tfor(j=0;j<i;j++){\r\n\t\tSystem.out.print(\" \");\r\n\t}\r\n\tfor(k=num; k>=2*i-1; k--){\r\n\t\tSystem.out.print(\"*\");\r\n\t}\r\n\t\r\n\tSystem.out.println();\r\n}\r\n\t}", "public RMPath getPath() { return RMPath.unitRectPath; }", "public int upright();", "private int uniquePaths(int x, int y, int[][] dp) {\n \t\tif (x == 0 || y == 0) return 1;\n \t\tif (dp[x][y] == 0)\n \t\t\tdp[x][y] = uniquePaths(x - 1, y, dp) + uniquePaths(x, y - 1, dp);\n \t\treturn dp[x][y];\n \t}", "public Integer getWidth(){return this.width;}", "public void skystonePos6() {\n }", "void GenerateBoardPath() {\n\t\t\t\n\t\t\tint rows = board.getRowsNum();\n\t\t\tint columns = board.getColsNum();\n\t\t\tint space_number = 1; \n\t\t\t\n\t\t\t\n\t\t\tfor (int i = rows - 1; i >= 0; i--) \n\t\t\t\t//If the row is an odd-number, move L-R\n\t\t\t\tif (i % 2 != 0) {\n\t\t\t\t\tfor (int j = 0; j < columns; j++) \n\t\t\t\t\t\tBoardPathRepository.put(space_number++, board.getTile(i, j));}\n\t\t\t\telse {\n\t\t\t\t\tfor (int j = columns-1; j >=0; j--) \n\t\t\t\t\t\tBoardPathRepository.put(space_number++, board.getTile(i, j));\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t}", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }", "@Override\n\tpublic void breath() {\n\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tint n = 7;\r\n\t\tfor (int i = n; i >= 0; i--) {\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t for(int j=0; j<n-i; j++) {\r\n\t\t\t \r\n\t\t\t System.out.print(\" \");\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\r\n\t\t\tfor (int j = n; j >= n-i; j--) {\r\n\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "@Override\n\tpublic void draw() {\n\t}", "private void division()\n\t{\n\t\tFun = Function.DIVIDE; //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}" ]
[ "0.5654086", "0.5282051", "0.5270874", "0.5268489", "0.5230159", "0.5229372", "0.5205559", "0.51923394", "0.51524484", "0.50993294", "0.50948834", "0.5071109", "0.5043058", "0.5009983", "0.5006536", "0.49739555", "0.49691963", "0.4959123", "0.49568397", "0.49425906", "0.49421698", "0.49421698", "0.4903223", "0.4897176", "0.48879617", "0.48803073", "0.48741165", "0.48718095", "0.48679698", "0.48646608", "0.48598114", "0.48402584", "0.48362267", "0.48321876", "0.48310882", "0.4825809", "0.48227587", "0.48175377", "0.48045233", "0.48045233", "0.48002362", "0.47911668", "0.47906598", "0.4776121", "0.47734705", "0.47673976", "0.475685", "0.47517157", "0.47446346", "0.47364715", "0.47353277", "0.47321412", "0.47242466", "0.4721296", "0.47190621", "0.47164857", "0.47148356", "0.47142458", "0.47103566", "0.47027764", "0.47023293", "0.4701804", "0.46992764", "0.46985114", "0.46954885", "0.4695406", "0.46914175", "0.4690724", "0.46901584", "0.4686765", "0.4682771", "0.46786475", "0.46786475", "0.4676364", "0.46714565", "0.46710065", "0.46701837", "0.46698236", "0.46671712", "0.466633", "0.4663725", "0.46617198", "0.46599096", "0.46593648", "0.4654308", "0.46481097", "0.46472353", "0.46443266", "0.46441418", "0.46438584", "0.4642061", "0.46387514", "0.46382058", "0.46375832", "0.4636777", "0.46365395", "0.46365395", "0.46359038", "0.4635539", "0.46332848", "0.46326485" ]
0.0
-1
/ / / / /
String reqVarValue(String paramString) /* */ { /* 234 */ java.net.Socket localSocket = null; /* 235 */ int i = Integer.parseInt(this.portNum); /* */ try { /* 237 */ localSocket = new java.net.Socket(this.server, i); /* */ } catch (java.net.UnknownHostException localUnknownHostException) { /* 239 */ HelpPanel.showError(localUnknownHostException.getMessage()); /* 240 */ this.server = null;this.portNum = null;return null; /* */ } catch (IOException localIOException1) { /* 242 */ HelpPanel.showError(localIOException1.getMessage()); /* 243 */ this.server = null;this.portNum = null;return null; /* */ } /* */ try /* */ { /* 247 */ BufferedReader localBufferedReader = new BufferedReader(new java.io.InputStreamReader(localSocket.getInputStream())); /* */ /* 249 */ java.io.PrintWriter localPrintWriter = new java.io.PrintWriter(new java.io.BufferedWriter(new java.io.OutputStreamWriter(localSocket.getOutputStream())), true); /* */ /* */ /* 252 */ localPrintWriter.println(paramString); /* */ /* 254 */ String str1 = localBufferedReader.readLine(); /* 255 */ java.util.StringTokenizer localStringTokenizer = new java.util.StringTokenizer(str1); /* 256 */ if (!localStringTokenizer.nextToken().equals(paramString)) { /* 257 */ HelpPanel.showError("Incorrect var name in reply."); /* 258 */ return null; /* */ } /* 260 */ String str2 = localStringTokenizer.nextToken(); /* 261 */ if (str2.equals("0")) { /* 262 */ HelpPanel.showError("Invalid request or unobservable variable."); /* 263 */ return null; /* */ } /* 265 */ if (str2.equals("-1")) { /* 266 */ HelpPanel.showError("Simulator not ready.");return null; /* */ } /* 268 */ return localStringTokenizer.nextToken(); /* */ } catch (IOException localIOException2) { /* 270 */ HelpPanel.showError(localIOException2.getMessage()); } /* 271 */ return null; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "private int parent(int i){return (i-1)/2;}", "public abstract void bepaalGrootte();", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public void gored() {\n\t\t\n\t}", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "public abstract String division();", "private int leftChild(int i){return 2*i+1;}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "double passer();", "public String ring();", "private int rightChild(int i){return 2*i+2;}", "public String toString(){ return \"DIV\";}", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "static void pyramid(){\n\t}", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "public void stg() {\n\n\t}", "void mo33732Px();", "Operations operations();", "void sharpen();", "void sharpen();", "public void skystonePos4() {\n }", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "double volume(){\n return width*height*depth;\n }", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "public int generateRoshambo(){\n ;]\n\n }", "@Override\n public void bfs() {\n\n }", "public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "int getWidth() {return width;}", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "Parallelogram(){\n length = width = height = 0;\n }", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "void ringBell() {\n\n }", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "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}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "int width();", "private boolean slash() {\r\n return MARK(OPERATOR) && CHAR('/') && gap();\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}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "void walk() {\n\t\t\n\t}", "double getPerimeter(){\n return 2*height+width;\n }", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "public double getWidth() { return _width<0? -_width : _width; }", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "@Override\npublic void processDirection() {\n\t\n}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "double volume() {\n\treturn width*height*depth;\n}", "@Override\r\n public void draw()\r\n {\n\r\n }", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "public static void method1(){\n System.out.println(\"*****\");\n System.out.println(\"*****\");\n System.out.println(\" * *\");\n System.out.println(\" *\");\n System.out.println(\" * *\");\n }", "@Override\n\tpublic void draw3() {\n\n\t}", "private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }", "int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}", "double defendre();", "public void getTile_B8();", "public void SubRect(){\n\t\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}", "void mo21076g();", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "public double getWidth() {\n return this.size * 2.0; \n }", "public void skystonePos2() {\n }", "public void skystonePos5() {\n }", "public double getPerimiter(){return (2*height +2*width);}", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "public static void topHalf() {\n \t\n for( int i = 1; i <= SIZE; i++){\n for(int spaces = 1; spaces <= 3*SIZE - 3*i; spaces++) {\n System.out.print(\" \"); \n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"__/\");\n }\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n System.out.print(\"||\");\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"\\\\__\");\n }\n \n System.out.println();\n }\n \n System.out.print(\"|\");\n \n for(int i = 1; i <= 6 * SIZE; i++) {\n System.out.print(\"\\\"\");\n }\n \n System.out.println(\"|\");\n }", "public static void body() {\n \tfor(int i = 1; i <= SIZE*SIZE; i++) {\n for(int j = 1; j <= 3*SIZE-(SIZE-1); j++) {\n System.out.print(\" \");\n }\n \n System.out.print(\"|\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"||\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"|\");\n \n System.out.println();\n }\n }", "public void skystonePos3() {\n }", "double seBlesser();", "public wall() { //default constructor makes a 10x10 square extending right and down from the pixel located at 5,5\r\n x = 5;\r\n y = 5;\r\n height = 10;\r\n width = 10;\r\n }", "void block(Directions dir);", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "public static void main(String[] args) {\nint i,j,k;\r\nint num=5;\r\nfor(i=0;i<num;i++){\r\n\tfor(j=0;j<i;j++){\r\n\t\tSystem.out.print(\" \");\r\n\t}\r\n\tfor(k=num; k>=2*i-1; k--){\r\n\t\tSystem.out.print(\"*\");\r\n\t}\r\n\t\r\n\tSystem.out.println();\r\n}\r\n\t}", "public RMPath getPath() { return RMPath.unitRectPath; }", "public int upright();", "private int uniquePaths(int x, int y, int[][] dp) {\n \t\tif (x == 0 || y == 0) return 1;\n \t\tif (dp[x][y] == 0)\n \t\t\tdp[x][y] = uniquePaths(x - 1, y, dp) + uniquePaths(x, y - 1, dp);\n \t\treturn dp[x][y];\n \t}", "public Integer getWidth(){return this.width;}", "public void skystonePos6() {\n }", "void GenerateBoardPath() {\n\t\t\t\n\t\t\tint rows = board.getRowsNum();\n\t\t\tint columns = board.getColsNum();\n\t\t\tint space_number = 1; \n\t\t\t\n\t\t\t\n\t\t\tfor (int i = rows - 1; i >= 0; i--) \n\t\t\t\t//If the row is an odd-number, move L-R\n\t\t\t\tif (i % 2 != 0) {\n\t\t\t\t\tfor (int j = 0; j < columns; j++) \n\t\t\t\t\t\tBoardPathRepository.put(space_number++, board.getTile(i, j));}\n\t\t\t\telse {\n\t\t\t\t\tfor (int j = columns-1; j >=0; j--) \n\t\t\t\t\t\tBoardPathRepository.put(space_number++, board.getTile(i, j));\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t}", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }", "@Override\n\tpublic void breath() {\n\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tint n = 7;\r\n\t\tfor (int i = n; i >= 0; i--) {\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t for(int j=0; j<n-i; j++) {\r\n\t\t\t \r\n\t\t\t System.out.print(\" \");\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\r\n\t\t\tfor (int j = n; j >= n-i; j--) {\r\n\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "@Override\n\tpublic void draw() {\n\t}", "private void division()\n\t{\n\t\tFun = Function.DIVIDE; //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}" ]
[ "0.5654086", "0.5282051", "0.5270874", "0.5268489", "0.5230159", "0.5229372", "0.5205559", "0.51923394", "0.51524484", "0.50993294", "0.50948834", "0.5071109", "0.5043058", "0.5009983", "0.5006536", "0.49739555", "0.49691963", "0.4959123", "0.49568397", "0.49425906", "0.49421698", "0.49421698", "0.4903223", "0.4897176", "0.48879617", "0.48803073", "0.48741165", "0.48718095", "0.48679698", "0.48646608", "0.48598114", "0.48402584", "0.48362267", "0.48321876", "0.48310882", "0.4825809", "0.48227587", "0.48175377", "0.48045233", "0.48045233", "0.48002362", "0.47911668", "0.47906598", "0.4776121", "0.47734705", "0.47673976", "0.475685", "0.47517157", "0.47446346", "0.47364715", "0.47353277", "0.47321412", "0.47242466", "0.4721296", "0.47190621", "0.47164857", "0.47148356", "0.47142458", "0.47103566", "0.47027764", "0.47023293", "0.4701804", "0.46992764", "0.46985114", "0.46954885", "0.4695406", "0.46914175", "0.4690724", "0.46901584", "0.4686765", "0.4682771", "0.46786475", "0.46786475", "0.4676364", "0.46714565", "0.46710065", "0.46701837", "0.46698236", "0.46671712", "0.466633", "0.4663725", "0.46617198", "0.46599096", "0.46593648", "0.4654308", "0.46481097", "0.46472353", "0.46443266", "0.46441418", "0.46438584", "0.4642061", "0.46387514", "0.46382058", "0.46375832", "0.4636777", "0.46365395", "0.46365395", "0.46359038", "0.4635539", "0.46332848", "0.46326485" ]
0.0
-1
/ / / / /
private void mouseDownInEvi(int paramInt) /* */ { /* 279 */ if (paramInt >= 0) { /* */ boolean bool; /* 281 */ if (this.bn != null) bool = this.bn.isObserved(paramInt); else /* 282 */ bool = this.mn.isObserved(paramInt); /* 283 */ if (!bool) { /* 284 */ HelpPanel.addHelp("Enter 0 for impossible value and 1 otherwise."); /* 285 */ Network.VectorDialog localVectorDialog = new Network.VectorDialog(this.frame, this, getLabel(paramInt), getState(paramInt), getDefaultEvi(paramInt), 16, 100, 100); /* */ /* */ /* */ /* */ /* */ /* 291 */ localVectorDialog.setVisible(true); /* */ } else { /* 293 */ HelpPanel.showError("Evidence on this node has been entered!"); /* */ } } /* 295 */ this.pmode = 0; /* 296 */ repaint(); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "private int parent(int i){return (i-1)/2;}", "public abstract void bepaalGrootte();", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public void gored() {\n\t\t\n\t}", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "public abstract String division();", "private int leftChild(int i){return 2*i+1;}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "double passer();", "public String ring();", "private int rightChild(int i){return 2*i+2;}", "public String toString(){ return \"DIV\";}", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "static void pyramid(){\n\t}", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "public void stg() {\n\n\t}", "void mo33732Px();", "Operations operations();", "void sharpen();", "void sharpen();", "public void skystonePos4() {\n }", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "double volume(){\n return width*height*depth;\n }", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "public int generateRoshambo(){\n ;]\n\n }", "@Override\n public void bfs() {\n\n }", "public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "int getWidth() {return width;}", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "Parallelogram(){\n length = width = height = 0;\n }", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "void ringBell() {\n\n }", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "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}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "int width();", "private boolean slash() {\r\n return MARK(OPERATOR) && CHAR('/') && gap();\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}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "void walk() {\n\t\t\n\t}", "double getPerimeter(){\n return 2*height+width;\n }", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "public double getWidth() { return _width<0? -_width : _width; }", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "@Override\npublic void processDirection() {\n\t\n}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "double volume() {\n\treturn width*height*depth;\n}", "@Override\r\n public void draw()\r\n {\n\r\n }", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "public static void method1(){\n System.out.println(\"*****\");\n System.out.println(\"*****\");\n System.out.println(\" * *\");\n System.out.println(\" *\");\n System.out.println(\" * *\");\n }", "@Override\n\tpublic void draw3() {\n\n\t}", "private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }", "int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}", "double defendre();", "public void getTile_B8();", "public void SubRect(){\n\t\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}", "void mo21076g();", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "public double getWidth() {\n return this.size * 2.0; \n }", "public void skystonePos2() {\n }", "public void skystonePos5() {\n }", "public double getPerimiter(){return (2*height +2*width);}", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "public static void topHalf() {\n \t\n for( int i = 1; i <= SIZE; i++){\n for(int spaces = 1; spaces <= 3*SIZE - 3*i; spaces++) {\n System.out.print(\" \"); \n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"__/\");\n }\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n System.out.print(\"||\");\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"\\\\__\");\n }\n \n System.out.println();\n }\n \n System.out.print(\"|\");\n \n for(int i = 1; i <= 6 * SIZE; i++) {\n System.out.print(\"\\\"\");\n }\n \n System.out.println(\"|\");\n }", "public static void body() {\n \tfor(int i = 1; i <= SIZE*SIZE; i++) {\n for(int j = 1; j <= 3*SIZE-(SIZE-1); j++) {\n System.out.print(\" \");\n }\n \n System.out.print(\"|\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"||\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"|\");\n \n System.out.println();\n }\n }", "public void skystonePos3() {\n }", "double seBlesser();", "public wall() { //default constructor makes a 10x10 square extending right and down from the pixel located at 5,5\r\n x = 5;\r\n y = 5;\r\n height = 10;\r\n width = 10;\r\n }", "void block(Directions dir);", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "public static void main(String[] args) {\nint i,j,k;\r\nint num=5;\r\nfor(i=0;i<num;i++){\r\n\tfor(j=0;j<i;j++){\r\n\t\tSystem.out.print(\" \");\r\n\t}\r\n\tfor(k=num; k>=2*i-1; k--){\r\n\t\tSystem.out.print(\"*\");\r\n\t}\r\n\t\r\n\tSystem.out.println();\r\n}\r\n\t}", "public RMPath getPath() { return RMPath.unitRectPath; }", "public int upright();", "private int uniquePaths(int x, int y, int[][] dp) {\n \t\tif (x == 0 || y == 0) return 1;\n \t\tif (dp[x][y] == 0)\n \t\t\tdp[x][y] = uniquePaths(x - 1, y, dp) + uniquePaths(x, y - 1, dp);\n \t\treturn dp[x][y];\n \t}", "public Integer getWidth(){return this.width;}", "public void skystonePos6() {\n }", "void GenerateBoardPath() {\n\t\t\t\n\t\t\tint rows = board.getRowsNum();\n\t\t\tint columns = board.getColsNum();\n\t\t\tint space_number = 1; \n\t\t\t\n\t\t\t\n\t\t\tfor (int i = rows - 1; i >= 0; i--) \n\t\t\t\t//If the row is an odd-number, move L-R\n\t\t\t\tif (i % 2 != 0) {\n\t\t\t\t\tfor (int j = 0; j < columns; j++) \n\t\t\t\t\t\tBoardPathRepository.put(space_number++, board.getTile(i, j));}\n\t\t\t\telse {\n\t\t\t\t\tfor (int j = columns-1; j >=0; j--) \n\t\t\t\t\t\tBoardPathRepository.put(space_number++, board.getTile(i, j));\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t}", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }", "@Override\n\tpublic void breath() {\n\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tint n = 7;\r\n\t\tfor (int i = n; i >= 0; i--) {\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t for(int j=0; j<n-i; j++) {\r\n\t\t\t \r\n\t\t\t System.out.print(\" \");\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\r\n\t\t\tfor (int j = n; j >= n-i; j--) {\r\n\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "@Override\n\tpublic void draw() {\n\t}", "private void division()\n\t{\n\t\tFun = Function.DIVIDE; //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}" ]
[ "0.5654086", "0.5282051", "0.5270874", "0.5268489", "0.5230159", "0.5229372", "0.5205559", "0.51923394", "0.51524484", "0.50993294", "0.50948834", "0.5071109", "0.5043058", "0.5009983", "0.5006536", "0.49739555", "0.49691963", "0.4959123", "0.49568397", "0.49425906", "0.49421698", "0.49421698", "0.4903223", "0.4897176", "0.48879617", "0.48803073", "0.48741165", "0.48718095", "0.48679698", "0.48646608", "0.48598114", "0.48402584", "0.48362267", "0.48321876", "0.48310882", "0.4825809", "0.48227587", "0.48175377", "0.48045233", "0.48045233", "0.48002362", "0.47911668", "0.47906598", "0.4776121", "0.47734705", "0.47673976", "0.475685", "0.47517157", "0.47446346", "0.47364715", "0.47353277", "0.47321412", "0.47242466", "0.4721296", "0.47190621", "0.47164857", "0.47148356", "0.47142458", "0.47103566", "0.47027764", "0.47023293", "0.4701804", "0.46992764", "0.46985114", "0.46954885", "0.4695406", "0.46914175", "0.4690724", "0.46901584", "0.4686765", "0.4682771", "0.46786475", "0.46786475", "0.4676364", "0.46714565", "0.46710065", "0.46701837", "0.46698236", "0.46671712", "0.466633", "0.4663725", "0.46617198", "0.46599096", "0.46593648", "0.4654308", "0.46481097", "0.46472353", "0.46443266", "0.46441418", "0.46438584", "0.4642061", "0.46387514", "0.46382058", "0.46375832", "0.4636777", "0.46365395", "0.46365395", "0.46359038", "0.4635539", "0.46332848", "0.46326485" ]
0.0
-1
/ / / /
private void mouseDownInProb(int paramInt) /* */ { /* 332 */ if (paramInt >= 0) { /* 333 */ this.frame.setCursor(new java.awt.Cursor(3)); /* 334 */ Network.ProbDialog localProbDialog = new Network.ProbDialog(this.frame, this, "Cluster " + this.jt.getLabel(paramInt), getCqMemberLabel(paramInt), getCqMemberState(paramInt), this.jt.getBelief(paramInt), paramInt, 12, 10, 10, 100); /* */ /* */ /* */ /* */ /* */ /* */ /* 341 */ localProbDialog.setVisible(true); /* 342 */ this.frame.setCursor(new java.awt.Cursor(0)); /* 343 */ repaint(); /* */ } /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public abstract String division();", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "private boolean slash() {\r\n return MARK(OPERATOR) && CHAR('/') && gap();\r\n }", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "public void gored() {\n\t\t\n\t}", "public String toString(){ return \"DIV\";}", "private int parent(int i){return (i-1)/2;}", "public String ring();", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "private int leftChild(int i){return 2*i+1;}", "double passer();", "static void pyramid(){\n\t}", "public void stg() {\n\n\t}", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "void mo33732Px();", "Operations operations();", "private int rightChild(int i){return 2*i+2;}", "private void division()\n\t{\n\t\tFun = Function.DIVIDE; //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}", "@Override\n\tpublic float dividir(float op1, float op2) {\n\t\treturn op1 / op2;\n\t}", "void sharpen();", "void sharpen();", "double defendre();", "public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }", "public int generateRoshambo(){\n ;]\n\n }", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "String divideAtWhite()[]{ return null; }", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "double volume(){\n return width*height*depth;\n }", "public void skystonePos4() {\n }", "void ringBell() {\n\n }", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public static void method1(){\n System.out.println(\"*****\");\n System.out.println(\"*****\");\n System.out.println(\" * *\");\n System.out.println(\" *\");\n System.out.println(\" * *\");\n }", "public int division(int x,int y){\n System.out.println(\"division methods\");\n int d=x/y;\n return d;\n\n }", "void mo21076g();", "private boolean dividingByZero(String operator){\n if (numStack.peek() == 0 && operator.equals(\"/\")){\n return true;\n }\n return false;\n }", "@Override\n public void bfs() {\n\n }", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "Parallelogram(){\n length = width = height = 0;\n }", "public Divide(){\n }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "@Override\r\n\tpublic void div(int x, int y) {\n\t\t\r\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "@Override\npublic void div(int a, int b) {\n\t\n}", "private double triangleBase() {\n return cellWidth() / BASE_WIDTH;\n }", "double volume() {\n\treturn width*height*depth;\n}", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\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}", "int getWidth() {return width;}", "int width();", "public void divide(int dirOp1, int dirOp2, int dirRes) {\n //traduce casos de direccionamiento indirecto\n dirOp1 = traduceDirIndirecto(dirOp1);\n dirOp2 = traduceDirIndirecto(dirOp2);\n if (ManejadorMemoria.isConstante(dirOp1)) { // OPERANDO 1 CTE\n String valor1 = this.directorioProcedimientos.getConstantes().get(dirOp1).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { //RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n } else if (ManejadorMemoria.isGlobal(dirOp1)) { // OPERANDO 1 GLOBAL\n String valor1 = this.registroGlobal.getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n } else { // OPERANDO 1 LOCAL\n String valor1 = this.pilaRegistros.peek().getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES 2 LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { //OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n }\n }", "public static void main(String[] args) {\n\n\n\n System.out.println(4 * (1.0 - (1 / 3) + (1 / 5) - (1 / 7) + (1 / 9) - (1 / 11)));\n\n System.out.println(4 * (1.0 - (1/3) + (1/5) - (1/7)\n + (1 / 9) - (1/11) + (1/13)));\n }", "public static void topHalf() {\n \t\n for( int i = 1; i <= SIZE; i++){\n for(int spaces = 1; spaces <= 3*SIZE - 3*i; spaces++) {\n System.out.print(\" \"); \n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"__/\");\n }\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n System.out.print(\"||\");\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"\\\\__\");\n }\n \n System.out.println();\n }\n \n System.out.print(\"|\");\n \n for(int i = 1; i <= 6 * SIZE; i++) {\n System.out.print(\"\\\"\");\n }\n \n System.out.println(\"|\");\n }", "@Override\r\n\tpublic int div() {\n\t\treturn 0;\r\n\t}", "private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }", "public double getWidth() { return _width<0? -_width : _width; }", "double getPerimeter(){\n return 2*height+width;\n }", "public void mo3376r() {\n }", "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}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic double divide(double in1, double in2) {\n\t\treturn 0;\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "public static void main (String[] args){\n Scanner s=new Scanner(System.in);\n int n=s.nextInt();\n if(n%2==1)\n {\n n=n/2;\n n++;\n }\n else\n {\n n=n/2;\n }\n for(int i=1;i<=n;i++)\n {\n for(int k=1;k<=i-1;k++)\n {\n System.out.print(\" \");\n }\n for(int j=1;j<=((2*n-1)-2*(i-1));j++)\n {\n if(j==1||j==((2*n-1)-2*(i-1)))\n System.out.print(\"*\");\n else\n System.out.print(\" \");\n }\n System.out.println();\n }\n for(int i=2;i<=n;i++)\n {\n for(int k=1;k<=n-i;k++)\n {\n System.out.print(\" \");\n }\n for(int j=1;j<i*2;j++)\n {\n if(j==1||j==(i*2-1))\n System.out.print(\"*\");\n else\n System.out.print(\" \");\n }\n System.out.println();\n }\n\t}", "public RMPath getPath() { return RMPath.unitRectPath; }", "void walk() {\n\t\t\n\t}", "public static void giant() {\n System.out.println(\" --------- \");\n System.out.println(\" | / \\\\| \");\n System.out.println(\" ZZZZZH | O | HZZZZZ \");\n System.out.println(\" H ----------- H \");\n System.out.println(\" ZZZZZHHHHHHHHHHHHHHHHHHHHHZZZZZ \");\n System.out.println(\" H HHHHHHHHHHH H \");\n System.out.println(\" ZZZZZH HHHHHHHHHHH HZZZZZ \");\n System.out.println(\" HHHHHHHHHHH \");\n System.out.println(\" HHH HHH \");\n System.out.println(\" HHH HHH \");\n }", "public void title ()\n {\n\tprintSlow (\" _ __\");\n\tprintSlow (\" ___ | ' \\\\\");\n\tprintSlow (\" ___ \\\\ / ___ ,'\\\\_ | .-. \\\\ /|\");\n\tprintSlow (\" \\\\ / | |,'__ \\\\ ,'\\\\_ | \\\\ | | | | ,' |_ /|\");\n\tprintSlow (\" _ | | | |\\\\/ \\\\ \\\\ | \\\\ | |\\\\_| _ | |_| | _ '-. .-',' |_ _\");\n\tprintSlow (\" // | | | |____| | | |\\\\_|| |__ // | | ,'_`. | | '-. .-',' `. ,'\\\\_\");\n\tprintSlow (\" \\\\\\\\_| |_,' .-, _ | | | | |\\\\ \\\\ // .| |\\\\_/ | / \\\\ || | | | / |\\\\ \\\\| \\\\\");\n\tprintSlow (\" `-. .-'| |/ / | | | | | | \\\\ \\\\// | | | | | || | | | | |_\\\\ || |\\\\_|\");\n\tprintSlow (\" | | | || \\\\_| | | | /_\\\\ \\\\ / | |` | | | || | | | | .---'| |\");\n\tprintSlow (\" | | | |\\\\___,_\\\\ /_\\\\ _ // | | | \\\\_/ || | | | | | /\\\\| |\");\n\tprintSlow (\" /_\\\\ | | //_____// .||` `._,' | | | | \\\\ `-' /| |\");\n\tprintSlow (\" /_\\\\ `------' \\\\ | AND `.\\\\ | | `._,' /_\\\\\");\n\tprintSlow (\" \\\\| HIS `.\\\\\");\n\tprintSlow (\" __ __ _ _ _ _ \");\n\tprintSlow (\" | \\\\/ | (_) | | /\\\\ | | | | \");\n\tprintSlow (\" | \\\\ / | __ _ __ _ _ ___ __ _| | / \\\\ __| |_ _____ _ __ | |_ _ _ _ __ ___ \");\n\tprintSlow (\" | |\\\\/| |/ _` |/ _` | |/ __/ _` | | / /\\\\ \\\\ / _` \\\\ \\\\ / / _ \\\\ '_ \\\\| __| | | | '__/ _ \\\\\");\n\tprintSlow (\" | | | | (_| | (_| | | (_| (_| | | / ____ \\\\ (_| |\\\\ V / __/ | | | |_| |_| | | | __/\");\n\tprintSlow (\" |_| |_|\\\\__,_|\\\\__, |_|\\\\___\\\\__,_|_| /_/ \\\\_\\\\__,_| \\\\_/ \\\\___|_| |_|\\\\__|\\\\__,_|_| \\\\___|\");\n\tprintSlow (\" __/ | \");\n\tprintSlow (\" |___/ \\n\\n\\n\");\n\n\n }", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "double area() {\nSystem.out.println(\"Inside Area for Triangle.\");\nreturn dim1 * dim2 / 2;\n}", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }", "public SoNode \ngetCurPathTail() \n{\n//#ifdef DEBUG\n if (currentpath.getTail() != (SoFullPath.cast(getCurPath())).getTail()){\n SoDebugError.post(\"SoAction::getCurPathTail\\n\", \n \"Inconsistent path tail. Did you change the scene graph\\n\"+\n \"During traversal?\\n\");\n }\n//#endif /*DEBUG*/\n return(currentpath.getTail());\n}", "@Override\n\tpublic void breath() {\n\n\t}", "public static void main(String[] args) {\nint i,j,k;\r\nint num=5;\r\nfor(i=0;i<num;i++){\r\n\tfor(j=0;j<i;j++){\r\n\t\tSystem.out.print(\" \");\r\n\t}\r\n\tfor(k=num; k>=2*i-1; k--){\r\n\t\tSystem.out.print(\"*\");\r\n\t}\r\n\t\r\n\tSystem.out.println();\r\n}\r\n\t}", "@Override\n\tpublic void div(double dx, double dy) {\n\t\t\n\t}", "public PathCode getCurPathCode() { return /*appliedTo.curPathCode*/currentpathcode;}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "static String division (String s1, String s2) {\r\n if (s2==null || s2.length()==0) return s1;\r\n return product (s1, invert(s2));\r\n }", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public static void body() {\n \tfor(int i = 1; i <= SIZE*SIZE; i++) {\n for(int j = 1; j <= 3*SIZE-(SIZE-1); j++) {\n System.out.print(\" \");\n }\n \n System.out.print(\"|\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"||\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"|\");\n \n System.out.println();\n }\n }", "private int uniquePaths(int x, int y, int[][] dp) {\n \t\tif (x == 0 || y == 0) return 1;\n \t\tif (dp[x][y] == 0)\n \t\t\tdp[x][y] = uniquePaths(x - 1, y, dp) + uniquePaths(x, y - 1, dp);\n \t\treturn dp[x][y];\n \t}", "public void star(float x, float y, float r, float R) {\n float angle = TWO_PI / 5;\n float halfAngle = angle/2.0f;\n beginShape();\n noStroke();\n for (float a = 0; a < TWO_PI; a += angle) {\n float sx = x + cos(a) * r;\n float sy = y + sin(a) * r;\n vertex(sx, sy);\n sx = x + cos(a+halfAngle) * R;\n sy = y + sin(a+halfAngle) * R;\n vertex(sx, sy);\n }\n endShape(CLOSE);\n}", "@Override\r\n\tpublic void CalcPeri() {\n\t\tSystem.out.println(4*side);\t\r\n\t}", "public int upright();", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tint n = 7;\r\n\t\tfor (int i = n; i >= 0; i--) {\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t for(int j=0; j<n-i; j++) {\r\n\t\t\t \r\n\t\t\t System.out.print(\" \");\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\r\n\t\t\tfor (int j = n; j >= n-i; j--) {\r\n\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public void backSlash() {\n text.append(\"\\\\\");\n }", "public static void main(String[] args){\t\n\t\tchar op = '/';\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"첫번째 정수입니다.\");\n\t\tint num1 = scan.nextInt();\n\t\t\n\t\tSystem.out.println(\"두번째 정수입니다.\");\n\t\tint num2 = scan.nextInt();\n\t\tint num3=0;\n\t\tif(op=='+'){\n\t\t\tnum3 = num1+num2;\n\t\t}\n\t\telse if(op=='-'){\n\t\t\tnum3 = num1-num2;\n\t\t}\n\t\telse if(op=='*'){\n\t\t\tnum3 = num1*num2;\n\t\t}\n\t\telse if(op=='/'){\n\t\t\tif(num2==0){\n\t\t\tSystem.out.println(\"오류입니다.\");\n\t\t}\n\t\t\t\n\t\t\tnum3 = num1/num2;\n\t\t}\n\t\tSystem.out.printf(\"%d%c%d=%d\" ,num1,op,num2,num3);\n\t\t\n\t\t\n\t}", "public final void testSlash() \n\t\t\tthrows ParserConfigurationException, IOException, SAXException \n\t{\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnðýþnn\");\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnønn\");\n\t\tassertSingleResult(\"8\", fldName, \"nnunn\");\n\t}", "AngleResource inclination();", "public abstract void squareRootThis();", "public UniquePathsII() {\n\t\t// Initialization here. \n\t\t//\t\tcount = 0;\n\t}", "@Override\n\tpublic void space() {\n\t\t\n\t}" ]
[ "0.5907044", "0.55757374", "0.54290646", "0.5324536", "0.5295068", "0.5272019", "0.52588", "0.52563244", "0.5159332", "0.5141203", "0.5110246", "0.509765", "0.5026454", "0.50225997", "0.5010296", "0.4975172", "0.49682087", "0.4966245", "0.49318522", "0.49270573", "0.49162242", "0.48797953", "0.48736545", "0.48736545", "0.48562068", "0.4841211", "0.4840959", "0.48402923", "0.48392916", "0.48377198", "0.48342162", "0.48325795", "0.48187116", "0.48162276", "0.4803348", "0.4799214", "0.47899756", "0.47853452", "0.47712827", "0.4765248", "0.47615394", "0.47555804", "0.47528446", "0.4750462", "0.47477132", "0.4743887", "0.4743198", "0.47367924", "0.4728678", "0.47195697", "0.4715921", "0.471201", "0.47049487", "0.4702214", "0.46952188", "0.46910423", "0.4688903", "0.46881807", "0.468723", "0.46839595", "0.46822077", "0.46719712", "0.467077", "0.46688908", "0.46654338", "0.46654338", "0.46640727", "0.46588492", "0.4657012", "0.4653698", "0.4648119", "0.464767", "0.46472353", "0.46427825", "0.4637605", "0.4635679", "0.4634859", "0.4634175", "0.4633554", "0.4632264", "0.46306726", "0.46298337", "0.46248376", "0.4622511", "0.46142656", "0.4612938", "0.46121794", "0.460915", "0.4608209", "0.4605689", "0.4605496", "0.4601496", "0.46014163", "0.4600319", "0.45950425", "0.45942837", "0.45933586", "0.45922497", "0.4591421", "0.45881435", "0.45865366" ]
0.0
-1
/ / / /
public void setVector(int[] paramArrayOfInt) /* */ { /* 370 */ enterEvi(this.downNode, paramArrayOfInt); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public abstract String division();", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "private boolean slash() {\r\n return MARK(OPERATOR) && CHAR('/') && gap();\r\n }", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "public void gored() {\n\t\t\n\t}", "public String toString(){ return \"DIV\";}", "private int parent(int i){return (i-1)/2;}", "public String ring();", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "private int leftChild(int i){return 2*i+1;}", "double passer();", "static void pyramid(){\n\t}", "public void stg() {\n\n\t}", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "void mo33732Px();", "Operations operations();", "private int rightChild(int i){return 2*i+2;}", "private void division()\n\t{\n\t\tFun = Function.DIVIDE; //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}", "@Override\n\tpublic float dividir(float op1, float op2) {\n\t\treturn op1 / op2;\n\t}", "void sharpen();", "void sharpen();", "double defendre();", "public int generateRoshambo(){\n ;]\n\n }", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }", "String divideAtWhite()[]{ return null; }", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "double volume(){\n return width*height*depth;\n }", "public void skystonePos4() {\n }", "void ringBell() {\n\n }", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public static void method1(){\n System.out.println(\"*****\");\n System.out.println(\"*****\");\n System.out.println(\" * *\");\n System.out.println(\" *\");\n System.out.println(\" * *\");\n }", "public int division(int x,int y){\n System.out.println(\"division methods\");\n int d=x/y;\n return d;\n\n }", "void mo21076g();", "private boolean dividingByZero(String operator){\n if (numStack.peek() == 0 && operator.equals(\"/\")){\n return true;\n }\n return false;\n }", "@Override\n public void bfs() {\n\n }", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "Parallelogram(){\n length = width = height = 0;\n }", "public Divide(){\n }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "@Override\r\n\tpublic void div(int x, int y) {\n\t\t\r\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "@Override\npublic void div(int a, int b) {\n\t\n}", "private double triangleBase() {\n return cellWidth() / BASE_WIDTH;\n }", "double volume() {\n\treturn width*height*depth;\n}", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\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}", "int getWidth() {return width;}", "int width();", "public void divide(int dirOp1, int dirOp2, int dirRes) {\n //traduce casos de direccionamiento indirecto\n dirOp1 = traduceDirIndirecto(dirOp1);\n dirOp2 = traduceDirIndirecto(dirOp2);\n if (ManejadorMemoria.isConstante(dirOp1)) { // OPERANDO 1 CTE\n String valor1 = this.directorioProcedimientos.getConstantes().get(dirOp1).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { //RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n } else if (ManejadorMemoria.isGlobal(dirOp1)) { // OPERANDO 1 GLOBAL\n String valor1 = this.registroGlobal.getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n } else { // OPERANDO 1 LOCAL\n String valor1 = this.pilaRegistros.peek().getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES 2 LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { //OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n }\n }", "public static void main(String[] args) {\n\n\n\n System.out.println(4 * (1.0 - (1 / 3) + (1 / 5) - (1 / 7) + (1 / 9) - (1 / 11)));\n\n System.out.println(4 * (1.0 - (1/3) + (1/5) - (1/7)\n + (1 / 9) - (1/11) + (1/13)));\n }", "public static void topHalf() {\n \t\n for( int i = 1; i <= SIZE; i++){\n for(int spaces = 1; spaces <= 3*SIZE - 3*i; spaces++) {\n System.out.print(\" \"); \n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"__/\");\n }\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n System.out.print(\"||\");\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"\\\\__\");\n }\n \n System.out.println();\n }\n \n System.out.print(\"|\");\n \n for(int i = 1; i <= 6 * SIZE; i++) {\n System.out.print(\"\\\"\");\n }\n \n System.out.println(\"|\");\n }", "@Override\r\n\tpublic int div() {\n\t\treturn 0;\r\n\t}", "private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }", "public double getWidth() { return _width<0? -_width : _width; }", "double getPerimeter(){\n return 2*height+width;\n }", "public void mo3376r() {\n }", "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}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic double divide(double in1, double in2) {\n\t\treturn 0;\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "public static void main (String[] args){\n Scanner s=new Scanner(System.in);\n int n=s.nextInt();\n if(n%2==1)\n {\n n=n/2;\n n++;\n }\n else\n {\n n=n/2;\n }\n for(int i=1;i<=n;i++)\n {\n for(int k=1;k<=i-1;k++)\n {\n System.out.print(\" \");\n }\n for(int j=1;j<=((2*n-1)-2*(i-1));j++)\n {\n if(j==1||j==((2*n-1)-2*(i-1)))\n System.out.print(\"*\");\n else\n System.out.print(\" \");\n }\n System.out.println();\n }\n for(int i=2;i<=n;i++)\n {\n for(int k=1;k<=n-i;k++)\n {\n System.out.print(\" \");\n }\n for(int j=1;j<i*2;j++)\n {\n if(j==1||j==(i*2-1))\n System.out.print(\"*\");\n else\n System.out.print(\" \");\n }\n System.out.println();\n }\n\t}", "public RMPath getPath() { return RMPath.unitRectPath; }", "void walk() {\n\t\t\n\t}", "public static void giant() {\n System.out.println(\" --------- \");\n System.out.println(\" | / \\\\| \");\n System.out.println(\" ZZZZZH | O | HZZZZZ \");\n System.out.println(\" H ----------- H \");\n System.out.println(\" ZZZZZHHHHHHHHHHHHHHHHHHHHHZZZZZ \");\n System.out.println(\" H HHHHHHHHHHH H \");\n System.out.println(\" ZZZZZH HHHHHHHHHHH HZZZZZ \");\n System.out.println(\" HHHHHHHHHHH \");\n System.out.println(\" HHH HHH \");\n System.out.println(\" HHH HHH \");\n }", "public void title ()\n {\n\tprintSlow (\" _ __\");\n\tprintSlow (\" ___ | ' \\\\\");\n\tprintSlow (\" ___ \\\\ / ___ ,'\\\\_ | .-. \\\\ /|\");\n\tprintSlow (\" \\\\ / | |,'__ \\\\ ,'\\\\_ | \\\\ | | | | ,' |_ /|\");\n\tprintSlow (\" _ | | | |\\\\/ \\\\ \\\\ | \\\\ | |\\\\_| _ | |_| | _ '-. .-',' |_ _\");\n\tprintSlow (\" // | | | |____| | | |\\\\_|| |__ // | | ,'_`. | | '-. .-',' `. ,'\\\\_\");\n\tprintSlow (\" \\\\\\\\_| |_,' .-, _ | | | | |\\\\ \\\\ // .| |\\\\_/ | / \\\\ || | | | / |\\\\ \\\\| \\\\\");\n\tprintSlow (\" `-. .-'| |/ / | | | | | | \\\\ \\\\// | | | | | || | | | | |_\\\\ || |\\\\_|\");\n\tprintSlow (\" | | | || \\\\_| | | | /_\\\\ \\\\ / | |` | | | || | | | | .---'| |\");\n\tprintSlow (\" | | | |\\\\___,_\\\\ /_\\\\ _ // | | | \\\\_/ || | | | | | /\\\\| |\");\n\tprintSlow (\" /_\\\\ | | //_____// .||` `._,' | | | | \\\\ `-' /| |\");\n\tprintSlow (\" /_\\\\ `------' \\\\ | AND `.\\\\ | | `._,' /_\\\\\");\n\tprintSlow (\" \\\\| HIS `.\\\\\");\n\tprintSlow (\" __ __ _ _ _ _ \");\n\tprintSlow (\" | \\\\/ | (_) | | /\\\\ | | | | \");\n\tprintSlow (\" | \\\\ / | __ _ __ _ _ ___ __ _| | / \\\\ __| |_ _____ _ __ | |_ _ _ _ __ ___ \");\n\tprintSlow (\" | |\\\\/| |/ _` |/ _` | |/ __/ _` | | / /\\\\ \\\\ / _` \\\\ \\\\ / / _ \\\\ '_ \\\\| __| | | | '__/ _ \\\\\");\n\tprintSlow (\" | | | | (_| | (_| | | (_| (_| | | / ____ \\\\ (_| |\\\\ V / __/ | | | |_| |_| | | | __/\");\n\tprintSlow (\" |_| |_|\\\\__,_|\\\\__, |_|\\\\___\\\\__,_|_| /_/ \\\\_\\\\__,_| \\\\_/ \\\\___|_| |_|\\\\__|\\\\__,_|_| \\\\___|\");\n\tprintSlow (\" __/ | \");\n\tprintSlow (\" |___/ \\n\\n\\n\");\n\n\n }", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "double area() {\nSystem.out.println(\"Inside Area for Triangle.\");\nreturn dim1 * dim2 / 2;\n}", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }", "public SoNode \ngetCurPathTail() \n{\n//#ifdef DEBUG\n if (currentpath.getTail() != (SoFullPath.cast(getCurPath())).getTail()){\n SoDebugError.post(\"SoAction::getCurPathTail\\n\", \n \"Inconsistent path tail. Did you change the scene graph\\n\"+\n \"During traversal?\\n\");\n }\n//#endif /*DEBUG*/\n return(currentpath.getTail());\n}", "@Override\n\tpublic void breath() {\n\n\t}", "public static void main(String[] args) {\nint i,j,k;\r\nint num=5;\r\nfor(i=0;i<num;i++){\r\n\tfor(j=0;j<i;j++){\r\n\t\tSystem.out.print(\" \");\r\n\t}\r\n\tfor(k=num; k>=2*i-1; k--){\r\n\t\tSystem.out.print(\"*\");\r\n\t}\r\n\t\r\n\tSystem.out.println();\r\n}\r\n\t}", "@Override\n\tpublic void div(double dx, double dy) {\n\t\t\n\t}", "public PathCode getCurPathCode() { return /*appliedTo.curPathCode*/currentpathcode;}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "static String division (String s1, String s2) {\r\n if (s2==null || s2.length()==0) return s1;\r\n return product (s1, invert(s2));\r\n }", "public static void body() {\n \tfor(int i = 1; i <= SIZE*SIZE; i++) {\n for(int j = 1; j <= 3*SIZE-(SIZE-1); j++) {\n System.out.print(\" \");\n }\n \n System.out.print(\"|\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"||\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"|\");\n \n System.out.println();\n }\n }", "private int uniquePaths(int x, int y, int[][] dp) {\n \t\tif (x == 0 || y == 0) return 1;\n \t\tif (dp[x][y] == 0)\n \t\t\tdp[x][y] = uniquePaths(x - 1, y, dp) + uniquePaths(x, y - 1, dp);\n \t\treturn dp[x][y];\n \t}", "public void star(float x, float y, float r, float R) {\n float angle = TWO_PI / 5;\n float halfAngle = angle/2.0f;\n beginShape();\n noStroke();\n for (float a = 0; a < TWO_PI; a += angle) {\n float sx = x + cos(a) * r;\n float sy = y + sin(a) * r;\n vertex(sx, sy);\n sx = x + cos(a+halfAngle) * R;\n sy = y + sin(a+halfAngle) * R;\n vertex(sx, sy);\n }\n endShape(CLOSE);\n}", "@Override\r\n\tpublic void CalcPeri() {\n\t\tSystem.out.println(4*side);\t\r\n\t}", "public int upright();", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tint n = 7;\r\n\t\tfor (int i = n; i >= 0; i--) {\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t for(int j=0; j<n-i; j++) {\r\n\t\t\t \r\n\t\t\t System.out.print(\" \");\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\r\n\t\t\tfor (int j = n; j >= n-i; j--) {\r\n\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public void backSlash() {\n text.append(\"\\\\\");\n }", "public static void main(String[] args){\t\n\t\tchar op = '/';\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"첫번째 정수입니다.\");\n\t\tint num1 = scan.nextInt();\n\t\t\n\t\tSystem.out.println(\"두번째 정수입니다.\");\n\t\tint num2 = scan.nextInt();\n\t\tint num3=0;\n\t\tif(op=='+'){\n\t\t\tnum3 = num1+num2;\n\t\t}\n\t\telse if(op=='-'){\n\t\t\tnum3 = num1-num2;\n\t\t}\n\t\telse if(op=='*'){\n\t\t\tnum3 = num1*num2;\n\t\t}\n\t\telse if(op=='/'){\n\t\t\tif(num2==0){\n\t\t\tSystem.out.println(\"오류입니다.\");\n\t\t}\n\t\t\t\n\t\t\tnum3 = num1/num2;\n\t\t}\n\t\tSystem.out.printf(\"%d%c%d=%d\" ,num1,op,num2,num3);\n\t\t\n\t\t\n\t}", "public final void testSlash() \n\t\t\tthrows ParserConfigurationException, IOException, SAXException \n\t{\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnðýþnn\");\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnønn\");\n\t\tassertSingleResult(\"8\", fldName, \"nnunn\");\n\t}", "AngleResource inclination();", "public abstract void squareRootThis();", "public UniquePathsII() {\n\t\t// Initialization here. \n\t\t//\t\tcount = 0;\n\t}", "@Override\n\tpublic void space() {\n\t\t\n\t}" ]
[ "0.5906264", "0.55749613", "0.5428019", "0.53241616", "0.5294036", "0.527193", "0.52582306", "0.5256754", "0.51585066", "0.5141374", "0.51100975", "0.5097357", "0.5026707", "0.50235814", "0.50100124", "0.49757177", "0.4967908", "0.49668512", "0.4931213", "0.49272057", "0.49150687", "0.4878608", "0.4873821", "0.4873821", "0.48564616", "0.48415148", "0.4840844", "0.48408422", "0.48392275", "0.48380315", "0.48342562", "0.48335755", "0.48189583", "0.4816532", "0.4803844", "0.47991633", "0.4790358", "0.4785782", "0.47707185", "0.47659388", "0.47607136", "0.4756167", "0.47525582", "0.4750556", "0.47465262", "0.47439283", "0.47427607", "0.47368544", "0.47283906", "0.4719052", "0.4715935", "0.4711951", "0.47046372", "0.47023433", "0.46957722", "0.46894073", "0.46882662", "0.46872112", "0.46870187", "0.46838596", "0.46826214", "0.46721044", "0.4671648", "0.46691796", "0.46658975", "0.46658975", "0.46634644", "0.46593347", "0.46569487", "0.46532407", "0.46484405", "0.46472803", "0.4647124", "0.46426368", "0.46379653", "0.4635675", "0.46356165", "0.46343538", "0.46343073", "0.46324328", "0.46307802", "0.46292034", "0.46249497", "0.46220893", "0.46138567", "0.46130696", "0.46125302", "0.4608751", "0.46084386", "0.4605762", "0.46052104", "0.4602023", "0.46015334", "0.45995793", "0.45948967", "0.459342", "0.45930445", "0.45923406", "0.45910415", "0.45878932", "0.45863274" ]
0.0
-1
/ / / / / / /
boolean hasNode() /* */ { /* 473 */ if ((this.bn == null) && (this.mn == null)) return false; /* 474 */ if (this.jt == null) return false; /* 475 */ return true; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "private int rightChild(int i){return 2*i+2;}", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "double passer();", "public void gored() {\n\t\t\n\t}", "public String ring();", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public abstract String division();", "public String toString(){ return \"DIV\";}", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "int getWidth() {return width;}", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public void getTile_B8();", "public double getWidth() {\n return this.size * 2.0; \n }", "double volume(){\n return width*height*depth;\n }", "@Override\n public void bfs() {\n\n }", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "int width();", "Operations operations();", "void sharpen();", "void sharpen();", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "static void pyramid(){\n\t}", "public Integer getWidth(){return this.width;}", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "@Override\npublic void processDirection() {\n\t\n}", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "public int generateRoshambo(){\n ;]\n\n }", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "public void skystonePos4() {\n }", "void mo33732Px();", "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}", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "public void SubRect(){\n\t\n}", "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}", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "void walk() {\n\t\t\n\t}", "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}", "public double getWidth() { return _width<0? -_width : _width; }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "public void stg() {\n\n\t}", "Parallelogram(){\n length = width = height = 0;\n }", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "double getPerimeter(){\n return 2*height+width;\n }", "public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }", "public double getPerimiter(){return (2*height +2*width);}", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "double getNewWidth();", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}", "private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }", "double seBlesser();", "long getWidth();", "public int getWidth() {\r\n\treturn this.width;\r\n}", "private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }", "public void leerPlanesDietas();", "@Override\r\n public void draw()\r\n {\n\r\n }", "private void buildPath() {\r\n int xNext = 1;\r\n int yNext = map.getStartPos() + 1;\r\n CellLayered before = cells[yNext][xNext];\r\n while(true)\r\n {\r\n Byte[] xy = map.getDirection(xNext-1, yNext-1);\r\n xNext = xNext + xy[0];\r\n yNext = yNext + xy[1];\r\n\r\n CellLayered next = cells[yNext][xNext];\r\n\r\n if(xy[0]==-1)\r\n before.setRight(false);\r\n else\r\n before.setRight(true);\r\n before.setPath(true);\r\n if(next==null)\r\n break;\r\n\r\n before.setNextInPath(next);\r\n before = next;\r\n }\r\n }", "void block(Directions dir);", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public String getRing();", "@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public int getEdgeCount() \n {\n return 3;\n }", "public int getWidth(){\n return width;\n }", "public int upright();", "protected int parent(int i) { return (i - 1) / 2; }", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "public int getDireccion(Pixel p) {\r\n\t\tif (x == p.x && y < p.y)\r\n\t\t\treturn DIR_N;\r\n\t\tif (x > p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x == p.x && y > p.y)\r\n\t\t\treturn DIR_S;\r\n\t\tif (x > p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x > p.x && y == p.y)\r\n\t\t\treturn DIR_E;\r\n\t\tif (x < p.x && y == p.y)\r\n\t\t\treturn DIR_O;\r\n\t\treturn -1;\r\n\t}", "private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }", "double volume() {\n\treturn width*height*depth;\n}", "void table(){\n fill(0);\n rect(width/2, height/2, 600, 350); // boarder\n fill(100, 0 ,0);\n rect(width/2, height/2, 550, 300); //Felt\n \n \n}", "public void snare();", "void ringBell() {\n\n }", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public void skystonePos2() {\n }", "public int my_leaf_count();", "@Override\n\tpublic void draw3() {\n\n\t}" ]
[ "0.54567957", "0.53680295", "0.53644985", "0.52577376", "0.52142847", "0.51725817", "0.514088", "0.50868535", "0.5072305", "0.504888", "0.502662", "0.50005764", "0.49740013", "0.4944243", "0.4941118", "0.4937142", "0.49095523", "0.48940238", "0.48719338", "0.48613623", "0.48604724", "0.48558092", "0.48546165", "0.48490012", "0.4843668", "0.4843668", "0.48420057", "0.4839597", "0.4832105", "0.4817357", "0.481569", "0.48122767", "0.48085573", "0.48065376", "0.48032433", "0.48032212", "0.4799707", "0.4798766", "0.47978994", "0.47978172", "0.47921672", "0.47903922", "0.4790111", "0.47886384", "0.47843018", "0.47837785", "0.47828907", "0.47826976", "0.4776919", "0.47767594", "0.47767594", "0.47766045", "0.4764252", "0.47560593", "0.4753577", "0.4752732", "0.47510985", "0.47496924", "0.47485355", "0.4748455", "0.4746839", "0.4744132", "0.47203988", "0.4713808", "0.4711382", "0.47113234", "0.47096533", "0.47075558", "0.47029856", "0.4701444", "0.47014076", "0.46973658", "0.46969122", "0.4692372", "0.46897912", "0.4683049", "0.4681391", "0.46810925", "0.46750805", "0.46722633", "0.46681988", "0.466349", "0.46618745", "0.46606532", "0.46533036", "0.46485004", "0.46464643", "0.46447286", "0.46447286", "0.46438906", "0.46405315", "0.46397775", "0.4634643", "0.46339533", "0.4633923", "0.4632826", "0.4631328", "0.46299514", "0.46285036", "0.46276402", "0.4625902" ]
0.0
-1
/ / / /
public void showNet() /* */ { /* 482 */ update(getGraphics()); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public abstract String division();", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "private boolean slash() {\r\n return MARK(OPERATOR) && CHAR('/') && gap();\r\n }", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "public void gored() {\n\t\t\n\t}", "public String toString(){ return \"DIV\";}", "private int parent(int i){return (i-1)/2;}", "public String ring();", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "private int leftChild(int i){return 2*i+1;}", "double passer();", "static void pyramid(){\n\t}", "public void stg() {\n\n\t}", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "void mo33732Px();", "Operations operations();", "private int rightChild(int i){return 2*i+2;}", "private void division()\n\t{\n\t\tFun = Function.DIVIDE; //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}", "@Override\n\tpublic float dividir(float op1, float op2) {\n\t\treturn op1 / op2;\n\t}", "void sharpen();", "void sharpen();", "double defendre();", "public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }", "public int generateRoshambo(){\n ;]\n\n }", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "String divideAtWhite()[]{ return null; }", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "double volume(){\n return width*height*depth;\n }", "public void skystonePos4() {\n }", "void ringBell() {\n\n }", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public static void method1(){\n System.out.println(\"*****\");\n System.out.println(\"*****\");\n System.out.println(\" * *\");\n System.out.println(\" *\");\n System.out.println(\" * *\");\n }", "public int division(int x,int y){\n System.out.println(\"division methods\");\n int d=x/y;\n return d;\n\n }", "void mo21076g();", "private boolean dividingByZero(String operator){\n if (numStack.peek() == 0 && operator.equals(\"/\")){\n return true;\n }\n return false;\n }", "@Override\n public void bfs() {\n\n }", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "Parallelogram(){\n length = width = height = 0;\n }", "public Divide(){\n }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "@Override\r\n\tpublic void div(int x, int y) {\n\t\t\r\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "@Override\npublic void div(int a, int b) {\n\t\n}", "private double triangleBase() {\n return cellWidth() / BASE_WIDTH;\n }", "double volume() {\n\treturn width*height*depth;\n}", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\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}", "int getWidth() {return width;}", "int width();", "public void divide(int dirOp1, int dirOp2, int dirRes) {\n //traduce casos de direccionamiento indirecto\n dirOp1 = traduceDirIndirecto(dirOp1);\n dirOp2 = traduceDirIndirecto(dirOp2);\n if (ManejadorMemoria.isConstante(dirOp1)) { // OPERANDO 1 CTE\n String valor1 = this.directorioProcedimientos.getConstantes().get(dirOp1).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { //RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n } else if (ManejadorMemoria.isGlobal(dirOp1)) { // OPERANDO 1 GLOBAL\n String valor1 = this.registroGlobal.getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n } else { // OPERANDO 1 LOCAL\n String valor1 = this.pilaRegistros.peek().getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES 2 LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { //OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n }\n }", "public static void main(String[] args) {\n\n\n\n System.out.println(4 * (1.0 - (1 / 3) + (1 / 5) - (1 / 7) + (1 / 9) - (1 / 11)));\n\n System.out.println(4 * (1.0 - (1/3) + (1/5) - (1/7)\n + (1 / 9) - (1/11) + (1/13)));\n }", "public static void topHalf() {\n \t\n for( int i = 1; i <= SIZE; i++){\n for(int spaces = 1; spaces <= 3*SIZE - 3*i; spaces++) {\n System.out.print(\" \"); \n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"__/\");\n }\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n System.out.print(\"||\");\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"\\\\__\");\n }\n \n System.out.println();\n }\n \n System.out.print(\"|\");\n \n for(int i = 1; i <= 6 * SIZE; i++) {\n System.out.print(\"\\\"\");\n }\n \n System.out.println(\"|\");\n }", "@Override\r\n\tpublic int div() {\n\t\treturn 0;\r\n\t}", "private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }", "public double getWidth() { return _width<0? -_width : _width; }", "double getPerimeter(){\n return 2*height+width;\n }", "public void mo3376r() {\n }", "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}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic double divide(double in1, double in2) {\n\t\treturn 0;\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "public static void main (String[] args){\n Scanner s=new Scanner(System.in);\n int n=s.nextInt();\n if(n%2==1)\n {\n n=n/2;\n n++;\n }\n else\n {\n n=n/2;\n }\n for(int i=1;i<=n;i++)\n {\n for(int k=1;k<=i-1;k++)\n {\n System.out.print(\" \");\n }\n for(int j=1;j<=((2*n-1)-2*(i-1));j++)\n {\n if(j==1||j==((2*n-1)-2*(i-1)))\n System.out.print(\"*\");\n else\n System.out.print(\" \");\n }\n System.out.println();\n }\n for(int i=2;i<=n;i++)\n {\n for(int k=1;k<=n-i;k++)\n {\n System.out.print(\" \");\n }\n for(int j=1;j<i*2;j++)\n {\n if(j==1||j==(i*2-1))\n System.out.print(\"*\");\n else\n System.out.print(\" \");\n }\n System.out.println();\n }\n\t}", "public RMPath getPath() { return RMPath.unitRectPath; }", "void walk() {\n\t\t\n\t}", "public static void giant() {\n System.out.println(\" --------- \");\n System.out.println(\" | / \\\\| \");\n System.out.println(\" ZZZZZH | O | HZZZZZ \");\n System.out.println(\" H ----------- H \");\n System.out.println(\" ZZZZZHHHHHHHHHHHHHHHHHHHHHZZZZZ \");\n System.out.println(\" H HHHHHHHHHHH H \");\n System.out.println(\" ZZZZZH HHHHHHHHHHH HZZZZZ \");\n System.out.println(\" HHHHHHHHHHH \");\n System.out.println(\" HHH HHH \");\n System.out.println(\" HHH HHH \");\n }", "public void title ()\n {\n\tprintSlow (\" _ __\");\n\tprintSlow (\" ___ | ' \\\\\");\n\tprintSlow (\" ___ \\\\ / ___ ,'\\\\_ | .-. \\\\ /|\");\n\tprintSlow (\" \\\\ / | |,'__ \\\\ ,'\\\\_ | \\\\ | | | | ,' |_ /|\");\n\tprintSlow (\" _ | | | |\\\\/ \\\\ \\\\ | \\\\ | |\\\\_| _ | |_| | _ '-. .-',' |_ _\");\n\tprintSlow (\" // | | | |____| | | |\\\\_|| |__ // | | ,'_`. | | '-. .-',' `. ,'\\\\_\");\n\tprintSlow (\" \\\\\\\\_| |_,' .-, _ | | | | |\\\\ \\\\ // .| |\\\\_/ | / \\\\ || | | | / |\\\\ \\\\| \\\\\");\n\tprintSlow (\" `-. .-'| |/ / | | | | | | \\\\ \\\\// | | | | | || | | | | |_\\\\ || |\\\\_|\");\n\tprintSlow (\" | | | || \\\\_| | | | /_\\\\ \\\\ / | |` | | | || | | | | .---'| |\");\n\tprintSlow (\" | | | |\\\\___,_\\\\ /_\\\\ _ // | | | \\\\_/ || | | | | | /\\\\| |\");\n\tprintSlow (\" /_\\\\ | | //_____// .||` `._,' | | | | \\\\ `-' /| |\");\n\tprintSlow (\" /_\\\\ `------' \\\\ | AND `.\\\\ | | `._,' /_\\\\\");\n\tprintSlow (\" \\\\| HIS `.\\\\\");\n\tprintSlow (\" __ __ _ _ _ _ \");\n\tprintSlow (\" | \\\\/ | (_) | | /\\\\ | | | | \");\n\tprintSlow (\" | \\\\ / | __ _ __ _ _ ___ __ _| | / \\\\ __| |_ _____ _ __ | |_ _ _ _ __ ___ \");\n\tprintSlow (\" | |\\\\/| |/ _` |/ _` | |/ __/ _` | | / /\\\\ \\\\ / _` \\\\ \\\\ / / _ \\\\ '_ \\\\| __| | | | '__/ _ \\\\\");\n\tprintSlow (\" | | | | (_| | (_| | | (_| (_| | | / ____ \\\\ (_| |\\\\ V / __/ | | | |_| |_| | | | __/\");\n\tprintSlow (\" |_| |_|\\\\__,_|\\\\__, |_|\\\\___\\\\__,_|_| /_/ \\\\_\\\\__,_| \\\\_/ \\\\___|_| |_|\\\\__|\\\\__,_|_| \\\\___|\");\n\tprintSlow (\" __/ | \");\n\tprintSlow (\" |___/ \\n\\n\\n\");\n\n\n }", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "double area() {\nSystem.out.println(\"Inside Area for Triangle.\");\nreturn dim1 * dim2 / 2;\n}", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }", "public SoNode \ngetCurPathTail() \n{\n//#ifdef DEBUG\n if (currentpath.getTail() != (SoFullPath.cast(getCurPath())).getTail()){\n SoDebugError.post(\"SoAction::getCurPathTail\\n\", \n \"Inconsistent path tail. Did you change the scene graph\\n\"+\n \"During traversal?\\n\");\n }\n//#endif /*DEBUG*/\n return(currentpath.getTail());\n}", "@Override\n\tpublic void breath() {\n\n\t}", "public static void main(String[] args) {\nint i,j,k;\r\nint num=5;\r\nfor(i=0;i<num;i++){\r\n\tfor(j=0;j<i;j++){\r\n\t\tSystem.out.print(\" \");\r\n\t}\r\n\tfor(k=num; k>=2*i-1; k--){\r\n\t\tSystem.out.print(\"*\");\r\n\t}\r\n\t\r\n\tSystem.out.println();\r\n}\r\n\t}", "@Override\n\tpublic void div(double dx, double dy) {\n\t\t\n\t}", "public PathCode getCurPathCode() { return /*appliedTo.curPathCode*/currentpathcode;}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "static String division (String s1, String s2) {\r\n if (s2==null || s2.length()==0) return s1;\r\n return product (s1, invert(s2));\r\n }", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public static void body() {\n \tfor(int i = 1; i <= SIZE*SIZE; i++) {\n for(int j = 1; j <= 3*SIZE-(SIZE-1); j++) {\n System.out.print(\" \");\n }\n \n System.out.print(\"|\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"||\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"|\");\n \n System.out.println();\n }\n }", "private int uniquePaths(int x, int y, int[][] dp) {\n \t\tif (x == 0 || y == 0) return 1;\n \t\tif (dp[x][y] == 0)\n \t\t\tdp[x][y] = uniquePaths(x - 1, y, dp) + uniquePaths(x, y - 1, dp);\n \t\treturn dp[x][y];\n \t}", "public void star(float x, float y, float r, float R) {\n float angle = TWO_PI / 5;\n float halfAngle = angle/2.0f;\n beginShape();\n noStroke();\n for (float a = 0; a < TWO_PI; a += angle) {\n float sx = x + cos(a) * r;\n float sy = y + sin(a) * r;\n vertex(sx, sy);\n sx = x + cos(a+halfAngle) * R;\n sy = y + sin(a+halfAngle) * R;\n vertex(sx, sy);\n }\n endShape(CLOSE);\n}", "@Override\r\n\tpublic void CalcPeri() {\n\t\tSystem.out.println(4*side);\t\r\n\t}", "public int upright();", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tint n = 7;\r\n\t\tfor (int i = n; i >= 0; i--) {\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t for(int j=0; j<n-i; j++) {\r\n\t\t\t \r\n\t\t\t System.out.print(\" \");\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\r\n\t\t\tfor (int j = n; j >= n-i; j--) {\r\n\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public void backSlash() {\n text.append(\"\\\\\");\n }", "public static void main(String[] args){\t\n\t\tchar op = '/';\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"첫번째 정수입니다.\");\n\t\tint num1 = scan.nextInt();\n\t\t\n\t\tSystem.out.println(\"두번째 정수입니다.\");\n\t\tint num2 = scan.nextInt();\n\t\tint num3=0;\n\t\tif(op=='+'){\n\t\t\tnum3 = num1+num2;\n\t\t}\n\t\telse if(op=='-'){\n\t\t\tnum3 = num1-num2;\n\t\t}\n\t\telse if(op=='*'){\n\t\t\tnum3 = num1*num2;\n\t\t}\n\t\telse if(op=='/'){\n\t\t\tif(num2==0){\n\t\t\tSystem.out.println(\"오류입니다.\");\n\t\t}\n\t\t\t\n\t\t\tnum3 = num1/num2;\n\t\t}\n\t\tSystem.out.printf(\"%d%c%d=%d\" ,num1,op,num2,num3);\n\t\t\n\t\t\n\t}", "public final void testSlash() \n\t\t\tthrows ParserConfigurationException, IOException, SAXException \n\t{\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnðýþnn\");\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnønn\");\n\t\tassertSingleResult(\"8\", fldName, \"nnunn\");\n\t}", "AngleResource inclination();", "public abstract void squareRootThis();", "public UniquePathsII() {\n\t\t// Initialization here. \n\t\t//\t\tcount = 0;\n\t}", "@Override\n\tpublic void space() {\n\t\t\n\t}" ]
[ "0.5907387", "0.5575842", "0.54291975", "0.53248495", "0.5295296", "0.5272114", "0.52588725", "0.5256441", "0.5159524", "0.51412994", "0.51103354", "0.5097666", "0.5026484", "0.50228465", "0.5010535", "0.49753603", "0.49681365", "0.49662355", "0.49319422", "0.49270096", "0.4916357", "0.48799485", "0.48737174", "0.48737174", "0.4856577", "0.4840987", "0.48409632", "0.48401523", "0.4839511", "0.4837979", "0.48342818", "0.48327494", "0.48188826", "0.4816355", "0.48035547", "0.47989768", "0.4789936", "0.4785267", "0.47714382", "0.47653928", "0.47617722", "0.47558272", "0.47529352", "0.47506705", "0.47478396", "0.4743794", "0.47434178", "0.4736814", "0.47289127", "0.47198948", "0.47160646", "0.47118866", "0.47048014", "0.47022858", "0.46953875", "0.46911028", "0.46888545", "0.46880993", "0.46875685", "0.46838588", "0.46822548", "0.46719605", "0.46709624", "0.4668998", "0.46653587", "0.46653587", "0.4664348", "0.46588087", "0.46568492", "0.4653733", "0.4648362", "0.4647564", "0.4647137", "0.4642751", "0.4637472", "0.4635858", "0.46347678", "0.46341434", "0.46335825", "0.46325722", "0.46305606", "0.46301442", "0.4624859", "0.46225402", "0.46141773", "0.46130148", "0.46122608", "0.46089038", "0.46082693", "0.46056968", "0.46054214", "0.46017182", "0.4601235", "0.46002957", "0.4595077", "0.4594101", "0.45935148", "0.4592122", "0.45916712", "0.45881292", "0.45866796" ]
0.0
-1
Construct a Copy action with the given owner.
public Copy(DataFrame owner) { this.owner = owner; setup(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FilterApplyAction(ListComponent owner) {\r\n this(owner, ACTION_ID);\r\n }", "private static MenuItem createCopyMenuItem(SongManager model, TreeView<Item> tree) {\n MenuItem copy = new MenuItem(COPY);\n\n copy.setOnAction((event) -> {\n List<TreeItem<Item>> treeItems = tree.getSelectionModel().getSelectedItems();\n List<Item> itemsToCopy = new ArrayList<>();\n for (TreeItem<Item> treeItem : treeItems) {\n Item item = treeItem.getValue();\n if (item != null) {\n itemsToCopy.add(item);\n }\n }\n model.setM_itemsToCopy(itemsToCopy);\n });\n\n return copy;\n }", "public static Action getCopy(AssignmentAction action) {\n\t\tAction actioncopy = (Action) EcoreUtil.copy(action);\t\n\t\treturn actioncopy;\n\t}", "public static void copy(String owner, Path src, Path target) throws CWLException {\r\n final Path finalSrc = toFinalSrcPath(src);\r\n if (src.toFile().exists() && Files.isReadable(src)) {\r\n CopyOption[] options = new CopyOption[] {\r\n StandardCopyOption.COPY_ATTRIBUTES,\r\n StandardCopyOption.REPLACE_EXISTING\r\n };\r\n final Path finalTarget = toFinalTargetPath(src, target);\r\n if (!finalTarget.getParent().toFile().exists()) {\r\n logger.debug(\"mkdir \\\"{}\\\"\", finalTarget.getParent());\r\n mkdirs(owner, finalTarget.getParent());\r\n }\r\n logger.debug(\"copy \\\"{}\\\" to \\\"{}\\\"\", finalSrc, finalTarget);\r\n try {\r\n if (finalSrc.toFile().isDirectory()) {\r\n Files.walkFileTree(finalSrc, new FileVisitor<Path>() {\r\n @Override\r\n public FileVisitResult preVisitDirectory(Path dir,\r\n BasicFileAttributes attrs) throws IOException {\r\n Files.copy(dir, finalTarget.resolve(finalSrc.relativize(dir)),\r\n StandardCopyOption.COPY_ATTRIBUTES);\r\n return FileVisitResult.CONTINUE;\r\n }\r\n\r\n @Override\r\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\r\n Files.copy(file, finalTarget.resolve(finalSrc.relativize(file)),\r\n StandardCopyOption.COPY_ATTRIBUTES);\r\n return FileVisitResult.CONTINUE;\r\n }\r\n\r\n @Override\r\n public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException {\r\n return FileVisitResult.CONTINUE;\r\n }\r\n\r\n @Override\r\n public FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException {\r\n throw exc;\r\n }\r\n });\r\n } else {\r\n Files.copy(finalSrc, finalTarget, options);\r\n }\r\n } catch (IOException e) {\r\n throw new CWLException(\r\n ResourceLoader.getMessage(\"cwl.io.copy.failed\",\r\n finalSrc.toString(),\r\n finalTarget.toString(),\r\n e.getMessage()),\r\n 255);\r\n }\r\n } else {\r\n throw new CWLException(ResourceLoader.getMessage(\"cwl.io.file.unaccessed\", finalSrc.toString()),\r\n 255);\r\n }\r\n }", "public void copy() {\n\t\tcmd = new CopyCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}", "@LargeTest\n public void testCopy() {\n TestAction ta = new TestAction(TestName.COPY);\n runTest(ta, TestName.COPY.name());\n }", "Permanent copyPermanent(Permanent copyFromPermanent, UUID copyToPermanentId, Ability source, CopyApplier applier);", "public abstract String createObjectCopy(OwObject obj_p, OwPropertyCollection properties_p, OwPermissionCollection permissions_p, OwObject parent_p, int[] childTypes_p) throws Exception;", "Prototype makeCopy();", "private static MenuItem createCopyMenuItem(SongManager model, Item selectedItem) {\n MenuItem copy = new MenuItem(COPY);\n\n copy.setOnAction((event) -> {\n if (selectedItem != null) {\n List<Item> itemsToCopy = new ArrayList<>();\n itemsToCopy.add(selectedItem);\n model.setM_itemsToCopy(itemsToCopy);\n }\n });\n\n return copy;\n }", "private static MenuItem createCopyMenuItem(SongManager model, List<Song> selectedSongs) {\n MenuItem copy = new MenuItem(COPY);\n\n copy.setOnAction((event) -> {\n List<Item> itemsToCopy = new ArrayList<>();\n for (Song song : selectedSongs) {\n if (song != null) {\n itemsToCopy.add(song);\n }\n }\n model.setM_itemsToCopy(itemsToCopy);\n });\n\n return copy;\n }", "public void handleNewCopyButtonAction(ActionEvent event) {\n //delete all panes on actionHolderPane and add the newCopyPane\n setAllChildrenInvisible();\n newCopyPane.setVisible(true);\n this.handleOnShowAnimation(actionHolderPane);\n }", "Course buildCopy(UUID courseUuid, String courseApplicationYear, boolean nameFromOrig);", "@Source(\"gr/grnet/pithos/resources/editcopy.png\")\n ImageResource copy();", "public ChessPiece getClone(ChessOwner owner){\n\t\tChessPiece temp = new ChessPiece(pieceName, uniquePieceID, attackDirectionVectors,\n\t\t\t\tmovementDirectionVectors, specialMovementVectors, movementVectors,\n\t\t\t\tattackVectors, blackArtFile, whiteArtFile, NPCArtFile);\n\t\ttemp.setOwner(owner);\n\t\treturn temp;\n\t}", "@Override\n\tpublic void create(Owner owner) {\n\n\t}", "Content copyContent(Content sourceContent, Association target, AssociationCategory category, boolean copyChildren) throws NotAuthorizedException;", "private String buildCopyCommand() {\n StringBuilder copyCommand = new StringBuilder();\n copyCommand.append(\"copy\").append(\" \");\n copyCommand.append(config.tableName);\n\n // Check and append if column list is present.\n if (!Strings.isNullOrEmpty(config.listOfColumns)) {\n copyCommand.append(\"(\");\n copyCommand.append(config.listOfColumns);\n copyCommand.append(\")\");\n }\n copyCommand.append(\" \").append(\"from\").append(\" \").append(\"'\");\n copyCommand.append(config.s3DataPath);\n copyCommand.append(\"'\");\n\n // Add credentials for connection.\n copyCommand.append(\" \").append(\"credentials\").append(\" \");\n // Check authentication is using keys or role.\n if (!(Strings.isNullOrEmpty(config.accessKey) && Strings.isNullOrEmpty(config.secretAccessKey))) {\n copyCommand.append(\"'\").append(\"aws_access_key_id\").append(\"=\");\n copyCommand.append(config.accessKey);\n copyCommand.append(\";\").append(\"aws_secret_access_key\").append(\"=\");\n copyCommand.append(config.secretAccessKey);\n copyCommand.append(\"'\");\n } else {\n copyCommand.append(\"'\").append(\"aws_iam_role\").append(\"=\");\n copyCommand.append(config.iamRole);\n copyCommand.append(\"'\");\n }\n\n // Check if region is present.\n if (!Strings.isNullOrEmpty(config.s3Region)) {\n copyCommand.append(\" \").append(\"region\").append(\" \").append(\"'\");\n copyCommand.append(config.s3Region);\n copyCommand.append(\"'\");\n }\n // Set the format as avro.\n // TODO: [HYDRATOR-1392] Support other formats other than avro while loading the data from S3 to Redshift.\n copyCommand.append(\" \").append(\"format as avro 'auto'\").append(\";\");\n return copyCommand.toString();\n }", "private void doExternalCopyOperation(DropTargetEvent event) {\n // Ascertain target parent container\n IOrganiserContainer targetParent = getTargetParent(event.item);\n \n List<CopyOrganiserEntryOperation> copyOperationsList = new ArrayList<CopyOrganiserEntryOperation>();\n \n // Iterate thru dropped source objects\n IStructuredSelection selection = (IStructuredSelection)LocalSelectionTransfer.getTransfer().getSelection();\n for(Object object : selection.toList()) {\n // Get correct Organiser entry\n IOrganiserObject newEntry = OrganiserObjectFactory.getInstance().createOrganiserObject(object);\n if(newEntry == null) {\n continue;\n }\n\n // Add to list of Copy operations\n copyOperationsList.add(new CopyOrganiserEntryOperation(targetParent, newEntry, false));\n }\n \n // Execute as undoable operation\n if(copyOperationsList.size() > 0) {\n try {\n getOperationHistory().execute(\n new CopyOrganiserEntriesOperation(fUndoContext, copyOperationsList),\n null,\n null);\n }\n catch(ExecutionException e) {\n e.printStackTrace();\n }\n \n // Refresh, open, and select target folder\n refreshTargetNode(targetParent);\n }\n }", "protected JButton getCopyButton(final JTextField tf) {\n\t\tJButton copyButton = new JButton(MenuUtil2.ACTION_STR_COPY);\n\t\tcopyButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString input = tf.getText();\n\t\t\t\tif (ValueWidget.isHasValue(input)) {\n\t\t\t\t\tWindowUtil.setSysClipboardText(input);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\treturn copyButton;\n\t}", "public UserIdCardCopy() {\n this(DSL.name(\"user_id_card_copy\"), null);\n }", "public void handleUpdateCopyButtonAction(ActionEvent event) {\n //delete all panes on actionHolderPane and add the updateCopyPane\n setAllChildrenInvisible();\n updateCopyPane.setVisible(true);\n this.handleOnShowAnimation(actionHolderPane);\n }", "public void copyCode(ActionEvent actionEvent) {\n content.putString(String.valueOf(teamCombobox.getValue().getTeamCode()));\n clipboard.setContent(content);\n displayMessage(messagePane,\"Code copied\",false);\n }", "@Nullable\n public static StandalonePriceSetValidFromAction deepCopy(\n @Nullable final StandalonePriceSetValidFromAction template) {\n if (template == null) {\n return null;\n }\n StandalonePriceSetValidFromActionImpl instance = new StandalonePriceSetValidFromActionImpl();\n instance.setValidFrom(template.getValidFrom());\n return instance;\n }", "public void testClone() {\n RefactoringAction clonedAction = (RefactoringAction) action.clone();\n assertEquals(action, clonedAction);\n }", "public execTableCopy_args(execTableCopy_args other) {\n if (other.isSetReq()) {\n this.req = new com.siriusdb.thrift.model.ExecTableCopyRequest(other.req);\n }\n }", "private void startASpaceCopyProcess(final RemoteDBConnectDialogLight sourceRCD, final String sourceTitle,\n final int sourceUrlIndex) {\n Thread performer = new Thread(new Runnable() {\n public void run() {\n // first disable/enable the relevant buttons\n copyToASpaceButton.setEnabled(false);\n //errorLogButton.setEnabled(false);\n stopButton.setEnabled(true);\n\n // clear text area and show progress bar\n saveConsoleText(consoleTextArea);\n consoleTextArea.setText(\"\");\n copyProgressBar.setStringPainted(true);\n copyProgressBar.setString(\"Copying Records ...\");\n copyProgressBar.setIndeterminate(true);\n\n try {\n // print the connection message\n consoleTextArea.append(sourceRCD.getConnectionMessage());\n\n String host = hostTextField.getText().trim();\n String admin = adminTextField.getText();\n String adminPassword = adminPasswordTextField.getText();\n\n boolean simulateRESTCalls = simulateCheckBox.isSelected();\n boolean extentPortionInParts = byuExtentRadioButton.isSelected();\n boolean ignoreUnlinkedNames = ignoreUnlinkedNamesCheckBox.isSelected();\n boolean ignoreUnlinkedSubjects = ignoreUnlinkedSubjectsCheckBox.isSelected();\n\n // create the hash map use to see if a certain record should be exported automatically\n HashMap<String, Boolean> publishMap = new HashMap<String, Boolean>();\n publishMap.put(\"names\", publishNamesCheckBox.isSelected());\n publishMap.put(\"subjects\", publishSubjectsCheckBox.isSelected());\n publishMap.put(\"accessions\", publishAccessionsCheckBox.isSelected());\n publishMap.put(\"digitalObjects\", publishDigitalObjectsCheckBox.isSelected());\n publishMap.put(\"resources\", publishResourcesCheckBox.isSelected());\n publishMap.put(\"repositories\", publishReposCheckBox.isSelected());\n\n ascopy = new ASpaceCopyUtil(sourceRCD, host, admin, adminPassword);\n ascopy.setPublishHashMap(publishMap);\n ascopy.setRepositoryMismatchMap(repositoryMismatchMap);\n ascopy.setSimulateRESTCalls(simulateRESTCalls);\n ascopy.setExtentPortionInParts(extentPortionInParts);\n ascopy.setIgnoreUnlinkedRecords(ignoreUnlinkedNames, ignoreUnlinkedSubjects);\n\n // load the mapper script if specified\n if (svd != null && useScriptCheckBox.isSelected()) {\n String script = svd.getCurrentScript();\n ascopy.setMapperScript(script);\n } else if (cvd != null && useScriptCheckBox.isSelected()) {\n String script = cvd.getCurrentScript();\n ascopy.setMapperScript(script);\n }\n\n // set the reset password, and output console and progress bar\n ascopy.setResetPassword(resetPasswordTextField.getText().trim());\n ascopy.setOutputConsole(consoleTextArea);\n ascopy.setProgressIndicators(copyProgressBar, errorCountLabel);\n ascopy.setCopying(true);\n\n // try getting the session and only continue if a valid session is return;\n if (!ascopy.getSession()) {\n consoleTextArea.append(\"No session, nothing to do ...\\n\");\n reEnableCopyButtons();\n return;\n } else {\n consoleTextArea.append(\"Administrator authenticated ...\\n\");\n }\n\n // check the current aspace version to make sure\n String aspaceVersion = ascopy.getASpaceVersion();\n double aspaceVersionDouble = new Double(aspaceVersion.replaceAll(\"[^0-9.]\", \"\"));\n\n //Check if working\n System.out.println(\"Version: \" + aspaceVersion);\n\n if (aspaceVersion.isEmpty()) ascopy.setCopyAssessments();\n if (!aspaceVersion.isEmpty() && aspaceVersionDouble < 2.1) {\n String message = \"Unsupported Archivesspace Version\\nSupport Versions: v2.1 and higher ...\\n\";\n\n consoleTextArea.append(message);\n reEnableCopyButtons();\n return;\n }\n\n // process special options here. This could be done better but its the\n // quickest way to do it for now\n String ids = resourcesToCopyTextField.getText().trim();\n ArrayList<String> resourcesIDsList = new ArrayList<String>();\n\n if (!ids.isEmpty()) {\n String[] sa = ids.split(\"\\\\s*,\\\\s*\");\n for (String id : sa) {\n // check to see if we are dealing with a special command\n // or an id to copy\n if (id.startsWith(\"-\")) {\n processSpecialOption(ascopy, id);\n } else {\n resourcesIDsList.add(id);\n }\n }\n }\n\n\n\n if (continueMigration && ascopy.uriMapFileExist()) {\n ascopy.loadURIMaps();\n } else {\n // first load the notes etc types and resource from the destination database if not using saved ones\n if (!copyStopped) ascopy.loadRepositories();\n }\n\n // set the progress bar from doing it's thing since the ascopy class is going to take over\n copyProgressBar.setIndeterminate(false);\n\n if (!copyStopped) ascopy.copyLookupList();\n if (!copyStopped) ascopy.copyRepositoryRecords();\n if (!copyStopped) ascopy.mapRepositoryGroups();\n if (!copyStopped) ascopy.copyLocationRecords();\n if (!copyStopped) ascopy.addAdminUser(admin, \"Administrator User\", adminPassword);\n if (!copyStopped) ascopy.copyUserRecords();\n if (!copyStopped) ascopy.copySubjectRecords();\n if (!copyStopped) ascopy.copyNameRecords();\n if (!copyStopped) ascopy.copyAccessionRecords();\n if (!copyStopped) ascopy.copyDigitalObjectRecords();\n\n // get the number of resources to copy here to allow it to be reset while the migration\n // has been started, but migration of resources has not yet started\n int resourcesToCopy = 1000000;\n int threads = 1;\n\n try {\n boolean useBatchImport = batchImportCheckBox.isSelected();\n ascopy.setUseBatchImport(useBatchImport);\n\n // get the number of threads to run the copy process in\n threads = Integer.parseInt(threadsTextField.getText());\n\n // get the number of resource to copy\n if (resourcesIDsList.isEmpty()) {\n resourcesToCopy = Integer.parseInt(numResourceToCopyTextField.getText());\n } else {\n resourcesToCopy = resourcesIDsList.size();\n }\n } catch (NumberFormatException nfe) {}\n\n // check to make sure we didn't stop the copy process or resource to copy is\n // not set to zero. Setting resources to copy to zero is a convenient way\n // to generate a URI map which contains no resource records for testing purposes\n if (!copyStopped && resourcesToCopy != 0) {\n ascopy.setResourcesToCopyList(resourcesIDsList);\n ascopy.copyResourceRecords(resourcesToCopy, threads);\n }\n\n if (!copyStopped) ascopy.addAssessments();\n\n ascopy.cleanUp();\n\n // set the number of errors and message now\n String errorCount = \"\" + ascopy.getASpaceErrorCount();\n errorCountLabel.setText(errorCount);\n migrationErrors = ascopy.getSaveErrorMessages() + \"\\n\\nTotal errors/warnings: \" + errorCount;\n } catch (IntentionalExitException e) {\n saveConsoleText(consoleTextArea);\n consoleTextArea.setText(e.getMessage());\n consoleTextArea.append(\"\\nWill attempt to save URI maps ...\");\n if (ascopy != null) ascopy.saveURIMaps();\n else consoleTextArea.append(\"\\nCould not save URI maps ...\\nMigration will need to be restarted ...\");\n } catch (Exception e) {\n saveConsoleText(consoleTextArea);\n consoleTextArea.setText(\"Unrecoverable exception, migration stopped ...\\n\\n\");\n\n if(ascopy != null) {\n ascopy.saveURIMaps();\n consoleTextArea.append(ascopy.getCurrentRecordInfo() + \"\\n\\n\");\n } else {\n consoleTextArea.append(\"Could not save URI maps ...\\nMigration will need to be restarted ...\");\n }\n\n consoleTextArea.append(getStackTrace(e));\n\n } finally {\n sourceRCD.closeSession();\n }\n\n reEnableCopyButtons();\n }\n });\n\n performer.start();\n }", "Action createAction();", "Action createAction();", "Action createAction();", "public CopyJobItem(CopyJobItem source) {\n if (source.SourceId != null) {\n this.SourceId = new String(source.SourceId);\n }\n if (source.TargetClusterId != null) {\n this.TargetClusterId = new String(source.TargetClusterId);\n }\n if (source.SourceName != null) {\n this.SourceName = new String(source.SourceName);\n }\n if (source.TargetName != null) {\n this.TargetName = new String(source.TargetName);\n }\n if (source.TargetFolderId != null) {\n this.TargetFolderId = new String(source.TargetFolderId);\n }\n if (source.JobType != null) {\n this.JobType = new Long(source.JobType);\n }\n }", "public Owner() {\n }", "@Nullable\n public static CartDiscountSetValidFromAndUntilAction deepCopy(\n @Nullable final CartDiscountSetValidFromAndUntilAction template) {\n if (template == null) {\n return null;\n }\n CartDiscountSetValidFromAndUntilActionImpl instance = new CartDiscountSetValidFromAndUntilActionImpl();\n instance.setValidFrom(template.getValidFrom());\n instance.setValidUntil(template.getValidUntil());\n return instance;\n }", "public CustomDialogs owner(final Object owner)\n\t{\n\t\tthis.owner = owner;\t\t\n\t\treturn this;\n\t}", "public CommitNode(CommitNode parent, CommitNode toCopy) {\r\n\t\tparentCommit = parent;\r\n\t\t//ID to be set in Gitlet.java\r\n\t\tmessage = toCopy.message();\r\n\t\tdate = Calendar.getInstance().getTime();\r\n\t\ttrackedFiles = toCopy.trackedFiles();\r\n\t\tbranchesPartOf = toCopy.branches();\r\n\t\tchildren = toCopy.getChildren();\r\n\t}", "public FilterApplyAction(ListComponent owner, String id) {\r\n super(id);\r\n this.owner = owner;\r\n this.caption = messages.getMainMessage(\"actions.Apply\");\r\n }", "public static void copy(AbstractViewController c, OperationData o) {\n content.clear();\n\n if (o != null) {\n content.add(o);\n final String message = content.size() + \" Element(s) Copied to clipboard\";\n new InformationDialog.Builder()\n .title(\"Copy\")\n .message(message)\n .buildAccent(c).show(true);\n }\n else {\n new InformationDialog.Builder()\n .title(\"Copy\")\n .message(\"No selected items!\")\n .buildAccent(c).show(true);\n }\n }", "@Override\n protected Workflow copy(CompoundWorkflow parent) {\n return copyImpl(new AssignmentWorkflow(getNode().clone(), parent, newTaskTemplate, newTaskClass, newTaskOutcomes));\n }", "public CMObject copyOf();", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void copyPhoto(ActionEvent event) {\n\t\t//checks if photo is selected\n\t\tObservableList<ImageView> pho;\n\t\tpho = PhotoListDisplay.getSelectionModel().getSelectedItems();\n\t\tif(pho.isEmpty() == true) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Error!\");\n\t\t\talert.setHeaderText(\"No Photo Selected\");\n\t\t\talert.setContentText(\"No photo selected. Move Photo Failed!\");\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//checks if other album is selected\n\t\tObservableList<Album> al;\n\t\tal = OtherAlbumsDisplay.getSelectionModel().getSelectedItems();\n\t\tif(al.isEmpty() == true) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Error!\");\n\t\t\talert.setHeaderText(\"No Album Selected\");\n\t\t\talert.setContentText(\"No album selected. Move Photo Failed!\");\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//now we must remove the selected photo from the current album and add the photo into the other album\n\t\tImageView img = (ImageView) PhotoListDisplay.getSelectionModel().getSelectedItem();\n\t\tPhoto p = AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getPhotoFromImage(img);\n\t\t\n\t\tString path = p.getPathToPhoto();\n\t\tlong date = p.getlastModifiedDate();\n\t\tArrayList<Tag> tags = p.getCopyOfTags();\n\t\tString cap = p.getCaption();\n\t\tPhoto copied_photo = new Photo(path, date);\n\t\tcopied_photo.setCaption(cap);\n\t\tcopied_photo.setTags(tags);\n\t\tcopied_photo.setImage(img);\n\t\t\n\t\tAlbum oth_album = (Album) OtherAlbumsDisplay.getSelectionModel().getSelectedItem();\n\t\t\n\t\toth_album.addPhoto(copied_photo);\n\t\t//AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getAlbum().remove(p);\n\t\t//deletePhoto(event);\n\t\t\n\t\tAlert alert = new Alert(AlertType.INFORMATION);\n\t\talert.setTitle(\"Success\");\n\t\talert.setHeaderText(\"Photo Successfully Copied\");\n\t\talert.setContentText(\"Photo copied to \"+ oth_album.getName() + \".\");\n\t\talert.showAndWait();\n\t}", "protected WorkingCopyOwner newWorkingCopyOwner(final IProblemRequestor problemRequestor) {\n return new WorkingCopyOwner() {\n\n public IProblemRequestor getProblemRequestor(ICompilationUnit unit) {\n return problemRequestor;\n }\n };\n }", "public void actionPerformed(ActionEvent ae)\n {\n int selected = owner.getSelectedRecordIndex();\n\n String[] row = owner.getDataTableModel().getDataRecord(selected).getData();\n\n StringBuffer copy = new StringBuffer();\n\n for(int i = 0; i < row.length; i++)\n {\n byte[] array = new byte[owner.getConfiguration().getMetaSchema()[i].getLength()];\n\n for(int j = 0; j < array.length; j++)\n {\n array[j] = ' ';\n }\n\n System.arraycopy(row[i].getBytes(), 0, array, 0, row[i].length());\n\n copy.append(new String(array));\n }\n\n Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard();\n StringSelection content = new StringSelection(copy.toString());\n cb.setContents(content, null);\n }", "public AETinteractions copy()\r\n\t\t{\r\n\t\tAETinteractions a = new AETinteractions();\r\n\t\tif (getInIn() != null)\r\n\t\ta.setInIn(getInIn().copy());\r\n\t\tif (getOuIn() != null)\r\n\t\ta.setOuIn(getOuIn().copy());\r\n\t\treturn a;\r\n\t\t}", "public IPermission newPermission(String owner, IAuthorizationPrincipal principal)\n throws AuthorizationException;", "public abstract INodo copy();", "public UserIdCardCopy(Name alias) {\n this(alias, USER_ID_CARD_COPY);\n }", "public UserIdCardCopy(String alias) {\n this(DSL.name(alias), USER_ID_CARD_COPY);\n }", "@NotNull\n FileViewProvider createCopy(@NotNull VirtualFile copy);", "private RButton getCopyButton() {\n if (copyButton == null) {\n copyButton = new RButton();\n copyButton.setText(\"<%= ivy.cms.co(\\\"/Buttons/copy\\\") %>\");\n copyButton.setName(\"copyButton\");\n }\n return copyButton;\n }", "@Nullable\n public static ProductSetMetaTitleAction deepCopy(@Nullable final ProductSetMetaTitleAction template) {\n if (template == null) {\n return null;\n }\n ProductSetMetaTitleActionImpl instance = new ProductSetMetaTitleActionImpl();\n instance.setMetaTitle(com.commercetools.api.models.common.LocalizedString.deepCopy(template.getMetaTitle()));\n instance.setStaged(template.getStaged());\n return instance;\n }", "public OwClipboardContentOwObject(OwObject content_p, OwObject parent_p)\r\n {\r\n m_clipobject = content_p;\r\n m_Parent = parent_p;\r\n }", "public UndoChangesEvent(UndoableAction action, Object source) {\n super(action, source);\n }", "public void copy() throws Exception {\n\t\topenPrimaryButtonDropdown();\n\t\tgetControl(\"copyButton\").click();\n\t}", "public DuplicateWindowAction(GraphModel graph, GraphFrame parentJFrame) {\n super(\"Duplicate Window\");\n\n this.graph = graph;\n this.parentJFrame = parentJFrame;\n }", "private JButton getCopyButton() {\n if (copyButton == null) {\n copyButton = new JButton();\n copyButton.setText(\"Copy\");\n copyButton.setToolTipText(\"Copy settings from an existing site to a new site\");\n copyButton.setActionCommand(\"Copy\");\n copyButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent e) {\n copySelectedBalloonSettings();\n }\n });\n }\n return copyButton;\n }", "public void setOwner (String owner) {\n\t\tthis.owner=owner;\n\t}", "public void setOwner(String owner) {\n mOwner = owner;\n }", "public Ant(Task owner) {\n bindToOwner(owner);\n }", "public CreateIndividualPreAction() {\n }", "public Command(User owner, String value) {\n this(owner, \"Untitled\", \"None\", LocalDate.now(), false, value);\n }", "protected Object buildCopyOfAttributeValue(Object attributeValue, ObjectCopyingPolicy policy) {\n ContainerPolicy cp = this.getContainerPolicy();\n if (attributeValue == null) {\n return cp.containerInstance();\n }\n\n Object attributeValueCopy = cp.containerInstance(cp.sizeFor(attributeValue));\n for (Object iter = cp.iteratorFor(attributeValue); cp.hasNext(iter);) {\n Object copyElement = super.buildCopyOfAttributeValue(cp.next(iter, policy.getSession()), policy);\n cp.addInto(copyElement, attributeValueCopy, policy.getSession());\n }\n return attributeValueCopy;\n }", "protected abstract String copyQuestionTx(String userId, String qid, Pool destination);", "@FXML\n private void copySelected_btn_action(ActionEvent event) {\n Messages.warningText(\"Under construction\");\n }", "public Builder setOwner(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n owner_ = value;\n onChanged();\n return this;\n }", "public Builder setOwner(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n owner_ = value;\n onChanged();\n return this;\n }", "public void copy() {\n\n\t}", "public Card makeCopy(){\n return new Card(vimage);\n }", "@Override\n\tpublic ChatComponentTranslation createCopy() {\n\t\tfinal Object[] var1 = new Object[formatArgs.length];\n\n\t\tfor (int var2 = 0; var2 < formatArgs.length; ++var2) {\n\t\t\tif (formatArgs[var2] instanceof IChatComponent) {\n\t\t\t\tvar1[var2] = ((IChatComponent) formatArgs[var2]).createCopy();\n\t\t\t} else {\n\t\t\t\tvar1[var2] = formatArgs[var2];\n\t\t\t}\n\t\t}\n\n\t\tfinal ChatComponentTranslation var5 = new ChatComponentTranslation(key,\n\t\t\t\tvar1);\n\t\tvar5.setChatStyle(getChatStyle().createShallowCopy());\n\t\tfinal Iterator var3 = getSiblings().iterator();\n\n\t\twhile (var3.hasNext()) {\n\t\t\tfinal IChatComponent var4 = (IChatComponent) var3.next();\n\t\t\tvar5.appendSibling(var4.createCopy());\n\t\t}\n\n\t\treturn var5;\n\t}", "public Cop generateCop(){\r\n\r\n\t\t\tPatch currentPatch = randPatch();\r\n\r\n\t\t\tCop cop= new Cop(currentPatch);\r\n\r\n\t\t\tcurrentPatch.setPerson(cop);\r\n\r\n\t\t\treturn cop;\r\n\t\t}", "static void setCopying(){isCopying=true;}", "public IPermissionActivity getOrCreatePermissionActivity(IPermissionOwner owner, String name, String fname, String targetProviderKey);", "public CopyBuilder copy() {\n return new CopyBuilder(this);\n }", "public static AtomType getCopy(AtomType at) {\n\t\tAtomType copyat = behavFactory.createAtomType();\n\t\tcopyat = (AtomType) EcoreUtil.copy(at);\t\n\t\treturn copyat;\n\t}", "public void createAction() {\n }", "public JBombardierAntTask(Task owner) {\r\n bindToOwner(owner);\r\n }", "public abstract OtTreeNodeWidget copy();", "WorkoutBatch copy();", "public FreeColAction clone() throws CloneNotSupportedException {\n throw new CloneNotSupportedException(\"FreeColAction can not be cloned.\");\n }", "public CurrentDocumentCopyCommand() {\n\tsuper(\"Save current document as new copy.\");\n }", "Model copy();", "private DrawDestinyToAttritionOnlyEffect(Action action, String playerId) {\n super(action);\n _playerId = playerId;\n }", "public void setOwner(com.sforce.soap.enterprise.sobject.SObject owner) {\r\n this.owner = owner;\r\n }", "public static void copy(AbstractViewController c, final List<OperationData> os) {\n content.clear();\n\n if (os != null && !os.isEmpty()) {\n content.addAll(os);\n final String message = content.size() + \" Element(s) Copied to clipboard\";\n new InformationDialog.Builder()\n .title(\"Copy\")\n .message(message)\n .buildAccent(c).show(true);\n }\n else {\n new InformationDialog.Builder()\n .title(\"Copy\")\n .message(\"No selected items!\")\n .buildAccent(c).show(true);\n }\n }", "private void CopyToASpaceButtonActionPerformed() {\n // first check that the user is running update 15, or greater\n if (mainFrame != null && !mainFrame.getAtVersionNumber().contains(\"15\") &&\n !mainFrame.getAtVersionNumber().contains(\"16\")) {\n saveConsoleText(consoleTextArea);\n consoleTextArea.setText(\"You need AT version 2.0 Update 15, or greater for data migration ...\");\n return;\n }\n\n // reset the error count and error messages\n errorCountLabel.setText(\"N/A\");\n migrationErrors = \"\";\n\n String sourceTitle = \"Source AT Database\";\n\n // get the index of the database url for doing quick connection without displaying\n // the dialog\n int sourceUrlIndex = -1;\n\n try {\n sourceUrlIndex = Integer.parseInt(sourceTextField.getText());\n } catch (NumberFormatException nfe) { }\n\n // load the source and destinations database connections\n Session sourceSession = displayRemoteConnectionDialog(sourceTitle, sourceUrlIndex, false);\n\n if (sourceSession != null) {\n // call the thread that does migration now\n RemoteDBConnectDialogLight sourceRCD = storedRCDS.get(sourceTitle);\n if(checkRepositoryMismatch) {\n startRepositoryCheckProcess(sourceRCD, sourceTitle, sourceUrlIndex);\n } else {\n startASpaceCopyProcess(sourceRCD, sourceTitle, sourceUrlIndex);\n }\n } else {\n System.out.println(\"source connection doesn't exist ...\");\n }\n }", "T copy();", "OperationDTO createOperation(ItemType sourceType, long sourceId, long targetId, String userVcnId) throws LockFailedException;", "@Override\n\tprotected void copy(Object source, Object dest) {\n\t\t\n\t}", "public Caption (ElectronicComponent CompToCopy, int xo, int yo) {\n super (CompToCopy, xo, yo);\n }", "public void setOwner(String mOwner) {\r\n this.mOwner = mOwner;\r\n }", "public SharedActivationPolicyPermission(String policy, String action) {\n\tthis(policy, init(policy));\n }", "public void handleGetCopyDetailsButtonAction(ActionEvent event) {\n String copyID = updateCopyID.getText();\n try{\n //get the details from mgr\n HashMap copyInfo = updateMgr.getCopyDetails(copyID);\n //display on the fields\n updateCopyLocation.setText((String)(copyInfo.get(Table.COPY_LOCATION)));\n //enable the info pane\n updateCopyInfoPane.setDisable(false);\n this.tempCopyID = copyID;\n } \n catch( SQLException | ClassNotFoundException e){\n this.displayWarning(\"Error\", e.getMessage());\n } catch (Exception ex) {\n this.displayWarning(\"Error\", ex.getMessage());\n } \n }", "void setOwner(String owner);", "public abstract void copy(Result result, Object object);", "public XrActionCreateInfo set(XrActionCreateInfo src) {\n memCopy(src.address(), address(), SIZEOF);\n return this;\n }", "public /*@ non_null @*/ Object clone() { \n //@ assume owner == null;\n return this;\n }", "public void setOwner(Owner owner) {\n this.owner = owner;\n }" ]
[ "0.564334", "0.56344056", "0.5511997", "0.5454502", "0.54465103", "0.5425811", "0.539655", "0.5330139", "0.5272852", "0.5239917", "0.5162167", "0.51349396", "0.5070697", "0.50518125", "0.50497097", "0.49957216", "0.4981022", "0.4949378", "0.49348164", "0.49279803", "0.49129567", "0.4904467", "0.4904039", "0.48932466", "0.4817438", "0.4816605", "0.47596574", "0.47596055", "0.47596055", "0.47596055", "0.4758835", "0.47475815", "0.47390375", "0.47355562", "0.47340664", "0.47188783", "0.47165325", "0.47086996", "0.46768847", "0.4627066", "0.4627066", "0.4627066", "0.4627066", "0.46091443", "0.46066204", "0.4603272", "0.4600269", "0.45972386", "0.45963526", "0.4596077", "0.4592585", "0.45858806", "0.4573421", "0.45665818", "0.45531416", "0.45489067", "0.45435578", "0.45391467", "0.45335412", "0.45115572", "0.45046124", "0.45044702", "0.45033327", "0.45015714", "0.44998512", "0.44959313", "0.44558263", "0.44518292", "0.44518292", "0.44516107", "0.44481188", "0.44443506", "0.44244108", "0.44228393", "0.44213876", "0.44026935", "0.43993348", "0.43919513", "0.4386231", "0.43860152", "0.43784612", "0.4368819", "0.43659097", "0.436529", "0.43651253", "0.4350161", "0.4348708", "0.43470055", "0.43460086", "0.43453372", "0.43427834", "0.43426797", "0.43344033", "0.43330666", "0.43226647", "0.4319803", "0.43181378", "0.43142465", "0.43136325", "0.4309325" ]
0.5351505
7
Executed when the action is fired.
public void actionPerformed(ActionEvent ae) { int selected = owner.getSelectedRecordIndex(); String[] row = owner.getDataTableModel().getDataRecord(selected).getData(); StringBuffer copy = new StringBuffer(); for(int i = 0; i < row.length; i++) { byte[] array = new byte[owner.getConfiguration().getMetaSchema()[i].getLength()]; for(int j = 0; j < array.length; j++) { array[j] = ' '; } System.arraycopy(row[i].getBytes(), 0, array, 0, row[i].length()); copy.append(new String(array)); } Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); StringSelection content = new StringSelection(copy.toString()); cb.setContents(content, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}", "@Override\n\tpublic void action() {\n\n\t}", "public void action() {\n action.action();\n }", "@Override\n\tpublic void onActionStart(int action) {\n\t\t\n\t}", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public abstract void onAction();", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}", "public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void actionSuccessful() {\n System.out.println(\"Action performed successfully!\");\n }", "@Override\r\n\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "public void executeAction()\n\t{\t\t\n\t\tthis.getUser().setHealth(this.getUser().getHealth()+HEALTH);\n\t}", "@Override\n protected void doAct() {\n }", "public void initiateAction() {\r\n\t\t// TODO Auto-generated method stub\t\r\n\t}", "public void doAction(){}", "@Override\r\n\tpublic void handle(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\n\tpublic void setAction() {\n\t}", "private void act() {\n\t\tmyAction.embodiment();\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n handleAction();\n }", "@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}", "public void doInitialAction(){}", "@Override\r\n protected void doActionDelegate(int actionId)\r\n {\n \r\n }", "@Override\n\tpublic void HandleEvent(int action) {\n\t\tsetActiveAction(action);\n\t\tSystem.out.println(\"action is :\" + action);\n\t\t\n\t}", "@Override\n public void action() {\n System.out.println(\"do some thing...\");\n }", "public void execute() {\n setExecuted(true);\n }", "@Override\n public void action() {\n System.out.println(\"Matchmaker Behaviour\");\n addBehaviour(new RequestToMatchMakerBehaviour());\n\n }", "@Override\n\tpublic void handle(ActionEvent event) {\n\t\t\n\t}", "void actionCompleted(ActionLookupData actionLookupData);", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tSystem.out.print(\"Action: \" + e.getActionCommand() + \"\\n\");\n\t\t\t\t}", "@Override\n public void act() {\n }", "@Override\n\tpublic void handle(ActionEvent event) {\n\n\t}", "public void run() {\n long startTime = 0;\n if (action.getClass().getName().contains(\"TooAction\")) {\n startTime = System.currentTimeMillis();\n LOG.log(Level.WARNING, \"Sending a ToO alert...\");\n }\n\n action.doTriggerAction(change, handback);\n\n // Record the end time and warn if it took too long.\n if (startTime != 0) {\n long curTime = System.currentTimeMillis();\n LOG.log(Level.WARNING, \"Sent ToO alert\");\n\n long elapsed = curTime - startTime;\n if (elapsed > 5000) {\n LOG.log(Level.WARNING, \"Long delay sending ToO alert: \" + elapsed);\n }\n }\n\n }", "protected abstract void actionExecuted(SUT system, State state, Action action);", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n public void initAction() {\n \r\n }", "@Override\r\n\tpublic void performAction(Event e) {\n\r\n\t}", "public void executeAction( String actionInfo );", "protected void fireActionEvent() {\n if (actionListener != null) {\n ActionEvent ae = new ActionEvent(this, ActionEvent.ACTION_PERFORMED, command);\n actionListener.actionPerformed(ae);\n }\n }", "public void postActionEvent() {\n fireActionPerformed();\n }", "@Override\n\tpublic void doExecute(Runnable action) {\n\t\t\n\t}", "@Override\n\tpublic void newAction() {\n\t\t\n\t}", "public void performAction();", "String getOnAction();", "private void entryAction() {\n\t}", "public void actionOffered();", "@Override\n\tpublic void handleAction(Action action, Object sender, Object target) {\n\t\t\n\t}", "public void action() {\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override public void handle(ActionEvent e)\n\t {\n\t }", "@Override\n\tpublic void preProcessAction(GwtEvent e) {\n\t\t\n\t}", "@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void compute() {\n\t\tSystem.out.println(\"This is an action\");\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t}", "public void activate(){\n callback.action();\n }", "public void act() \n {\n // Add your action code here.\n tempoUp();\n }", "@Override\n\tpublic void onActionFinished(HttpServletRequest arg0, int arg1,\n\t\t\tFileUpload arg2) {\n\n\t}", "@Override\n public void doAction(User user) {\n }", "public void action() {\n\t\t\n\t\tjugar.setOnAction(f->{\n\n\t\t\tMain.pantallaPersonaje();\n\t\t});\n\t\n\t\tpuntajes.setOnAction(f->{\n\t\t\tMain.pantallaPuntajes();\n\t\t});\n\t\n\t\n\t}", "abstract public void performAction();", "@Override\n public void actionPerformed(ActionEvent actionEvent) {\n }", "@Override\r\n public void actionPerformed( ActionEvent e )\r\n {\n }", "@Override\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "public void act() {\n\t}", "public void showTriggered();", "@Override\n public void onAction(RPObject player, RPAction action) {\n }", "@Override\n public void run() {\n chosenActionUnit.run(getGame(), inputCommands);\n }", "public void createAction() {\n }", "@Override\r\n\tpublic Message doAction() {\n\t\treturn null;\r\n\t}", "protected void onBegin() {}", "@Override\n\tpublic void postProcessAction(GwtEvent e) {\n\t\t\n\t}", "@Override\n public void onResult(final AIResponse result) {\n DobbyLog.i(\"Action: \" + result.getResult().getAction());\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "public MockAction() {\n\t\tsetResultEventId(\"success\");\n\t}", "void noteActionEvaluationStarted(ActionLookupData actionLookupData, Action action);", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}" ]
[ "0.74366903", "0.74366903", "0.74366903", "0.73564106", "0.72754526", "0.7180489", "0.71471065", "0.70816046", "0.7027582", "0.7027582", "0.701654", "0.70072275", "0.70072275", "0.70072275", "0.70072275", "0.70072275", "0.70072275", "0.70072275", "0.70072275", "0.69854194", "0.69761753", "0.6964153", "0.69587237", "0.69273037", "0.69156265", "0.68867356", "0.68821883", "0.68821883", "0.68063205", "0.67377746", "0.6720599", "0.66960776", "0.6691024", "0.6679766", "0.66663843", "0.6659847", "0.66401285", "0.6534744", "0.6517221", "0.6517198", "0.65108293", "0.648344", "0.6451212", "0.64432865", "0.64414704", "0.64303887", "0.6424657", "0.6420292", "0.64193684", "0.6415562", "0.64055514", "0.64055514", "0.6392088", "0.63867", "0.63861454", "0.63860774", "0.63837165", "0.6377891", "0.6374795", "0.6370505", "0.6368658", "0.63679534", "0.6366734", "0.6361666", "0.6358695", "0.63544357", "0.63544357", "0.6347421", "0.63361365", "0.63318634", "0.6327325", "0.63267547", "0.63203114", "0.6297805", "0.6296378", "0.6293611", "0.6277903", "0.62776726", "0.6274782", "0.62703055", "0.6264434", "0.6247071", "0.62444776", "0.6238821", "0.62343204", "0.6220615", "0.6214212", "0.62055486", "0.61913097", "0.61824197", "0.6180289", "0.6180289", "0.617964", "0.617964", "0.617964", "0.617964", "0.6176838", "0.6160954", "0.6156927", "0.6154795", "0.61462265" ]
0.0
-1
set attributes of this action
private void setup() { putValue(NAME, "Copy"); putValue(SMALL_ICON, new ImageIcon(getClass().getResource("/res/copy16.gif"))); putValue(SHORT_DESCRIPTION, "Copy the selected data record"); putValue(LONG_DESCRIPTION, "Copy the selected data record"); putValue(MNEMONIC_KEY, new Integer(KeyEvent.VK_C)); putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_C, InputEvent.SHIFT_MASK)); putValue(ACTION_COMMAND_KEY, "copy-command"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\npublic void setAttributes() {\n\t\n}", "private void setAllAttributesFromController() {\n obsoData.setSupplier(supplier);\n \n obsoData.setEndOfOrderDate(endOfOrderDate);\n obsoData.setObsolescenceDate(obsolescenceDate);\n \n obsoData.setEndOfSupportDate(endOfSupportDate);\n obsoData.setEndOfProductionDate(endOfProductionDate);\n \n obsoData.setCurrentAction(avlBean.findAttributeValueListById(\n ActionObso.class, actionId));\n obsoData.setMtbf(mtbf);\n \n obsoData.setStrategyKept(avlBean.findAttributeValueListById(\n Strategy.class,\n strategyId));\n obsoData.setContinuityDate(continuityDate);\n \n obsoData.setManufacturerStatus(avlBean.findAttributeValueListById(\n ManufacturerStatus.class, manufacturerStatusId));\n obsoData.setAirbusStatus(avlBean.findAttributeValueListById(\n AirbusStatus.class, airbusStatusId));\n \n obsoData.setLastObsolescenceUpdate(lastObsolescenceUpdate);\n obsoData.setConsultPeriod(avlBean.findAttributeValueListById(\n ConsultPeriod.class, consultPeriodId));\n \n obsoData.setPersonInCharge(personInCharge);\n obsoData.setCommentOnStrategy(comments);\n }", "public void setAttributes(Attributes attributes) {\n this.attributes = attributes;\n }", "private void setAttributes() {\n mAuth = ServerData.getInstance().getMAuth();\n user = ServerData.getInstance().getUser();\n sharedpreferences = getSharedPreferences(GOOGLE_CALENDAR_SHARED_PREFERENCES, Context.MODE_PRIVATE);\n walkingSharedPreferences = getSharedPreferences(ACTUAL_WALK, Context.MODE_PRIVATE);\n\n notificationId = 0;\n requestCode = 0;\n fragmentManager = getSupportFragmentManager();\n\n context = this;\n }", "final void setAttributes(int param1, int param2) {\n }", "void setAttributes(String attributeName, String attributeValue);", "public void setAttributes(FactAttributes param) {\r\n localAttributesTracker = true;\r\n\r\n this.localAttributes = param;\r\n\r\n\r\n }", "public void setAttributes (List<GenericAttribute> attributes) {\n this.attributes = attributes;\n }", "protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {\r\n\t}", "public void setAttributes(Map<String, String> attributes) {\n if (attributes != null && this.attributes != attributes) {\n this.attributes.putAll(attributes);\n }\n }", "public void setAttributes(Map<String, String> attributes){\r\n\t\t\tif (attributes == null){\r\n\t\t\t\tthis.attributes = Collections.emptyMap();\r\n\t\t\t}\r\n\t\t\tthis.attributes = Collections.unmodifiableMap(attributes);\r\n\t\t}", "public BladeController setAttr(String name, Object value) {\n\t\trequest.setAttribute(name, value);\n\t\treturn this;\n\t}", "@Override\n public void doInit() {\n action = (String) getRequestAttributes().get(\"action\");\n }", "@Override\n\tprotected void setViewAtributes() throws Exception {\n\t\tif (log.isDebugEnabled())log.debug(\"Ingresando a setViewAttributes\");\n\t\tthis.loggertList = new ArrayList();\n\t\tListar();\n\t\t\n\t}", "void setInternal(ATTRIBUTES attribute, Object iValue);", "public void setAttributes(Attributes atts) {\n _length = atts.getLength();\n if (_length > 0) {\n \n if (_length >= _algorithmData.length) {\n resizeNoCopy();\n }\n \n int index = 0;\n for (int i = 0; i < _length; i++) {\n _data[index++] = atts.getURI(i);\n _data[index++] = atts.getLocalName(i);\n _data[index++] = atts.getQName(i);\n _data[index++] = atts.getType(i);\n _data[index++] = atts.getValue(i);\n index++;\n _toIndex[i] = false;\n _alphabets[i] = null;\n }\n }\n }", "public void setIdAttraction(Integer idAttraction) {\r\n this.idAttraction = idAttraction;\r\n }", "@Override\n\t\tpublic void setAttribute(String name, Object o) {\n\t\t\t\n\t\t}", "final private void setupAttributes() {\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_DPI, DEFAULT_BASE_DPI));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_DENSITY, DEFAULT_BASE_DENSITY));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_SCREEN, DEFAULT_BASE_SCREEN));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_PROPORTION_FROM, DEFAULT_PROPORTION_FROM));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_PROPORTION_MODE, DEFAULT_PROPORTION_MODES));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BACKGROUND_COLOR, DEFAULT_BACKGROUND_COLOR));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_CALIBRATE_DPI, DEFAULT_CALIBRATE_DPI));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_RESTORER_NOTIFICATION, new Object()));\r\n\t}", "public BladeController setAttrs(Map<String, Object> attrMap) {\n\t\tfor (Map.Entry<String, Object> entry : attrMap.entrySet())\n\t\t\trequest.setAttribute(entry.getKey(), entry.getValue());\n\t\treturn this;\n\t}", "public void setAttributes(java.lang.Integer attributes) {\r\n this.attributes = attributes;\r\n }", "public void changeAttrName() {\r\n }", "public void setFileAttributes(Attributes fileAttributes)\r\n {\r\n aFileAttributes = fileAttributes;\r\n }", "@Override\npublic void processAttributes() {\n\t\n}", "@Test\n public void testSetAttributes() {\n System.out.println(\"setAttributes\");\n ArrayList<ProjectAttribute> attributes = null;\n ProjectEditController instance = new ProjectEditController();\n instance.setAttributes(attributes);\n assertEquals(instance.getAttributes(), attributes);\n\n }", "public void setAttributes(TableAttributes attrs) {\n\tthis.attrs = attrs;\n }", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic Builder attributes(final Attributes attributes) {\n\t\t\tthis.map.put(ATTRIBUTES, attributes);\n\t\t\tthis.previous = ATTRIBUTES;\n\t\t\treturn builder();\n\t\t}", "protected abstract void setContextAttribute(String name, Object value);", "protected final void setGUIAttributes(){\r\n\t\t\r\n\t\tbtnOnOff.setEnabled( device.getOn() != null && device.getOn().getActor() != null);\r\n\t\tif(device.getOn() == null){\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// if the device is On\r\n\t\tif( device.getOnValue()){\r\n\t\t\tbtnOnOff.setText( \"Turn device Off\");\r\n\t\t// if the device is Off\r\n\t\t}else{\r\n\t\t\tbtnOnOff.setText( \"Turn device On\");\r\n\t\t}\r\n\t\tsetGUIAttributesHelper();\r\n\t}", "public void setAttribute(Execution exec, String name, Object value);", "void setAttributes(String attributeName, String attributeValue,\n ResultCapture<Void> extractor);", "public void setAttribute(FactAttribute[] param) {\r\n\r\n validateAttribute(param);\r\n\r\n localAttributeTracker = true;\r\n\r\n this.localAttribute = param;\r\n }", "public void setAttributes(Vector attributes)\n\tthrows SdpException {\n\tthis.attributeFields = attributes;\n }", "private void setRequestAttributes(HttpServletRequest req, String nickname, boolean error) {\n\t\tUtil.provideLoggedUserInfo(req);\n\t\treq.setAttribute(\"nick\", nickname);\n\t\treq.setAttribute(\"users\", DAOProvider.getDAO().getBlogUsers());\n\t\treq.setAttribute(\"error\", error);\n\t}", "void setParameters() {\n\t\t\n\t}", "@Override\r\n protected void parseAttributes()\r\n {\n\r\n }", "private void setUIFields(){\n setImage();\n setTitle();\n setLocation();\n setRatingBar();\n setDate();\n setISBN();\n setDescription();\n setPageCount();\n setNumRatings();\n }", "private void setAttributes() {\n this.setVisible(true);\n this.setSize(500, 500);\n this.setTitle(\"cuttco.com\");\n this.setDefaultCloseOperation(EXIT_ON_CLOSE);\n }", "public void setProperties(GovernanceActionProperties properties)\n {\n this.properties = properties;\n }", "@Override\n\tpublic void setAttribute(String name, Object o) {\n\t\t\n\t}", "private void buildOtherParams() {\n\t\tmClient.putRequestParam(\"attrType\", \"1\");\r\n\t}", "@Override\n\tpublic void setAction() {\n\t}", "public setAttribute_args(setAttribute_args other) {\n if (other.isSetPath()) {\n this.path = other.path;\n }\n if (other.isSetOptions()) {\n this.options = new SetAttributeTOptions(other.options);\n }\n }", "void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "public setAcl_args setAction(TSetAclAction action) {\n this.action = action;\n return this;\n }", "protected abstract void createAttributes();", "public void setAttributes(IEntityObject obj) {\r\n\tDispenser dObj = (Dispenser) obj;\r\n\tdObj.pk = this.pk;\r\n\tdObj.versionInfoID = this.versionInfoID;\r\n\tdObj.interfaceID = this.interfaceID;\t\r\n\tdObj.setBlender(this.blender);\r\n }", "private void setAction(String action)\r\n/* 46: */ {\r\n/* 47: 48 */ this.action = action;\r\n/* 48: */ }", "public void setActionInfo(String actionInfo);", "protected void configurePropertiesFromAction(Action a) {\n\tsetEnabled((a!=null?a.isEnabled():true));\n \tsetToolTipText((a!=null?(String)a.getValue(Action.SHORT_DESCRIPTION):null));\t\n }", "public void setAttributes(String attributes) {\n this.attributes = attributes == null ? null : attributes.trim();\n }", "protected void setInformationPlugin(HttpServletRequest req, GenericAction genericAction) {\n\n // Set multipart fields\n genericAction.setMultipartFields(getMultipartFields());\n\n // Request attributes\n //\n Hashtable<String, Object> attributes = new Hashtable<String, Object>();\n\n for (Enumeration e = req.getAttributeNames(); e.hasMoreElements();) {\n\n String attName = (String) e.nextElement();\n\n attributes.put(attName, req.getAttribute(attName));\n }\n\n genericAction.setAttributes(attributes);\n\n // Request parameters\n //\n Hashtable<String, Object> parameters = new Hashtable<String, Object>();\n\n for (Enumeration e = req.getParameterNames(); e.hasMoreElements();) {\n\n String attName = (String) e.nextElement();\n\n parameters.put(attName, req.getParameter(attName));\n }\n\n genericAction.setParameters(parameters);\n\n // Request session attributes\n //\n Hashtable<String, Object> sessionAttributes = new Hashtable<String, Object>();\n\n for (Enumeration e = req.getSession().getAttributeNames(); e.hasMoreElements();) {\n\n String attName = (String) e.nextElement();\n\n sessionAttributes.put(attName, req.getSession().getAttribute(attName));\n }\n\n genericAction.setSessionAttributes(sessionAttributes);\n\n // Resource boundle\n genericAction.setResourceBundle(getResourceBundle(req));\n }", "public void setAction(String action);", "protected abstract void bindAttributes();", "private void setAttribute(ASTAttrSpecNode attrSpec)\n {\n ASTArraySpecNode arraySpec = attrSpec.getArraySpec();\n ASTAccessSpecNode accessSpec = attrSpec.getAccessSpec();\n \n if (arraySpec != null)\n setArraySpec(arraySpec);\n else if (accessSpec != null)\n setVisibility(accessSpec);\n else if (attrSpec.isParameter())\n setParameter();\n\n // TODO: Intent, etc.\n }", "@Override\n\tpublic void setAttributes(AttributeMap arg0) {\n\t\tdefaultEdgle.setAttributes(arg0);\n\t}", "@Override\n public AttributeList setAttributes(AttributeList attributes) {\n return null;\n }", "public Attraction(String attractionName, String attractionDescription, String attractionAddress, String attractionHours, String attractionPhone) {\n mAttractionName = attractionName;\n mAttractionDescription = attractionDescription;\n mAttractionHours = attractionHours;\n mAttractionAddress = attractionAddress;\n mAttractionPhone = attractionPhone;\n }", "public void setAttribute(String name, Object value);", "private final void setAction(Action a){\n\t\tthis.a = a;\n\t}", "@Override\n\tpublic void setAttribute(String arg0, Object arg1, int arg2) {\n\n\t}", "public XrActionCreateInfo set(XrActionCreateInfo src) {\n memCopy(src.address(), address(), SIZEOF);\n return this;\n }", "void setAttributes(SetSubscriptionAttributesRequest request,\n ResultCapture<Void> extractor);", "public void setAction(A action) {\r\n\t\tthis.action = action;\r\n\t}", "private void initRequestAttributes(){\n\t\tmThrowedExceptions \t= new ArrayList<Exception>();\n\t\tmResponseCode\t\t= -1;\n\t}", "public void setAttribute(Object key, Object value);", "public void setAction(String action)\n {\n // Check property\n if (action == null) \n { \n action = \"\"; \n }\n \n // If the specified context path already contains\n // a query string, append an ampersand character\n // for further parameter concatenation\n if (action.indexOf(\"=\") != -1)\n {\n action = action + \"&\";\n }\n else\n {\n action = action + \"?\";\n }\n \n // Set property\n this.action = action;\n }", "void setAttributes(String path, Map<String, Object> newValue) throws IOException;", "public RewardsAction(SMTDBConnection dbConnection, Map<String, Object> attributes) {\n\t\tthis();\n\t\tsetDBConnection(dbConnection);\n\t\tsetAttributes(attributes);\n\t}", "protected abstract void setGUIAttributesHelper();", "@Override\n\tpublic void setAttribute(String arg0, Object arg1) {\n\n\t}", "public AttributeList setAttributes(AttributeList attributes) {\n if (attributes == null) {\n throw new RuntimeOperationsException(new IllegalArgumentException(\"AttributeList attributes cannot be null\"),\n \"Cannot invoke a setter of \" + dClassName);\n }\n AttributeList resultList = new AttributeList();\n\n if (attributes.isEmpty())\n return resultList;\n\n for (Iterator i = attributes.iterator(); i.hasNext();) {\n Attribute attr = (Attribute) i.next();\n try {\n setAttribute(attr);\n String name = attr.getName();\n Object value = getAttribute(name); \n resultList.add(new Attribute(name,value));\n } catch(Exception e) {\n e.printStackTrace();\n }\n }\n return resultList;\n }", "public Var_Act_Data(Action_Type type, Variable v1, Variable v2, int set_value) {\r\n super(type);\r\n var1 = v1;\r\n var2 = v2;\r\n set_val = set_value;\r\n }", "@Override\n\tpublic void urlDecisionSetDefaultAttributes() {\n\t\t// TODO Add default attributes for decisions related to URL access\n\n\t}", "private static void setData() {\n attributeDisplaySeq = new ArrayList<String>();\n attributeDisplaySeq.add(\"email\");\n\n signUpFieldsC2O = new HashMap<String, String>();\n signUpFieldsC2O.put(\"Email\",\"email\");\n\n\n signUpFieldsO2C = new HashMap<String, String>();\n signUpFieldsO2C.put(\"email\", \"Email\");\n\n\n }", "public abstract void setData(Map attributes, Iterator accessPoints);", "public void setAttrib(String name, String value);", "public final void setAttributes(final String[] newAttributes) {\n this.attributes = newAttributes;\n }", "public void setAttributesMap(Map<String, ?> attributes) {\n\t\tif (attributes != null) {\n\t\t\tthis.staticAttributes.putAll(attributes);\n\t\t}\n\t}", "@Override\n\tpublic void setDefaultAttributes() {\n\t\tAuthentication auth = SecurityContextHolder.getContext().getAuthentication();\n\t\tattrCatAry.add(\"SUBJECT\");\n\t\tattrTypeAry.add(\"STRING\");\n\t\tattrIdAry.add(\"com.axiomatics.emailAddress\");\n\t\tattrValAry.add(auth.getName());\n\t\tCollection<?> authorities = auth.getAuthorities();\n\t\tfor (Iterator<?> roleIter = authorities.iterator(); roleIter.hasNext();) {\n\t\t\tGrantedAuthority grantedAuthority = (GrantedAuthority) roleIter.next();\n\t\t\tattrCatAry.add(\"SUBJECT\");\n\t\t\tattrTypeAry.add(\"STRING\");\n\t\t\tattrIdAry.add(\"role\");\n\t\t\tattrValAry.add(grantedAuthority.getAuthority());\n\t\t}\n\t}", "public Attraction(String attractionName, String attractionDescription, String attractionAddress, String attractionHours, String attractionPhone, int attractionImageResourceID) {\n mAttractionName = attractionName;\n mAttractionDescription = attractionDescription;\n mAttractionHours = attractionHours;\n mAttractionAddress = attractionAddress;\n mAttractionPhone = attractionPhone;\n mAttractionImageResourceID = attractionImageResourceID;\n }", "public void attributSave() {\n\r\n\t\tstatusFeldSave();\r\n\t}", "void setInt(int attributeValue);", "public void setActions() {\n actions = new HashMap<String, Action>();\n for (Action a: jsonManager.getActionsFromJson()) {\n actions.put(a.getName(), a);\n }\n }", "public void setAttribute(List<Attribute> attribute) {\n\t\tthis.attribute = attribute;\n\t}", "void setProperty(String attribute, String value);", "public Value setAttributes(Value from) {\n checkNotUnknown();\n from.checkNotUnknown();\n Value r = new Value(this);\n r.flags &= ~ATTR;\n r.flags |= from.flags & ATTR;\n return canonicalize(r);\n }", "AdditionalAttributes setAttribute(String name, Object value, boolean force);", "@Override\n public void setDetailAttributes(MetaData metaData, String[] attributes)\n {\n }", "public void resetAttributes()\r\n\t{\r\n\t\t// TODO Keep Attribute List upto date\r\n\t\tintelligence = 0;\r\n\t\tcunning = 0;\r\n\t\tstrength = 0;\r\n\t\tagility = 0;\r\n\t\tperception = 0;\r\n\t\thonor = 0;\r\n\t\tspeed = 0;\r\n\t\tloyalty = 0;\r\n\t}", "public final void setAttributes(final String newAttributes) {\n this.attributes = newAttributes.split(\"\\\\|\");\n }", "public void setAttributeValues(String[] attributeValues){\n m_attributeValues = attributeValues;\n }", "public void setAttribute (GenericAttribute attribute) {\n this.attribute = attribute;\n this.type = TYPE_ATTRIBUTE;\n this.id = attribute.getId();\n }", "private void setValues() {\n //Calls for new assessment\n Assessment assessment = new Assessment();\n //Updates the local db assessmentDao with courseID and assessment ID\n assessment = db.assessmentDao().getAssessment(courseID, assessmentID);\n //Gets the assessment details name\n String name = assessment.getAssessment_name();\n //Gets the assessment details type\n String type = assessment.getAssessment_type();\n //Gets the assessment details status\n String status = assessment.getAssessment_status();\n //Gets the assessment details date\n String dDate = DateFormat.format(\"MM/dd/yyyy\", assessment.getAssessment_due_date()).toString();\n boolean alert1 = assessment.getAssessment_alert();\n //Gets the assessment details alert bar\n String alert = \"Off\";\n if (alert1) {\n alert = \"On\";\n }\n //Sets assessment details Name\n adName.setText(name);\n //Sets assessment details type\n adType.setText(type);\n //Sets assessment details status\n adStatus.setText(status);\n //Sets assessment details due date\n adDueDate.setText(dDate);\n //Sets assessment details alert\n adAlert.setText(alert);\n }", "void setAttributes(SetSubscriptionAttributesRequest request);", "private void initSetUp()\n\t{\n\t\tthis.setActionName(NAME);\n\t\tthis.setDescription(DESCRIPTION);\n\t\tthis.setMagic(IS_MAGIC);\n\t\tthis.setAttack(IS_ATTACK);\n\t\tthis.setTargetSelf(IS_TARGET_SELF);\n\t\tthis.setInternalName(INTERNAL_NAME);\n\t}", "void setAttribute(String key, Object value)\n throws ProcessingException;", "public void setAttributes(org.xml.sax.Attributes r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: org.xml.sax.ext.Attributes2Impl.setAttributes(org.xml.sax.Attributes):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.xml.sax.ext.Attributes2Impl.setAttributes(org.xml.sax.Attributes):void\");\n }", "public void setPoints_action(int points_action)\r\n/* */ {\r\n/* 80 */ this.points_action = points_action;\r\n/* */ }" ]
[ "0.6696718", "0.6571867", "0.6508226", "0.6342576", "0.62446624", "0.602229", "0.60081893", "0.59113824", "0.584834", "0.5785926", "0.5779997", "0.5756871", "0.57492167", "0.57476187", "0.57450134", "0.5697339", "0.56669176", "0.5657055", "0.56244504", "0.5617859", "0.56038356", "0.5584954", "0.5557294", "0.5542595", "0.5541823", "0.5537818", "0.55361974", "0.55210805", "0.5490388", "0.5483511", "0.5479649", "0.5477948", "0.5460964", "0.54552543", "0.5444693", "0.54415464", "0.5430994", "0.5426745", "0.5423", "0.54226655", "0.54020864", "0.53982586", "0.539593", "0.5388798", "0.53809375", "0.53809375", "0.5362207", "0.5360832", "0.53528565", "0.5350557", "0.53489935", "0.5346587", "0.53401", "0.5331431", "0.53143924", "0.5311762", "0.53095776", "0.53085715", "0.5304611", "0.52924013", "0.52898437", "0.526819", "0.5268164", "0.5267791", "0.52644974", "0.52628016", "0.5256871", "0.52442706", "0.52437675", "0.5241974", "0.523496", "0.5227225", "0.52244294", "0.52155054", "0.5208915", "0.5205297", "0.52042246", "0.5190567", "0.51865757", "0.5180006", "0.51777524", "0.5177399", "0.51763517", "0.5174791", "0.5166876", "0.5163823", "0.51618373", "0.5146199", "0.51409644", "0.5134159", "0.5129249", "0.51286876", "0.5127652", "0.51252806", "0.51240426", "0.5116011", "0.5102755", "0.5095966", "0.5095589", "0.5090833", "0.5090701" ]
0.0
-1
make spans if certain words are found in the input string
public SpannableString makeSpans(String input) { Log.d("makeSpans", "input: " + input); SpannableString ss = new SpannableString(input); int endIndex; // check for cards for (String word : Globals.getInstance().getCards()) { for (int index = input.toLowerCase().indexOf(word.toLowerCase()); index >= 0; index = input.toLowerCase().indexOf(word.toLowerCase(), index + 1)) { endIndex = input.indexOf(" ", index); if (endIndex == -1) { endIndex = index + word.length(); } ss.setSpan(makeClickableSpan("Cards", word), index, endIndex, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); } } // check for relics for (String word : Globals.getInstance().getRelics()) { for (int index = input.toLowerCase().indexOf(word.toLowerCase()); index >= 0; index = input.toLowerCase().indexOf(word.toLowerCase(), index + 1)) { endIndex = input.indexOf(" ", index); if (endIndex == -1) { endIndex = index + word.length(); } ss.setSpan(makeClickableSpan("Relics", word), index, endIndex, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); } } // check for potions for (String word : Globals.getInstance().getPotions()) { for (int index = input.toLowerCase().indexOf(word.toLowerCase()); index >= 0; index = input.toLowerCase().indexOf(word.toLowerCase(), index + 1)) { endIndex = input.indexOf(" ", index); if (endIndex == -1) { endIndex = index + word.length(); } ss.setSpan(makeClickableSpan("Potions", word), index, endIndex, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); } } // check for keywords for (String word : Globals.getInstance().getKeywords()) { for (int index = input.toLowerCase().indexOf(word.toLowerCase()); index >= 0; index = input.toLowerCase().indexOf(word.toLowerCase(), index + 1)) { endIndex = input.indexOf(" ", index); if (endIndex == -1) { endIndex = index + word.length(); } ss.setSpan(makeClickableSpan("Keywords", word), index, endIndex, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); } } // check for events for (String word : Globals.getInstance().getEvents()) { for (int index = input.toLowerCase().indexOf(word.toLowerCase()); index >= 0; index = input.toLowerCase().indexOf(word.toLowerCase(), index + 1)) { endIndex = input.indexOf(" ", index); if (endIndex == -1) { endIndex = index + word.length(); } ss.setSpan(makeClickableSpan("Events", word), index, endIndex, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); } } return ss; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void highlightString(TextView textView, String input) {\n SpannableString spannableString = new SpannableString(textView.getText());\n//Get the previous spans and remove them\n BackgroundColorSpan[] backgroundSpans = spannableString.getSpans(0, spannableString.length(), BackgroundColorSpan.class);\n\n for (BackgroundColorSpan span : backgroundSpans) {\n spannableString.removeSpan(span);\n }\n\n//Search for all occurrences of the keyword in the string\n int indexOfKeyword = spannableString.toString().indexOf(input);\n\n while (indexOfKeyword > 0) {\n //Create a background color span on the keyword\n spannableString.setSpan(new BackgroundColorSpan(Color.YELLOW), indexOfKeyword, indexOfKeyword + input.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n\n //Get the next index of the keyword\n indexOfKeyword = spannableString.toString().indexOf(input, indexOfKeyword + input.length());\n }\n\n//Set the final text on TextView\n textView.setText(spannableString);\n }", "public void searchWordToGroup(String title, String word, String groupIns) throws IOException {\r\n\t\tString line;\r\n\t\tBufferedReader in;\r\n\t\tint paragraphs = 1;\r\n\t\tint sentences = 1;\r\n\t\tfound = 0;\r\n\t\ttry {\r\n\t\t\tstatementP = SqlCon.getConnection().prepareStatement(SqlCon.PATH_ACORDING_TITLE);\r\n\t\t\tstatementP.setString(1, title);\r\n\t\t\trs = statementP.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tString path = rs.getString(\"filePath\");\r\n\t\t\t\tin = new BufferedReader(new FileReader(path));\r\n\t\t\t\tline = in.readLine();\r\n\t\t\t\twhile (line != null) {\r\n\t\t\t\t\tif (line.equals(\"\")) {\r\n\t\t\t\t\t\tparagraphs++;\r\n\t\t\t\t\t\tsentences = 1;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tString[] sentenceList = line.split(\"[!?.:]+\");\r\n\t\t\t\t\t\tfor (int i = 0; i < sentenceList.length; i++) {\r\n\t\t\t\t\t\t\tif (sentenceList[i].contains(word)) {\r\n\t\t\t\t\t\t\t\tint p = paragraphs;\r\n\t\t\t\t\t\t\t\tint s = sentences;\r\n\t\t\t\t\t\t\t\tint is =0;\r\n\t\t\t\t\t\t\t\tinsertTable.insertwordFunc(groupIns, word, title, p, s, is);\r\n\t\t\t\t\t\t\t\tfound = 1;\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\tsentences++;\r\n\t\t\t\t\tline = in.readLine();\r\n\t\t\t\t}\r\n\t\t\t\tparagraphs = 1;\r\n\t\t\t\tsentences = 1;\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private Spannable applyWordMarkup(String text) {\n SpannableStringBuilder ssb = new SpannableStringBuilder();\n int languageCodeStart = 0;\n int untranslatedStart = 0;\n\n int textLength = text.length();\n for (int i = 0; i < textLength; i++) {\n char c = text.charAt(i);\n if (c == '.') {\n if (++i < textLength) {\n c = text.charAt(i);\n if (c == '.') {\n ssb.append(c);\n } else if (c == 'c') {\n languageCodeStart = ssb.length();\n } else if (c == 'C') {\n ssb.setSpan(new TextAppearanceSpan(BrowseWordsActivity.this,\n R.style.language_code_tag),\n languageCodeStart, ssb.length(), 0);\n languageCodeStart = ssb.length();\n } else if (c == 'u') {\n untranslatedStart = ssb.length();\n } else if (c == 'U') {\n ssb.setSpan(new TextAppearanceSpan(BrowseWordsActivity.this,\n R.style.untranslated_word),\n untranslatedStart, ssb.length(), 0);\n untranslatedStart = ssb.length();\n } else if (c == '0') {\n Resources res = getResources();\n ssb.append(res.getString(R.string.no_translations));\n }\n }\n } else\n ssb.append(c);\n }\n\n return ssb;\n }", "public SpannableString makeBold(String input, String start, String end) {\n SpannableString ss = new SpannableString(input);\n\n int endIndex;\n for (int startIndex = input.toLowerCase().indexOf(start.toLowerCase());\n startIndex >= 0;\n startIndex = input.toLowerCase().indexOf(start.toLowerCase(), startIndex + 1)) {\n endIndex = input.toLowerCase().indexOf(end.toLowerCase(), startIndex + 1);\n if (endIndex == -1) {\n break;\n }\n ss.setSpan(new android.text.style.StyleSpan(android.graphics.Typeface.BOLD), startIndex, endIndex,\n Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n }\n\n\n return ss;\n }", "boolean break_word (ArrayList<String> strings, int index, String word) {\n boolean withWord = false;\n if (dictionary.contains(word)) {\n strings.add(word);\n if (index == sentence.length()) {\n System.out.println (strings);\n return true;\n }\n withWord = break_word(new ArrayList<String>(strings), index, \"\");\n strings.remove(strings.size() - 1);\n }\n if (index == sentence.length())\n return false;\n word += sentence.charAt(index);\n return break_word(new ArrayList<String>(strings), index+1, word) || withWord;\n }", "public int removings(String s)\n{\n if(stopWords.contains(s))\n {\n return 1;\n }\n else\n {\n return 0;\n }\n}", "private String search_words(String word, int index){\n\t\tString found_words = \"\";\n\t\tint local_index = index +1;\n\t\t//We try to find the word within our childs\n\t\tfor(LexiNode child: childs){\n\t\t\tif(local_index > word.length()-1 || word.toLowerCase().charAt(local_index) == Character.toLowerCase(child.getRepresentative_letter()))\n\t\t\t\tfound_words += child.search_words(word, local_index);\n\t\t}\n\t\tif(current_word != null && word.length() > current_word.length())\n\t\t\treturn found_words;\n\t\tif(current_word != null && !found_words.equals(\"\"))\n\t\t\treturn current_word.toLowerCase().equals(word.toLowerCase()) ? current_word +\" & \" + definition + \"#\" + found_words +\"#\" : current_word + \"#\" + found_words;\n\t\telse if(current_word != null && found_words.equals(\"\"))\n\t\t\treturn current_word.toLowerCase().equals(word.toLowerCase()) ? current_word +\" & \" + definition + \"#\": current_word+ \"#\";\n\t\telse //current_word == null && found_words != null\n\t\t\treturn found_words;\n\t}", "private String fixWordStarts(final String line) {\n final String[] parts = line.split(\" \");\n\n final StringBuilder lineBuilder = new StringBuilder();\n\n for (int i = 0; i < parts.length; i++) {\n String part = parts[i];\n\n // I prefer a space between a - and the word, when the word starts with a dash\n if (part.matches(\"-[0-9a-zA-Z']+\")) {\n final String word = part.substring(1);\n part = \"- \" + word;\n }\n\n // yes this can be done in 1 if, no I'm not doing it\n if (startsWithAny(part, \"lb\", \"lc\", \"ld\", \"lf\", \"lg\", \"lh\", \"lj\", \"lk\", \"ll\", \"lm\", \"ln\", \"lp\", \"lq\", \"lr\",\n \"ls\", \"lt\", \"lv\", \"lw\", \"lx\", \"lz\")) {\n // some words are incorrectly fixed (llama for instance, and some Spanish stuff)\n if (startsWithAny(part, \"ll\") && isOnIgnoreList(part)) {\n lineBuilder.append(part);\n } else {\n // I starting a word\n part = part.replaceFirst(\"l\", \"I\");\n lineBuilder.append(part);\n }\n } else if (\"l.\".equals(part)) {\n // I at the end of a sentence.\n lineBuilder.append(\"I.\");\n } else if (\"l,\".equals(part)) {\n // I, just before a comma\n lineBuilder.append(\"I,\");\n } else if (\"l?\".equals(part)) {\n // I? Wut? Me? Moi?\n lineBuilder.append(\"I?\");\n } else if (\"l!\".equals(part)) {\n // I! 't-was me!\n lineBuilder.append(\"I!\");\n } else if (\"l..\".equals(part)) {\n // I.. think?\n lineBuilder.append(\"I..\");\n } else if (\"l...\".equals(part)) {\n // I... like dots.\n lineBuilder.append(\"I...\");\n } else if (\"i\".equals(part)) {\n // i suck at spelling.\n lineBuilder.append(\"I\");\n } else if (part.startsWith(\"i'\")) {\n // i also suck at spelling.\n part = part.replaceFirst(\"i\", \"I\");\n lineBuilder.append(part);\n } else {\n // nothing special to do\n lineBuilder.append(part);\n }\n\n // add trailing space if it is not the last part\n if (i != parts.length - 1) {\n lineBuilder.append(\" \");\n }\n }\n\n return lineBuilder.toString();\n }", "public static String findMultipleOccorancesOfGivenWord(String sentence,String word)\n {\n if(sentence == null || word == null || sentence == \"\" || word == \"\"){\n return \"Please enter valid sentence and word.It should not be empty and null\";\n }\n String result = \"\";\n Pattern pattern = Pattern.compile(word);\n Matcher matcher = pattern.matcher(sentence);\n while(matcher.find()) {\n\n result = result + \"Found at:\"+ matcher.start() + \" - \" + matcher.end() + \" \";\n }\n\n return result.trim();\n\n }", "public static void main(String[] args) {\n//\n// String pattern = \"abba\";\n// String s = \"dog cat cat fish\";\n\n\n// String pattern = \"aaaa\";\n// String s = \"dog cat cat dog\";\n\n String pattern = \"abba\";\n String s = \"dog dog dog dog\";\n\n// String pattern = \"e\";\n// String s = \"eukera\";\n\n boolean flag = wordPattern(pattern, s);\n\n System.out.println(flag);\n }", "private String containingWord(String attribute, String word) {\r\n return \"contains(concat(' ',normalize-space(@\" + attribute + \"),' '),' \"\r\n + word + \" ')\";\r\n }", "public abstract boolean isStopWord(String term);", "private HBox createStyledText(String searched, String guess, HBox styledText, boolean isIgnoreCase) {\n int index = (isIgnoreCase ? searched.toLowerCase().indexOf(guess.toLowerCase()) : searched.indexOf(guess));\n if (index >= 0) {\n\n String beginString = searched.substring(0, index);\n String highlightedString = (isIgnoreCase ? searched.substring(index, index + guess.length()) : guess);\n String endString = searched.substring(index + guess.length());\n\n final Text begin = new Text(beginString);\n styledText.getChildren().add(begin);\n\n final Text highlighted = new Text(highlightedString);\n highlighted.getStyleClass().add(HIGHLIGHTED_DROPDOWN_CLASS);\n styledText.getChildren().add(highlighted);\n\n final Text end = new Text(endString);\n end.getStyleClass().add(USUAL_DROPDOWN_CLASS);\n styledText.getChildren().add(end);\n\n } else {\n styledText.getChildren().add(new Text(searched));\n }\n return styledText;\n }", "public static boolean wordBreakHelper(String s, Set<String> dict, int start) {\r\n if (start == s.length()) {\r\n return true;\r\n }\r\n for (String word : dict) {\r\n int len = word.length();\r\n int end = start + len;\r\n\r\n if (end > s.length()) {\r\n continue;\r\n }\r\n\r\n if (s.substring(start, start + len).equals(word)) {\r\n if (wordBreakHelper(s, dict, start + len)) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "private String buildWordMatch(Matcher matcher, String word){\n return \"(\" + matcher.replaceAll(\"% \"+word+\" %\")\n + \" or \" + matcher.replaceAll(word+\" %\")\n + \" or \" + matcher.replaceAll(word)\n + \" or \" + matcher.replaceAll(\"% \"+word) + \")\" ;\n }", "@Test\n\tpublic void testIsContainedInSomeWord() {\n\n\t\tString[] words = {\"ne\", \"ned\", \"nes\", \"ning\", \"st\", \"sted\", \"sting\", \"sts\"};\n\t\tList<String> listWords = Arrays.asList(words);\n\n\t\tassertThat(\"Prefix contained\", StringUtils.containsPrefix(listWords, \"sti\"), equalTo(true));\n\t\tassertThat(\"Prefix contained\", StringUtils.containsPrefix(listWords, \"ne\"), equalTo(true));\n\t\tassertThat(\"Prefix contained\", StringUtils.containsPrefix(listWords, \"ni\"), equalTo(true));\n\t\tassertThat(\"Prefix contained\", StringUtils.containsPrefix(listWords, \"s\"), equalTo(true));\n\t\tassertThat(\"Prefix not contained\", StringUtils.containsPrefix(listWords, \"sta\"), equalTo(false));\n\t\tassertThat(\"Prefix not contained\", StringUtils.containsPrefix(listWords, \"a\"), equalTo(false));\n\t\tassertThat(\"Prefix not contained\", StringUtils.containsPrefix(listWords, \"no\"), equalTo(false));\n\t}", "boolean containsUtilize(String word)\n {\n return word.contains(\"utilize\");\n }", "public static boolean containsThe(String str) {\n int x = str.indexOf(\"The\");\n int y = str.indexOf(\"the\");\n if (x != -1 || y != -1){\n return true;\n }\n else{\n return false;\n }\n }", "public String phraseWords(String input) {\n document = new Annotation(input);\n // run all Annotators on this text\n pipeline.annotate(document);\n String pos = document.get(CoreAnnotations.PhraseWordsTagAnnotation.class);\n\n return pos;\n }", "String highlightTerm(String term);", "private static boolean hasWord(char[][] board, int x, int y, String s) {\n if (x < 0 || x > 4 || y < 0 || y > 4) return false;\n if (s.length() == 0) return true;\n\n // If 1st char of s is different from char at (x, y),\n // hasWord cannot continue to search s.\n if (s.charAt(0) != board[y][x]) return false;\n\n for (int i = 0; i < diffX.length; i++) {\n int newX = x + diffX[i];\n int newY = y + diffY[i];\n if (hasWord(board, newX, newY, s.substring(1))) return true;\n }\n\n return false;\n }", "private void findValidWordsOnBoard(){\n\n //mark each visited cell to ensure it gets used only once while forming a word\n boolean[][] visited = new boolean[boardLength][boardLength];\n String word = \"\";\n\n for(int i = 0; i < boardLength; i++) {\n for(int j = 0; j < boardLength; j++)\n findWordsOnBoard(word, visited, board, i, j);\n }\n }", "private static List<SearchData> booleanSearchWord(Query query, Indexer si) {\n Tokenizer tkn = new SimpleTokenizer();\n tkn.tokenize(query.getStr(), \"[a-zA-Z]{3,}\", true, true);\n List<SearchData> searchList = new ArrayList<>();\n LinkedList<Token> wordsList = tkn.getTokens();\n Iterator<Token> wordsIt = wordsList.iterator();\n HashMap<String, LinkedList<Posting>> indexer = si.getIndexer();\n int idx;\n SearchData searched_doc;\n\n while (wordsIt.hasNext()) {\n String word = wordsIt.next().getSequence();\n if (indexer.containsKey(word)) {\n\n LinkedList<Posting> posting = indexer.get(word);\n\n for (Posting pst : posting) {\n\n SearchData sd = new SearchData(query, pst.getDocId());\n\n if (!searchList.contains(sd)) {\n sd.setScore(1);\n searchList.add(sd);\n } else {\n idx = searchList.indexOf(sd);\n searched_doc = searchList.get(idx);\n searched_doc.setScore(searched_doc.getScore() + 1);\n }\n }\n\n }\n\n\n }\n\n Collections.sort(searchList);\n\n return searchList;\n }", "private static void splitWord() {\n\t\tint i = 1;\r\n\t\tfor(String doc : DocsTest) {\r\n\t\t\tArrayList<String> wordAll = new ArrayList<String>();\r\n\t\t\tfor (String word : doc.split(\"[,.() ; % : / \\t -]\")) {\r\n\t\t\t\tword = word.toLowerCase();\r\n\t\t\t\tif(word.length()>1 && !mathMethod.isNumeric(word)) {\r\n\t\t\t\t\twordAll.add(word);\r\n\t\t\t\t\tif(!wordList.contains(word)) {\r\n\t\t\t\t\t\twordList.add(word);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\twordAll.removeAll(stopword);\r\n\t\t\tDoclist.put(i, wordAll);\r\n\t\t\ti++;\r\n\t\t}\r\n\t\twordList.removeAll(stopword);\r\n\t}", "private void addCustomWords() {\r\n\r\n }", "boolean hasWord();", "void solution() {\n\t\t/* Write a RegEx matching repeated words here. */\n\t\tString regex = \"(?i)\\\\b([a-z]+)\\\\b(?:\\\\s+\\\\1\\\\b)+\";\n\t\t/* Insert the correct Pattern flag here. */\n\t\tPattern p = Pattern.compile(regex, Pattern.CASE_INSENSITIVE);\n\n\t\tString[] in = { \"I love Love to To tO code\", \"Goodbye bye bye world world world\",\n\t\t\t\t\"Sam went went to to to his business\", \"Reya is is the the best player in eye eye game\", \"in inthe\",\n\t\t\t\t\"Hello hello Ab aB\" };\n\t\tfor (String input : in) {\n\t\t\tMatcher m = p.matcher(input);\n\n\t\t\t// Check for subsequences of input that match the compiled pattern\n\t\t\twhile (m.find()) {\n\t\t\t\t// /* The regex to replace */, /* The replacement. */\n\t\t\t\tinput = input.replaceAll(m.group(), m.group(1));\n\t\t\t}\n\n\t\t\t// Prints the modified sentence.\n\t\t\tSystem.out.println(input);\n\t\t}\n\n\t}", "public static void tokenize (Document doc, Span span) {\n findTokens (doc, doc.text(), span.start(), span.end());\n}", "public static void textQueries(List<String> sentences, List<String> queries) {\n // Write your code here\n for(String q: queries){\n boolean a = false;\n int i=0;\n for(String s: sentences){\n if(Arrays.asList(s.split(\" \")).containsAll(Arrays.asList(q.split(\" \")))){\n System.out.print(i+\" \");\n a = true;\n }\n i++;\n }\n if(!a)\n System.out.println(-1);\n else\n System.out.println(\"\");\n }\n \n }", "public boolean wordBreakUtil(String s,Set<String> set){\n\n if (s.length() == 0){\n return true;\n }\n\n for (int i=1; i <= s.length(); i++){\n\n // consider all prefixes of the current string\n String prefix = s.substring(0,i);\n\n // return true if the prefix is present in the dictionary and the\n // remaining string also forms a space-separated sequence of one or\n // more dictionary words\n if (set.contains(prefix) && wordBreakUtil(s.substring(i),set)){\n return true;\n }\n }\n\n return false;\n }", "public boolean wordBreak(String s, List<String> wordDict) {\n boolean[] dp = new boolean[s.length()]; \n for (int i = 0; i <s.length(); i++) {\n if (wordDict.contains(s.substring(0, i+1))) {\n dp[i] = true;\n continue;\n }\n for (int k = 0; k < i; k++) {\n if (dp[k] && wordDict.contains(s.substring(k+1, i+1))) {\n dp[i] = true;\n System.out.println(i + \" \" +dp[i]);\n break;\n }\n }\n \n }\n return dp[s.length()-1];\n }", "public boolean check(String s, int start, Map<String, Integer> words, int wn, int wl) {\n words = new HashMap<>(words);\n for(int i=0; i<wn; i++) {\n String cur = s.substring(start + i*wl, start + i*wl + wl);\n if(!words.containsKey(cur) || words.get(cur) <= 0) return false;\n words.put(cur, words.get(cur) - 1);\n }\n return true;\n }", "public boolean isWordBreak(String s, List<String> wordDict){\n\n\t\tint[] ind = new int[s.length()+1];\n\t\tArrays.fill(ind,-1);\n\t\tind[0]=0;\n\t\t\n\t\tfor (int i = 0; i<s.length(); i++){\n\t\t\tif (ind[i]!=-1){\n\t\t\t\tfor (int j=i+1; j<=s.length(); j++){\n\t\t\t\t\tString word = s.substring(i,j);\n\t\t\t\t\tif (wordDict.contains(word)){\n\t\t\t\t\t\tind[j]=i;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (ind[s.length()] == -1) return false;\n\t\t\n\t\treturn true;\n\n\t\n\t}", "private String searchString(String inWord)\n {\n String line = null;\n StringBuffer rtn = new StringBuffer();\n int len = inWord.length();\n boolean found = false;\n\n if(len == 1)\n {\n if(Character.isDigit(inWord.charAt(0)))\n {\n rtn.append(inWord).append(\"I\");\n found = true;\n } // fi\n\n else if(Character.isLetter(inWord.charAt(0)))\n {\n rtn.append(inWord.toLowerCase()).append(\"S\");\n found = true;\n } // else fi\n } // fi\n\n if(!found)\n {\n int\tnum_A = 0; // Upper case\n int\tnum_L = 0; // Lower case\n int\tnum_N = 0; // Numbers\n int\tnum_P = 0; // Punctuation (numeric)\n int\tnum_Q = 0; // Quotes\n int\tnum_O = 0; // Other\n char last_ch = ' ';\n\n for(int i = 0; i < len; i++)\n {\n if((i == 0) && (inWord.charAt(i) == '-'))\n num_L++;\n\n else if(Character.isLowerCase(inWord.charAt(i)))\n num_L++;\n\n else if(Character.isUpperCase(inWord.charAt(i)))\n num_A++;\n\n else if(Character.isDigit(inWord.charAt(i)))\n num_N++;\n\n else if((inWord.charAt(i) == '=')||(inWord.charAt(i) == ':') ||\n (inWord.charAt(i) == '+')||(inWord.charAt(i) == '.') ||\n (inWord.charAt(i) == ','))\n num_P++;\n\n else if((inWord.charAt(i) == '\\'') ||\n (inWord.charAt(i) == '`') || (inWord.charAt(i) == '\"'))\n num_Q++;\n\n else\n num_O++;\n\n last_ch = inWord.charAt(i);\n } // for\n\n int pos = 0;\n if((len - ntail) > 0)\n pos = len - ntail;\n\n rtn.append(inWord.substring(pos).toLowerCase());\n\n if((num_L + num_Q) == len)\n rtn.append(\"\");\n\n else if((num_A + num_Q) == len)\n rtn.append(\"A\");\n\n else if((num_N + num_P + num_Q) == len)\n rtn.append(\"N\");\n\n else if((num_L + num_A + num_Q) == len)\n rtn.append(\"B\");\n\n else if((num_A + num_N + num_P + num_Q) == len)\n rtn.append(\"C\");\n\n else if((num_L + num_N + num_P + num_Q) == len)\n rtn.append(\"E\");\n\n else if((num_A + num_L + num_N + num_P + num_Q) == len)\n rtn.append(\"D\");\n\n else if((num_O == 0) && (last_ch == '+'))\n rtn.append(\"F\");\n\n else\n rtn.append(\"O\");\n } // else\n\n rtn.append(\"_\");\n\n return(rtn.toString());\n }", "static String surround(String s, String search_term){\n return s.replaceAll(search_term,\"(\" +search_term +\")\");\n\n }", "private void highlightArea(FilterBypass fb, String s, int left, int right) {\n String sub = s.substring(left, right);\n //removeHighlights(fb, s, left, right);\n //String whitespace = new String(\" \\n\\r\");\n //println(\"String to update: '\" + s.substring(left, right) + \"'\");\n\n //Todo: make the code check for whitespace OR eof on either side of the string before highlighting it\n //Further optimisation for large inputs: combine all loops into one, and have an if statement to determine color.\n // ie, if there are 17 keywords that should be red, then check if the index found is <17, and if so, color red.\n\n for(int i = 0; i < all.length; i++) {\n highlightGiven(fb, all[i], sub, left, attributeScheme[i+1]);\n }\n\n //Handles comments and string literals.\n //if (dirtyBounds.size() % 2 == 0) \n try {\n for(int i = 0; i < dirtyBounds.size()-1; i+=2) {\n ((StyledDocument)fb.getDocument()).setCharacterAttributes(dirtyBounds.get(i), dirtyBounds.get(i+1)-dirtyBounds.get(i)+1, attributeScheme[10], true);\n }\n } catch (ArrayIndexOutOfBoundsException a) {}\n }", "public static List<Integer> findSubstringWordConcatenation(String str, String[] words) {\n assert str != null;\n assert words != null;\n List<String> wordList = new ArrayList<>();\n List<Integer> wordIndex = new ArrayList<>();\n int noOfWords = words.length, wordLength = words[0].length();\n Map<String,Integer> wordFrequencyMap = new HashMap<>();\n for(String word: words) {\n wordFrequencyMap.put(word,wordFrequencyMap.getOrDefault(word,0)+1);\n }\n\n for(int windowStart=0; windowStart <= (str.length() - (wordLength * noOfWords)); windowStart++) {\n HashMap<String, Integer> wordsSeen = new HashMap<>();\n /*now look for words*/\n for(int wrd=0; wrd<noOfWords; wrd++) {\n int wordStartIndex = windowStart + (wrd * wordLength);\n String word = str.substring(wordStartIndex, wordStartIndex+wordLength);\n if(wordFrequencyMap.containsKey(word)) {\n wordsSeen.put(word, wordsSeen.getOrDefault(word,0)+1);\n } else {\n break;// break for loop\n }\n if(wordsSeen.get(word) > wordFrequencyMap.getOrDefault(word,0)) {\n break;// frequency is more then required\n }\n if(wordsSeen.size() == wordFrequencyMap.size()) {\n wordList.add(str.substring(windowStart, wordStartIndex+wordLength));\n wordIndex.add(windowStart);\n }\n }\n }\n return wordIndex;\n }", "public String search_words(String word){\n\t\tString found_words = \"\";\n\t\t//We try to find the word within our childs\n\t\tfor(LexiNode child: childs)\n\t\t\tif(word.toLowerCase().charAt(0) == Character.toLowerCase(child.getRepresentative_letter()))\n\t\t\t\tfound_words += child.search_words(word, 0);\n\t\t\n\t\treturn found_words;\n\t}", "public void run(){\n // If there is not word to recognized or the word is empty then do not recognize it\n if(word == null || word.trim().isEmpty()){\n return;\n }\n\n // Set up the highlighter\n DefaultHighlighter.DefaultHighlightPainter highLighter = FileUtils.getInstance().getHighlighter();\n\n // Highlight words at the exact position\n try{\n textPane.getHighlighter().addHighlight(startPosition, endPosition, highLighter);\n }catch(Exception e){\n e.printStackTrace();\n }\n }", "List<Integer> wordFinder(String text, String word) {\n\n List<Integer> indexes = new ArrayList<Integer>();\n String wordProper = \" \" + word + \" \";\n\n int index = 0;\n\n while (index != -1) {\n\n index = text.indexOf(wordProper, index);\n\n if (index != -1) {\n indexes.add(index);\n index++;\n }\n }\n\n return indexes;\n }", "public static boolean wordBreak(String s, String[] dict) {\n boolean[] memo = new boolean[s.length() + 1];\n memo[0] = true; //set first to be true because we need initial state\n for (int i = 0; i < s.length(); i++) {\n if (!memo[i])\n continue;\n for (String current : dict) {\n int end = i + current.length();\n if (end > s.length())\n continue;\n if (memo[end])\n continue;\n if (s.substring(i, end).equals(current)) {\n memo[end] = true;\n }\n }\n }\n return memo[s.length()];\n }", "public boolean isStopWord(String word);", "public static void tokenizeOnWS (Document doc, Span span) {\n\t\tString text = doc.text();\n\t\tint tokenStart;\n\t\tint ic = span.start();\n\t\tint end = span.end();\n\t\t// skip white space preceding first token\n\t\twhile ((ic < end) && Character.isWhitespace(text.charAt(ic))) ic++;\n\t\twhile (ic < end) {\n\t \t\ttokenStart = ic;\n\t \tic++;\n\t \twhile ((ic < end) && !Character.isWhitespace(text.charAt(ic))) ic++;\n\t \t// include whitespace following token\n\t \twhile ((ic < end) && Character.isWhitespace(text.charAt(ic))) ic++;\n\t \trecordToken (doc, text, tokenStart, ic, new FeatureSet());\n\t }\n\t}", "public static boolean searchWordInTemplateString(TemplateString tStr, String word) {\n\t\tString text = tStr.string;\r\n\t\tint currentIndex = 0;\r\n\t\tfor(int j = 0; j < text.length() && currentIndex < word.length(); j++) {\r\n\t\t\tchar c = text.charAt(j);\r\n\t\t\t// Check uppercase\r\n\t\t\tif(c >= 'A' && c <= 'Z') c = (char) (c + 'a' - 'A');\r\n\t\t\t// Check if equal to current word char\r\n\t\t\tif(c == word.charAt(currentIndex)) {\r\n\t\t\t\t// If last index then the word exists in template\r\n\t\t\t\tif(currentIndex == word.length() - 1) return true;\r\n\t\t\t\t// Otherwise add one to index\r\n\t\t\t\tcurrentIndex++;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif(currentIndex > 0 && ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9'))) {\r\n\t\t\t\t// If the char was alphanumerical but unequal, the word train was broken..\r\n\t\t\t\tcurrentIndex = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "static ArrayList<String> tag(ArrayList<String> rawWords){\n\t\tArrayList<String> outSentence = new ArrayList<String>();\n\t\t//String[][] chart = new String[rawWords.size()][rawWords.size()];\n\t\tfor(int i = 0; i<rawWords.size(); i++){\n\t\t\tString[] entry = rawWords.get(i).split(\"\\\\s+\");\n\t\t\tString word = entry[0];\n\t\t\tString pos = entry[1];\n\t\t\tSystem.out.println(word);\n\t\t\tif((pos.equals(\"NNP\")||word.equals(\"tomorrow\"))&&rawWords.get(i-1).split(\"\\\\s+\")[0].equals(\"due\")){\n\t\t\t\tint beginning = i;\n\t\t\t\tint ending = i;\n\t\t\t\tint j = i+1;\n\t\t\t\tboolean endingFound = false;\n\t\t\t\twhile(!endingFound){\n\t\t\t\t\tString next=rawWords.get(j).split(\"\\\\s\")[1];\n\t\t\t\t\tif(next.equals(\"NN\")||next.equals(\"NNP\")||next.equals(\"NNS\")||next.equals(\"NNPS\")||next.equals(\"CD\")){\n\t\t\t\t\t\tending++;\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tendingFound = true;\n\t\t\t\t}\n\t\t\t\twhile(beginning<outSentence.size()){\n\t\t\t\t\toutSentence.remove(outSentence.size()-1);\n\t\t\t\t}\n\t\t\t\tString nounGroupLine = rawWords.get(beginning).split(\"\\\\s+\")[0]+\"\\tB-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\tfor(int index = beginning+1; index<=ending; index++){\n\t\t\t\t\tnounGroupLine = rawWords.get(index).split(\"\\\\s+\")[0]+\"\\tI-NP\";\n\t\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\t}\n\t\t\t\ti=ending;\n\t\t\t}\n\t\t\telse if (pos.equals(\"CD\")){\n\t\t\t\tint beginning = i;\n\t\t\t\tint ending = i;\n\t\t\t\tboolean beginningFound = false;\n\t\t\t\tboolean endingFound = false;\n\t\t\t\tint j = i+1;\n\t\t\t\twhile(!endingFound){\n\t\t\t\t\tif((rawWords.get(j).split(\"\\\\s\")[1].equals(\"CC\")&&rawWords.get(j-1).split(\"\\\\s\")[1].equals(\"CD\")&&rawWords.get(j+1).split(\"\\\\s\")[1].equals(\"CD\"))||rawWords.get(j).split(\"\\\\s\")[1].equals(\"NN\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"NNS\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"NNP\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"NNPS\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"CD\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"CD\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"%\")){\n\t\t\t\t\t\tending++;\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tendingFound = true;\n\t\t\t\t}\n\t\t\t\tj = i-1;\n\t\t\t\twhile(!beginningFound){\n\t\t\t\t\tif(rawWords.get(j).split(\"\\\\s\")[0].equals(\"to\")&&rawWords.get(j-1).split(\"\\\\s\")[0].equals(\"up\")){\n\t\t\t\t\t\tbeginning-=2;\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t}\n\t\t\t\t\telse if(rawWords.get(j).split(\"\\\\s\")[1].equals(\"#\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"PRP$\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"JJ\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"JJR\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"JJS\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"$\")){\n\t\t\t\t\t\tj--;\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t}\n\t\t\t\t\telse if(rawWords.get(j).split(\"\\\\s\")[1].equals(\"POS\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"DT\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"approximately\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"around\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"almost\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"about\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t}\n\t\t\t\t\telse if (rawWords.get(j).split(\"\\\\s\")[0].equals(\"as\")&&(rawWords.get(j-1).split(\"\\\\s\")[0].equals(\"many\")||rawWords.get(j-1).split(\"\\\\s\")[0].equals(\"much\"))&&rawWords.get(j-2).split(\"\\\\s\")[0].equals(\"as\")){\n\t\t\t\t\t\tbeginning-=3;\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t}\n\n\t\t\t\t\telse if (rawWords.get(j).split(\"\\\\s\")[1].equals(\"VBN\")&&j>0&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJR\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"PRP$\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJ\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"DT\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"RB\"))){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if (rawWords.get(j).split(\"\\\\s\")[1].equals(\"VBN\")&&j>1&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\",\")&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJR\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"PRP$\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"JJ\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"DT\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"RB\")))){\n\t\t\t\t\t\tbeginning-=2;\n\t\t\t\t\t\tj-=2;\n\t\t\t\t\t}\n\t\t\t\t\telse if((rawWords.get(j).split(\"\\\\s\")[1].equals(\"RBR\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"not\"))&&rawWords.get(j+1).split(\"\\\\s+\")[1].equals(\"JJ\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse{\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t}\n\n\t\t\t\t\twhile(beginning<outSentence.size()){\n\t\t\t\t\t\toutSentence.remove(outSentence.size()-1);\n\t\t\t\t\t}\n\t\t\t\t\tString nounGroupLine = rawWords.get(beginning).split(\"\\\\s+\")[0]+\"\\tB-NP\";\n\t\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\t\tfor(int index = beginning+1; index<=ending; index++){\n\t\t\t\t\t\tnounGroupLine = rawWords.get(index).split(\"\\\\s+\")[0]+\"\\tI-NP\";\n\t\t\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\t\t}\n\t\t\t\t\ti=ending;\n\t\t\t\t}\n\t\t\t}\n\t\t\t/*else if(pos.equals(\"CD\")&&rawWords.get(i-1).split(\"\\\\s+\")[0].equals(\"$\")&&rawWords.get(i-2).split(\"\\\\s+\")[1].equals(\"IN\")){\n\t\t\t\tint beginning=i;\n\t\t\t\tint ending = i;\n\t\t\t\tint j=i+1;\n\t\t\t\tboolean endingFound = false;\n\t\t\t\twhile(!endingFound){\n\t\t\t\t\tString next=rawWords.get(j).split(\"\\\\s\")[1];\n\t\t\t\t\tif(next.equals(\"CD\")){\n\t\t\t\t\t\tending++;\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tendingFound = true;\n\t\t\t\t}\n\t\t\t\tboolean beginningFound = false;\n\t\t\t\tj = i-1;\n\t\t\t\twhile(!beginningFound){\n\t\t\t\t\tString prior=rawWords.get(j).split(\"\\\\s\")[1];\n\t\t\t\t\tString priorWord = rawWords.get(j).split(\"\\\\s\")[0];\n\t\t\t\t\tif(prior.equals(\"$\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if (rawWords.get(j).split(\"\\\\s+\")[0].equals(\"as\")&&rawWords.get(j-1).split(\"\\\\s+\")[0].equals(\"much\")&&rawWords.get(j-2).split(\"\\\\s+\")[0].equals(\"as\")){\n\t\t\t\t\t\tbeginning -=3;\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t\tj -=3;\n\t\t\t\t\t}\n\t\t\t\t\telse if (prior.equals(\"IN\")){\n\t\t\t\t\t\tbeginning --;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\telse\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t}\n\t\t\t\twhile(beginning<outSentence.size()){\n\t\t\t\t\toutSentence.remove(outSentence.size()-1);\n\t\t\t\t}\n\t\t\t\tString nounGroupLine = rawWords.get(beginning).split(\"\\\\s+\")[0]+\"\\tB-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\tfor(int index = beginning+1; index<=ending; index++){\n\t\t\t\t\tnounGroupLine = rawWords.get(index).split(\"\\\\s+\")[0]+\"\\tI-NP\";\n\t\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\t}\n\t\t\t\ti=ending;\n\t\t\t}*/\n\t\t\t//else if(pos.equals(arg0))\n\t\t\telse if(pos.equals(\"PRP\")||pos.equals(\"WP\")||word.equals(\"those\")||pos.equals(\"WDT\")){\n\t\t\t\tint beginning = i;\n\t\t\t\t//int ending = i;\n\t\t\t\tString nounGroupLine = rawWords.get(beginning).split(\"\\\\s+\")[0]+\"\\tB-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t}\n\t\t\telse if(word.equals(\"anywhere\")&&rawWords.get(i+1).split(\"\\\\s+\")[0].equals(\"else\")){\n\t\t\t\toutSentence.add(\"anywhere\\tB-NP\");\n\t\t\t\toutSentence.add(\"else\\tI-NP\");\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t/*else if (word.equals(\"same\")&&rawWords.get(i-1).split(\"\\\\s\")[0].equals(\"the\")){\n\t\t\t\toutSentence.remove(outSentence.size()-1);\n\t\t\t\tString nounGroupLine = \"the\\tB-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\tnounGroupLine = \"same\\tI-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t}*/\n\t\t\telse if(pos.equals(\"NN\")||pos.equals(\"NNS\")||pos.equals(\"NNP\")||pos.equals(\"NNPS\")||pos.equals(\"CD\")/*||pos.equals(\"PRP\")*/||pos.equals(\"EX\")||word.equals(\"counseling\")||word.equals(\"Counseling\")){\n\t\t\t\tint beginning = i;\n\t\t\t\tint ending = i;\n\t\t\t\tboolean endFound = false;\n\t\t\t\tint j = i+1;\n\t\t\t\twhile(!endFound){\n\t\t\t\t\tString next=rawWords.get(j).split(\"\\\\s\")[1];\n\t\t\t\t\tif(next.equals(\"NN\")||next.equals(\"NNS\")||next.equals(\"NNP\")||next.equals(\"NNPS\")||next.equals(\"CD\")||(next.equals(\"CC\")&&rawWords.get(j-1).split(\"\\\\s\")[1].equals(rawWords.get(j+1).split(\"\\\\s\")[1]))){\n\t\t\t\t\t\tending++;\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tendFound = true;\n\t\t\t\t}\n\t\t\t\tboolean beginningFound = false;\n\t\t\t\tj = i-1;\n\t\t\t\twhile(!beginningFound){\n\t\t\t\t\tString[] pArray = rawWords.get(j).split(\"\\\\s+\");\n\t\t\t\t\tString prior = pArray[1];\n\t\t\t\t\tif(j>2 &&prior.equals(rawWords.get(j-2).split(\"\\\\s+\")[1])&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"CC\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\",\"))){\n\t\t\t\t\t\tbeginning-=2;\n\t\t\t\t\t\tj-=2;\n\t\t\t\t\t}\n\t\t\t\t\telse if(prior.equals(\"JJ\")||prior.equals(\"JJR\")||prior.equals(\"JJS\")||prior.equals(\"PRP$\")||prior.equals(\"RBS\")||prior.equals(\"$\")||prior.equals(\"RB\")||prior.equals(\"NNP\")||prior.equals(\"NNPS\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if (prior.equals(\"VBN\")&&j>1&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\",\")&&(rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"JJR\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"PRP$\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"JJ\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"DT\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"RB\")))){\n\t\t\t\t\t\tbeginning-=2;\n\t\t\t\t\t\tj-=2;\n\t\t\t\t\t}\n\t\t\t\t\telse if (prior.equals(\"VBN\")&&j>0&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJR\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"PRP$\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJ\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"DT\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"RB\"))){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if (prior.equals(\"VBG\")&&j>0&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"DT\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJR\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJ\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"PRP$\"))){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if((prior.equals(\"RBR\")||pArray[0].equals(\"not\"))&&rawWords.get(j+1).split(\"\\\\s+\")[1].equals(\"JJ\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if((pArray[0].equals(\"Buying\")||pArray[0].equals(\"buying\"))&&rawWords.get(j+1).split(\"\\\\s+\")[0].equals(\"income\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if(pArray[0].equals(\"counseling\")||pArray[0].equals(\"Counseling\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t\tif(rawWords.get(j).split(\"\\\\s+\")[1].equals(\"NN\")){\n\t\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\t\tj--;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse if (prior.equals(\"DT\")||prior.equals(\"POS\")){\n\t\t\t\t\t\t//j--;\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tif(!rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"DT\"))\n\t\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t}\n\t\t\t\twhile(beginning<outSentence.size()){\n\t\t\t\t\toutSentence.remove(outSentence.size()-1);\n\t\t\t\t}\n\t\t\t\tString nounGroupLine = rawWords.get(beginning).split(\"\\\\s+\")[0]+\"\\tB-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\tfor(int index = beginning+1; index<=ending; index++){\n\t\t\t\t\tnounGroupLine = rawWords.get(index).split(\"\\\\s+\")[0]+\"\\tI-NP\";\n\t\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\t}\n\t\t\t\ti=ending;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tString outLine = word+\"\\tO\";\n\t\t\t\toutSentence.add(outLine);\n\t\t\t}\n\t\t}\n\t\toutSentence.remove(0);\n\t\toutSentence.remove(outSentence.size()-1);\n\t\toutSentence.add(\"\");\n\t\treturn outSentence;\n\t}", "void findAllWords() {\n\t\tScanner in = new Scanner(textEditor.getText());\n\t\tint head = 0;\n\t\twhile (in.hasNext()) {\n\t\t\tString value = in.next();\n\t\t\tif (value.equals(findWord)) {\n\t\t\t\tint tail = value.length();\n\t\t\t\tfinder.add(new WordPosition(head, tail + head +1));\n\t\t\t}\n\t\t\thead += (value.length()+1);\n\t\t}\n\t\tin.close();\n\t}", "void setVersesWithWord(Word word);", "public static void main(String[] args) {\n String name = \"I love Java I Love Java Java Java\";\n System.out.println(\"starting from 0 \" +name.indexOf(\"Java\"));\n System.out.println(\" starting from 7 \"+name.indexOf(\"Java\", 7));\n System.out.println(\" starting from 7 \"+name.indexOf(\"Java\", 8));\n System.out.println(\" starting from 7 \"+name.indexOf(\"Java\", 9));\n System.out.println(\" starting from 7 \"+name.indexOf(\"Java\", 19));\n System.out.println(\" starting from 7 \"+name.indexOf(\"Java\", 20));\n // ilk java gosterecek yani location of// simdi ise ikinci javayi ariyor +1 ile! (ava I Love )\n //or you can start here + 4 nereden biliyorum +4 cunku\n //java 4 character!!!!!!!!!!! yada ilk aradigin kelimeyi\n // bitiri bitirmez +1 koyarsin eger bilmiyorsam +word.lenght();\n\n int firstJavaLocation = name.indexOf(\"Java\");\n int startingPointToSearchSecondJava = firstJavaLocation+1;\n int secondJavaLocation = name.indexOf(\"Java\",startingPointToSearchSecondJava);\n System.out.println(\"secondJavaLocation = \" + secondJavaLocation);\n //eger cumlede nekadar kelime oldugunu bilmiyorsam I only know there are 3+ words\n // ve sadece ikinci kelimeyi biliyorsam;\n //the word in between first space and second space is second word\n int firstSpaceLocation = name.indexOf(\" \");\n int secondSpace = name.indexOf(\" \", firstJavaLocation + 1);\n System.out.println(\"second word in this sentence is \"\n +name.substring(firstJavaLocation + 1, secondSpace));\n\n\n\n\n }", "@Override\n public boolean isWord(String s) {\n // TODO: Implement this method\n char[] c = s.toLowerCase().toCharArray();\n TrieNode predptr = root;\n for (int i = 0, n = c.length; i < n; i++) {\n TrieNode next = predptr.getChild(c[i]);\n if (next != null) {\n predptr = next;\n } else {\n return false;\n }\n\n }\n return predptr.endsWord();\n }", "private ArrayList<String> matchingWords(String word){\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tfor(int i=0; i<words.size();i++){\n\t\t\tif(oneCharOff(word,words.get(i))){\n\t\t\t\tlist.add(words.get(i));\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "public boolean containsWord(String keyword){\n /* to be implemented in part(b) */\n if(description.indexOf(\" \"+ keyword+ \" \")!==-1){\n return true; \n }\n else if(description.indexOf(\" \"+keyword)=0){\n return true \n }\n else return false;\n }", "private boolean isSubSequence(String s, String word){\n int startPointer = 0;\n for(int i=0; i<word.length(); i++){\n int location = s.indexOf(word.charAt(i), startPointer);\n if(location < 0)\n return false;\n startPointer = location+1;\n }\n return true;\n }", "public static void main(String[] args) {\n String s = \"catsanddog\";\n Set<String> dict = new HashSet<>();\n dict.add(\"cat\"); dict.add(\"cats\"); dict.add(\"and\"); dict.add(\"sand\"); dict.add(\"dog\");\n WordBreak solution = new WordBreak();\n List<String> result = solution.wordBreak(s, dict);\n System.out.println(result);\n }", "static int countOccurrences(String str, String word) \r\n\t\t{\n\t\t String a[] = str.split(\" \");\r\n\t\t \r\n\t\t // search for pattern in a\r\n\t\t int count = 0;\r\n\t\t for (int i = 0; i < a.length; i++) \r\n\t\t {\r\n\t\t // if match found increase count\r\n\t\t if (word.equals(a[i]))\r\n\t\t count++;\r\n\t\t }\r\n\t\t \r\n\t\t return count;\r\n\t\t}", "public boolean[][] validateWord(String s, Set<String> set) {\n boolean[][] isWord = new boolean[s.length()][s.length()];\n for (int i = 0; i < s.length(); i++) {\n for (int j = i; j < s.length(); j++) {\n isWord[i][j] = set.contains(s.substring(i, j + 1));\n }\n }\n return isWord;\n }", "public static String alexBrokenContest(String s){\n\t\tString[] names={\"Danil\", \"Olya\", \"Slava\", \"Ann\",\"Nikita\"};\n\t\tint count=0;\n\t\tfor (int i=0;i<5 ;i++)\n\t\t{\n\t\t\t\n\t\t\tint index = s.indexOf(name[i]);\n\t\t\twhile (index!=-1)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tcount++;\n\t\t\t\tindex=s.indexOf(name[i],index+1);\n\t\t\t}\n\t\t}\n\t\tif(count==1)\n\t\t{\n\t\t\n\t\tSystem.out.println(\"YES\");\n\t\t}\n\t\telse\n\t\t{\n\n\t\tSystem.out.println(\"NO\");\n\t\t}\n\t}", "@RequiresApi(api = Build.VERSION_CODES.O)\n public static String formatSearchString(String input) {\n\n //Split by white spaces into an array\n String[] keywords = input.trim().split(\"\\\\s+\");\n\n //Format all words inside array\n for (int i=0; i<keywords.length; i++){\n keywords[i] = keywords[i].substring(0, 1).toUpperCase() + keywords[i].substring(1).toLowerCase();\n }\n\n /*\n * Input = HeLLo woRld -> Output = Hello World\n * */\n\n //Join words in array with space\n return String.join(\" \", keywords);\n }", "public boolean wordBreak(String s, List<String> wordDict) {\n int iIndex = 0;\n int jIndex = 0;\n int sLength = s.length();\n boolean dp[][] = new boolean[sLength][sLength];\n int i = 0;\n int j = 0;\n System.out.println(s.substring(0,0));\n System.out.println(s.substring(0,1));\n while (jIndex < sLength) {\n \ti = iIndex; \n \tj = jIndex;\n \twhile (j < sLength) {\n \t\tif (wordDict.contains(s.substring(i, j + 1))) {\n \t\t\tdp[i][j] = true;\n \t\t} else {\n \t\t\tint firstStart = 0;\n \t\t\tint firstEnd = 0;\n \t\t\tint secondStart = firstEnd + 1;\n \t\t\tint secondEnd = j;\n \t\t\twhile (secondStart <= secondEnd) {\n \t\t\t\tdp[i][j] = dp[firstStart][firstEnd] && dp[secondStart][secondEnd];\n \t\t\t\tif (dp[i][j]) {\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t\tfirstEnd++;\n \t\t\t\tsecondStart = firstEnd + 1;\n \t\t\t}\n \t\t}\n \t\ti++;\n \t\tj++;\n \t}\n \tiIndex = 0;\n \tjIndex++;\n }\n\n // for (int x = 0; x < dp.length; x++) {\n // \tfor (int y = 0; y < dp[0].length; y++) {\n // \t\tSystem.out.print(dp[x][y] + \" \");\n // \t}\n // \tSystem.out.println();\n // }\n\n return dp[0][sLength - 1];\n }", "public void run() {\n\n /**\n * Replace all delimiters with single space so that words can be\n * tokenized with space as delimiter.\n */\n for (int x : delimiters) {\n text = text.replace((char) x, ' ');\n }\n\n StringTokenizer tokenizer = new StringTokenizer(text, \" \");\n boolean findCompoundWords = PrefsHelper.isFindCompoundWordsEnabled();\n ArrayList<String> ufl = new ArrayList<String>();\n for (; tokenizer.hasMoreTokens();) {\n String word = tokenizer.nextToken().trim();\n boolean endsWithPunc = word.matches(\".*[,.!?;]\");\n \n // Remove punctuation marks from both ends\n String prevWord = null;\n while (!word.equals(prevWord)) {\n prevWord = word;\n word = removePunctuation(word);\n }\n \n // Check spelling in word lists\n boolean found = checkSpelling(word);\n if (findCompoundWords) {\n if (!found) {\n ufl.add(word);\n if (endsWithPunc) pushErrorToListener(ufl);\n } else {\n pushErrorToListener(ufl);\n }\n } else {\n if (!found) listener.addWord(word);\n }\n }\n pushErrorToListener(ufl);\n }", "private static void searchWords(boolean[][] check, int row, int col, char[][] boogle, TrieNode root, String str){\n \t\n \tif(root.isLeaf==true) {\n \t\tSystem.out.println(str);\n \t}\n\n \tif(isSafe(check, row, col)){\n \t\tcheck[row][col] = true;\n\n \t\tfor(int i=0; i<SIZE; i++){\n \t\t\tif(root.child[i] != null){\n \t\t\t\tchar c = (char)(i + 'A');\n \t\t\t\tif(isSafe(check, row-1, col) && boogle[row-1][col]==c) searchWords(check, row-1, col, boogle, root.child[i], str+c);\n \t\t\t\tif(isSafe(check, row-1, col+1) && boogle[row-1][col+1]==c) searchWords(check, row-1, col+1, boogle, root.child[i], str+c);\n \t\t\t\tif(isSafe(check, row, col+1) && boogle[row][col+1]==c) searchWords(check, row, col+1, boogle, root.child[i], str+c);\n \t\t\t\tif(isSafe(check, row+1, col+1) && boogle[row+1][col+1]==c) searchWords(check, row+1, col+1, boogle, root.child[i], str+c);\n \t\t\t\tif(isSafe(check, row+1, col) && boogle[row+1][col]==c) searchWords(check, row+1, col, boogle, root.child[i], str+c);\n \t\t\t\tif(isSafe(check, row+1, col-1) && boogle[row+1][col-1]==c) searchWords(check, row+1, col-1, boogle, root.child[i], str+c);\n \t\t\t\tif(isSafe(check, row, col-1) && boogle[row][col-1]==c) searchWords(check, row, col-1, boogle, root.child[i], str+c);\n \t\t\t\tif(isSafe(check, row-1, col-1) && boogle[row-1][col-1]==c) searchWords(check, row-1, col-1, boogle, root.child[i], str+c);\n \t\t\t}\n \t\t}\n \t\tcheck[row][col] = false;\n \t}\n }", "@Test\n \tpublic void whereClauseForNodeSpanString() {\n \t\tnode23.setSpannedText(\"string\", TextMatching.EXACT_EQUAL);\n \t\tcheckWhereCondition(join(\"=\", \"_node23.span\", \"'string'\"));\n \t}", "private boolean checkWord(String str)\n\t{\n\t\tfor (int i = 0; i < words.length(); i++)\n\t\t{\n\t\t\tif (equals(words.get(i), str))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\treturn true;\n\t}", "public static boolean word_memo(int start,String s,Set<String>set,int[]visit){\n if(start==s.length()){//指针越界是ture!!\n return true;\n }\n if(visit[start]==1){\n return true;\n }\n if(visit[start]==2){\n return false;\n }\n for (int end = start; end <=s.length() ; end++) {\n String res=s.substring(start,end);\n if(set.contains(res)&&word_memo(end,s,set,visit)){\n visit[start]=1;\n return true;\n\n }\n }\n visit[start]=2;\n return false;\n }", "public boolean compareWords(String word1, String word2) {\n for (int i = 1; i < 5; i++) {\n if (word2.indexOf(word1.charAt(i)) >= 0) {\n word2.replace(word1.charAt(i), ' ');\n } else\n return false;\n }\n\n return true;\n }", "@Test\n public void wordPatternTest() {\n String pattern = \"aaa\", str = \"aa aa aa aa\";\n boolean ans = instance.wordPattern(pattern, str);\n System.out.println(ans);\n }", "public static void main(String[] args) { String s = \"catsanddog\";\n// List<String> wordDict = new ArrayList<>(Arrays.asList(\"cat\", \"cats\", \"and\", \"sand\", \"dog\"));\n//\n String s = \"pineapplepenappl\";\n List<String> wordDict = new ArrayList<>(Arrays.asList(\"apple\", \"pen\", \"applepen\", \"pine\", \"pineapple\"));\n\n WordBreak140 tmp = new WordBreak140();\n tmp.wordBreak(s, wordDict);\n }", "static boolean isWordPresent(String sentence, String word)\n {\n String []s = sentence.split(\" \");\n\n // To temporarily store each individual word\n for ( String temp :s)\n {\n\n // Comparing the current word\n // with the word to be searched\n// if (temp.compareTo(word) == 0)\n// {\n// return true;\n// }\n if (temp.contains(word)) return true;\n }\n return false;\n }", "List<T> findWhitespaceSeparatedTagsAndCreateIfNotExists(String tags);", "public static void main(String[] args) {\n\t\tString str = \"They is students.\";\n\t\tint i=0;\n\t\tfor(;i<str.length();i++){\n\t\t\tif(str.charAt(i)=='i')\n\t\t\t\tif(str.charAt(i+1)=='s'){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}\n\t\tStringBuffer sb = new StringBuffer(str);\n\t\tsb.replace(i, i+2, \"are\");\n\t\tSystem.out.println(sb);\n\t}", "public String getAnyWordStartingWith(String s) {\n TrieNode temp = searchNode(s);\n if (temp == null){\n return \"noWord\";\n }\n while (!temp.isWord){\n for (String c: temp.children.keySet()){\n temp = temp.children.get(c);\n s += c;\n break;\n }\n }\n return s;\n }", "public static String addPuctuation(String input) {\n // Sentence Openers \n input = input.replace(\"hello\", \"hello,\");\n input = input.replace(\"hi\", \"hi!\");\n input = input.replace(\"heya\", \"heya!\");\n input = input.replace(\"hey\", \"hey,\");\n input = input.replace(\"greetings\", \"greetings,\");\n input = input.replace(\"good morning\", \"good morning,\");\n input = input.replace(\"good evening\", \"good evening,\");\n input = input.replace(\"good afternoon\", \"good afternoon!\");\n \n\n // Words ending in nt \n input = input.replace(\"isnt\", \"isn't\");\n input = input.replace(\"cant\", \"can't\");\n input = input.replace(\"wont\" , \"won't\");\n input = input.replace(\"dont\" , \"don't\");\n input = input.replace(\"would\", \"wouldn't\");\n input = input.replace(\"hadnt\", \"hadn't\");\n input = input.replace(\"aint\", \"ain't\");\n input = input.replace(\"arent\", \"aren't\");\n input = input.replace(\"didnt\", \"didn't\");\n input = input.replace(\"doesnt\" , \"doesn't\");\n input = input.replace(\"dont\" , \"don't\");\n input = input.replace(\"dont\", \"don't\");\n input = input.replace(\"hasnt\", \"hasn't\");\n input = input.replace(\"shoudlnt\", \"shouldn't\");\n input = input.replace(\"couldnt\", \"couldn't\");\n input = input.replace(\"wasnt\", \"wasn't\");\n input = input.replace(\"werent\" , \"were't\");\n input = input.replace(\"wouldnt\" , \"wouldn't\");\n\n //Questions\n String q1 = \"what\";\n String q2 = \"when\";\n String q3 = \"where\";\n String q4 = \"which\";\n String q5 = \"who\";\n String q6 = \"whom\";\n String q7 = \"whose\";\n String q8 = \"why\";\n String q9 = \"how\";\n\n if (input.contains(q1) || input.contains(q2) || input.contains(q3) \n || input.contains(q4) || input.contains(q5) || input.contains(q6) \n || input.contains(q7) || input.contains(q8) || input.contains(q9)) \n {\n input = input + \"?\";\n }\n\n else\n {\n input = input + \".\";\n }\n\n\n //Other\n input = input.replace(\"however\", \"however,\");\n input = input.replace(\"ill\" , \"i'll\");\n input = input.replace(\"im\", \"i'm\");\n return input;\n }", "public static String highlightMatchedStrIfFound(String qry, String target, String selector, String cssClass) {\n\n\t\tString kw = \"\";\n\n\t\ttry {\n\t\t\tkw = URLDecoder.decode(qry, \"UTF-8\");\n\t\t\t//System.out.println(\"kw decoded: \"+ kw);\n\t\t}\n\t\tcatch( Exception e){\n\t\t\tSystem.out.println(\"Failed to decode \" + qry);\n\t\t}\n\n\t\tif ( qry.equals(\"*:*\") ) {\n\t\t\treturn target;\n\t\t}\n\t\telse if ( kw.startsWith(\"\\\"\") && kw.endsWith(\"\\\"\") ) {\n\t\t\t// exact phrase search - with double quotes\n\t\t\tkw = kw.replace(\"\\\"\", \"\")\n\t\t\t\t .replace(\"(\", \"\\\\(\")\n\t\t\t\t .replace(\")\", \"\\\\)\");\n\t\t}\n//\t\telse {\n//\t\t\t// non phrase search - split string into words and search using OR\n//\t\t\t// very loose match not using boundry: ie, matches anywhere in string -> less specificity\n//\n//\t\t\tStringBuffer patBuff = new StringBuffer();\n//\t\t\tint count = 0;\n//\t\t\tfor ( String s : kw.split(\" |,\") ){\n//\t\t\t\tcount++;\n//\t\t\t\tif ( count != kw.split(\" \").length ){\n//\t\t\t\t\tpatBuff.append(s+\"|\");\n//\t\t\t\t}\n//\t\t\t\telse {\n//\t\t\t\t\tpatBuff.append(s);\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\tkw = patBuff.toString();\n//\t\t}\n\n\t\tkw = kw.replace(\"*\",\"\")\n\t\t\t\t.replace(\"+\", \"\\\\+\");\n\n\t\t//working pattern: vang\\-like|2|\\\\(van|gogh,|Drosophila\\\\)\n\n\t\t// (?im) at the beginning of the regex turns on CASE_INSENSITIVE and MULTILINE modes.\n\t\t// $0 in the replacement string is a placeholder whatever the regex matched in this iteration.\n\t\ttarget = target.replaceAll(\"<(.+)>\", \"<sup>$1</sup>\");\n\n\t\tString result = target.replaceAll(\"(?im)\"+kw, \"<\" + selector + \" class='\" + cssClass + \"'>$0\" + \"</\" + selector + \">\");\n\t\treturn result;\n\t}", "public String getWordsFromThru (int from, int thru) {\n if (from < 0 || thru < 0 || thru < from) {\n return \"\";\n } else {\n int s = getWordStart (from);\n int e = getWordEnd (thru);\n if (s < e) {\n return tags.substring (s, e);\n } else {\n return \"\";\n }\n }\n }", "private void fillSet() {\r\n\t\tString regex = \"\\\\p{L}+\";\r\n\t\tMatcher matcher = Pattern.compile(regex).matcher(body);\r\n\t\twhile (matcher.find()) {\r\n\t\t\tif (!matcher.group().isEmpty()) {\r\n\t\t\t\twords.add(matcher.group());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void checkElementsToHaveWord(By by, String word){\n List<WebElement> rows = driver.findElements(by);\n\n Iterator<WebElement> iter = rows.iterator();\n\n while (iter.hasNext()) {\n // Iterate one by one\n WebElement item = iter.next();\n // get the text\n String label = item.getText().toLowerCase();\n //check if title contains \"Word\"\n Assert.assertThat(label, containsString(word.toLowerCase()));\n\n }\n }", "public boolean find(T word);", "public void highLightWords(){\n }", "public List<RichWord> spellCheckText(List<String> inputText) {\n\t\t\r\n\t\tfor(String s : inputText) {\r\n\t\t\tif(dizionario.contains(s)) {\r\n\t\t\t\tRichWord parola = new RichWord(s, true);\r\n\t\t\t\tparoleInput.add(parola);\r\n\t\t\t}else {\r\n\t\t\t\tRichWord parola = new RichWord(s, false);\r\n\t\t\t\tparoleInput.add(parola);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn paroleInput;\r\n\t}", "Builder addIsPartOf(String value);", "boolean isWord(String potentialWord);", "private int numEnglishWords(String str) {\n int numWords = 0;\n String[] strings = str.split(\" \");\n for (String word : strings) {\n if (english.contains(word)) {\n numWords ++;\n }\n }\n return numWords;\n }", "public abstract void substitutedWords(long ms, int n);", "public Word(String str, ArrayList<Location> locations, ArrayList<Location> curlocations) {\n String curstr = \"\";\n for (Location loc : locations) {\n curstr += loc.getTile().getLetter();\n }\n this.str = curstr;\n this.locations = locations;\n this.curlocations = curlocations;\n }", "public static boolean searchWordInTemplate(TemplateFormat template, String word) {\r\n\t\tLinkedList<Item> queue = new LinkedList<>();\r\n\t\tqueue.add(template.baseProgression);\r\n\t\twhile(!queue.isEmpty()) {\r\n\t\t\tItem i = queue.poll();\r\n\t\t\tif(i instanceof ItemText) {\r\n\t\t\t\t// Search for word, ignoring every character that isn't letter or number (very raw code for efficiency)\r\n\t\t\t\tString text = ((ItemText) i).getText();\r\n\t\t\t\tint currentIndex = 0;\r\n\t\t\t\tfor(int j = 0; j < text.length() && currentIndex < word.length(); j++) {\r\n\t\t\t\t\tchar c = text.charAt(j);\r\n\t\t\t\t\t// Check uppercase\r\n\t\t\t\t\tif(c >= 'A' && c <= 'Z') c = (char) ((int) c + 'a' - 'A');\r\n\t\t\t\t\t// Check if equal to current word char\r\n\t\t\t\t\tif(c == word.charAt(currentIndex)) {\r\n\t\t\t\t\t\t// If last index then the word exists in template\r\n\t\t\t\t\t\tif(currentIndex == word.length() - 1) return true;\r\n\t\t\t\t\t\t// Otherwise add one to index\r\n\t\t\t\t\t\tcurrentIndex++;\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(currentIndex > 0 && ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9'))) {\r\n\t\t\t\t\t\t// If the char was alphanumerical but unequal, the word train was broken..\r\n\t\t\t\t\t\tcurrentIndex = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// For other types of items just add their children to queue so we reach all the string items in the end\r\n\t\t\telse if(i instanceof ItemVariable){\r\n\t\t\t\tqueue.addAll(((ItemVariable) i).getContent());\r\n\t\t\t}\r\n\t\t\telse if(i instanceof ItemProgression){\r\n\t\t\t\tqueue.addAll(((ItemProgression) i).getContent());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "List<Dish> getDishesWhichContains(String subStr);", "private static void findWords(char boggleBoardChars[][], Trie trie, String[] valids) { \r\n\t\tboolean[][] visitedTiles = new boolean[4][4]; \r\n\r\n\t\tString str = \"\"; \r\n\t\t//searches for valid word starting at each die on board\r\n\t\tfor (int row = 0 ; row < 4; row++) { \r\n\t\t\tfor (int col = 0 ; col < 4 ; col++) { \r\n\t\t\t\tif (trie.isInTrie( (boggleBoardChars[row][col] + \"\").toUpperCase())) { \r\n\t\t\t\t\tstr = str+boggleBoardChars[row][col]; \r\n\t\t\t\t\tboggleBoardSearch(trie, boggleBoardChars, row, col, visitedTiles, str, valids); \r\n\t\t\t\t\tstr = \"\"; \r\n\t\t\t\t} \r\n\t\t\t} \r\n\t\t} \r\n\t}", "private String getPlace(String[] tokens, int start_index) {\n\t\t\n\t\tint i = start_index + 1;\n\t\tboolean found = false;\n\t\tString ret = \"\";\n\t\t\n\t\twhile(!found && i < tokens.length)\n\t\t{\n\t\t\tif(isWordPlace(tokens[i]))\n\t\t\t{\n\t\t\t\tfound = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(found)\n\t\t{\n\t\t\tret = tokens[i];\n\t\t}\n\t\t\n\t\treturn ret;\n\t}", "public static boolean wordBreak(String s, List<String> wordDict) {\r\n\t \r\n\t char[] ch = s.toCharArray();\r\n\t int left = 0;\r\n\t boolean canSegemented = false;\r\n\t StringBuffer sb = new StringBuffer();\r\n\t while(left<ch.length){\r\n\t sb.append(ch[left]);\r\n\t if(wordDict.contains(sb.toString())){\r\n\t canSegemented = true;\r\n\t sb = new StringBuffer();\r\n\t }\r\n\t else{\r\n\t canSegemented = false;\r\n\t }\r\n\t left++;\r\n\t }\r\n\t return canSegemented;\r\n\t }", "public boolean wordBreak2(String s, List<String> wordDict) {\n int maxL =0;\n Set<String> wordSet = new HashSet<>(wordDict);\n for (String word : wordDict) {\n maxL = Math.max(maxL, word.length());\n }\n boolean[] dp = new boolean[s.length() + 1];\n dp[0] = true;\n for (int i = 1; i <= s.length(); i++) {\n for (int j = i-1; j >=0 && j >= i - maxL; j--) {\n if (dp[j] && wordSet.contains(s.substring(j, i))) {\n dp[i] = true;\n break;\n }\n }\n }\n return dp[s.length()];\n }", "final void checkMatch(String input,String url,String title)\r\n {\r\n String searchLine=removeHTMLTags(input); // remove html tags before search.\r\n // If the line contains non - HTML text then search it.\r\n\tif(searchLine.length()>0)\r\n\t{\r\n\t if(app.matchCase) // Check if case sensitive search\r\n\t {\r\n\t if(app.matchWord) // Check if attempting to match whole word\r\n\t\t{\r\n\t\t if(searchLine.indexOf(\" \"+textToFind+\" \")!=-1 ||\r\n \t\t (searchLine.indexOf(textToFind)!=-1 && searchLine.length()==textToFind.length()) ||\r\n\t\t\t\t searchLine.indexOf(\" \"+textToFind)!=-1 && textToFind.charAt(textToFind.length()-1)==\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t searchLine.charAt(searchLine.length()-1))\r\n\t\t {\r\n\t\t // Found it display the match\r\n\t\t app.addToList(url,searchLine,title);\r\n\t\t hitsFound++;\t\r\n\t\t }\r\n\t\t}\r\n\t\telse if(searchLine.indexOf(textToFind)!=-1)\r\n\t\t{\r\n\t\t // Found it display the match\r\n\t\t app.addToList(url,searchLine,title);\r\n\t\t hitsFound++;\r\n\t\t}\r\n\t }\r\n\t else\r\n\t {\r\n\t String lower1=searchLine.toLowerCase();\r\n\t\tString lower2=textToFind.toLowerCase();\r\n\t\t// Check if attempting to match the whole word.\r\n\t\tif(app.matchWord)\r\n\t\t{\r\n\t\t if(lower1.indexOf(\" \"+lower2+\" \")!=-1 || \r\n\t\t (lower1.indexOf(lower2)!=-1 && lower1.length()== lower2.length()) ||\r\n\t\t\t (lower1.indexOf(\" \"+lower2)!=-1 && lower2.charAt(lower2.length()-1) == \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t lower1.charAt(lower1.length()-1)))\r\n {\r\n\t\t // Found it display the match\r\n\t\t\tapp.addToList(url,searchLine,title);\r\n\t\t\thitsFound++;\r\n\t\t }\r\n\t\t}\r\n\t\telse if(lower1.indexOf(lower2)!=-1)\r\n\t\t{\r\n\t\t // Found it! Display the match\r\n\t\t app.addToList(url,searchLine,title);\r\n\t\t hitsFound++;\r\n\t\t}\r\n\t }\r\n\t}\r\n }", "public static CharSequence setSpanBetweenTokens(CharSequence text, String token,\n CharacterStyle... cs) {\n // Start and end refer to the points where the span will apply\n int tokenLen = token.length();\n int start = text.toString().indexOf(token) + tokenLen;\n int end = text.toString().indexOf(token, start);\n\n if (start > -1 && end > -1) {\n // Copy the spannable string to a mutable spannable string\n SpannableStringBuilder ssb = new SpannableStringBuilder(text);\n for (CharacterStyle c : cs)\n ssb.setSpan(c, start, end, 0);\n\n // Delete the tokens before and after the span\n ssb.delete(end, end + tokenLen);\n ssb.delete(start - tokenLen, start);\n\n text = ssb;\n }\n\n return text;\n }", "SPAN createSPAN();", "private static String toStartCase(String words) {\n String[] tokens = words.split(\"\\\\s+\");\n StringBuilder builder = new StringBuilder();\n for (String token : tokens) {\n builder.append(capitaliseSingleWord(token)).append(\" \");\n }\n return builder.toString().stripTrailing();\n }", "public void countWords(String source) {\n Scanner wordScanner = new Scanner(source);\n// wordScanner.useDelimiter(\"[^A-Za-z]+\");\n wordScanner.useDelimiter(\"(?!')[^A-Za-z]+\");\n addWordToMap(wordScanner);\n }", "Builder addKeywords(Text value);", "private boolean myContains(String str2, String search2) {\n if (search2.length() == 0) {\n return true;\n }\n int k = 0;\n int f = 0;\n String str = str2.toLowerCase();\n String search = search2.toLowerCase();\n for (int i = 0; i < str.length(); i++) {\n if (str.charAt(i) == search.charAt(k)) {\n k += 1;\n f += 1;\n if (f == search.length()) {\n return true;\n }\n } else {\n k = 0;\n f = 0;\n }\n }\n return false;\n }", "public void shingleString(String s) {\n\t\tint len = s.length();\n\t\tif(len<this.k){\n\t\t\tSystem.out.println(\"Error! k>word length\");\n\t\t}else{\n\t\t\tfor(int i=0;i<(len-this.k+1);i++){\n\t\t\t\tString shingle = s.substring(i, i+this.k);\n\t\t\t\tif(!this.contains(shingle)){\n\t\t\t\t\tthis.add(shingle);\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t}\n//\t\tSystem.out.println(this.toString());\n\t}", "public boolean wordPattern(String pattern, String str) {\n Map<Character, String> c2s = new HashMap<Character, String>();\n Map<String, Character> s2c = new HashMap<String, Character>();\n String [] sArr = str.split(\" \");\n if(pattern.length() != sArr.length) return false;\n int len = pattern.length();\n for(int i = 0; i <= len - 1; i ++){\n char c = pattern.charAt(i);\n String s = sArr[i];\n // For a given (c, s) pair, we need result to contain two mappings (c->s and s->c), check if \n // mapping from c, s exist and map to different targets (which violates one-one mapping)\n if((c2s.containsKey(c) && !c2s.get(c).equals(s)) || (s2c.containsKey(s) && s2c.get(s) != c))\n return false;\n if(!c2s.containsKey(c)){\n c2s.put(c, s);\n s2c.put(s, c);\n }\n }\n \n return true;\n }", "public boolean search(String word)\n {\n return true;\n }", "public static void main (String[] args) {\r\n\t\tfindWords(sentence);\r\n\t}" ]
[ "0.6140197", "0.5900113", "0.5845958", "0.5780134", "0.56531394", "0.5588887", "0.5558124", "0.55215883", "0.5488221", "0.5445289", "0.5431836", "0.5404757", "0.5391534", "0.5385327", "0.53792125", "0.53493685", "0.53420013", "0.5334232", "0.53176343", "0.53170055", "0.529249", "0.5278247", "0.5275581", "0.5268005", "0.52664375", "0.5245701", "0.5240834", "0.52267784", "0.52187175", "0.520524", "0.52036995", "0.5195704", "0.5167367", "0.5165733", "0.51645595", "0.5163386", "0.5147429", "0.51422477", "0.514129", "0.5138084", "0.5132993", "0.51287216", "0.51284766", "0.5128434", "0.5116253", "0.51131433", "0.5109355", "0.5108179", "0.5102534", "0.5091282", "0.5076064", "0.5072686", "0.5069789", "0.5064", "0.50634557", "0.5059456", "0.5047657", "0.5038409", "0.50321406", "0.5028684", "0.5026643", "0.50138485", "0.5008961", "0.50067484", "0.50043786", "0.5003699", "0.49958652", "0.499548", "0.4978417", "0.49689475", "0.4961781", "0.49574155", "0.4951923", "0.49517757", "0.4939018", "0.49347275", "0.49221975", "0.4911385", "0.49009985", "0.48977888", "0.48944324", "0.48849025", "0.48829585", "0.48811018", "0.487925", "0.48786998", "0.4875683", "0.48711842", "0.4865919", "0.48622966", "0.4861685", "0.48599952", "0.4858421", "0.48559403", "0.484709", "0.4844851", "0.4843145", "0.48428893", "0.48412135", "0.4841035" ]
0.71680534
0
make a new clickablespan that links to the infohelper
private ClickableSpan makeClickableSpan(final String type, final String filter) { return new ClickableSpan() { @Override public void onClick(View view) { new InfoHelper().getInfo(GlobalFunctions.this, type, filter); } }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View view) {\n Log.d(\"LoginActivity\", \"// span link clicked..\");\n }", "@Override\n public void onInfoWindowClick(Marker marker) {\n makeText(this, \"Info window clicked\",\n LENGTH_SHORT).show();\n marker.getTag();\n marker.getTitle();\n marker.getId();\n\n }", "@Override\n public boolean onMarkerClick(Marker marker) {\n\n\n String title = marker.getTitle();\n if (title.equals(\"A\")){\n marker.setSnippet(info_A);\n\n }else if (title.equals(\"B\")){\n marker.setSnippet(info_B);\n }\n\n\n return false;\n }", "@Override\n public boolean onMarkerClick(Marker marker) {\n\n\n String title = marker.getTitle();\n if (title.equals(\"A\")) {\n marker.setSnippet(info_A);\n\n }else if (title.equals(\"B\")){\n marker.setSnippet(info_B);\n }\n\n\n return false;\n }", "@Override\n public boolean onMarkerClick(Marker marker) {\n\n\n String title = marker.getTitle();\n if (title.equals(\"A\")) {\n marker.setSnippet(info_A);\n\n }else if (title.equals(\"B\")){\n marker.setSnippet(info_B);\n }\n\n\n return false;\n }", "@Override\n public View getInfoContents(Marker marker) {\n infoWindow = getLayoutInflater().inflate(R.layout.custom_info_contents,\n (FrameLayout) findViewById(R.id.map), false);\n\n title = ((TextView) infoWindow.findViewById(R.id.title));\n title.setText(place.getAddress());\n\n snippet = ((TextView) infoWindow.findViewById(R.id.snippet));\n snippet.setText(place.getLatLng().latitude + \",\" + place.getLatLng().longitude);\n\n clickhere = ((TextView) infoWindow.findViewById(R.id.tvClickHere));\n clickhere.setText(R.string.click_here);\n\n googleMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n @Override\n public void onInfoWindowClick(Marker marker) {\n Intent intent = new Intent(MapActivity.this, MoreOptionsActivity.class);\n if (source == null) {\n source = new LatLng(mDefaultLocation.latitude, mDefaultLocation.longitude);\n }\n if (destination == null) {\n destination = source;\n }\n\n intent.putExtra(\"source_Latitude\", source.latitude);\n intent.putExtra(\"source_Longitude\", source.longitude);\n\n intent.putExtra(\"dest_Latitude\", destination.latitude);\n intent.putExtra(\"dest_Longitude\", destination.longitude);\n\n intent.putExtra(\"title\", place.getAddress());\n intent.putExtra(\"place_selection\", place_selection_flag);\n\n startActivity(intent);\n\n }\n });\n\n return infoWindow;\n }", "@Override\n\t\t\tpublic void onInfoWindowClick(Marker marker) {\n\t\t\t}", "SPAN createSPAN();", "Span createSpan();", "HtmlPage clickLink();", "@Override\n public View getInfoContents(final Marker marker) {\n infoWindow = getLayoutInflater().inflate(R.layout.custom_info_contents,\n (FrameLayout) findViewById(R.id.map), false);\n\n title = ((TextView) infoWindow.findViewById(R.id.title));\n title.setText(marker.getTitle());\n\n snippet = ((TextView) infoWindow.findViewById(R.id.snippet));\n snippet.setText(marker.getSnippet());\n\n clickhere = ((TextView) infoWindow.findViewById(R.id.tvClickHere));\n clickhere.setText(R.string.click_here);\n\n googleMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n @Override\n public void onInfoWindowClick(Marker marker) {\n Intent intent = new Intent(MapActivity.this, MoreOptionsActivity.class);\n if (source == null) {\n source = new LatLng(mDefaultLocation.latitude, mDefaultLocation.longitude);\n }\n if (destination == null) {\n destination = source;\n }\n\n intent.putExtra(\"source_Latitude\", source.latitude);\n intent.putExtra(\"source_Longitude\", source.longitude);\n\n intent.putExtra(\"dest_Latitude\", destination.latitude);\n intent.putExtra(\"dest_Longitude\", destination.longitude);\n\n intent.putExtra(\"title\", marker.getTitle());\n\n startActivity(intent);\n\n }\n });\n\n return infoWindow;\n }", "public abstract void clickHelp(FloodItWorld w, ACell topLeft);", "@Override\n\t\t\t\t\tpublic void onInfoWindowClick(Marker marker) {\n\t\t\t\t\t\tLog.d(\"ASD\", marker.getTitle());\n\t\t\t\t\t\tString markerItemId = infoList.get(marker.getTitle());\n\t\t\t\t\t\tonMapWindwosClick(markerItemId, marker.getTitle());\n\t\t\t\t\t}", "public void onInfoWindowClick(Marker marker2) {\n\n AlertDialog.Builder builder2 = new AlertDialog.Builder(Detalles.this);\n builder2.setTitle(\"Epicent\");\n builder2.setMessage(\"Referencia : \" +\"ddddddd\" +\"\\n\" +\n \"Fecha local : \" + \"ccccccc\" +\"\\n\" +\n \"Hora local : \" + \"ccccccc\"+ \"\\n\" +\n \"Profundidad : \" + \"ccccccc\"+\" km\"+ \"\\n\" +\n \"Intensidad : \" + \"ccccccc\"+ \"\\n\" +\n \"Magnitud : \" + \"ccccccc\"+ \"\\n\" +\n \"Ubicación : \" + \"ccccccc\"+ \", \" + \"ccccccc\");\n builder2.setNegativeButton(\"Cerrar\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog2, int which) {\n dialog2.cancel();\n }\n });\n\n builder2.setCancelable(true);\n builder2.create().show();\n\n }", "public void updateMakespan() {\r\n updateMakeSpan2();\r\n }", "private void gotoInfo() {\n Intent launchInfo = new Intent(this, Info.class);\n startActivity(launchInfo);\n }", "@Override\n\tpublic void onClick(View tagView) {\n\t\tswitch (tagView.getId()) {\n\t\tcase R.id.aortaTag:\n\t\t\tInfoTooltip popup = new InfoTooltip(getApplicationContext(),\n\t\t\t\t\t\"Main artery which distributes oxygenated blood\\n\"\n\t\t\t\t\t+ \" to all parts of the human body \");\n\t\t\tpopup.show(tagView, AlignMode.BOTTOM);\n\t\t\tbreak;\n\t\tcase R.id.sup_vena_cavaTag:\n\t\t\tInfoTooltip popup1 = new InfoTooltip(getApplicationContext(),\n\t\t\t\t\t\"Vein that carries deoxygenated blood \\n\"\n\t\t\t\t\t+ \"from the upper half of the body \\n\"\n\t\t\t\t\t+ \"to the heart's right atrium\");\n\t\t\tpopup1.show(tagView, AlignMode.BOTTOM);\n\t\t\tbreak;\n\t\tcase R.id.inf_vena_cavaTag:\n\t\t\tInfoTooltip popup2 = new InfoTooltip(\n\t\t\t\t\tgetApplicationContext(),\n\t\t\t\t\t\"This is a large vein that carries de-oxygenated\\n\"\n\t\t\t\t\t+ \" blood from the lower body to the heart \");\n\t\t\tpopup2.show(tagView, AlignMode.BOTTOM);\n\t\t\tbreak;\n\t\tcase R.id.left_atriumTag:\n\t\t\tInfoTooltip popup3 = new InfoTooltip(getApplicationContext(),\n\t\t\t\t\t\"This is one of the four chambers of the heart,\\n\"\n\t\t\t\t\t+ \" located on the left posterior side \");\n\t\t\tpopup3.show(tagView, AlignMode.BOTTOM);\n\t\t\tbreak;\n\t\tcase R.id.left_ventricleTag:\n\t\t\tInfoTooltip popup4 = new InfoTooltip(getApplicationContext(),\n\t\t\t\t\t\"One of four chambers of the heart which is located\\n\"\n\t\t\t\t\t+ \" in the bottom left portion of the heart \");\n\t\t\tpopup4.show(tagView, AlignMode.BOTTOM);\n\t\t\tbreak;\n\t\tcase R.id.right_atriunTag:\n\t\t\tInfoTooltip popup5 = new InfoTooltip(\n\t\t\t\t\tgetApplicationContext(),\n\t\t\t\t\t\"This is located in the upper portion of right side \\n\"\n\t\t\t\t\t+ \"of heart consisting of the right atrial appendage \");\n\t\t\tpopup5.show(tagView, AlignMode.BOTTOM);\n\t\t\tbreak;\n\t\tcase R.id.right_ventricleTag:\n\t\t\tInfoTooltip popup6 = new InfoTooltip(getApplicationContext(),\n\t\t\t\t\t\"This is the chamber within the heart that is\\n\"\n\t\t\t\t\t+ \"responsible for pumping oxygen-depleted blood \\n\"\n\t\t\t\t\t+ \"to the lungs \");\n\t\t\tpopup6.show(tagView, AlignMode.BOTTOM);\n\t\t\tbreak;\n\t\tcase R.id.pul_arteryTag:\n\t\t\tInfoTooltip popup7 = new InfoTooltip(getApplicationContext(),\n\t\t\t\t\t\"The artery carrying blood from the right ventricle\\n\"\n\t\t\t\t\t+ \" of the heart to the lungs for oxygenation\");\n\t\t\tpopup7.show(tagView, AlignMode.BOTTOM);\n\t\t\tbreak;\n\t\tcase R.id.pul_veinTag:\n\t\t\tInfoTooltip popup8 = new InfoTooltip(getApplicationContext(),\n\t\t\t\t\t\"Large blood vessels that receive oxygenated blood\\n\"\n\t\t\t\t\t+ \" from the lungs and drain into the left atrium\\n\"\n\t\t\t\t\t+ \" of the heart \");\n\t\t\tpopup8.show(tagView, AlignMode.BOTTOM);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "private Hyperlink makeHyperlink(){\n\t\tHyperlink ret = new Hyperlink();\n\t\tret.setId(\"variable\");\n\t\tret.setOnMouseClicked(e -> clickedVariable(ret));\n\t\tvBox.getChildren().add(ret);\n\t\treturn ret;\n\t}", "protected void doBuildingInfoClick() {\r\n\t\trepaint(buildingInfoPanelRect);\r\n\t}", "private void makeLabels() {\n infoPanel = new JPanel();\n\n infoText = new JTextArea(30,25);\n\n infoPanel.add(infoText);\n }", "HtmlPage clickSiteLink();", "@Override\n public void onInfoWindowClick(Marker marker) {\n Integer markerId = markers.get(marker);\n InfoWindowClicked(markerId);\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tBeginNewText();\r\n\t\t\t}", "private void updateLocation(String info)\n {\n popup.setText(info);\n\n listView.animate().alpha(0.3f).setDuration(1000);\n\n popup.setVisibility(View.VISIBLE);\n\n }", "@Override\n public void onClick(View view) {\n\n Intent intent = new Intent(mContext, HelpDetails.class);\n intent.putExtra(\"hid\", item.getHelpId());\n mContext.startActivity(intent);\n\n\n // Toast.makeText(mContext, \"clicked\", Toast.LENGTH_SHORT).show();\n // Toast.makeText(mContext, \"\"+user_id, Toast.LENGTH_SHORT).show();\n\n }", "private static @Nullable ContextMenuItem createMenuItemForClickableSpan(\n Context context,\n int itemId,\n Spannable spannable,\n ClickableSpan clickableSpan,\n TalkBackAnalytics analytics) {\n final int start = spannable.getSpanStart(clickableSpan);\n final int end = spannable.getSpanEnd(clickableSpan);\n if (start < 0 || end < 0) {\n return null;\n }\n final CharSequence label = spannable.subSequence(start, end);\n if (TextUtils.isEmpty(label)) {\n return null;\n }\n\n SpannableUtils.stripTargetSpanFromText(label, TARGET_SPAN_CLASS);\n final ContextMenuItem item =\n ContextMenu.createMenuItem(context, R.id.group_links, itemId, Menu.NONE, label);\n item.setOnMenuItemClickListener(\n new ClickableSpanMenuItemClickListener(clickableSpan, analytics));\n return item;\n }", "@Override\r\n\t\t\t\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t\t\t\tWindow.open(result.get(\"description\"), \"description\", result.get(\"description\"));\r\n\r\n\t\t\t\t\t\t}", "@Override\n public void onClick(View v) {\n new AlertDialog.Builder(MainActivity.this)\n .setIcon(android.R.drawable.ic_menu_edit)\n .setTitle(\"Textual Description\")\n .setMessage(\"Is this the location where you would like to describe something?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\n {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n GridPoint gp = myGridPoint();\n MarkerOptions markerOptions = new MarkerOptions().gridPoint(gp);\n markerOptions.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED));\n Marker marker = mMap.addMarker(markerOptions);\n describe();\n\n }\n\n })\n .setNegativeButton(\"No\", null)\n .show();\n\n }", "@Override\n public void onClick(View v) {\n toonSessie();\n }", "public void showDetails(Marker marker) throws JSONException{\n JSONObject data = (JSONObject) marker.getTag();\n\n // Get data from JSONObject\n String name = getName(data);\n String address = getAddress(data);\n String direction = data.getString(\"direction\");\n\n View layout = findViewById(R.id.detailspopup);\n\n // Find views\n TextView nameView = (TextView) findViewById(R.id.name);\n TextView addressView = (TextView) findViewById(R.id.address);\n TextView directionView = (TextView) findViewById(R.id.direction);\n\n // Add data to views\n nameView.setText(name);\n addressView.setText(address);\n directionView.setText(direction);\n\n // Show invisible layout\n layout.setVisibility(View.VISIBLE);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\trequestLocClick();\n\t\t\t}", "private String addGoto() {\n\t\t// One Parameter: DisplayName\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|GoTo:\" + parameters[0]);\n\t\treturn tag.toString();\n\t}", "public void renderDetails(Output out, Link link) throws IOException;", "@Override\n public void onInfoWindowClick(Marker marker) {\n openTimesheetInfo(marker.getTitle());\n }", "@Override\n public void onInfoWindowClick(Marker marker) {\n if(marker.equals(markerPrueba)){\n UnsaFragment.newInstance(marker.getTitle(),\"Universidad nacional de san Agustin de Arequipa\" )\n .show(getSupportFragmentManager(), null);\n\n\n }\n\n }", "public void onClick(View btn) {\n String paintingDescription = (String) btn.getContentDescription();\n\n // MAKE A METHOD CALL TO DISPLAY THE INFORMATION\n displayToast(paintingDescription);\n }", "public static JXHyperlink createHyperLink(int level, String text, ActionListener listener) {\n JXHyperlink ret = new JXHyperlink();\n ret.setText(text);\n if (level == LEVEL_1) {\n ret.setForeground(Constants.LINK_COLOR_BOLD);\n ret.setClickedColor(Color.blue);//Constants.LINK_COLOR_BOLD);\n }\n else {\n ret.setFont(new Font(\"Verdana\", Font.PLAIN, 10));//FrameworkConstants.SMALL_FONT);\n ret.setForeground(Color.blue);//Constants.LINK_COLOR_BOLD);\n ret.setClickedColor(Color.blue);//Constants.LINK_COLOR_BOLD);\n }\n ret.addActionListener(listener);\n ret.setFocusable(false);\n return ret;\n }", "public void select_details(int icon, String text);", "@Override\n public View getInfoContents(Marker arg0) {\n\n // Getting view from the layout file info_window_layout\n View v = getLayoutInflater().inflate(R.layout.window_layout, null);\n\n // Getting reference to the TextView to set latitude\n TextView tvLat = (TextView) v.findViewById(R.id.beacon_title1);\n\n // Getting reference to the TextView to set longitude\n ImageView img = (ImageView) v.findViewById(R.id.goat);\n\n // Setting the latitude\n tvLat.setText(arg0.getTitle());\n // Returning the view containing InfoWindow contents\n return v;\n\n }", "@Override\n public boolean onMarkerClick(Marker marker) {\n Listing listing = (Listing) marker.getTag();\n goToDetailedListingScreen(listing);\n return false;\n }", "private void clickContactLookup() {\n contactLookupIcon.click();\n }", "public abstract void clickHelp2(FloodItWorld w, Color chosenColor);", "@Override\n public void onClick(View v) {\n if (currentDetailView == fPosition) {\n tvTitle.setSingleLine(true);\n currentDetailView = -1;\n lastDetailView = null;\n } else {\n tvTitle.setSingleLine(false);\n if (lastDetailView != null) {\n ((TextView) lastDetailView).setSingleLine(true);\n }\n lastDetailView = v;\n currentDetailView = fPosition;\n }\n Log.d(TAG, \"currentDetailView = \" + currentDetailView);\n }", "@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(v.getContext(), DetailViewActivity.class);\n intent.putExtra(\"title\", countries.get(position).getName());\n intent.putExtra(\"link\", countries.get(position).altSpellings.get(0));\n v.getContext().startActivity(intent);\n\n\n\n }", "public String clickOnPresenternameLink() {\n String linkName=presenterNameLink.getText().substring(0, 21);\n waitAndClick(presenterNameLink);\n return linkName;\n\t}", "@Override\n public void onClick(View v) {\n Toast.makeText(c, \"yes\" + article.getWeblink(), Toast.LENGTH_LONG).show();\n }", "protected void doColonyInfoClick() {\r\n\t\tuiSound.playSound(\"ColonyInformation\");\r\n\t\tif (onInformationClicked != null) {\r\n\t\t\tonInformationClicked.invoke();\r\n\t\t}\r\n\t}", "public void onClick(View v) {\n\t\tLocationNameItem item = (LocationNameItem) v;\n\t\tthis.setTag(item.get_clickedView());\n\t\tthis.set_clickedItemId(item.get_location().get_id());\n\t\tthis.performClick();\n\t}", "public void onClick(View v) {\n\t\t\tint position = v.getId();\n\t\t\tif (stations != null && stations.size() > 0) {\n\t\t\t\t// track Click link to Station information\n\t\t\t\t/*String action = TrackerConstant.ACTION_MYTICKETS_SELECTSTATIONINFO;\n\t\t\t\tTrackerService.getTrackerService().createEventTracker(\n\t\t\t\t\t\tTrackerConstant.MYTICKETS, action);*/\n\t\t\t\tstartActivity(StationInfoActivity.createIntent(\n\t\t\t\t\t\tTicketActivity.this.getApplicationContext(),\n\t\t\t\t\t\tstations.get(position)));\n\t\t\t}\n\t\t}", "public static void showInstr(Activity a) {\n\n // Get instructions layout\n LayoutInflater inflater = a.getLayoutInflater();\n View layout = inflater.inflate(R.layout.instructions,\n (ViewGroup) a.findViewById(R.id.instructions1));\n\n // initialize popup window\n final PopupWindow pw = new PopupWindow(layout,\n LinearLayout.LayoutParams.WRAP_CONTENT,\n LinearLayout.LayoutParams.WRAP_CONTENT, true);\n\n pw.showAtLocation(layout, Gravity.CENTER | Gravity.TOP, 0, 500);\n\n // Set click event to close popup\n layout.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n // do anything when popupWindow was clicked\n pw.dismiss(); // dismiss the window\n }\n });\n }", "@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n final Establishment est = Establishment.getEstablishmentByUrl(mDataset.get(position));\n final SpannableStringBuilder builder = new SpannableStringBuilder();\n\n builder.append(est.name);\n builder.append(\"\\n\");\n int point = builder.length();\n builder.setSpan(new TextAppearanceSpan(mContext,\n R.style.ListPrimaryTextAppearance), 0, point, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);\n builder.setSpan(new EllipsizeLineSpan(), 0, point, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);\n\n\n builder.append(est.location.address);\n builder.setSpan(new TextAppearanceSpan(mContext,\n R.style.ListSecondaryTextAppearance), point, builder.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);\n builder.setSpan(new EllipsizeLineSpan(), point, builder.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);\n\n holder.mTextView.setText(builder);\n }", "@Override\n public View getInfoContents(Marker arg0) {\n View v = getActivity().getLayoutInflater().inflate(R.layout.info_window, null);\n // Getting reference to the TextView to set latitude\n TextView tvLat = (TextView) v.findViewById(R.id.title);\n\n // Getting reference to the TextView to set longitude\n TextView tvLng = (TextView) v.findViewById(R.id.distance);\n System.out.println(\"Title : \" + arg0.getTitle());\n if (arg0.getTitle() != null && arg0.getTitle().length() > 0) {\n // Getting the position from the marker\n\n final String title = arg0.getTitle();\n\n db.open();\n Cursor c = db.getStateFromSelectedFarm(title);\n if (c.moveToFirst()) {\n do {\n AppConstant.stateID = c.getString(c.getColumnIndex(DBAdapter.STATE_ID));\n /* String contour = c.getString(c.getColumnIndex(DBAdapter.CONTOUR));\n getAtLeastOneLatLngPoint(contour);*/\n }\n while (c.moveToNext());\n }\n db.close();\n\n final String distance = arg0.getSnippet();\n tvLat.setText(title);\n tvLng.setText(distance);\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(title).\n setMessage(distance).\n setPositiveButton(\"Farm Data\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n dialogInterface.cancel();\n Intent intent = new Intent(getActivity(), NavigationDrawerActivity.class);\n intent.putExtra(\"calling-activity\", AppConstant.HomeActivity);\n intent.putExtra(\"FarmName\", title);\n\n startActivity(intent);\n getActivity().finish();\n\n\n }\n }).\n setNegativeButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.cancel();\n }\n });\n builder.show();\n\n } else {\n // Setting the latitude\n tvLat.setText(String.valueOf(arg0.getPosition().latitude));\n // Setting the longitude\n tvLng.setText(String.valueOf(arg0.getPosition().longitude));\n }\n return v;\n }", "private JLabel createSection5() {\r\n\t\r\n\t\tJLabel section5 = new JLabel(\"How To Chat\");\r\n\t\t//section1.setHorizontalAlignment(SwingConstants.LEFT);\r\n\t\t//section1.setVerticalAlignment(SwingConstants.TOP);\r\n\t\tsection5.setFont(new Font(\"DejaVu Sans\", Font.PLAIN, 15));\r\n\t\tsection5.setForeground(Color.WHITE);\r\n\r\n\t\t// open subsections when clicked\r\n\t\tsection5.addMouseListener(new ClickListener());\r\n\r\n\t\treturn section5;\r\n\t\r\n}", "@Override\n public void onClick(View v) {\n updateInformation();\n\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n \tUri uri = Uri.parse(\"http://l-sls0483d.research.ltu.se/userdata/notes/\"+param1+\"/notes.html\");\n \t\t\n \t\n \t\tIntent intent = new Intent(Intent.ACTION_VIEW, uri);\n \t\tstartActivity(intent);\n \n }", "public void createWebLink(String description, String weblink) throws MalformedURLException{\n\n /*Create a bound Rectangle to enclose this JLabel*/\n Rectangle encloseRect = new Rectangle(304 - (int) 140/2,\n 136 - (int) 40/2, 140, 40);\n\n\n /*Add the JLabel in the array of JLabels*/\n ShapeURL webLink = new ShapeURL(encloseRect,\"UserTest\",\n weblink,description,\"id\",0);\n\n \n /*Add this ShapeConcept in the bufferList*/\n this.labelBuffer.add(webLink);\n\n /*Draw the ShapeConcept object on the JPanel*/\n this.add(webLink);\n\n /*Refresh screen*/\n repaint();\n}", "public void clickContactUS() {\n\t\tSystem.out.println(\"Clicked contactus link\");\n\t}", "public void clickOnItem(TraceableItem li) {\r\n\t\tIntent intent = new Intent();\r\n\t\tBundle bun = new Bundle();\r\n\r\n\t\tbun.putString(\"mode\", \"display\");\r\n\t\tbun.putLong(\"wordId\", li.getId());\r\n\t\tif (id != -1) {\r\n\t\t\tbun.putLong(\"collectionId\", id);\r\n\t\t\tbun.putString(\"collectionName\", collectionName);\r\n\t\t}\r\n\r\n\t\tintent.setClass(this, ViewWordActivity.class);\r\n\t\tintent.putExtras(bun);\r\n\t\tstartActivity(intent);\r\n\t}", "public void showBuddyUpDetails() {\n\n String tutorialText = getResources().getString(R.string.tutorial_buddy_up);\n if (SharedPref.getInstance().getBooleanValue(getActivity(), isbussiness)) {\n tutorialText = getResources().getString(R.string.tutorial_buddy_up_business);\n }\n ShowcaseView mShowcaseView = new ShowcaseView.Builder(getActivity())\n .setTarget(new ViewTarget(btn_buddyup))\n .hideOnTouchOutside()\n .setContentText(tutorialText)\n .setContentTextPaint(Utility.getTextPaint(getActivity()))\n .singleShot(AppConstants.TUTORIAL_BUDDY_UP_ID)\n .setStyle(R.style.CustomShowcaseTheme2)\n .build();\n mShowcaseView.setButtonText(getActivity().getString(R.string.tutorial_got_it));\n }", "public void clickOnMoreLatesBookLink() {\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\tIntent i = new Intent(note_loc.this, Task.class);\n\t\t\tstartActivity(i);\n\t\t\t}", "PreViewPopUpPage clickImageLink();", "@Override\n public View getInfoContents(Marker marker) {\n @SuppressLint(\"InflateParams\") View infoWindow = getLayoutInflater().inflate(R.layout.custom_info_contents, null);\n\n TextView title = infoWindow.findViewById(R.id.title);\n title.setText(marker.getTitle());\n\n TextView snippet = infoWindow.findViewById(R.id.snippet);\n snippet.setText(marker.getSnippet());\n\n return infoWindow;\n }", "@Override\n public void onClick(View v)\n {\n String itemType = (String) v.getTag();\n\n //using the itemtype, pull tooltipParams for that item to use in the URL later\n String tooltipParams = currentCharacter.getItems().get(itemType).get(\"tooltipParams\");\n\n //concat url for pulling detailed item info\n String url = MainActivity.DETAILED_ITEM_API_URL + tooltipParams;\n\n //start battlenetapihandler for the url\n DetailedItemInfoCallback callback = new DetailedItemInfoCallback();\n new BattleNetAPIHandler(CharacterSheetActivity.this, callback).execute(url);\n }", "private void updateInfoBarOnClick() {\n\t\tif (!selectedList.isEmpty()) {\n\t\t\tStringBuilder label = new StringBuilder(\"Se selecciono: \");\n\t\t\tfor (Render<? extends MovableDrawing> selectedDrawing : selectedList) {\n\t\t\t\tlabel.append(selectedDrawing.getFigure().toString()).append(\", \");\n\t\t\t}\n\t\t\tlabel.setLength(label.length() - 2);\n\t\t\tstatusPane.updateStatus(label.toString());\n\t\t} else {\n\t\t\tstatusPane.updateStatus(\"Ninguna figura encontrada\");\n\t\t}\n\t}", "@Override\n public void onClick(View view) {\n\n shareDetails(getAdapterPosition());\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(MyInfoActivity.this, SpecificInfoActivityed.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent=new Intent();\n\t\t\t\tintent.putExtra(\"isFirstInfo\", 1);\n\t\t\t\tintent.setClass(mContext, HelpActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "public void onClick(View v) {\n\t\t\t\tholder.marks.setVisibility(View.VISIBLE);\n\t\t\t\tholder.marks.requestFocus();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n \tUri uri = Uri.parse(\"http://l-sls0483d.research.ltu.se/userdata/notes/\"+param1+\"/notes.html\");\n \t\n \t\tIntent intent = new Intent(Intent.ACTION_VIEW, uri);\n \t\tstartActivity(intent);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tLog.e(\"debug\", \"url\");\n\t\t\t\tIntent i;\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\ti = new Intent(activity, InfoDetailActivity.class);\n\t\t\t\ti.putExtra(InfoDetailActivity.TITLE, \"企业文化\");\n\t\t\t\ti.putExtra(\n\t\t\t\t\t\tInfoDetailActivity.URL,\n\t\t\t\t\t\t\"http://cloud.yofoto.cn/index.php?gr=wapsite&mr=shwuczb&ar=showpageshtml&comid=12\");\n\t\t\t\ti.setAction(\"push\");\n\t\t\t\tbundle.putString(\"title\", \"企业文化\");\n\t\t\t\tbundle.putString(\n\t\t\t\t\t\t\"key\",\n\t\t\t\t\t\t\"http://cloud.yofoto.cn/index.php?gr=wapsite&mr=shwuczb&ar=showpageshtml&comid=12\");\n\t\t\t\tbundle.putString(\n\t\t\t\t\t\t\"url\",\n\t\t\t\t\t\t\"http://cloud.yofoto.cn/index.php?gr=wapsite&mr=shwuczb&ar=showpageshtml&comid=12\");\n\t\t\t\ti.putExtras(bundle);\n\n\t\t\t\tactivity.startActivity(i);\n\t\t\t}", "@Override\n\t\t\tpublic void onInfoWindowClick(Marker marker) {\n\t\t\t\tint id = hashmap.get(marker)-1;\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\tDataBase.Object object = new Object();\n\t\t\t\tobject = list.get(id);\n\n\t\t\t\tbundle.putSerializable(\"ob\", object);\n\n\t\t\t\tIntent intent = new Intent(getActivity(), Places.class);\n\t\t\t\tintent.putExtras(bundle);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n\t\t\tpublic void onInfoWindowClick(Marker arg0) {\n\t\t\t\tString id = arg0.getTitle();\n\t\t\t\t\n\t\t\t\tif(id.startsWith(\"Dis\") || id.startsWith(\"my\")){\n\t\t\t\t\tif(id.startsWith(\"Dis\")){\n\t\t\t\t\t\t AlertDialog dialog = new AlertDialog.Builder(MainActivity.this).setTitle(\"Warning\")\n\t\t\t\t\t .setMessage(\"Please select a right victim!!!\")\n\t\t\t\t\t .setNegativeButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\t\t public void onClick(DialogInterface dialog, int id) {\n\t\t\t\t \t // finish();\n\t\t\t\t }\n\t\t\t\t }).create();\n\t\t\t\t\t dialog.show();\n\t\t\t\t\t\t}\n\t\t\t\t\tif(id.startsWith(\"my\")){\n\t\t\t\t\t\tmyLocation = arg0.getPosition();\n\t\t\t\t AlertDialog dialog = new AlertDialog.Builder(MainActivity.this)\n\t\t\t\t .setMessage(\"Do you what to update your current location?\")\n\t\t\t\t .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\t\t\t public void onClick(DialogInterface dialog, int id) {\n\t\t\t \t setFlag = false;\n\t\t\t }\n\t\t\t })\n\t\t\t .setNegativeButton(\"Not now\", new DialogInterface.OnClickListener() {\n\t\t\t public void onClick(DialogInterface dialog, int id) {\n\t\t\t \t \n\t\t\t }\n\t\t\t }).create();\n\t\t\t\t dialog.show();\n\t\t\t\t\t\t}\t\n\t\t\t\t}else{\n\t\t\t\t\tvicLocation = arg0.getPosition();\n\t\t\t\t\tfinal String PoVictim = readOneVictim(id);\n\t\t\t\t\tLog.d(\"victim infomtion:\",PoVictim);\n\t\t\t AlertDialog dialog = new AlertDialog.Builder(MainActivity.this)\n\t\t\t .setMessage(\"What do you want to do with this victim?\")\n\t\t\t .setNegativeButton(\"Edit/Delect Victim\", new DialogInterface.OnClickListener() {\n\t\t public void onClick(DialogInterface dialog, int id) {\n\t\t \t EditVictim(PoVictim);\n\t\t }\n\t\t })\n\t\t .setPositiveButton(\"Find THIS Victim\", new DialogInterface.OnClickListener() {\n\t\t public void onClick(DialogInterface dialog, int id) {\n\t\t \t //String[] PoVIF = PoVictim.split(\",\");\n\t\t \t vicFlag = true;\n\t\t \t //LatLng vic = new LatLng(42.39398619218224,-72.52872716635466);\n\t\t \t if(vicLocation != null && myLocation != null){\n\t\t \t\t if(wayList != null){\n\t\t \t\t\t wayList.clear();\n\t\t \t\t }\n\t\t \t\t \n\t\t \t\t if(indoorFlag){ //when isindoor return true\n\t\t \t\t\t wayList = findOneVictim(myLocation, vicLocation);\n\t\t \t\t\t if(wayList != null){\n\t\t \t\t\t\t getPath();\n\t\t \t\t\t\t}\n\t\t \t\t }else{\n\t\t \t\t\t LatLng door = getNearestDoor(vicLocation);\n\t\t \t\t\t //get the first part outdoor path \n\t\t \t\t\t findDirections(myLocation.latitude,myLocation.longitude,door.latitude,door.longitude,GMapV2Direction.MODE_DRIVING );\n\t\t \t\t\t //wayList.addAll(findOneVictim(door, vicLocation));\n\t\t \t\t } \n\t\t \t }\n\t\t }\n\t\t }).create();\n\t\t\t dialog.show();\n\t\t\t\t}\t\n\t\t\t}", "@Override\n public void onTextLinkClick(View textView, String clickedString) {\n if(clickedString.equalsIgnoreCase(\"_fertilization\")){\n Log.e(\"Hyperlink is :1: \" + clickedString, \"Hyperlink is :: \" + clickedString);\n }else if(clickedString.equalsIgnoreCase(\"_Nitrogen\")){\n Intent i = new Intent(CP_Fertilization.this,Nitrogen.class);\n startActivity(i);\n }else if(clickedString.equalsIgnoreCase(\"_Phosphorous_and_potash\")) {\n Intent i = new Intent(CP_Fertilization.this,PhosphorusandPotash.class);\n startActivity(i);\n }else if(clickedString.equalsIgnoreCase(\"_calcium\")) {\n Intent i = new Intent(CP_Fertilization.this,CalciumnMagnisium.class);\n startActivity(i);\n }else if(clickedString.equalsIgnoreCase(\"_sulphur\")) {\n Intent i = new Intent(CP_Fertilization.this,Sulphur.class);\n startActivity(i);\n }else if(clickedString.equalsIgnoreCase(\"_micronutrients\")) {\n Intent i = new Intent(CP_Fertilization.this,Micronutrient.class);\n startActivity(i);\n }else\n {\n Log.e(\"Hyperlink is :x: \" + clickedString, \"Hyperlink is :: \" + clickedString);\n }\n }", "@Override\n public void onClick(View v) {\n String label = response.body().getEventList().get(0).getEventName();\n String strUri = \"http://maps.google.com/maps?q=loc:\" + response.body().getEventList().get(0).getEventLatitude() + \",\" + response.body().getEventList().get(0).getEventLongitude() + \" (\" + label + \")\";\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(strUri));\n\n intent.setClassName(\"com.google.android.apps.maps\", \"com.google.android.maps.MapsActivity\");\n\n startActivity(intent);\n\n\n }", "@Override\n public void onInfoWindowClick(Marker marker) {\n return;\n// openTimesheetInfo(marker.getTitle());\n }", "void displayInfoText(String info) {\n resultWindow.removeAll();\n JLabel label = new JLabel(info);\n label.setFont(resultFont);\n resultWindow.add(label);\n revalidate();\n repaint();\n }", "@Override\n public void onClick(View v) {\n final LayoutInflater inflaterMoreInfo = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n final View alertLayoutMoreInfo = inflaterMoreInfo.inflate(R.layout.info_webview, null);\n final AlertDialog.Builder alertDialogBuilderMoreInfo = new AlertDialog.Builder(getActivity());\n alertDialogBuilderMoreInfo.setTitle(\"More Info:\");\n Introwebview = (WebView) alertLayoutMoreInfo.findViewById(R.id.webViewinfo);\n WebSettings IntroWebSettings = Introwebview.getSettings();\n IntroWebSettings.setBuiltInZoomControls(true);\n IntroWebSettings.setJavaScriptEnabled(true);\n IntroWebSettings.setUseWideViewPort(true);\n IntroWebSettings.setLoadWithOverviewMode(true);\n Introwebview.setWebViewClient(new WebViewClient());\n Introwebview.loadUrl(\"file:///android_res/raw/weight.html\");\n alertDialogBuilderMoreInfo.setView(alertLayoutMoreInfo);\n final AlertDialog alertDialogMoreInfo = alertDialogBuilderMoreInfo.create();\n alertDialogMoreInfo.show();\n }", "public void createInstructionButton() {\n \tEventHandler<MouseEvent> eventHandler = new EventHandler<MouseEvent>() {\n\t @Override public void handle(MouseEvent e) {\n\t \tshowInstructions();}\n };\n \tcreateGenericButton(2, 0, myResources.getString(\"guide\"), eventHandler);\n }", "HtmlPage clickSiteName();", "public void htmlReference(View v){\n Intent intent = new Intent(this, HtmlTagsActivity.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n ArticleUtil.launchDetailActivity(mContext, bean.getAid(), bean.getSid(), bean.getAl(), false, bean);\n GoogleAnalyticsTracker.setGoogleAnalyticsEvent(mContext, \"Related Article\", \"Related article: Article Clicked\", \"Article detail page\");\n FlurryAgent.logEvent(\"Related Article: \" + \"Article Clicked\");\n }", "@Override\n\tprotected void OnClick() {\n\t\t\n\t}", "public void ClickAgentInformationPage() {\r\n\t\tagentinfo.click();\r\n\t\t\tLog(\"Clicked the \\\"Agent Information\\\" button on the Birthdays page\");\r\n\t}", "@Override\n public View getInfoContents(Marker marker) {\n View view = inflater.inflate(R.layout.layout_info_window, null, false);\n TextView txtName = view.findViewById(R.id.txtName);\n txtName.setText(marker.getTitle());\n// txtName.setText(message);\n return view;\n }", "private WriteAReviewPage clickOnStartHereButton(){\n click(button_StartHereLocator);\n return new WriteAReviewPage();\n }", "@Override\n public View getInfoContents(Marker marker)\n {\n View view = context.getLayoutInflater().inflate(R.layout.custominfowindow, null);\n\n TextView tvTitle = (TextView) view.findViewById(R.id.tv_title);\n TextView tvSubTitle = (TextView) view.findViewById(R.id.tv_subtitle);\n TextView tvAddress = (TextView) view.findViewById(R.id.tv_address);\n TextView tvOpeningTimes = (TextView) view.findViewById(R.id.tv_openingTimes);\n\n BuildingInfo building = (BuildingInfo)marker.getTag();\n\n tvTitle.setText(marker.getTitle());\n tvSubTitle.setText(marker.getSnippet());\n tvAddress.setText(building.getAddress());\n tvOpeningTimes.setText(\"Opening hours: \\n\" + Html.fromHtml(building.getOpeningTimes()));\n\n return view;\n }", "public void ClickPartnerInformationPage() {\r\n\t\tpartnerinfo.click();\r\n\t\t\tLog(\"Clicked the \\\"Partner Information\\\" button on the Birthdays page\");\r\n\t}", "private static Spanned formatPlaceDetails(Resources res, CharSequence name, CharSequence address) {\n Log.e(TAG, res.getString(R.string.place_details, name, address));\n return Html.fromHtml(res.getString(R.string.place_details, name, address));\n }", "public void mouseClicked(MouseEvent me){\r\n if (me.getClickCount() == 2) {\r\n /*set issponsorSearchRequired to true to avoid firing in\r\n *focusLost event\r\n */\r\n txtSponsorCode.setCursor(new Cursor(Cursor.WAIT_CURSOR) );\r\n isSponsorSearchRequired =true;\r\n showSponsorInfo();\r\n txtSponsorCode.setCursor(new Cursor(Cursor.DEFAULT_CURSOR) );\r\n }\r\n }", "@Override\n public void onInfoWindowLongClick(Marker marker) {\n if (marker.getTitle().equals(\"New Maintenance Form\")){\n newOld = false; //don't have to do anything.....\n }else{\n //newOld = true;\n load_id=marker.getSnippet();\n }\n //pull up the maintenance form\n Intent intent = new Intent(MaintenanceMapActivity.this, MaintenanceActivity.class);\n intent.putExtra(\"latitude\", latitude );\n intent.putExtra(\"longitude\",longitude);\n startActivity(intent);\n }", "public void clickOnText(String text);", "public void displayInfo(String info){\n infoWindow.getContentTable().clearChildren();\n Label infoLabel = new Label(info, infoWindow.getSkin(), \"dialog\");\n infoLabel.setWrap(true);\n infoLabel.setAlignment(Align.center);\n infoWindow.getContentTable().add(infoLabel).width(500);\n infoWindow.show(guiStage);\n }", "public static void anchorNewWindow(StringBuffer aBuf, String aCaption,\n String aUrl, String aWindowName,\n int aWidth, int aHeight,\n boolean aMenuBar, boolean aToolBar,\n boolean aLocation, boolean aStatus,\n boolean aScrollBars, boolean aResizable) {\n aBuf.append(\"<a target='\").append(aWindowName);\n aBuf.append(\"' href='\").append(aUrl);\n aBuf.append(\"' OnClick=\\\"window.open('\");\n aBuf.append(aUrl);\n aBuf.append(\"', '\").append(aWindowName);\n aBuf.append(\"', '\");\n appendFeature(aBuf, \"menubar\", aMenuBar);\n appendFeature(aBuf, \"toolbar\", aToolBar);\n appendFeature(aBuf, \"location\", aLocation);\n appendFeature(aBuf, \"status\", aStatus);\n appendFeature(aBuf, \"scrollbars\", aScrollBars);\n appendFeature(aBuf, \"resizable\", aResizable);\n if (aWidth >0)\n appendFeature(aBuf, \"width\", aWidth);\n if (aHeight >0) {\n aBuf.append(',');\n appendFeature(aBuf, \"height\", aHeight);\n }\n aBuf.append(\"')\\\">\").append(aCaption);\n aBuf.append(\"</A>\").append(NEW_LINE);\n}", "@Override\n public void onClick(View view) {\n if(mFrom.equals(NetConstants.BOOKMARK_IN_TAB)) {\n IntentUtil.openDetailActivity(holder.itemView.getContext(), NetConstants.G_BOOKMARK_DEFAULT,\n bean.getArticleUrl(), position, bean.getArticleId());\n }\n else {\n IntentUtil.openDetailActivity(holder.itemView.getContext(), mFrom,\n bean.getArticleUrl(), position, bean.getArticleId());\n }\n }", "private void postInfo(String text) {\r\n\t\tLabel hLabel = new Label(labelInfo.getText());\r\n\t\thLabel.addStyleName(Styles.battle_info);\r\n\t\t//add the old info to the history\r\n\t\tvPanelInfoHistory.insert(hLabel, 0);\r\n\t\tlabelInfo.setText(SafeHtmlUtils.htmlEscape(text));\r\n\t}", "public void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(MainActivity.this, ShowDetails.class);\r\n\t\t\t\tintent.putExtra(\"placeReference\",placeReference); \r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (yelpObjs != null) {\n\t\t\t\t\tYelpObject obj = yelpObjs.get(mPager.getCurrentItem());\n\t\t\t\t\tif (mLocationListener.isCurrentLocation()) {\n\t\t\t\t\t\tLatLng currLoc = mLocationListener.getCurrentLocation();\n\t\t\t\t\t\tIntent google = new Intent(Intent.ACTION_VIEW, Uri\n\t\t\t\t\t\t .parse(\"http://maps.google.com/maps?saddr=\"\n\t\t\t\t\t\t + currLoc.latitude + \",\"\n\t\t\t\t\t\t + currLoc.longitude + \"&daddr=\"\n\t\t\t\t\t\t + obj.getLocation().latitude + \",\" + obj.getLocation().longitude));\n\t\t\t\t\t\tstartActivity(google);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tString currLoc = mLocationListener.getInputLocation().replace(' ', '+');\n\t\t\t\t\t\tIntent google = new Intent(Intent.ACTION_VIEW, Uri\n\t\t\t\t\t\t .parse(\"http://maps.google.com/maps?saddr=\"\n\t\t\t\t\t\t + currLoc\n\t\t\t\t\t\t \t\t+ \"&daddr=\"\n\t\t\t\t\t\t + obj.getLocation().latitude + \",\" + obj.getLocation().longitude));\n\t\t\t\t\t\tstartActivity(google);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "public void onClickHelp (View v)\n {\n int id = v.getId ();\n int textId = -1;\n switch (id) {\n case R.id.help_button1 :\n textId = R.string.topic_section1;\n break;\n case R.id.help_button2 :\n textId = R.string.topic_section2;\n break;\n case R.id.help_button3 :\n textId = R.string.topic_section3;\n break;\n case R.id.help_button4 :\n textId = R.string.topic_section4;\n break;\n default:\n break;\n }\n\n }", "@Override\n public void onInfoWindowClick(Marker marker) {\n\n if (Config.CEK_KONEKSI(ListDealerMaps.this)) {\n if (markerAccessMapping.get(marker).equals(\"1\")) {\n Intent resultIntent = new Intent();\n resultIntent.putExtra(Config.DISP_KD_DEALER, markerIdMapping.get(marker));\n resultIntent.putExtra(Config.DISP_COY_DEALER, markerCoyMapping.get(marker));\n resultIntent.putExtra(Config.DISP_NAMA_DEALER, marker.getTitle());\n setResult(Activity.RESULT_OK, resultIntent);\n finish();\n }else{\n Toast.makeText(ListDealerMaps.this, Config.ALERT_ONLY_VIEW, Toast.LENGTH_SHORT).show();\n }\n } else {\n showDialog(Config.TAMPIL_ERROR);\n }\n\n }" ]
[ "0.62042886", "0.6120118", "0.58837074", "0.58319294", "0.58319294", "0.5645129", "0.56384146", "0.55792683", "0.55457455", "0.553588", "0.55334336", "0.5507955", "0.5459002", "0.543995", "0.5432967", "0.54234153", "0.5401574", "0.53985524", "0.53837585", "0.53718597", "0.5355395", "0.53515244", "0.532527", "0.530942", "0.53030735", "0.5299011", "0.5289588", "0.5288768", "0.5283388", "0.5273465", "0.5272396", "0.52711254", "0.5270454", "0.52605885", "0.52573794", "0.5237941", "0.52370685", "0.52270085", "0.5226328", "0.52186793", "0.5214015", "0.5211028", "0.51982707", "0.519497", "0.5194464", "0.51809", "0.5180698", "0.51806426", "0.5165222", "0.5145516", "0.51453274", "0.5144403", "0.5135923", "0.5132305", "0.5127474", "0.5126627", "0.5126613", "0.5125364", "0.5123297", "0.5120656", "0.5116089", "0.5111082", "0.51043856", "0.50995415", "0.50954", "0.50935096", "0.5089264", "0.5086076", "0.508133", "0.5077659", "0.50755066", "0.5064522", "0.5061445", "0.50586784", "0.50571907", "0.5037099", "0.503497", "0.5032038", "0.5030454", "0.50298804", "0.5026956", "0.5020302", "0.5018553", "0.5015764", "0.5012505", "0.5010842", "0.50102264", "0.50061643", "0.5005953", "0.50027734", "0.50022006", "0.5000033", "0.49995124", "0.4994475", "0.49905193", "0.49824014", "0.49813336", "0.49790624", "0.4978363", "0.49777853" ]
0.65575993
0
make all instances of a word bold in the input
public SpannableString makeBold(String input, String start, String end) { SpannableString ss = new SpannableString(input); int endIndex; for (int startIndex = input.toLowerCase().indexOf(start.toLowerCase()); startIndex >= 0; startIndex = input.toLowerCase().indexOf(start.toLowerCase(), startIndex + 1)) { endIndex = input.toLowerCase().indexOf(end.toLowerCase(), startIndex + 1); if (endIndex == -1) { break; } ss.setSpan(new android.text.style.StyleSpan(android.graphics.Typeface.BOLD), startIndex, endIndex, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); } return ss; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String bold() {\n if (selection != null) {\n list.get(selection.start).setBold();\n list.get(selection.end).setBold();\n\n }\n\n //return sb.toString();\n return printList();\n }", "public String addBoldTag(String s, String[] dict) {\n // Get rid of invalid inputs\n if (s == null || dict == null) return \"\";\n if (s.length() == 0 || dict.length == 0) return s;\n \n StringBuilder str = new StringBuilder(s);\n Map<Character, List<Integer>> charMap = new HashMap<>();\n boolean[] bold = new boolean[str.length()];\n \n // Prepossessing s in order to make the substring finding process efficient\n for (int i = 0; i < str.length(); i++) {\n if (charMap.get(str.charAt(i)) == null) {\n charMap.put(str.charAt(i), new ArrayList<>());\n }\n charMap.get(str.charAt(i)).add(i);\n }\n \n for (String substr : dict) {\n findAndBoldSubstring(str, charMap, substr, bold);\n }\n \n return mergeBoldTags(str, bold);\n }", "public static String bold(String message) {\n return \"**\" + message + \"**\";\n }", "public String getBold() {\n return bold.getText(); /*Fault:: return \"y\"; */\n }", "private Spannable applyWordMarkup(String text) {\n SpannableStringBuilder ssb = new SpannableStringBuilder();\n int languageCodeStart = 0;\n int untranslatedStart = 0;\n\n int textLength = text.length();\n for (int i = 0; i < textLength; i++) {\n char c = text.charAt(i);\n if (c == '.') {\n if (++i < textLength) {\n c = text.charAt(i);\n if (c == '.') {\n ssb.append(c);\n } else if (c == 'c') {\n languageCodeStart = ssb.length();\n } else if (c == 'C') {\n ssb.setSpan(new TextAppearanceSpan(BrowseWordsActivity.this,\n R.style.language_code_tag),\n languageCodeStart, ssb.length(), 0);\n languageCodeStart = ssb.length();\n } else if (c == 'u') {\n untranslatedStart = ssb.length();\n } else if (c == 'U') {\n ssb.setSpan(new TextAppearanceSpan(BrowseWordsActivity.this,\n R.style.untranslated_word),\n untranslatedStart, ssb.length(), 0);\n untranslatedStart = ssb.length();\n } else if (c == '0') {\n Resources res = getResources();\n ssb.append(res.getString(R.string.no_translations));\n }\n }\n } else\n ssb.append(c);\n }\n\n return ssb;\n }", "public boolean bold() {\n\t\treturn isBold;\n\t}", "public boolean isBold() {\n\treturn (style & BOLD) != 0;\n }", "public static String boldItalic(String message) {\n return \"***\" + message + \"***\";\n }", "public IconBuilder bold(boolean bold) {\n\t\tthis.isBold = bold;\n\t\treturn this;\n\t}", "public static void main(String[] args) {\n Pattern pattern = Pattern.compile(\"\\\\b(\\\\w+)(\\\\W+\\\\1\\\\b)+\",Pattern.CASE_INSENSITIVE);\r\n\r\n Scanner in = new Scanner(System.in);\r\n int numSentences = Integer.parseInt(in.nextLine());\r\n \r\n while (numSentences-- > 0) {\r\n String input = in.nextLine();\r\n \r\n Matcher matcher = pattern.matcher(input);\r\n \r\n while (matcher.find()) \r\n input = input.replaceAll(matcher.group(),matcher.group(1));\r\n // Prints the modified sentence.\r\n System.out.println(input);\r\n }\r\n \r\n in.close();\r\n }", "void solution() {\n\t\t/* Write a RegEx matching repeated words here. */\n\t\tString regex = \"(?i)\\\\b([a-z]+)\\\\b(?:\\\\s+\\\\1\\\\b)+\";\n\t\t/* Insert the correct Pattern flag here. */\n\t\tPattern p = Pattern.compile(regex, Pattern.CASE_INSENSITIVE);\n\n\t\tString[] in = { \"I love Love to To tO code\", \"Goodbye bye bye world world world\",\n\t\t\t\t\"Sam went went to to to his business\", \"Reya is is the the best player in eye eye game\", \"in inthe\",\n\t\t\t\t\"Hello hello Ab aB\" };\n\t\tfor (String input : in) {\n\t\t\tMatcher m = p.matcher(input);\n\n\t\t\t// Check for subsequences of input that match the compiled pattern\n\t\t\twhile (m.find()) {\n\t\t\t\t// /* The regex to replace */, /* The replacement. */\n\t\t\t\tinput = input.replaceAll(m.group(), m.group(1));\n\t\t\t}\n\n\t\t\t// Prints the modified sentence.\n\t\t\tSystem.out.println(input);\n\t\t}\n\n\t}", "private String decodeContextBoldTags(IContext context) {\n \t\tString styledText;\n \t\tif (context instanceof IContext2) {\n \t\t\tstyledText = ((IContext2) context).getStyledText();\n \t\t\tif (styledText == null) {\n \t\t\t\tstyledText = context.getText();\n \t\t\t}\n \t\t} else {\n \t\t\tstyledText = context.getText();\n \t\t}\n \t\tif (styledText == null) {\n \t\t\treturn Messages.ContextHelpPart_noDescription;\n \t\t}\n \t\tString decodedString = styledText.replaceAll(\"<@#\\\\$b>\", \"<b>\"); //$NON-NLS-1$ //$NON-NLS-2$\n \t\tdecodedString = decodedString.replaceAll(\"</@#\\\\$b>\", \"</b>\"); //$NON-NLS-1$ //$NON-NLS-2$\n \t\tdecodedString = EscapeUtils.escapeSpecialCharsLeavinggBold(decodedString);\n \t\tdecodedString = decodedString.replaceAll(\"\\r\\n|\\n|\\r\", \"<br/>\"); //$NON-NLS-1$ //$NON-NLS-2$\t\t\n \t\treturn decodedString;\n \t}", "public String getStory() {\n String finalStory = story;\n for(String word : words) {\n finalStory = finalStory.replaceFirst(expression.pattern(), \"@\"+word+\"*\");\n }\n return finalStory.replace(\"@\", \"<b>\").replace(\"*\", \"</b>\");\n }", "String highlightTerm(String term);", "public static String underlineBold(String message) {\n return \"__**\" + message + \"**__\";\n }", "public boolean isForceBold() throws PDFNetException {\n/* 616 */ return IsForceBold(this.a);\n/* */ }", "void setVersesWithWord(Word word);", "public final boolean isBold() {\n return bold;\n }", "public void highLightWords(){\n }", "public SpannableString applyAll(String typeS) {\n boldKeywords(typeS);\n\n return prettyify(typeS);\n }", "public String catchPhrase() {\n @SuppressWarnings(\"unchecked\") List<List<String>> catchPhraseLists = (List<List<String>>) faker.fakeValuesService().fetchObject(\"company.buzzwords\");\n return joinSampleOfEachList(catchPhraseLists, \" \");\n }", "B highlightExpression(String highlightExpression);", "public static TextView styleText(String username, String caption, TextView textView, Context context) {\n\n ForegroundColorSpan blueForegroundColorSpan = new ForegroundColorSpan(context.getResources().getColor(R.color.blue_text));\n StyleSpan bss = new StyleSpan(android.graphics.Typeface.BOLD);\n SpannableStringBuilder ssb = new SpannableStringBuilder(username);\n ssb.setSpan(\n blueForegroundColorSpan, // the span to add\n 0, // the start of the span (inclusive)\n ssb.length(), // the end of the span (exclusive)\n Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n ssb.setSpan(bss, 0, ssb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n ssb.append(\" \");\n ForegroundColorSpan grayColorSpan = new ForegroundColorSpan(context.getResources().getColor(R.color.gray_text));\n if (caption != null) {\n ssb.append(caption);\n ssb.setSpan(\n grayColorSpan, // the span to add\n ssb.length() - caption.length(),\n // the start of the span (inclusive)\n ssb.length(), // the end of the span (exclusive)\n Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n textView.setText(ssb);\n } else {\n textView.setVisibility(View.GONE);\n }\n\n return textView;\n\n }", "public void setIsFontBold(boolean value) {\n this.isFontBold = value;\n }", "public boolean getBold() {\r\n return Bold;\r\n }", "private String processWord(String word){\r\n\t\tString lword = word.toLowerCase();\r\n\t\tfor (int i = 0;i<word.length();++i){\r\n\t\t\tstemmer.add(lword.charAt(i));\r\n\t\t}\r\n\t\tstemmer.stem();\r\n\t\treturn stemmer.toString();\r\n\t}", "private HBox createStyledText(String searched, String guess, HBox styledText, boolean isIgnoreCase) {\n int index = (isIgnoreCase ? searched.toLowerCase().indexOf(guess.toLowerCase()) : searched.indexOf(guess));\n if (index >= 0) {\n\n String beginString = searched.substring(0, index);\n String highlightedString = (isIgnoreCase ? searched.substring(index, index + guess.length()) : guess);\n String endString = searched.substring(index + guess.length());\n\n final Text begin = new Text(beginString);\n styledText.getChildren().add(begin);\n\n final Text highlighted = new Text(highlightedString);\n highlighted.getStyleClass().add(HIGHLIGHTED_DROPDOWN_CLASS);\n styledText.getChildren().add(highlighted);\n\n final Text end = new Text(endString);\n end.getStyleClass().add(USUAL_DROPDOWN_CLASS);\n styledText.getChildren().add(end);\n\n } else {\n styledText.getChildren().add(new Text(searched));\n }\n return styledText;\n }", "private void addCustomWords() {\r\n\r\n }", "public static String underlineBoldItalic(String message) {\n return \"__***\" + message + \"***__\";\n }", "public static String highlightString(String input, ArrayList<HighlighterPattern> listOfKeywords) {\n\t\tString output=input;\n\t\tfor (HighlighterPattern pattern : listOfKeywords) {\n\t\t\tString keyword = pattern.getKeyword();\n\t\t\tString color = pattern.getColor();\n\t\t\tString capitalization = pattern.getCapitalization();\n\t\t\tString style = pattern.getStyle();\n\t\t\tif (input.contains(keyword)) {\n\t\t\t\tif (capitalization.equals(\"capital\")) {\n\t\t\t\t\tif (style.equals(\"normal\")) {\n\t\t\t\t\t\toutput=output.replaceAll(keyword,\"[\"+color+\"]\"+keyword.toUpperCase()+\"[\"+color+\"]\");\n\n\t\t\t\t\t} else if (style.equals(\"bold\")) {\n\t\t\t\t\t\toutput=output.replaceAll(keyword, \"[\"+color+\"]\"+\"[\"+style+\"]\"+keyword.toUpperCase()+\"[\"+style+\"]\"+\"[\"+color+\"]\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (capitalization.equals(\"lower\")) {\n\t\t\t\t\tif (style.equals(\"normal\")) {\n\t\t\t\t\t\toutput=output.replaceAll(keyword,\"[\"+color+\"]\"+keyword+\"[\"+color+\"]\" );\n\t\t\t\t\t} else if (style.equals(\"bold\")) {\n\t\t\t\t\t\toutput=output.replaceAll(keyword, \"[\"+color+\"]\"+\"[\"+style+\"]\"+keyword+\"[\"+style+\"]\"+\"[\"+color+\"]\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn output;\n\t}", "public String getWordRegex(String word){\n\t\treturn String.format(\"\\\\b%1$s\\\\b|\\\\b%1$ss\\\\b\", word);\n\t}", "static String refineWord(String currentWord) {\n\t\t// makes string builder of word\n\t\tStringBuilder builder = new StringBuilder(currentWord);\n\t\tStringBuilder newWord = new StringBuilder();\n\n\t\t// goes through; if it's not a letter, doesn't add to the new word\n\t\tfor (int i = 0; i < builder.length(); i++) {\n\t\t\tchar currentChar = builder.charAt(i);\n\t\t\tif (Character.isLetter(currentChar)) {\n\t\t\t\tnewWord.append(currentChar);\n\t\t\t}\n\t\t}\n\n\t\t// returns lower case\n\t\treturn newWord.toString().toLowerCase().trim();\n\t}", "public static void main(String[] args) {\n Pattern p = Pattern.compile(\"\\\\bis\\\\b\"); // эффект тот же\n\n Matcher m = p.matcher(\"this island is beautiful\");\n while (m.find()){\n System.out.println(m.start() + \" \" + m.group());\n }\n }", "private String buildWordMatch(Matcher matcher, String word){\n return \"(\" + matcher.replaceAll(\"% \"+word+\" %\")\n + \" or \" + matcher.replaceAll(word+\" %\")\n + \" or \" + matcher.replaceAll(word)\n + \" or \" + matcher.replaceAll(\"% \"+word) + \")\" ;\n }", "public static String textFormat(String s){\r\n s =s.toLowerCase();\r\n s = s.substring(0, 1).toUpperCase() + s.substring(1);\r\n return(s);\r\n }", "public String process(Item word) throws ProcessException {\n\t\t\treturn wordBreak(word);\n\t\t}", "private void generate()\n {\n for (int i = 0; i < this.syllables; i++) {\n Word word = getNextWord();\n this.text += word.getWord();\n if (i < this.syllables - 1) {\n this.text += \" \";\n }\n }\n }", "public SpannableString makeSpans(String input) {\n Log.d(\"makeSpans\", \"input: \" + input);\n SpannableString ss = new SpannableString(input);\n\n int endIndex;\n // check for cards\n for (String word : Globals.getInstance().getCards()) {\n for (int index = input.toLowerCase().indexOf(word.toLowerCase());\n index >= 0;\n index = input.toLowerCase().indexOf(word.toLowerCase(), index + 1)) {\n endIndex = input.indexOf(\" \", index);\n if (endIndex == -1) {\n endIndex = index + word.length();\n }\n ss.setSpan(makeClickableSpan(\"Cards\", word), index, endIndex,\n Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n }\n }\n\n // check for relics\n for (String word : Globals.getInstance().getRelics()) {\n for (int index = input.toLowerCase().indexOf(word.toLowerCase());\n index >= 0;\n index = input.toLowerCase().indexOf(word.toLowerCase(), index + 1)) {\n endIndex = input.indexOf(\" \", index);\n if (endIndex == -1) {\n endIndex = index + word.length();\n }\n ss.setSpan(makeClickableSpan(\"Relics\", word), index, endIndex,\n Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n }\n }\n\n // check for potions\n for (String word : Globals.getInstance().getPotions()) {\n for (int index = input.toLowerCase().indexOf(word.toLowerCase());\n index >= 0;\n index = input.toLowerCase().indexOf(word.toLowerCase(), index + 1)) {\n endIndex = input.indexOf(\" \", index);\n if (endIndex == -1) {\n endIndex = index + word.length();\n }\n ss.setSpan(makeClickableSpan(\"Potions\", word), index, endIndex,\n Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n }\n }\n\n // check for keywords\n for (String word : Globals.getInstance().getKeywords()) {\n for (int index = input.toLowerCase().indexOf(word.toLowerCase());\n index >= 0;\n index = input.toLowerCase().indexOf(word.toLowerCase(), index + 1)) {\n endIndex = input.indexOf(\" \", index);\n if (endIndex == -1) {\n endIndex = index + word.length();\n }\n ss.setSpan(makeClickableSpan(\"Keywords\", word), index, endIndex,\n Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n }\n }\n\n // check for events\n for (String word : Globals.getInstance().getEvents()) {\n for (int index = input.toLowerCase().indexOf(word.toLowerCase());\n index >= 0;\n index = input.toLowerCase().indexOf(word.toLowerCase(), index + 1)) {\n endIndex = input.indexOf(\" \", index);\n if (endIndex == -1) {\n endIndex = index + word.length();\n }\n ss.setSpan(makeClickableSpan(\"Events\", word), index, endIndex,\n Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n }\n }\n\n return ss;\n }", "private void wordBreakRecur(String word, String result) {\n\t\tint size = word.length();\n\n\t\tfor (int i = 1; i <= size; i++) {\n\t\t\tString prefix = word.substring(0, i);\n\n\t\t\tif (dictionaryContains(prefix)) {\n\t\t\t\tif (i == size) {\n\t\t\t\t\tresult += prefix;\n\t\t\t\t\tSystem.out.println(result);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\twordBreakRecur(word.substring(i), result + prefix + \" \");\n\t\t\t}\n\t\t}\n\t}", "private void designFW(FunctionWord functionWord) {\n\t\tint start = functionWord.getStartPosition();\n\t\tint end = functionWord.getEndPosition();\n\t\tStyleConstants.setForeground(STYLE, designer.getColor(functionWord));\n\t\tdoc.setCharacterAttributes(start, end - start + 1, STYLE, true);\n\t}", "public void setBold() {\n underline.setSelected(false);\n Ok.setSelected(false); /*FAULT:: Ok.setSelected(true); */\n italics.setSelected(false);\n bold.setSelected(true);\n }", "private void designCW(ConstitutiveWord constitutiveWord) {\n\t\tint start = constitutiveWord.getStartPosition();\n\t\tint end = constitutiveWord.getEndPosition();\n\t\tStyleConstants\n\t\t\t\t.setForeground(STYLE, designer.getColor(constitutiveWord));\n\t\tdoc.setCharacterAttributes(start, end - start + 1, STYLE, true);\n\t}", "public void setBold(boolean bold) {\r\n try {\r\n if (bold) {\r\n this.setFont(this.getFont().deriveFont(Font.BOLD));\r\n } else {\r\n this.setFont(this.getFont().deriveFont(Font.PLAIN));\r\n }\r\n this.bold = bold;\r\n } catch (Exception e) {\r\n ToggleButton.logger.error(this.getClass().toString() + \" : Error establishing bold\", e);\r\n if (ApplicationManager.DEBUG) {\r\n ToggleButton.logger.error(null, e);\r\n }\r\n }\r\n }", "private void highlightString(TextView textView, String input) {\n SpannableString spannableString = new SpannableString(textView.getText());\n//Get the previous spans and remove them\n BackgroundColorSpan[] backgroundSpans = spannableString.getSpans(0, spannableString.length(), BackgroundColorSpan.class);\n\n for (BackgroundColorSpan span : backgroundSpans) {\n spannableString.removeSpan(span);\n }\n\n//Search for all occurrences of the keyword in the string\n int indexOfKeyword = spannableString.toString().indexOf(input);\n\n while (indexOfKeyword > 0) {\n //Create a background color span on the keyword\n spannableString.setSpan(new BackgroundColorSpan(Color.YELLOW), indexOfKeyword, indexOfKeyword + input.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n\n //Get the next index of the keyword\n indexOfKeyword = spannableString.toString().indexOf(input, indexOfKeyword + input.length());\n }\n\n//Set the final text on TextView\n textView.setText(spannableString);\n }", "Font getBoldFont(Font font) {\n\tif (this.boldFont == null) {\n\t\tFontData[] fontData = (font==null ? JFaceResources.getDefaultFont() : font).getFontData();\n\t\tFontData boldFontData = new FontData(fontData[0].getName(), fontData[0].getHeight(), SWT.BOLD);\n\t\tthis.boldFont = new Font(this.display, boldFontData);\n\t}\n\treturn this.boldFont;\n}", "boolean break_word (ArrayList<String> strings, int index, String word) {\n boolean withWord = false;\n if (dictionary.contains(word)) {\n strings.add(word);\n if (index == sentence.length()) {\n System.out.println (strings);\n return true;\n }\n withWord = break_word(new ArrayList<String>(strings), index, \"\");\n strings.remove(strings.size() - 1);\n }\n if (index == sentence.length())\n return false;\n word += sentence.charAt(index);\n return break_word(new ArrayList<String>(strings), index+1, word) || withWord;\n }", "java.lang.String getWord();", "public String buildWord() {\n\t\tStringBuilder word = new StringBuilder();\n\t\t\n\t\tfor(int i = 0; i < letters.size(); i++) {\n\t\t\tLetter tempLetter = letters.get(i);\n\t\t\t\n\t\t\tif(!(letters.get(i).getLetter() >= 'A' && letters.get(i).getLetter() <= 'Z') || tempLetter.getStatus())\n\t\t\t\tif(letters.get(i).getLetter() != ' ')\n\t\t\t\t\tword.append(tempLetter.getLetter());\n\t\t\t\telse\n\t\t\t\t\tword.append(\" \");\n\t\t\telse\n\t\t\t\tif (i == letters.size()-1) word.append(\"_\");\n\t\t\t\telse word.append(\"_ \");\n\t\t}\n\t\treturn word.toString();\n\t}", "public static void main(String[] args) {\n String s = \"catsanddog\";\n Set<String> dict = new HashSet<>();\n dict.add(\"cat\"); dict.add(\"cats\"); dict.add(\"and\"); dict.add(\"sand\"); dict.add(\"dog\");\n WordBreak solution = new WordBreak();\n List<String> result = solution.wordBreak(s, dict);\n System.out.println(result);\n }", "public void modifyText(ExtendedModifyEvent event) \r\n\t\t\t{\n\t\t\t\tint end = event.start + event.length - 1;\r\n\r\n\t\t\t\t// If they typed something, get it\r\n\t\t\t\tif (event.start <= end) \r\n\t\t\t\t{\r\n\t\t\t\t\t// Get the text\r\n\t\t\t\t\tString text = styledText.getText(event.start, end);\r\n\r\n\t\t\t\t\t// Create a collection to hold the StyleRanges\r\n\t\t\t\t\tjava.util.List ranges = new java.util.ArrayList();\r\n\r\n\t\t\t\t\t// Turn any punctuation red\r\n\t\t\t\t\tfor (int i = 0, n = text.length(); i < n; i++) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (PUNCTUATION.indexOf(text.charAt(i)) > -1) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tranges.add(new StyleRange(event.start + i, 1, red, null, SWT.BOLD));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// If we have any ranges to set, set them\r\n\t\t\t\t\tif (!ranges.isEmpty()) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tstyledText.replaceStyleRanges(event.start, event.length,(StyleRange[]) ranges.toArray(new StyleRange[0]));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}", "public void biStringToAl(String s){\n\t\tint i=0, j=0, num=0;\n\t\twhile(i<s.length() - 1){ //avoid index out of range exception\t\t\t\n\t\t\twhile(i < s.length()){\n\t\t\t\ti++;\n\t\t\t\tif(s.charAt(i) == ' ' || i == s.length()-1){ //a word ends\n\t\t\t\t\tnum++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\twhile(num >2 && i < s.length()){\n\t\t\t\tj++;\n\t\t\t\tif(s.charAt(j) == ' '){ // j is 2 words slower than i\n\t\t\t\t\tj = j + 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tString temp;\n\t\t\tif(num >= 2){\n\t\t\t\tif(i == s.length() - 1){\n\t\t\t\t\ttemp =s.substring(j,i+1);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttemp =s.substring(j,i);\n\t\t\t\t}\n\t\t\t\tbiWords.add(temp);\n\t\t\t\t//System.out.println(\"temp:\"+temp);\n\t\t\t}\n\t\t}\n\t}", "public void setUseBoldFontForFilteredItems(boolean useBoldFont) {\n \t\tif (labelProvider != null)\n \t\t\tlabelProvider.setUseBoldFontForFilteredItems(useBoldFont);\n \t}", "private Set<String> replacementHelper(String word) {\n\t\tSet<String> replacementWords = new HashSet<String>();\n\t\tfor (char letter : LETTERS) {\n\t\t\tfor (int i = 0; i < word.length(); i++) {\n\t\t\t\treplacementWords.add(word.substring(0, i) + letter + word.substring(i + 1));\n\t\t\t}\n\t\t}\n\t\treturn replacementWords;\n\t}", "@RequiresApi(api = Build.VERSION_CODES.O)\n public static String formatSearchString(String input) {\n\n //Split by white spaces into an array\n String[] keywords = input.trim().split(\"\\\\s+\");\n\n //Format all words inside array\n for (int i=0; i<keywords.length; i++){\n keywords[i] = keywords[i].substring(0, 1).toUpperCase() + keywords[i].substring(1).toLowerCase();\n }\n\n /*\n * Input = HeLLo woRld -> Output = Hello World\n * */\n\n //Join words in array with space\n return String.join(\" \", keywords);\n }", "public boolean isBold()\r\n\t{\r\n\t\t// return true if Bold checkbox is selected, false if not\r\n\t\treturn boldCheckBox.isSelected();\r\n\t}", "public String acronym(String phrase) {\n /*StringBuilder acronymFeed = new StringBuilder(\"\");\n String wordHolder = \"\";\n int spaceIndex;\n char firstLetter;\n do{\n spaceIndex = phrase.indexOf(\" \");\n wordHolder = phrase.substring(0,spaceIndex);\n acronymFeed.append(wordHolder.charAt(0));\n phrase = phrase.replaceFirst(wordHolder, \"\");\n } while (spaceIndex != -1 && wordHolder != \"\" && phrase != \"\");\n \n \n \n \n \n String acronymResult = acronymFeed.toString().toUpperCase();\n return acronymResult;\n */\n \n char[] letters = phrase.toCharArray();\n String firstLetters = \"\";\n firstLetters += String.valueOf(letters[0]);\n for (int i = 1; i < phrase.length();i++){\n if (letters[i-1] == ' '){\n firstLetters += String.valueOf(letters[i]);\n }\n }\n firstLetters = firstLetters.toUpperCase();\n return firstLetters;\n }", "public void setBoldweight(short boldweight)\n {\n font.setBoldWeight(boldweight);\n }", "public String normalize(String word);", "public static void main(String[] args) {\n\t\tString str = \"They is students.\";\n\t\tint i=0;\n\t\tfor(;i<str.length();i++){\n\t\t\tif(str.charAt(i)=='i')\n\t\t\t\tif(str.charAt(i+1)=='s'){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}\n\t\tStringBuffer sb = new StringBuffer(str);\n\t\tsb.replace(i, i+2, \"are\");\n\t\tSystem.out.println(sb);\n\t}", "public void setBold( boolean bold )\r\n\t{\r\n\t\tboldCheckBox.setSelected( bold ); // set the Bold checkbox selected or unselected as per the parameter passed in\r\n\t}", "private String fixWordStarts(final String line) {\n final String[] parts = line.split(\" \");\n\n final StringBuilder lineBuilder = new StringBuilder();\n\n for (int i = 0; i < parts.length; i++) {\n String part = parts[i];\n\n // I prefer a space between a - and the word, when the word starts with a dash\n if (part.matches(\"-[0-9a-zA-Z']+\")) {\n final String word = part.substring(1);\n part = \"- \" + word;\n }\n\n // yes this can be done in 1 if, no I'm not doing it\n if (startsWithAny(part, \"lb\", \"lc\", \"ld\", \"lf\", \"lg\", \"lh\", \"lj\", \"lk\", \"ll\", \"lm\", \"ln\", \"lp\", \"lq\", \"lr\",\n \"ls\", \"lt\", \"lv\", \"lw\", \"lx\", \"lz\")) {\n // some words are incorrectly fixed (llama for instance, and some Spanish stuff)\n if (startsWithAny(part, \"ll\") && isOnIgnoreList(part)) {\n lineBuilder.append(part);\n } else {\n // I starting a word\n part = part.replaceFirst(\"l\", \"I\");\n lineBuilder.append(part);\n }\n } else if (\"l.\".equals(part)) {\n // I at the end of a sentence.\n lineBuilder.append(\"I.\");\n } else if (\"l,\".equals(part)) {\n // I, just before a comma\n lineBuilder.append(\"I,\");\n } else if (\"l?\".equals(part)) {\n // I? Wut? Me? Moi?\n lineBuilder.append(\"I?\");\n } else if (\"l!\".equals(part)) {\n // I! 't-was me!\n lineBuilder.append(\"I!\");\n } else if (\"l..\".equals(part)) {\n // I.. think?\n lineBuilder.append(\"I..\");\n } else if (\"l...\".equals(part)) {\n // I... like dots.\n lineBuilder.append(\"I...\");\n } else if (\"i\".equals(part)) {\n // i suck at spelling.\n lineBuilder.append(\"I\");\n } else if (part.startsWith(\"i'\")) {\n // i also suck at spelling.\n part = part.replaceFirst(\"i\", \"I\");\n lineBuilder.append(part);\n } else {\n // nothing special to do\n lineBuilder.append(part);\n }\n\n // add trailing space if it is not the last part\n if (i != parts.length - 1) {\n lineBuilder.append(\" \");\n }\n }\n\n return lineBuilder.toString();\n }", "private String containingWord(String attribute, String word) {\r\n return \"contains(concat(' ',normalize-space(@\" + attribute + \"),' '),' \"\r\n + word + \" ')\";\r\n }", "public String titlelize(String toTitlelize) {\r\n if (toTitlelize == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n StringBuilder resultString = new StringBuilder();\r\n List<String> wordList = Arrays.asList(toTitlelize.split(\"\\\\s\"));\r\n\r\n\r\n for (String word : wordList) {\r\n if (!ignoreList.contains(word)) {\r\n resultString.append(WordUtils.capitalizeFully(word));\r\n resultString.append(\" \");\r\n\r\n\r\n } else {\r\n resultString.append(word);\r\n resultString.append(\" \");\r\n }\r\n\r\n\r\n }\r\n resultString.deleteCharAt(resultString.length() - 1);\r\n return resultString.toString();\r\n }", "void extend(SpellCheckWord scWord)\n\t{\n\t\tif(!scWord.word.equals(\"\\n\\n\"))\n\t\t\tsuper.append(scWord.word + \" \");\n\t\telse\n\t\t\tsuper.append(scWord.word);\n\n\t\tcontentPairs.add(scWord);\n\t}", "public StringBuffer formTheGuessedWord(String word, String guess, StringBuffer guessedWord) {\r\n\t\tif (guessedWord != null && guessedWord.length() >= 1) {\r\n\t\t\tfor (int i = 0; i < word.length(); i++) {\r\n\t\t\t\tif (word.charAt(i) == guess.charAt(0)) {\r\n\t\t\t\t\tguessedWord.setCharAt(i, guess.charAt(0));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tguessedWord = new StringBuffer(word.length());\r\n\t\t\tfor (int i = 0; i < word.length(); i++) {\r\n\t\t\t\tguessedWord.append(\".\");\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn guessedWord;\r\n\t}", "STRIKE createSTRIKE();", "private String getFormattedName(String bossName) {\r\n\t\tString[] startingLetters = { \"corporeal\", \"king black\", \"nomad\", \"tormented\", \"avatar\" };\r\n\t\tfor(int i = 0; i < startingLetters.length; i++)\r\n\t\t\tif(bossName.toLowerCase().contains(startingLetters[i].toLowerCase()))\r\n\t\t\t\treturn \"the \"+bossName;\r\n\t\treturn bossName;\r\n\t}", "public abstract void substitutedWords(long ms, int n);", "protected String replaceIthB(String s, int i) {\n\t\tint cur_b_count = -1;\n\t\tchar[] s_array = s.toCharArray();\n\t\t\n\t\tfor (int pos = 0;pos < s.length();pos++) {\n\t\t\tif (s.charAt(pos) == 'B') {\n\t\t\t\tcur_b_count++;\n\t\t\t\t\n\t\t\t\tif (cur_b_count == i-1) {\n\t\t\t\t\ts_array[pos] = 'A';\n\t\t\t\t\treturn new String(s_array);\n\t\t\t\t}\n\t\t\t}\t\t\n\t\t}\n\t\t\n\t\treturn s;\n\t}", "public short getBoldweight()\n {\n return font.getBoldWeight();\n }", "private static void ExplainRules() {\n System.out.printf(\"\\n %sWELCOME TO BOMB BLAST%s!!!!!!!!!!!!\\n\\n \", Styling.ANSI_BLUE, Styling.ANSI_RESET);\r\n System.out.printf(\"- Your object is to survive as long as possible, and accumlate the most points.\\n- You accumulate points by not triggering the bomb and therefore surviving the round.\\nWhere is the bomb? Within a random box\\n- All boxes are empty apart from ONE\\n- If you select the bomb ridden box you will receive NO POINTS!\\nAnd the survivors will receive points based on how long it took the group to find the bomb\\n- After a selected amount of rounds whoever has survived the most amount of attempts wins!!\\n\\n\");\r\n AnyKey.pressAnyKeyToContinue();\r\n }", "public String bs() {\n @SuppressWarnings(\"unchecked\") List<List<String>> buzzwordLists = (List<List<String>>) faker.fakeValuesService().fetchObject(\"company.bs\");\n return joinSampleOfEachList(buzzwordLists, \" \");\n }", "public void setBold(Boolean bold) {\n getOrCreateProperties().setBold(bold);\n }", "public final void setBold(final boolean bold) {\n if (this.bold != bold) {\n this.bold = bold;\n flush();\n }\n }", "private static void banFeature(ArrayList t) {\n\t\tSet setKeys = Utility.vocabHM.keySet();\n\t\tIterator i = setKeys.iterator();\n\t\tSystem.out.print(\"Word cut : [\");\n\t\tint idx = 0;\n\t\twhile (i.hasNext()) {\n\t\t\tString s = (String) i.next();\n\t\t\tInteger df = (Integer) Utility.vocabHM.get(s);\n\n\t\t\tif (t.contains(s)){\n\t\t\t\tSystem.out.print(s+\", \");\n\t\t\t\ti.remove();\n\t\t\t\tidx++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"]\\n ::banned::\"+idx+\" feature.\");\n\t}", "public static void upperCaseFirstOfWord() {\n\t\tString isExit = \"\";\n\t\twhile (!isExit.equals(\"N\")) {\n\t\t\tStringBuffer bf = readInput();\n\t\t\tStringBuffer result = new StringBuffer();\n\t\t\tString str = bf.toString();\n\t\t\tString char_prev = \"\";\n\t\t\tString char_current = \"\";\n\t\t\tString key = \" ,.!?:\\\"\";\n\t\t\tresult.append(String.valueOf(str.charAt(0)).toUpperCase());\n\t\t\tfor (int i = 1; i < str.length(); i++) {\n\t\t\t\tchar_prev = String.valueOf(str.charAt(i - 1));\n\t\t\t\tchar_current = String.valueOf(str.charAt(i));\n\t\t\t\tif (key.contains(char_prev)) {\n\t\t\t\t\tchar_current = char_current.toUpperCase();//uppercase first letter each word\n\t\t\t\t}\n\t\t\t\tresult.append(char_current);\n\t\t\t}\n\t\t\tSystem.out.println(\"Chuỗi có chữ cái đầu viết hoa: \\n\" + result);\n\t\t\tSystem.out.println(\"Bạn có muốn nhập tiếp không(0/1):\");\n\t\t\tisExit= scan.next().toString();\n\t\t}\n\t}", "static void doWords(String words, MorseAction action) throws InterruptedException{\n if (firstPass){\n action.doAction(MorseAction.morseAction.SILENCE);\n Thread.sleep(500);\n firstPass=false;\n }\n for (byte b: words.getBytes()){\n if (stop)\n return;\n if (b==blanc) {// word separator\n Thread.sleep(betweenWordDelay);\n continue;\n }\n doLetter(b, action);\n Thread.sleep(betweenLetterDelay);\n }\n Thread.sleep(betweenWordDelay);\n }", "private static String updateSpelling(String text) {\n\t\tStringBuilder upSpell = new StringBuilder(32);\n\t\tchar ch = ' ';\n\t\t\n\t\tfor (int i = 0; i<text.length(); i++) {\n\t\t\tif(ch == ' ' && text.charAt(i) != ' ') {\n\t\t\t\tupSpell.append(Character.toUpperCase(text.charAt(i)));\n\t\t\t\t\n\t\t\t}else if(Character.isLetter(text.charAt(i))) {\n\t\t\t\tupSpell.append(Character.toLowerCase(text.charAt(i)));\n\t\t\t\t\n\t\t\t}\n\t\t\t// if anything other type of input is added besides letters.\n\t\t\telse {\n\t\t\t\tupSpell.append(text.charAt(i));\n\t\t\t}\n\t\t\t//This will keep track of previous characters inputed.\n\t\t\tch = text.charAt(i);\t\t\t\n\t\t\t\n\t\t}\n\t\treturn upSpell.toString(); \n\t\t\n\t}", "public boolean isIsFontBold() {\n return isFontBold;\n }", "private String makeHTMLGlossary(String input)\n {\n Collection<String> dictionaryEntries = ((KillhopeApplication) getApplication()).getLinkableWords();\n\n for(String s : dictionaryEntries)\n {\n //Non-word character, then the word (case insensitive), optional s, then another non-word.\n //This is required so \"more\" will not match \"ore\".\n Pattern p = Pattern.compile(String.format(\"(\\\\W)((?i)%ss?)(\\\\W)\", s));\n Matcher m = p.matcher(input);\n //Note: The replacement replaces the loadGlossaryEntry js with %s, which is the dictionary entry.\n //Whereas $2 is the word matched. So \"ores\" will link to ore.\n String newLink = String.format(\"<a href=\\\"noJS.html\\\" onclick=\\\"loadGlossaryEntry(&quot;%s&quot;);return false;\\\">$2</a>\", s);\n //as we match non-word characters outside, we need to re-add these.\n String replaceWith = String.format(\"$1%s$3\", newLink);\n\n if (m.find())\n input = m.replaceAll(replaceWith);\n }\n return input;\n }", "public String propergram(String word){\n // word.toLowerCase();\n String[] tempstr =word.split(\"_\");\n String tempstr2;\n\n for(int i=0;i<tempstr.length;i++){\n if((tempstr[i].charAt(0))>='A'&&(tempstr[i].charAt(0))<='Z') {\n tempstr2 = (String.valueOf(tempstr[i].charAt(0)));\n }\n else {\n tempstr2 = (String.valueOf(tempstr[i].charAt(0))).toUpperCase();\n }\n tempstr[i] = tempstr2.concat(tempstr[i].substring(1));\n if (i != 0) {\n word=word.concat(\" \").concat(tempstr[i]);\n } else {\n word = tempstr[i];\n }\n\n }\n return word;\n\n\n }", "public String replaceWords(List<String> dict, String sentence) {\n for(String s : dict){\n insert(s);\n }\n //builder to append strings\n StringBuilder sb = new StringBuilder();\n //to get word of the sentence, split it into words\n //and to distinguish, add spaces\n for(String word : sentence.split(\"\\\\s+\")){\n if(sb.length() > 0)\n sb.append(\" \");\n \n TrieNode curr = root;\n //now for each word till its length\n for(int i=0; i<word.length(); i++){\n //get character, compare character with children\n char c = word.charAt(i);\n //if no children found or curr.word is null\n if(curr.children[c-'a'] == null || curr.word != null){\n break;\n }\n //curr++\n curr = curr.children[c-'a'];\n }\n //replacement found or not?\n String replacement = curr.word;\n if(replacement == null){\n sb.append(word);\n }else{\n sb.append(replacement);\n }\n }\n return sb.toString();\n }", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"This program will replace the word 'hate' with the word 'love' in your text once.\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Please enter a sentence that includes the word 'hate.'\");\n\t\tSystem.out.println();\n\t\t\n\t\tString sentenceHate;\n\t\tsentenceHate = scan.nextLine();\n\t\t\n\t\tString sentenceLove = sentenceHate.replaceFirst(\"hate\", \"love\");\n\t\tSystem.out.println();\n\t\t\n\t\tSystem.out.println(\"I have rephrased that to read \"+ sentenceLove + \".\");\n\t\t\n\t}", "public String colouredText(String word) { //O(1)\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString colorWord = sb.append(ConsoleColour.RED_BRIGHT).append(word).append(ConsoleColour.RESET).toString();\n\t\treturn colorWord;\n\t}", "@Override\n\t\tpublic float getBoldOffset() {\n\t\t\treturn 0.5F;\n\t\t}", "private void verbos(String texto, ArrayList<String> listaVerbos){\n\t Document doc = new Document(texto);\n\t for (Sentence sent : doc.sentences()) { \n//\t \tSystem.out.println(\"sent.length() \"+sent.length());\n\t for(int i=0; i < sent.length(); i++) {\n\t \t//adicionando o verbo a lista dos identificados\n\t\t \tString temp = sent.posTag(i);\n\t\t if(temp.compareTo(\"VB\") == 0) {\n//\t\t \tSystem.out.println(\"O verbo eh \" + sent.word(i));\n\t\t\t listaVerbos.add(sent.word(i));\n\t\t }\n\t\t else {\n//\t\t \tSystem.out.println(\"Não verbo \" + sent.word(i));\n\t\t }\n\t }\n\t }\n \tSystem.out.println(\"Os verbos sao:\");\n \tSystem.out.println(listaVerbos);\n\n\t}", "public static void main(String[] args) { String s = \"catsanddog\";\n// List<String> wordDict = new ArrayList<>(Arrays.asList(\"cat\", \"cats\", \"and\", \"sand\", \"dog\"));\n//\n String s = \"pineapplepenappl\";\n List<String> wordDict = new ArrayList<>(Arrays.asList(\"apple\", \"pen\", \"applepen\", \"pine\", \"pineapple\"));\n\n WordBreak140 tmp = new WordBreak140();\n tmp.wordBreak(s, wordDict);\n }", "public String blackText(String word) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString colorWord = sb.append(ConsoleColour.BLACK).append(word).append(ConsoleColour.RESET).toString();\n\t\treturn colorWord;\n\t}", "Stream<CharSequence> toWords(CharSequence sentence);", "public void setBold(org.openxmlformats.schemas.presentationml.x2006.main.CTEmbeddedFontDataId bold)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTEmbeddedFontDataId target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTEmbeddedFontDataId)get_store().find_element_user(BOLD$4, 0);\n if (target == null)\n {\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTEmbeddedFontDataId)get_store().add_element_user(BOLD$4);\n }\n target.set(bold);\n }\n }", "void sayAnything(String word, int times) {\n\t\tfor (int i = 1; i<=times; i++) {\n\t\t\tSystem.out.println(word);\n }\n}", "public static void main(String[] args) {\n String s = \"applepenapple\";\n List<String> wordDict = new ArrayList<>();\n wordDict.add(\"apple\");\n wordDict.add(\"pen\");\n// String s = \"catsandog\";\n// List<String> wordDict = new ArrayList<>();\n// wordDict.add(\"cats\");\n// wordDict.add(\"dog\");\n// wordDict.add(\"sand\");\n// wordDict.add(\"cat\");\n\n System.out.println(wordBreak2(s, wordDict));\n }", "public void sayText(String normal, String altered){\n\t\tvoiceGen.sayText(normal, altered);\n\t}", "public static String blue(String text){\n return ANSI_BLUE + text + ANSI_BLUE;\n }", "public static String findReplacements(TreeSet<String> dictionary, \n\t\t\t\t\t String word)\n\t{\n\t String replacements = \"\";\n\t String leftHalf, rightHalf, newWord;\n\t int deleteAtThisIndex, insertBeforeThisIndex;\n\t char index;\n\t TreeSet<String> alreadyDoneNewWords = new TreeSet<String>();\n\t /* The above TreeSet<String> will hold words that the spell checker\n\t suggests as replacements. By keeping track of what has already\n\t been suggested, the method can make sure not to output the\n\t same recommended word twice. For instance, the word \n\t \"mispelled\" would ordinarily result in two of the same suggested\n\t replacements: \"misspelled\" (where the additional \"s\" is added to \n\t different locations.) */\n\t \n\t // First, we'll look for words to make by subtracting one letter\n\t // from the misspelled word.\n\t for(deleteAtThisIndex = 0; deleteAtThisIndex < word.length();\n\t\tdeleteAtThisIndex ++)\n\t\t{\n\t\t if(deleteAtThisIndex == 0)\n\t\t\t{\n\t\t\t leftHalf = \"\";\n\t\t\t rightHalf = word;\n\t\t\t}\n\t\t else\n\t\t\t{\n\t\t\t leftHalf = word.substring(0, deleteAtThisIndex);\n\t\t\t rightHalf = word.substring(deleteAtThisIndex+1,\n\t\t\t\t\t\t word.length());\n\t\t\t}\n\n\t\t newWord = \"\";\n\t\t newWord = newWord.concat(leftHalf);\n\t\t newWord = newWord.concat(rightHalf);\n\t\t if(dictionary.contains(newWord) &&\n\t\t !alreadyDoneNewWords.contains(newWord))\n\t\t\t{\n\t\t\t replacements = replacements.concat(newWord + \"\\n\");\n\t\t\t alreadyDoneNewWords.add(newWord);\n\t\t\t}\n\t\t}\n\n\t // The rest of this method looks for words to make by adding a \n\t // new letter to the misspelled word.\n\t for(insertBeforeThisIndex = 0; \n\t\tinsertBeforeThisIndex <= word.length();\n\t\tinsertBeforeThisIndex ++)\n\t\t{\n\t\t if(insertBeforeThisIndex == word.length())\n\t\t\t{\n\t\t\t leftHalf = word;\n\t\t\t rightHalf = \"\";\n\t\t\t}\n\t\t else\n\t\t\t{\n\t\t\t leftHalf = word.substring(0,insertBeforeThisIndex);\n\t\t\t rightHalf = word.substring(insertBeforeThisIndex,\n\t\t\t\t\t\t word.length());\n\t\t\t}\n\t\t \n\t\t for(index = 'a'; index <= 'z'; index ++)\n\t\t\t{\n\t\t\t newWord = \"\";\n\t\t\t newWord = newWord.concat(leftHalf);\n\t\t\t newWord = newWord.concat(\"\" + index + \"\");\n\t\t\t newWord = newWord.concat(rightHalf);\n\t\t\t \n\t\t\t if(dictionary.contains(newWord) &&\n\t\t\t !alreadyDoneNewWords.contains(newWord))\n\t\t\t\t{\n\t\t\t\t replacements \n\t\t\t\t\t= replacements.concat(newWord + \"\\n\");\n\t\t\t\t alreadyDoneNewWords.add(newWord);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t return replacements;\n\t}", "public String convertToUpperCase(String word);", "@Override\n public void replaceOneWord(String from, String to) {\n Collections.replaceAll(wordsLinkedList, from, to);\n }", "public String makeTags(String tag, String word) {\r\n return \"<\" + tag + \">\" + word + \"</\" + tag + \">\";\r\n }", "private static void printLatinWord(String s) {\n\t\tif (s.length() < 2|| !s.matches(\"\\\\w*\")) {\n\t\t\tSystem.out.print(s+\" \");\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.print(s.replaceAll(\"(\\\\w)(\\\\w*)\", \"$2$1ay \"));\n\t}", "public NormalSwear(String word) {\n this.word = word;\n }" ]
[ "0.66438925", "0.6497964", "0.6088421", "0.6033191", "0.5942503", "0.56917536", "0.5628829", "0.5602498", "0.5598146", "0.5558829", "0.55343485", "0.5532305", "0.5481303", "0.54798365", "0.5468019", "0.5435474", "0.5387743", "0.53809905", "0.5341887", "0.530592", "0.52895457", "0.52754354", "0.52753174", "0.5261519", "0.52417123", "0.52357423", "0.52199626", "0.52085173", "0.52018416", "0.5192076", "0.51917285", "0.5181983", "0.51749545", "0.51711637", "0.5141924", "0.51337224", "0.5120364", "0.50965", "0.5085721", "0.5082036", "0.5080176", "0.5068357", "0.50413465", "0.5034487", "0.50264597", "0.5025982", "0.5022637", "0.5017594", "0.5008545", "0.50043535", "0.49918962", "0.49911597", "0.49848622", "0.49743176", "0.49710163", "0.49687898", "0.49671233", "0.49650782", "0.49551702", "0.49465743", "0.49348706", "0.4934128", "0.49320757", "0.4912601", "0.49109906", "0.49036598", "0.4898146", "0.48902136", "0.48737466", "0.48674566", "0.48643312", "0.48588026", "0.48524976", "0.4850996", "0.48463088", "0.48406294", "0.48405626", "0.48362535", "0.48335364", "0.4826779", "0.4826156", "0.48220897", "0.48156664", "0.48116535", "0.4810813", "0.4805757", "0.48043972", "0.48041147", "0.4802968", "0.47973865", "0.479117", "0.47911128", "0.4784264", "0.47821197", "0.47754174", "0.47736835", "0.4766157", "0.47627318", "0.47576368", "0.47467157" ]
0.71257746
0
parse the HTML to delete all figures
public String parseHTML(String html) { int endIndex; for (int startIndex = html.indexOf("<figure"); startIndex >= 0; startIndex = html.indexOf("<figure")) { endIndex = html.indexOf("figure>", startIndex); if (endIndex == -1) { break; } String sub = html.substring(startIndex, endIndex + 7); html = html.replace(sub, ""); } for (int startIndex = html.indexOf("<span class=\"editsection"); startIndex >= 0; startIndex = html.indexOf("<span class=\"editsection")) { endIndex = html.indexOf("span>", startIndex); if (endIndex == -1) { break; } String sub = html.substring(startIndex, endIndex + 5); html = html.replace(sub, ""); } for (int startIndex = html.indexOf("<img"); startIndex >= 0; startIndex = html.indexOf("<img")) { endIndex = html.indexOf("img>", startIndex); if (endIndex == -1) { break; } String sub = html.substring(startIndex, endIndex + 5); html = html.replace(sub, ""); } return html; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void cleanPharagraph() {\n postBodyHTMLContent = postBodyHTMLContent.replaceAll(\"[<](\\\\s+)?p[^>]*[>]\", \"\");\n\n // replace closing p tag with <br> to indicate paragraph\n postBodyHTMLContent = postBodyHTMLContent.replaceAll(\"[<](\\\\s+)?(/)(\\\\s+)?p[^>]*[>]\", \"<br>\");\n }", "public String cleanHtmlTextForPlayer(String unrefinedHtmlText) {\n\n String figureRemove = replaceAllCharacter(unrefinedHtmlText, ConstantUtil.HTML_EXTRACT_FIGURE_REGEX, ConstantUtil.BLANK);\n String figcaptionRemove = replaceAllCharacter(figureRemove, ConstantUtil.HTML_EXTRACT_FIGCAPTION_REGEX, ConstantUtil.BLANK);\n String almostRefinedText = figcaptionRemove.replaceAll(ConstantUtil.HTML_EXTRACT_IMG_REGEX, ConstantUtil.BLANK);\n return almostRefinedText;\n\n }", "protected void cleanupFigureLabelEditor()\n {\n if (editor != null) {\n editor.cleanup();\n }\n }", "public void RemoveAllGraphs() {\n EquationCardLayout.removeAll();\n lineGraphs.clear();\n CurrentEQ = \"\";\n EQNum = 0;\n AddNewGraph();\n Canvas.removeAll();\n Canvas.repaint();\n }", "private void cleanConditionally(Element e, String tag) {\n\n if (!cleanConditionally) {\n return;\n }\n\n Elements tagsList = e.getElementsByTag(tag);\n int curTagsLength = tagsList.size();\n\n /**\n * Gather counts for other typical elements embedded within. Traverse backwards so we can remove nodes\n * at the same time without effecting the traversal. TODO: Consider taking into account original\n * contentScore here.\n **/\n for (int i = curTagsLength - 1; i >= 0; i--) {\n Element ee = tagsList.get(i);\n if (ee.ownerDocument() == null) {\n continue; // it a child of something we've already killed, so it\n // has no document.\n }\n double weight = getClassWeight(ee);\n double contentScore = getContentScore(ee);\n\n LOG.debug(\"Cleaning Conditionally [\" + ee.getClass() + \"] (\" + ee.className() + \":\" + ee.id()\n + \")\" + contentScore);\n\n if (weight + contentScore < 0) {\n LOG.debug(\"Negative content score\");\n ee.remove();\n } else if (getCharCount(ee, ',') < 10) {\n /**\n * If there are not very many commas, and the number of non-paragraph elements is more than\n * paragraphs or other ominous signs, remove the element.\n **/\n int p = ee.getElementsByTag(\"p\").size();\n int img = ee.getElementsByTag(\"img\").size();\n int li = ee.getElementsByTag(\"li\").size() - 100;\n int input = ee.getElementsByTag(\"input\").size();\n\n Elements embeds = ee.getElementsByTag(\"embed\");\n int embedCount = embeds.size();\n // removed code that pays specific attention to youtube.\n double linkDensity = getLinkDensity(ee);\n int contentLength = ee.text().length();\n boolean toRemove = false;\n\n if (img > p) {\n toRemove = true;\n } else if (li > p && !\"ul\".equals(tag) && !\"ol\".equals(tag)) {\n toRemove = true;\n } else if (input > Math.floor(p / 3)) {\n toRemove = true;\n } else if (contentLength < 25 && (img == 0 || img > 2)) {\n toRemove = true;\n } else if (weight < 25 && linkDensity > 0.2) {\n toRemove = true;\n } else if (weight >= 25 && linkDensity > 0.5) {\n toRemove = true;\n } else if ((embedCount == 1 && contentLength < 75) || embedCount > 1) {\n toRemove = true;\n }\n\n if (toRemove) {\n LOG.debug(\"failed keep tests.\");\n ee.remove();\n }\n }\n }\n }", "public void clearFaceletsHtmlCash() {\r\n \t\tfaceletsHtmlTagInfoCache.clear();\r\n \t\ttldFaceletsHtmlElementsByPrefix.clear();\r\n \t}", "private void cleanHeaders(Element e) {\n for (int headerIndex = 1; headerIndex < 3; headerIndex++) {\n Elements headers = e.getElementsByTag(\"h\" + headerIndex);\n for (int i = headers.size() - 1; i >= 0; i--) {\n if (getClassWeight(headers.get(i)) < 0 || getLinkDensity(headers.get(i)) > 0.33) {\n headers.get(i).remove();\n }\n }\n }\n }", "private static void clearDoc() {\r\n\t\ttry {\r\n\t\t\tdoc.remove(0, doc.getLength());\r\n\t\t} catch (BadLocationException e) {\r\n\t\t}\r\n\t}", "private void cleanReporter(){\n File file = new File(\"test-report.html\");\n file.delete();\n\n }", "private void clean(Element e, String tag) {\n Elements targetList = e.getElementsByTag(tag);\n targetList.remove();\n }", "private void htmlStaticsticsParagraphs() throws Exception{\n\t\tElements listP = htmlParsed.select(\"p\");\n\t\tMap<String,Boolean> option = new HashMap<>();\n\t\toption.put(\"currency\", true);\n\t\toption.put(\"table\", true);\n\t\toption.put(\"list\", true);\n\t\toption.put(\"p\", true);\n\t\ttextStatisticsElements(listP, \"p\", option);\n\t\tcomputeElementstatistics(listP, \"p\", option);\n\t}", "@Override\n\tpublic void removeAll() {\n\t\tfor (Paper paper : findAll()) {\n\t\t\tremove(paper);\n\t\t}\n\t}", "private static String removeVisibleHTMLTags(String str) {\n str = stripLineBreaks(str);\n StringBuffer result = new StringBuffer(str);\n StringBuffer lcresult = new StringBuffer(str.toLowerCase());\n \n // <img should take care of smileys\n String[] visibleTags = {\"<img\"}; // are there others to add?\n int stringIndex;\n for ( int j = 0 ; j < visibleTags.length ; j++ ) {\n while ( (stringIndex = lcresult.indexOf(visibleTags[j])) != -1 ) {\n if ( visibleTags[j].endsWith(\">\") ) {\n result.delete(stringIndex, stringIndex+visibleTags[j].length() );\n lcresult.delete(stringIndex, stringIndex+visibleTags[j].length() );\n } else {\n // need to delete everything up until next closing '>', for <img for instance\n int endIndex = result.indexOf(\">\", stringIndex);\n if (endIndex > -1) {\n // only delete it if we find the end! If we don't the HTML may be messed up, but we\n // can't safely delete anything.\n result.delete(stringIndex, endIndex + 1 );\n lcresult.delete(stringIndex, endIndex + 1 );\n }\n }\n }\n }\n \n // TODO: This code is buggy by nature. It doesn't deal with nesting of tags properly.\n // remove certain elements with open & close tags\n String[] openCloseTags = {\"li\", \"a\", \"div\", \"h1\", \"h2\", \"h3\", \"h4\"}; // more ?\n for (int j = 0; j < openCloseTags.length; j++) {\n // could this be better done with a regular expression?\n String closeTag = \"</\"+openCloseTags[j]+\">\";\n int lastStringIndex = 0;\n while ( (stringIndex = lcresult.indexOf( \"<\"+openCloseTags[j], lastStringIndex)) > -1) {\n lastStringIndex = stringIndex;\n // Try to find the matching closing tag (ignores possible nesting!)\n int endIndex = lcresult.indexOf(closeTag, stringIndex);\n if (endIndex > -1) {\n // If we found it delete it.\n result.delete(stringIndex, endIndex+closeTag.length());\n lcresult.delete(stringIndex, endIndex+closeTag.length());\n } else {\n // Try to see if it is a self-closed empty content tag, i.e. closed with />.\n endIndex = lcresult.indexOf(\">\", stringIndex);\n int nextStart = lcresult.indexOf(\"<\", stringIndex+1);\n if (endIndex > stringIndex && lcresult.charAt(endIndex-1) == '/' && (endIndex < nextStart || nextStart == -1)) {\n // Looks like it, so remove it.\n result.delete(stringIndex, endIndex + 1);\n lcresult.delete(stringIndex, endIndex + 1);\n \n }\n }\n }\n }\n \n return result.toString();\n }", "private void cleanupRawTags(ArrayList p_tags)\n {\n // Find the paired tags that belong together.\n // !!! DO NOT RELY ON PAIRING STATUS. Some prop changes start\n // after <seg> but close after </seg> and even after </tu>!!!\n assignPairingStatus(p_tags);\n\n // Basic cleanup: remove surrounding <p> and inner <o:p>\n removeParagraphTags(p_tags);\n\n // Remove revision markers when they were ON accidentally\n // before translating documents or during an alignment task\n // (WinAlign).\n removePropRevisionMarkers(p_tags);\n\n // Cleanup INS/DEL revisions similarly.\n removeDelRevisions(p_tags);\n applyInsRevisions(p_tags);\n\n // WinAligned files can contain endnotes (and footnotes, but I\n // think in Word-HTML they're both endnotes).\n removeEndNotes(p_tags);\n\n // Remove empty spans that are created from superfluous\n // original formatting in Word (<span color=blue></span>)\n removeEmptyFormatting(p_tags);\n\n // Leave the rest to the Word-HTML Extractor.\n }", "public HTMLParser () {\r\n this.pagepart = null;\r\n }", "private static Document removePractice(Document doc) {\n NodeList typeList = doc.getElementsByTagName(\"type\");\n System.out.println(\"No images \" + typeList.getLength());\n try {\n for (int x = typeList.getLength() - 1; x >= 0; x--) {\n Element typeElement = (Element) typeList.item(x);\n String typeValue = typeElement.getFirstChild().getNodeValue();\n System.out.println(\"Type \" + typeValue);\n if (typeValue.equalsIgnoreCase(\"practice\")) {\n Element image = (Element) typeElement.getParentNode();\n image.getParentNode().removeChild(image);\n }\n }\n NodeList typeList2 = doc.getElementsByTagName(\"type\");\n System.out.println(\"No images after\" + typeList2.getLength());\n } catch (Exception e) {\n System.out.println(\"No practice images found\");\n return doc;\n }\n return doc;\n }", "public void endSvgFile(){\n\t\toutput += \"</g>\\n\" + \n\t\t\t\t\t\"</g>\\n\" +\n\t\t\t\t\t\"</svg>\\n\";\n\t}", "private void removeEmptyFormatting(ArrayList p_tags)\n {\n boolean b_changed = true;\n\n emptytag: while (b_changed)\n {\n for (int i = 0, max = p_tags.size() - 1; i < max; i++)\n {\n Object o1 = p_tags.get(i);\n Object o2 = p_tags.get(i + 1);\n\n if (o1 instanceof HtmlObjects.Tag\n && o2 instanceof HtmlObjects.EndTag)\n {\n HtmlObjects.Tag tag = (HtmlObjects.Tag) o1;\n HtmlObjects.EndTag etag = (HtmlObjects.EndTag) o2;\n\n if (tag.tag.equalsIgnoreCase(etag.tag)\n && tag.partnerId == etag.partnerId)\n {\n p_tags.remove(i + 1);\n p_tags.remove(i);\n\n continue emptytag;\n }\n }\n }\n\n b_changed = false;\n }\n }", "private void remove() {\n \t\tfor(int i = 0; i < 5; i++) {\n \t\t\trMol[i].setText(\"\");\n \t\t\trGrams[i].setText(\"\");\n \t\t\tpMol[i].setText(\"\");\n \t\t\tpGrams[i].setText(\"\");\n \t\t}\n }", "private void htmlStatisticsDiv() throws Exception{\n\t\tElements selectedDiv = new Elements(selectDiv());\n\t\tMap<String, Boolean> option = new HashMap<>();\n\t\toption.put(\"currency\", true);\n\t\toption.put(\"table\", true);\n\t\toption.put(\"list\", true);\n\t\toption.put(\"p\", true);\n\t\ttextStatisticsElements(selectedDiv,\"div\", option);\n\t\tcomputeElementstatistics(selectedDiv,\"div\", option);\n\t}", "private void cleanStyles(Element articleContent) {\n for (Element e : articleContent.getAllElements()) {\n e.removeAttr(\"style\");\n }\n }", "private static Set<String> scrapeHTML(String html) {\n\t\tSet<String> set = new HashSet<String>();\n\t\tint skipLength = 0;\n\t\tint counter = 0;\n\t\t// the subtraction of 15 is because of the number of characters in \n\t\t// \"<a href=\\\"/wiki/\", to avoid a index out of bounds error\n\t\tfor(int i = 0; i < html.length()-15; i++) {\n\t\t\tif(html.substring(i, i+15).equals(\"<a href=\\\"/wiki/\")) {\n\t\t\t\t// if format matches starts to check the following characters\n\t\t\t\t// to check if it does not contain a : or a #\n\t\t\t\tchar ch = html.charAt(i+15);\n\t\t\t\tString str = \"\";\n\t\t\t\tint count = 0;\n\t\t\t\twhile(html.charAt(i+count+15) != '\"'){\n\t\t\t\t\tif(html.charAt(i+count+15) == ':' || html.charAt(i+count+15) == '#') {\n\t\t\t\t\t\tstr = \"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tch = html.charAt(count+i+15);\n\t\t\t\t\tstr += ch;\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t\t\t// adds if the page name is not empty\n\t\t\t\tif(str != \"\")\n\t\t\t\tset.add(str);\n\t\t\t\tskipLength = str.length();\n\t\t\t\tcount = 0;\n\t\t}\n\t\t\ti += skipLength;\n\t\t\tskipLength = 0;\n\t\t\tcounter++;\n\t\n\t}\n\treturn set;\n}", "private void preserveNecessaryTag() {\n Whitelist whitelist = Whitelist.none();\n whitelist.addTags(\"br\", \"h2\", \"a\", \"img\", \"p\", \"b\", \"i\", \"pre\", \"li\");\n\n // preserve img and its src value\n whitelist.addAttributes(\"img\", \"src\");\n // allow this protocol inside img src attribute value\n whitelist.addProtocols(\"img\", \"src\", \"http\", \"https\", \"data\", \"cid\");\n\n // preserve anchor and its href value\n whitelist.addAttributes(\"a\", \"href\");\n // allow this protocols value inside href attribute value\n whitelist.addProtocols(\"a\", \"href\", \"http\", \"https\", \"data\", \"cid\");\n\n postBodyHTMLContent = Jsoup.clean(postBodyHTMLContent, whitelist);\n }", "public void clear() {\r\n\t\tthis.document = null;\r\n\t\tthis.elements.clear();\r\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate void removeTags(File file)\n\t{\n\t\tBufferedReader br = null;\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(Main.id + \".html\"));\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tString line = br.readLine();\n\t\t\tSystem.out.println(\"reading..\");\n\t\t\twhile (line != null) {\n\t\t\t\tsb.append(line);\n\t\t\t\tsb.append(System.lineSeparator());\n\t\t\t\tline = br.readLine();\n\t\t\t}\n\t\t\tString everything = sb.toString();\n\n\t\t\tDocument doc = Jsoup.parse(everything);\n\t\t\tPrintWriter writer = new PrintWriter(Main.id + \".html\");\n\n\t\t\tString text = doc.text().replaceAll(\" \", System.getProperty(\"line.separator\"));\n\n\t\t\twriter.write(text);\n\t\t\twriter.close();\n\n\t\t\tSystem.out.println(doc.text());\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tbr.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}", "private void removeParagraphTags(ArrayList p_tags)\n {\n // outer <p>\n p_tags.remove(0);\n p_tags.remove(p_tags.size() - 1);\n\n // <o:p>\n boolean b_found = false;\n for (int i = 0; i < p_tags.size() - 1; i++) // loop ok\n {\n Object o = p_tags.get(i);\n\n if (o instanceof HtmlObjects.Tag)\n {\n HtmlObjects.Tag tag = (HtmlObjects.Tag) o;\n\n if (tag.tag.equalsIgnoreCase(\"o:p\"))\n {\n p_tags.subList(i, i + 2).clear();\n b_found = true;\n break;\n }\n }\n }\n\n // if <o:p> was output, there also was a <span> around the\n // entire paragraph content.\n if (b_found)\n {\n p_tags.remove(0);\n p_tags.remove(p_tags.size() - 1);\n }\n }", "public void deleteElements(boolean saveChildren) {\n\t\tfor (XmlNode node: highlightedFields) {\n\t\t\t\n\t\t\tif (saveChildren) promoteAllChildrenToSiblings(node);\n\n\t\t\tXmlNode parentNode = node.getParentNode();\n\t\t\tparentNode.removeChild(node);\n\t\t}\n\t\thighlightedFields.clear();\n\t}", "private void removeRedundantGreyTable()\r\n \t{\r\n \t\tdeleteNodes(XPath.GREY_TABLE.query);\r\n \t}", "private void handlePP() {\n String inner = document.body().html();\n inner.replaceAll(\"<p></p>\", \"<p>\");\n document.body().html(inner);\n }", "public void cleanRemove(Element element){\n\t\tfor(Element el : element.getElements()){\n\t\t\tnifty.removeElement(nifty.getScreen(\"hud\"),el);\n\t\t}\n\t\tnifty.removeElement(nifty.getScreen(\"hud\"), element);\n\t\tnifty.executeEndOfFrameElementActions();\n\t}", "private void removeDelRevisions(ArrayList p_tags)\n {\n boolean b_changed = true;\n\n deltags: while (b_changed)\n {\n for (int i = 0, max = p_tags.size(); i < max; i++)\n {\n Object o = p_tags.get(i);\n\n if (o instanceof HtmlObjects.Tag)\n {\n HtmlObjects.Tag tag = (HtmlObjects.Tag) o;\n String original = tag.original;\n\n if (tag.tag.equalsIgnoreCase(\"span\")\n && original.indexOf(\"class=msoDel\") >= 0)\n {\n removeTagAndContent(p_tags, tag);\n\n continue deltags;\n }\n }\n }\n\n b_changed = false;\n }\n }", "private void Clean(){\n \t NodeIterable nodeit = graphModel.getGraph().getNodes();\n \t\n \t for (Node node : nodeit) {\n\t\t\t\n \t\t \n \t\t \n\t\t}\n \t\n }", "void coreDetach(CoreDocument document) throws DeferredParsingException;", "public void process()\n\t{\n\t\tthis.layers = new ArrayList<Layer>();\n\t\t\n\t\t/**\n\t\t * list of layers to remove\n\t\t */\n\t\tthis.layersToRemove = new ArrayList<Layer>();\n\t\t\n\t\t/**\n\t\t * find all layers we need to process in the document\n\t\t */\n\t\tthis.allLayers();\n\t\t\n\t\t/**\n\t\t * we'll remove all layers which are unused in psd\n\t\t */\n\t\tthis.removeUnusedLayers();\n\t\t\n//\t\tthis.discoverMaximumLayerDepth();\n\t\t\n\t\t/*this.showLayersInformation(this.layers);\n\t\tSystem.exit(0)*/;\n\t}", "private void del_file() {\n\t\tFormatter f;\n\t\ttry{\n\t\t\tf = new Formatter(url2); //deleting file content\n\t\t\tf.format(\"%s\", \"\");\n\t\t\tf.close();\t\t\t\n\t\t}catch(Exception e){}\n\t}", "int wkhtmltoimage_deinit();", "private void parseRawText() {\n\t\t//1-new lines\n\t\t//2-pageObjects\n\t\t//3-sections\n\t\t//Clear any residual data.\n\t\tlinePositions.clear();\n\t\tsections.clear();\n\t\tpageObjects.clear();\n\t\tcategories.clear();\n\t\tinterwikis.clear();\n\t\t\n\t\t//Generate data.\n\t\tparsePageForNewLines();\n\t\tparsePageForPageObjects();\n\t\tparsePageForSections();\n\t}", "public void unloadDocument() {\n\t\tfor (int i=0; i<jtp.getTabCount()-1; i++) {\n\t\t\t((XCDisplay)jtp.getComponentAt(i)).unloadDocument();\n\t\t}\n\t\t//jtp.removeChangeListener(jtp.getChangeListeners()[0]);\n\t\t//jtp.removeAll();\n\t}", "private void prepArticle(Element articleContent) {\n // we don't need to do this, we don't care\n cleanStyles(articleContent);\n // this replaces any break element or an nbsp with a plain break\n // element.\n // not needed. We will deal with breaks as we deal with breaks\n // killBreaks(articleContent);\n\n /* Clean out junk from the article content */\n cleanConditionally(articleContent, \"form\");\n clean(articleContent, \"object\");\n clean(articleContent, \"h1\");\n\n /**\n * If there is only one h2, they are probably using it as a header and not a subheader, so remove it\n * since we already have a header.\n ***/\n if (articleContent.getElementsByTag(\"h2\").size() == 1) {\n clean(articleContent, \"h2\");\n }\n clean(articleContent, \"iframe\");\n\n cleanHeaders(articleContent);\n\n /*\n * Do these last as the previous stuff may have removed junk that will affect these\n */\n cleanConditionally(articleContent, \"table\");\n cleanConditionally(articleContent, \"ul\");\n //could have no children, will crash then\n if (articleContent.children().size() != 0) {\n cleanConditionally(articleContent.child(0), \"div\");\n }\n\n /* Remove extra paragraphs */\n Elements articleParagraphs = articleContent.getElementsByTag(\"p\");\n for (Element para : articleParagraphs) {\n int imgCount = para.getElementsByTag(\"img\").size();\n int embedCount = para.getElementsByTag(\"embed\").size();\n int objectCount = para.getElementsByTag(\"object\").size();\n\n if (imgCount == 0 && embedCount == 0 && objectCount == 0 && para.text().matches(\"\\\\s*\")) {\n para.remove();\n }\n }\n\n Elements parasWithPreceedingBreaks = articleContent.getElementsByTag(\"br + p\");\n for (Element pe : parasWithPreceedingBreaks) {\n Element brElement = pe.previousElementSibling();\n brElement.remove();\n }\n }", "protected String parseHtml(String html) {\n\t\tString tokens = new String();\n\t\ttry {\n\t\t\tDocument document = Jsoup.parse(html);\n\t\t\tdocument.select(\"code,pre\").remove();\n\t\t\tString textcontent = document.text();\n\t\t\tArrayList<String> cleaned = removeSpecialChars(textcontent);\n\t\t\tfor (String token : cleaned) {\n\t\t\t\ttokens += token + \" \";\n\t\t\t}\n\t\t} catch (Exception exc) {\n\t\t\t// handle the exception\n\t\t}\n\t\treturn tokens;\n\t}", "private void clean() {\n //use iterator\n Iterator<Long> it = nodes.keySet().iterator();\n while (it.hasNext()) {\n Long node = it.next();\n if (nodes.get(node).adjs.isEmpty()) {\n it.remove();\n }\n }\n }", "private void deleteStylesheet() {\n\n// find start of the section\nString str = strBuf.toString();\nfinal int start = str.indexOf( SEC_START );\n\nif ( start == -1 ) {\n// section not contained, so just return ...\nreturn;\n}\n\n// find end of section\nfinal int end = str.indexOf( SEC_END, start );\n\n// delete section\nstrBuf.delete( start, end + 2 );\n}", "private void removeClosingTag(ArrayList p_tags, HtmlObjects.Tag p_tag)\n {\n for (int i = 0, max = p_tags.size(); i < max; i++)\n {\n Object o = p_tags.get(i);\n\n if (o instanceof HtmlObjects.EndTag)\n {\n HtmlObjects.EndTag etag = (HtmlObjects.EndTag) o;\n\n if (p_tag.tag.equalsIgnoreCase(etag.tag)\n && p_tag.partnerId == etag.partnerId)\n {\n p_tags.remove(i);\n return;\n }\n }\n }\n }", "private void removeClutterAroundMainContent()\r\n \t{\n \r\n \t\tNodes mainContent = xPathQuery(XPath.NON_STANDARD_MAIN_CONTENT.query);\r\n \t\tif (mainContent.size() > 0)\r\n \t\t\thasStandardLayout = false;\r\n \t\telse {\r\n \t\t\tmainContent = xPathQuery(XPath.MAIN_CONTENT_1.query);\r\n \t\t\tif (mainContent.size() == 0)\r\n \t\t\t\tmainContent = xPathQuery(XPath.MAIN_CONTENT_2.query);\r\n \t\t}\r\n \t\tdeleteNodes(XPath.BODY_NODES.query);\r\n \t\tmoveNodesTo(mainContent, bodyTag);\r\n \t}", "private boolean parseHTML(Webpage webpage) {\n Document doc;\n try {\n doc = Jsoup.parse(webpage.getHTML());\n } catch (Throwable t) {\n if(this.DEBUG)\n System.out.println(\"-> ERROR: Jsoup failed to parse the HTML file from \" + webpage.getWARCname() + \", skipping it.\");\n return true;\n }\n\n Elements elements = doc.getAllElements();\n\n //Extract number of HTML elements\n webpage.setNumHTMLelem(elements.size());\n\n //Extract DOCTYPE\n webpage.setDoctype(getDocumentType(doc));\n\n //Go through every HTML element\n for (Element element : elements) {\n //Add comments' information for all child elements\n webpage = addComments(webpage, element);\n\n //Add textual content to the pile, so we can get its total size later\n if (element.ownText() != null && !element.ownText().equals(\"\"))\n webpage.addTextContent(element.ownText());\n\n //Get HTML tag name\n String tag = Utils.removeLineBreaks(element.tagName().toLowerCase());\n\n //Add tag occurrence to the total of this page\n if (webpage.hasElement(tag))\n webpage.incrementElement(tag);\n else\n webpage.addElement(tag);\n\n //Process attributes for this element\n if (element.attributes().size() > 0) {\n webpage = processElementAttributes(webpage, element, tag);\n }\n\n //Process hyperlinks\n if (tag.equals(\"a\") || tag.equals(\"area\"))\n webpage = processHyperlinks(webpage, element);\n\n //Process images\n if (tag.equals(\"img\"))\n webpage = processImages(webpage, element);\n }\n\n return false;\n }", "@Test\n public void testImageFiltering()\n { \n String html = header + \"<img src=\\\"file://path/to/local/image.png\\\"/>\" + footer;\n Document doc = wysiwygHTMLCleaner.clean(new StringReader(html));\n NodeList nodes = doc.getElementsByTagName(\"img\");\n Assert.assertEquals(1, nodes.getLength());\n Element image = (Element) nodes.item(0);\n Node startComment = image.getPreviousSibling();\n Node stopComment = image.getNextSibling();\n Assert.assertEquals(Node.COMMENT_NODE, startComment.getNodeType());\n Assert.assertEquals(\"startimage:false|-|attach|-|Missing.png\", startComment.getNodeValue());\n Assert.assertEquals(\"Missing.png\", image.getAttribute(\"src\"));\n Assert.assertEquals(Node.COMMENT_NODE, stopComment.getNodeType());\n Assert.assertTrue(stopComment.getNodeValue().equals(\"stopimage\"));\n }", "public void clearFormats();", "public void reset()\n {\n pages.clear();\n ePortfolioTitle = \"\";\n selectedPage = null;\n }", "private void normaliseWhitespace() {\t\t\t\r\n\t\tdocument.normalizeDocument();\r\n\t\t\r\n\t\tif (document.getDocumentElement() == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tfinal Queue<Node> queue = Lists.newLinkedList();\r\n\t\tqueue.add(document.getDocumentElement());\r\n\t\twhile (!queue.isEmpty()) {\r\n\t\t\tfinal Node node = queue.remove();\r\n\t\t\tfinal NodeList children = node.getChildNodes();\r\n\t\t\tfor (int index = 0; index < children.getLength(); index++) {\r\n\t\t\t\tqueue.add(children.item(index));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (node.getNodeType() == Node.TEXT_NODE) {\r\n\t\t\t\tnode.setTextContent(node.getTextContent().trim());\r\n\t\t\t\tif (node.getTextContent().isEmpty()) {\r\n\t\t\t\t\tnode.getParentNode().removeChild(node);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static String getNormalizedDom(String html) {\n \t\n \tString s = Pattern.quote(html.toUpperCase());\n \t//String s = html;\n \t\n \ts = s.replaceAll(\"\\t\", \" \");\n \ts = s.replaceAll(\"\\n\", \" \");\n \ts = s.replaceAll(\" +\", \" \");\n \t//s = s.replaceAll(\"<SCRIPT.*>.*</SCRIPT>\", \"\");\n \ts = s.replaceAll(\"> *\", \">\");\n \ts = s.replaceAll(\" *<\", \"<\");\n \t\n \t/**s = s.replaceAll(\"(< *INPUT\" + wPat + \" \" + txtPat + wPat + \") \" + valPat +\"(\" + wPat + \">)\",\"$1 VALUE='' $2\");\n \ts = s.replaceAll(\"(< *INPUT\" + wPat + \") \" + valPat + \"( \" + wPat + txtPat + wPat + \">)\", \"$1 VALUE='' $2\");\n \t\n \ts = s.replaceAll(\"(< *INPUT\" + wPat + \" \" + pwdPat + wPat + \") \" + valPat +\"(\" + wPat + \">)\",\"$1 VALUE='' $2\");\n \ts = s.replaceAll(\"(< *INPUT\" + wPat + \") \" + valPat + \"( \" + wPat + pwdPat + wPat + \">)\", \"$1 VALUE='' $2\");**/\n \t\n \ts = s.replaceAll(\"(<\\\\w+)[^>]*(>)\",\"$1$2\");\n \t\n \treturn s;\n }", "public void clear(){\n\t\tfor (LinkedList<Line> list : lineLists){\n\t\t\tfor (Line l : list){\n\t\t\t\tpane.getChildren().remove(l);\n\t\t\t}\n\t\t\tlist.clear();\n\t\t}\n\t\tfor (Line l : bezierCurve){\n\t\t\tpane.getChildren().remove(l);\n\t\t}\n\t\tbezierCurve.clear();\n\t\t\n\t\tlineLists.clear();\n\t\tlineLists.add(new LinkedList<Line>());\n\t}", "public void clearRemovalTag() {\n\t levelOfRemoval = 0;\n\t}", "public String stripHtml(String content) {\n\n System.out.println(content);\n\n // <p>段落替换为换行\n content = content.replaceAll(\"</p>\", \"tabstr\");\n // <br><br/>替换为换行\n content = content.replaceAll(\"<br/>\", \"tabstr\");\n // 去掉其它的<>之间的东西\n content = content.replaceAll(\"\\\\<.*?>\", \"\");\n content = content.replaceAll(\"(&nbsp;){3,}\", \" \");\n content = content.replaceAll(\"(&nbsp;){2,}\", \" \");\n content = content.replaceAll(\"&nbsp;\", \" \");\n System.out.println(content);\n\n return content;\n }", "public void clear() {\n\t\t// setText() is buggy due html formatting :-(\n\t\t// need this little workaround\n\t\tsummaryEditorPane.setDocument( summaryEditorPane.getEditorKit().createDefaultDocument() );\n\t}", "public void cleanPile() {\n while (!emptyPile()) {\n eraseNode();\n }\n }", "private void clean() {\n nodesToRemove.clear();\n edgesToRemove.clear();\n }", "void figureRemovedAt(Location loc);", "public void suppressionRdV_all() {\n //on vide l'agenda de ses elements\n for (RdV elem_agenda : this.agd) {\n this.getAgenda().remove(elem_agenda);\n }\n //on reinitialise a null l'objet agenda\n //this.agd = null;\n }", "private static void go2(){\n\t\tString concreateURL = \"http://www.yixinhealth.com/%E5%8C%96%E9%AA%8C%E5%92%8C%E6%A3%80%E6%9F%A5/%E5%BF%83%E7%94%B5%E5%9B%BE/\"; \n\t\tConnection c = Jsoup.connect(concreateURL); \n\t\tc.timeout(10000);\n\t\ttry {\n\t\t\tDocument doc = c.get();\n\t\t\t//System.out.println(doc.html()); \n\t\t\t//System.out.println(doc.getElementById(\"content_area\").html());\n\t\t\t//Element eles = doc.getElementById(\"content_area\");\n\t\t\t//System.out.println(eles.html());\n\t\t\t\n\t\t\t//Below code is for the multiple link page\n\t\t\t//Elements eles2 = eles.getElementsByAttributeValue(\"style\", \"text-align: center;\");\n\t\t\t//System.out.println(eles2.html());\n\t\t\t/*for(Element ele: eles2){\n\t\t\t\tElements link = ele.getElementsByTag(\"a\");\n\t\t\t\t//System.out.println(link.html());\n\t\t\t\tfor (int i=0;i<link.size();i++) {\n\t\t\t\t\tSystem.out.println(link.get(i).attr(\"href\"));\n\t\t\t\t}\n\t\t\t}*/\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(eles2.html());\n\t\t\tElement eles = doc.getElementById(\"content_area\");\n\t\t\tElements eles2 = eles.getElementsByTag(\"img\");\n\t\t\tfor(int i=0;i<eles2.size();i++){\n\t\t\t\teles2.get(i).parent().attr(\"style\", \"text-align:center\");\n\t\t\t\teles2.get(i).parent().parent().nextElementSibling().attr(\"style\", \"text-align:center\");\n\t\t\t\teles2.get(i).attr(\"style\", \"width:50%\");\n\t\t\t}\n\t\t\t\n\t\t\tElements eles3 = eles.getElementsByClass(\"j-header\");\n\t\t\tfor (Element ele : eles3) {\n\t\t\t\tElements eleHeader = ele.getElementsByTag(\"h2\");\n\t\t\t\teleHeader.attr(\"style\", \"text-align:center\");\n\t\t\t}\n\t\t\tSystem.out.println(eles.html());\n\t\t\t\n\t\t\t//Below code is help to clear out the share icon to like Sina weibo\n\t\t\tElements eles4 = eles.getElementsByClass(\"bshare-custom\");\n\t\t\t//eles4.remove();\n\t\t\t\n\t\t\t//Elements eles3 = eles.getElementsByClass(\"n*j-imageSubtitle\");\n\t\t\t//System.out.println(eles3.size());\n\t\t\t/*for(int i=0;i<eles3.size();i++){\n\t\t\t\teles3.get(i).attr(\"style\", \"text-align:center;width:50%\");\n\t\t\t}\n\t\t\tSystem.out.println(eles.html());*/\n\t\t\t//System.out.println(eles2.get(0).attr(\"src\"));\n\t\t\t/*Element eles = doc.getElementById(\"content_area\");\n\t\t\tElements eles2 = eles.getElementsByClass(\"j-header\");\n\t\t\tfor (Element ele : eles2) {\n\t\t\t\tElements eleHeader = ele.getElementsByTag(\"h2\");\n\t\t\t\tSystem.out.println(\"Title---->\"+eleHeader.html()); \n\t\t\t}\n\t\t\tElements elesBody = eles.getElementsByClass(\"j-text\");\n\t\t\tSystem.out.println(\"Body---->\"+elesBody.html()); */\n\t\t\t//System.out.println(eles2.html()); \n /*List<String> nameList = new ArrayList<String>(); \n for (Element ele : eles) {\n \tString text = ele.select(\"h*\").text();\n \tSystem.out.println(text); \n String text = ele.select(\"span\").first().text(); \n if (text.length() > 1 && text.startsWith(\"▲\")) { \n \n if (Integer.parseInt(text.substring(1)) > 30) { \n // 在这里.html()和.text()方法获得的内容是一样的 \n System.out.println(ele.select(\"a\").first().html()); \n nameList.add(ele.select(\"a\").first().text()); \n } \n } \n } */\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@After\n public void removeEverything() {\n\n ds.delete(uri1);\n ds.delete(uri2);\n ds.delete(uri3);\n\n System.out.println(\"\");\n }", "public void remove() {\r\n // rather than going through replace(), just reinitialize the StyledText,\r\n // letting the old data structures fall on the floor\r\n fCharBuffer = new CharBuffer();\r\n fStyleBuffer = new StyleBuffer(this, AttributeMap.EMPTY_ATTRIBUTE_MAP);\r\n fParagraphBuffer = new ParagraphBuffer(fCharBuffer);\r\n fTimeStamp += 1;\r\n fDamagedRange[0] = fDamagedRange[1] = 0;\r\n }", "private void removeTagAndContent(ArrayList p_tags, HtmlObjects.Tag p_tag)\n {\n int i_start = 0;\n int i_end = 0;\n\n loop: for (int i = 0, max = p_tags.size(); i < max; i++)\n {\n Object o = p_tags.get(i);\n\n if (o == p_tag)\n {\n i_start = i;\n\n for (int j = i + 1; j < max; j++)\n {\n Object o1 = p_tags.get(j);\n\n if (o1 instanceof HtmlObjects.EndTag)\n {\n HtmlObjects.EndTag etag = (HtmlObjects.EndTag) o1;\n\n if (p_tag.tag.equalsIgnoreCase(etag.tag)\n && p_tag.partnerId == etag.partnerId)\n {\n i_end = j;\n break loop;\n }\n }\n }\n }\n }\n\n if (i_start >= 0 && i_end > i_start)\n {\n p_tags.subList(i_start, i_end + 1).clear();\n }\n }", "@ZAttr(id=1071)\n public void unsetDomainMandatoryMailSignatureHTML() throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraDomainMandatoryMailSignatureHTML, \"\");\n getProvisioning().modifyAttrs(this, attrs);\n }", "private void removeContentAfterIndexLink()\r\n \t{\r\n \t\tdeleteNodes(XPath.AFTER_INDEX_LINK.query);\r\n \t}", "public static void old_kategorien_aus_grossem_text_holen (String htmlfile) // alt, funktioniert zwar bis auf manche\n\t// dafür müsste man nochmal loopen um dien ächste zeile derü berschrift auch noch abzufangen bei <h1 class kategorie western\n\t// da manche bausteine in die nächste zeile verrutscht sind.\n\t// viel einfacher geht es aus dem inhaltsverzeichnis des katalogs die kategorien abzufangen.\n\t{\n\t\tmain mainobject = new main ();\n\t\t// System.out.println (\"Ermittle alle Kategorien (Gruppen, Oberkategorien)... 209\\n\");\n BufferedReader in = null;\n try {\n in = new BufferedReader(new FileReader(htmlfile));\n String zeile = null;\n int counter = 0;\n while ((zeile = in.readLine()) != null) {\n // System.out.println(\"Gelesene Zeile: \" + zeile);\n \t\n \t\n \t// 1. Pruefe ob die Zeile eine Kategorie ist: wenn ja Extrahiere diese KATEGORIE aus dem Code:\n \t// Schema <h1 class=\"kategorie-western\"><a name=\"_Toc33522153\"></a>Bescheide\n \t// Rücknahme 44 X\t</h1>\n \t/*if (zeile.contains(\"<h1\"))\n \t\t\t{\n \t\t\t// grussformeln:\n \t\tzeile.replace(\"class=\\\"kategorie-western\\\" style=\\\"page-break-before: always\\\">\",\"\");\n \t\t\n \t\t\t}\n \t*/\n \t// der erste hat immer noch ein page-break before: drinnen; alle anderen haben dann kategorie western ohne drin\n \tif (zeile.contains(\"<h1 class=\\\"kategorie-western\\\"\"))\n \t\t\t/*zeile.contains(\"<h1 class=\\\"kategorie-western\\\">\") /*|| zeile.contains(\"</h1>\")*/\n \t{\n \t\tSystem.out.println (zeile + \"\\n\"); // bis hier werden alle kategorien erfasst !\n \t\t\n \t\t// hier passiert es, dass vllt. die kategorie in die nächste Zeile gerutscht ist:\n \t\t// daher nochmal loopen und mit stringBetween die nächste einfangen:\n \t\t\n \t\tString kategoriename = \"\";\n \t/*\tif (zeile.contains(\"</h1>\") && !zeile.contains(\"<h1 class=\")) // das ist immer der fall wenn es in die nächste zeile rutscht , weil der string zu lang ist:\n \t\t{\n \t\t\t kategoriename = zeile.replace(\"</h1>\", \"\");\n \t\t}\n \t\telse\n \t\t{\n \t\t kategoriename = stringBetween(zeile, \"\\\"></a>\",\"</h1>\");\n \t\t}*/\n \t\t kategoriename = stringBetween(zeile, \"\\\"></a>\",\"</h1>\");\n \t\t \n \t\t if (! zeile.contains(\"</h1>\")) // dann ist es in die nächste Zeile gerutscht\n \t\t {\n \t\t\t // hole nächste Zeile und vervollständige damit kategorie:\n \t\t }\n\n \t\tif (kategoriename == null || kategoriename ==\"\")\n \t\t{\n \t\t\t// keine kategorie adden (leere ist sinnlos)\n \t\t}\n \t\n \t\t\tif (kategoriename.contains(\"lass=\\\"kategorie-western\\\">\"))\n \t\t\t{\n \t\t\t\tkategoriename.replace(\"lass=\\\"kategorie-western\\\">\", \"\");\n \t\t\t}\n \t\t\n \t\t\t//System.out.println (kategoriename + \"\\n\");\n \t\t/*\tkategoriename.replace(\"lass=\",\"\");\n \t\t\tkategoriename.replace(\"kategorie-western\",\"\");\n \t\t\tkategoriename.replace(\"\\\"\",\"\");\n \t\t\tkategoriename.replace(\">\",\"\");\n \t\t\tkategoriename.replace(\"/ \",\"\");*/\n\t \t\t//mainobject.kategoriencombo.addItem(kategoriename);\n\n \t\tcount_kategorien = count_kategorien+1;\n \t\t//kategorienamen[count_kategorien] = kategoriename;\n \t\t//System.out.println (\"Kat Nr.\" + count_kategorien + \" ist \" + kategoriename+\"\\n\" );\n\n \t\t// Schreibe die Kategorien in Textfile:\n \t\tFileWriter fwk1 = new FileWriter (\"kategorien.txt\",true);\n \t\tfwk1.write(kategoriename+\"\\n\");\n \t\tfwk1.flush();\n \t\tfwk1.close();\n \t\t\n \t\t\n \t}\n \t\n\n \n \t// 2. Pruefe ob die Zeile der Name eines Textbausteins ist d.h. Unterkateogrie:\n \t//<p style=\"margin-top: 0.21cm; page-break-after: avoid\"><a name=\"_Toc33522154\"></a>\n \t//Ablehnung erneute Überprüfung</p>\n // System.out.println (\"Ermittle alle Unterkateogrien (d.h. Textbausteinnamen an sich)... 243\\n\");\n\n \tif (zeile.contains(\"<p style=\\\"margin-top: 0.21cm; page-break-after: avoid\\\"><a name=\"))\n \t{\n \t\t// manchmal kommt es vor, dass die textbaustein namen also die unterkateogorie über mehrere zeilen geht:\n \t\t\t// dann sollte der zweite teil in der nächsten Zeile auch noch mit angefügt werden:\n \t\t\tString zweiterteil_der_zeile = in.readLine()+1;\n \t\t\tString komplette_zeile_der_unterkategorie = zeile+zweiterteil_der_zeile;\n \t\tString unterkategorie = stringBetween(komplette_zeile_der_unterkategorie, \"\\\"></a>\",\"</p>\"); // = textbausteine\n \t\tif (unterkategorie == null || unterkategorie ==\"\")\n \t\t{\n \t\t\t// keine unterkategorie adden (leere ist sinnlos) = keine leeren textbausteine \n \t\t}\n \t\telse\n \t\t{\n \t\t\tunterkategorie.replace(\" \", \"\"); // leere raus\n \t\t\t\n \t\t\t\n\t \t\t//System.out.println (kategoriename + \"\\n\");\n\t \t\t//mainobject.bausteinecombo.addItem(unterkategorie);\n\n \t\t\tcount_unterkategorien = count_unterkategorien+1; // anzahl der bausteine anhand der bausteinnamen ermitteln \n \t\t\t// Schreibe die unter Kategorien in Textfile:\n\t \t\tFileWriter fwk2 = new FileWriter (\"unterkategorien.txt\",true);\n\t \t\tfwk2.write(unterkategorie+\"\\n\");\n\t \t\tfwk2.flush();\n\t \t\tfwk2.close();\n\n \t\t//unterkategorienamen[count_unterkategorien] = unterkategorie;\n \t\t// (= hier unterkateogrienamen)\n \t\t\n \t\t\n \t // parts.length = anzahl der bausteine müsste gleich count_unterkategorien sein.\n \t // jetzt zugehörigen baustein reinschreiben:\n \t // also je nach count_unterkateogerien dann den parts[count] reinschrieben:\n \t /* try {\n \t\t\tfwb.write(parts[count_unterkategorien]);\n \t\t} catch (IOException e) {\n \t\t\t// TODO Auto-generated catch block\n \t\tSystem.out.println(\"503 konnte datei mit baustein nicht schreiben\");\n \t\t}\n \t \n \t */\n \t \n\n \t\t}\n \t\t\n \t\t\n \t\t \n \t} // if zeile contains\n \t\t \n \n }\t// while\n \n } // try\n catch (Exception y)\n {}\n \t\t \n \t\t \n\t \t// <p style=\"margin-left: 0.64cm; font-weight: normal\"> usw... text </p> sthet immer dazwischen\n\t \t/*if (zeile.contains(\"<p style=\\\"margin-left: 0.64cm; font-weight: normal\\\">\"))\n\t \t{\n\t \t\t// manchmal kommt es vor, dass die textbaustein namen also die unterkateogorie über mehrere zeilen geht:\n \t\t\t// dann sollte der zweite teil in der nächsten Zeile auch noch mit angefügt werden:\n \t\t\tString zweiterteil_der_zeile = in.readLine()+1;\n \t\t\tString komplette_zeile_der_unterkategorie = zeile+zweiterteil_der_zeile;\n\t \t\tString unterkategorie = stringBetween(komplette_zeile_der_unterkategorie, \"\\\"></a>\",\"</p>\"); // = textbausteine\n\t \t\tif (unterkategorie == null || unterkategorie ==\"\")\n\t \t\t{\n\t \t\t\t// keine unterkategorie adden (leere ist sinnlos) = keine leeren textbausteine \n\t \t\t}\n\t \t\telse\n\t \t\t{\n\t \t\t\tunterkategorie.replace(\" \", \"\"); // leere raus\n\t \t\t\t\n\t \t\t\t\n\t\t \t\t//System.out.println (kategoriename + \"\\n\");\n\t \t\tmainobject.bausteinecombo.addItem(unterkategorie);\n\t \t\t}\n\t \t}\n\t \t*/\n System.out.println (\"Alle Oberkategorien, Namen erfolgreich ermittelt und eingefügt 239\\n\");\n\n System.out.println (\"Alle Unterkategorien oder Bausteinnamen erfolgreich eingefügt 267\\n\");\n\n \n \n\t}", "@Override\n\t\t\tpublic void onFetchedTags(FetchedTagsEvent event) {\n\t\t\t\tselectedTag.setHTML(\"\");\n\t\t\t\treportTable.clear();\n\t\t\t\treportTable.removeAllRows();\n\t\t\t\t\n\t\t\t\trenderTags(event.getTags());\n\t\t\t}", "public static Set<String> parser(String html){\r\n\r\n\t\tSet<String> urls = new HashSet<String>();\r\n\t\tString regex = \"<a.*?/a>\";\r\n\t\tPattern pt = Pattern.compile(regex);\r\n\t\tMatcher matcher = pt.matcher(html);\r\n\t\twhile(matcher.find()){\r\n\t\t\t//获取网址\r\n//\t\t\tSystem.out.println(\"Group:\"+matcher.group());\r\n\t\t\tMatcher myurl = Pattern.compile(\"href=\\\".*?\\\">\").matcher(matcher.group());\r\n\t\t\tif(myurl.find()){\r\n\t\t\t\tdo{\r\n\t\t\t\t\tString temp = myurl.group();\r\n\t\t\t\t\tif(!temp.startsWith(\"javascript\") && !temp.startsWith(\"/\") && ! temp.startsWith(\"#\")){\r\n\t\t\t\t\t\tString url = myurl.group().replaceAll(\"href=\\\"|\\\">\",\"\");\r\n\t\t\t\t\t\tif(url.contains(\"http\")){\r\n\t\t\t\t\t\t\tif(url.contains(\"\\\"\")){\r\n\t\t\t\t\t\t\t\turl = url.substring(0, url.indexOf(\"\\\"\"));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif(!url.contains(\"$\") && !url.contains(\" \")){\r\n\t\t\t\t\t\t\t\turls.add(url);\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}while(myurl.find());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn urls;\r\n\t}", "private List<Elements> extractHTMLInfo(String url) throws IOException {\r\n\r\n //All required info to be collected is within the <section> tag\r\n Element sectionTag = Jsoup.connect(url).get().select(\"section\").get(0);\r\n\r\n List<Elements> list = new ArrayList();\r\n\r\n //Banner img Tag\r\n list.add(sectionTag.select(\"img\"));\r\n\r\n //TimeTag\r\n list.add(sectionTag.select(\"header\").select(\"time\"));\r\n\r\n //Article Title\r\n list.add(sectionTag.select(\"header\").select(\"h2 a\"));\r\n\r\n //Author\r\n list.add(sectionTag.select(\"header\").select(\"p a\"));\r\n\r\n //Content Body HTML\r\n list.add(sectionTag.select(\"article\").select(\"div\"));\r\n\r\n return list;\r\n }", "private void htmlGlobalTagStatistics() throws MalformedURLException {\n\t\tfinal List<String> anchorLinks = new ArrayList<>();\n\t\tfinal List<String> imgLinks = new ArrayList<>();\n\t\tfinal List<String> anchorImgLinks = new ArrayList<>();\n\t\tfinal List<Integer> countNbImgGif = new ArrayList<>();\n\t\tfinal List<Integer> countNbScriptOutside = new ArrayList<>();\n\t\thtmlParsed.traverse(new NodeVisitor(){\n\t\t\tString attributeValue = \"\";\n\t\t\tpublic void head(Node node, int depth){\n\t\t\t\tif (node instanceof Element){\n\t\t\t\t\tElement tag = (Element) node;\n\t\t\t\t\tif(tag.tagName().equals(\"a\")){\n\t\t\t\t\t\tattributeValue = tag.attr(\"href\");\n\t\t\t\t\t\tif(attributeValue.length() > 0) {\n\t\t\t\t\t\t\tanchorLinks.add(attributeValue);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if(tag.tagName().equals(\"img\")){\n\t\t\t\t\t\tattributeValue = tag.attr(\"src\");\n\t\t\t\t\t\tif(attributeValue.length() > 0){\n\t\t\t\t\t\t\timgLinks.add(attributeValue);\n\t\t\t\t\t\t\tif(attributeValue.endsWith(\".gif\")){\n\t\t\t\t\t\t\t\tcountNbImgGif.add(1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(tag.parent().tagName().equals(\"a\")) {\n\t\t\t\t\t\t\t\tanchorImgLinks.add(attributeValue);\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\telse if(tag.tagName().equals(\"script\")){\n\t\t\t\t\t\tattributeValue = tag.attr(\"src\");\n\t\t\t\t\t\tif(attributeValue.length() > 0)\n\t\t\t\t\t\t\tcountNbScriptOutside.add(1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t public void tail(Node node, int depth) {\n\t\t }\n\t\t});\t\n\t\t\n\t\tint nbYearImgLink = anchorImgLinks.stream()\n\t\t\t\t.mapToInt(ClassificationGeneralFunctions::countNbOfYears)\n\t\t\t\t.sum();\n\t\t\t\t\n\t\tint nbYearAnchorLink = 0;\n\t\tint nbLinkSameDomain = 0;\n\t\tint nbLinkOutside = 0;\n\t\tint nbHrefJavascript = 0;\n\t\tString domain = new URL(url).getHost().toLowerCase();\n\t\tfor(String link: anchorLinks){\n\t\t\tlink = link.toLowerCase();\n\t\t\tnbYearAnchorLink += ClassificationGeneralFunctions.countNbOfYears(link);\n\t\t\tif(link.startsWith(\"http\")){\n\t\t\t\tif(link.contains(domain)) {\n\t\t\t\t\tnbLinkSameDomain += 1;\n\t\t\t\t}else {\n\t\t\t\t\tnbLinkOutside += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(link.startsWith(\"javascript\")){\n\t\t\t\t\tnbHrefJavascript += 1;\n\t\t\t\t}else {\n\t\t\t\t\tnbLinkSameDomain += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\thtmlStatistics.put(\"img\", (double) imgLinks.size());\n\t\thtmlStatistics.put(\"img_gif\",(double) countNbImgGif.size());\n\t\thtmlStatistics.put(\"script_outside\", (double) countNbScriptOutside.size());\n\t\thtmlStatistics.put(\"anchor_with_image\", (double) anchorImgLinks.size());\n\t\thtmlStatistics.put(\"year_link_img\", (double) nbYearImgLink);\n\t\thtmlStatistics.put(\"year_link_anchor\", (double) nbYearAnchorLink);\n\t\thtmlStatistics.put(\"links_same_domains\", (double) nbLinkSameDomain);\n\t\thtmlStatistics.put(\"links_to_outside\", (double) nbLinkOutside);\n\t\thtmlStatistics.put(\"href_javascript\", (double) nbHrefJavascript);\n\t}", "private String[] extractPure(String data) throws Exception {\n\t\tString[] result1 = this.extractBetween(data.toString(), \"<title>\", \"</title>\", true, true);\n\t\t\n\t\t// remove search title bar\n\t\tresult1[1] = this.replaceBetween(result1[1], \"<div class=\\\"lotusTitleBar2\\\">\", \"<div class=\\\"lotusMain\\\">\", \"\");\n\t\t\n\t\t// remove left column\n\t\tresult1[1] = this.replaceBetween(result1[1], \"<div class=\\\"lotusColLeft\\\"\", \"<div class=\\\"lotusContent\\\"\", \"\");\n\t\t\n\t\t// remove body\n\t\tString[] result2 = this.extractBetween(result1[1], \"<div class=\\\"lotusContent\\\" role=\\\"main\\\">\", \"</table></div></div>\", true, true);\n\t\tresult2[1] = result2[1].substring(8);\n\t\t\n\t\t// return\n\t\treturn new String[]{result1[0], result2[0], result2[1]};\n\t\t\n\t}", "@JavascriptInterface\n @SuppressWarnings(\"unused\")\n public void processHTML(String html) {\n\n Element content;\n String value = \"\";\n try {\n org.jsoup.nodes.Document doc = Jsoup.parse(html, \"UTF-8\");\n content = doc.getElementsByClass(\"rupee\").get(0);\n value = content.text();\n } catch (Exception e) {\n e.printStackTrace();\n }\n listener.update(value);\n }", "private List<Element> selectDiv(){\n\t\tElements allDiv = htmlParsed.select(\"div\");\n\t\treturn allDiv.stream().filter(div -> div.children().select(\"div\").isEmpty()).collect(Collectors.toList());\n\t}", "public void clearLinkRemovalTags() {\n\tfor (Link l : allLinks)\n\t l.clearRemovalTag();\n }", "@Override\n\tpublic void delete(String name) {\n\t\tdocument.removeChild(document.getElementsByTagName(name).item(0));\n\t\tsaveDocument();\n\t}", "private void clean() {\n // TODO: Your code here.\n for (Long id : vertices()) {\n if (adj.get(id).size() == 1) {\n adj.remove(id);\n }\n }\n }", "void clean();", "void clean();", "void clean();", "void coreDetach() throws DeferredParsingException;", "String extractContentFromDocument(BotswanaCourtDocument bcd, String htmlfile,int startpage,int endpage){\n\t\t//dom tree structured in two formats example for 1st format(47-98) USA.1947.002 and for 2nd format(1998.25 - 2013) USA.2000.003\n\t\tDocument document = null;\n\t\tFile input = new File(htmlfile);\n\t\tString textContent = null;\n\t \t\n\t\tif( htmlfile == null ){\n\t\t\tSystem.out.println(\"File name is not valid\");\n\t\t}\n\t\telse{\n\t\t\ttry{\n\t\t\t\tdocument = Jsoup.parse(input,\"UTF-8\");\n\t\t\t\tString htmlText = document.body().toString();\n\t\t\t\tString textToBeExtracted = document.select(\"title\").text();\n\t \tSystem.out.println(\"text extracted =\"+textToBeExtracted);\n\t \t\n\t \t\n\t \tPattern pattern = Pattern.compile(\"\\\\((.*?)\\\\)\");\n\t \tMatcher matcher = pattern.matcher(textToBeExtracted);\n\t \tArrayList<String> matchedDataArray = new ArrayList<String>();\n\t \twhile(matcher.find()){\n\t \t\tmatchedDataArray.add(matcher.group());\n\t \t}\n\t \tif(matchedDataArray.size()>0){\n\t \t\tint firstIndex = textToBeExtracted.indexOf(matchedDataArray.get(matchedDataArray.size()-2)); \n\t\t \tif(firstIndex == -1){\n\t\t \t\tbcd.setParticipantsName(textToBeExtracted);\n\t\t \t}\n\t\t \telse{\n\t\t \t\tbcd.setParticipantsName(textToBeExtracted.substring(0,firstIndex-1));\n\t\t \t}\n\t\t \tbcd.setDecisionDate( matchedDataArray.get(matchedDataArray.size()-1));\n\t\t \tbcd.setCaseId(matchedDataArray.get(matchedDataArray.size()-2));\n\t\t \t\n\t \t}\n\t \telse{\n\t \t\tbcd.setParticipantsName(textToBeExtracted);\n\t \t\tbcd.setDecisionDate(\"\");\n\t\t \tbcd.setCaseId(\"\");\n\t \t}\n\t \t\n//\t \tint indexOfParticipantsEnd = textToBeExtracted.indexOf(\"[\");\n//\t \tString participantsName = textToBeExtracted.substring(0,indexOfParticipantsEnd-1);\n//\t \tbcd.setParticipantsName(participantsName);\n//\t \t\n//\t \tint indexOfDateStart = textToBeExtracted.indexOf(\"(\");\n//\t \tint indexOfDateEnd = textToBeExtracted.indexOf(\")\");\n//\t \tString decideDate = textToBeExtracted.substring(indexOfDateStart+1, indexOfDateEnd-1);\n//\t \tbcd.setDecisionDate(decideDate);\n//\t \t\n//\t \t\n//\t \tString caseIDPatternString = \"SC ([0-9]+/[0-9]+|CRI [0-9]+/[0-9]+)\";\n//\t \tPattern caseidPattern = Pattern.compile(caseIDPatternString);\n//\t \tMatcher caseidMatcher = caseidPattern.matcher(htmlText);\n//\t \t\n//\t \tString caseID =\"\";\n//\t \twhile (caseidMatcher.find()) {\n//\t \t\tcaseID = caseidMatcher.group();\n//\t \t \n//\t \t}\n//\t \tbcd.setCaseId(caseID);\n\t \t\n\t \ttextContent = htmlText;\n\t \t\n\t \t\n\t \t}\n\t \tcatch(Exception e){\n\t \t\tSystem.out.println(\"Error in parsing html : \" + e.getMessage());\n\t \t}\n\t\t}\n\t\treturn textContent;\n\t}", "public void clean();", "public void clean();", "public void clean();", "public void clean();", "public SimpleProduct3WithSpecialPriceDetailPage removeProductGalleryFromSimpleProduct3tWithSpecialPrice() {\n SpriiTestFramework.getInstance().waitForElement(By.xpath(firstImageElement), 20);\n Actions actions = new Actions(driver);\n WebElement target = driver.findElement(By.xpath(firstImageElement));\n actions.moveToElement(target).perform();\n SpriiTestFramework.getInstance().waitForElement(By.xpath(removeElement), 20);\n driver.findElement(By.xpath(removeElement)).click();\n return new SimpleProduct3WithSpecialPriceDetailPage();\n }", "protected void removeAllChildNodes(Node elem) {\n NodeList<Node> childNodes = elem.getChildNodes();\n for (int i = childNodes.getLength() - 1; i >= 0; i--) {\n elem.removeChild(childNodes.getItem(i));\n }\n }", "public void unsetItalic()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(ITALIC$6, 0);\n }\n }", "public SimpleProductWithSpecialPriceDetailPage removeProductGalleryFromSimpleProducttWithSpecialPrice() {\n SpriiTestFramework.getInstance().waitForElement(By.xpath(firstImageElement), 20);\n Actions actions = new Actions(driver);\n WebElement target = driver.findElement(By.xpath(firstImageElement));\n actions.moveToElement(target).perform();\n SpriiTestFramework.getInstance().waitForElement(By.xpath(removeElement), 20);\n driver.findElement(By.xpath(removeElement)).click();\n return new SimpleProductWithSpecialPriceDetailPage();\n }", "@Test\n public void test() throws IOException {\n String url = \"http://blog.csdn.net/seatomorrow/article/details/48393547\";\n Readability readability = new Readability(getDoc(url)); // URL\n readability.init();\n String cleanHtml = readability.outerHtml();\n System.out.println(cleanHtml);\n }", "void retainOutlineAndBoundaryGrid() {\n\t\tfor (final PNode child : getChildrenAsPNodeArray()) {\n\t\t\tif (child != selectedThumbOutline && child != yellowSIcolumnOutline && child != boundary) {\n\t\t\t\tremoveChild(child);\n\t\t\t}\n\t\t}\n\t\tcreateOrDeleteBoundary();\n\t}", "@Override\n public ArrayList<String> fetchData(String html) {\n ArrayList<String> data = new ArrayList<>();\n// Document document = Jsoup.parse(html);\n// Element content = document.selectFirst(\"div\").child(1).child(1).child(2);\n// data.add(content.selectFirst(\"h3\").text());\n// data.add(content.selectFirst(\"em\").text());\n// data.add(content.selectFirst(\"h4\").nextElementSibling().nextElementSibling().text());\n// try {\n// data.add(content.select(\"h4\").get(1).nextElementSibling().nextElementSibling().text());\n// }\n// catch (Exception ex) {}\n return data;\n }", "public void doSomething() throws NumberFormatException, PluginException {\r\n brbefore = br.toString();\r\n ArrayList<String> someStuff = new ArrayList<String>();\r\n ArrayList<String> regexStuff = new ArrayList<String>();\r\n regexStuff.add(\"<\\\\!(\\\\-\\\\-.*?\\\\-\\\\-)>\");\r\n regexStuff.add(\"(display: none;\\\">.*?</div>)\");\r\n regexStuff.add(\"(visibility:hidden>.*?<)\");\r\n for (String aRegex : regexStuff) {\r\n String lolz[] = br.getRegex(aRegex).getColumn(0);\r\n if (lolz != null) {\r\n for (String dingdang : lolz) {\r\n someStuff.add(dingdang);\r\n }\r\n }\r\n }\r\n for (String fun : someStuff) {\r\n brbefore = brbefore.replace(fun, \"\");\r\n }\r\n }", "private void cleanGarbageInfos()\r\n\t{\r\n\t\tfinal Iterator<SubscriberInfo> lIter = this.subscriberInfos.iterator();\r\n\t\twhile (lIter.hasNext())\r\n\t\t{\r\n\t\t\tfinal SubscriberInfo lInfo = lIter.next();\r\n\t\t\tif (lInfo.isGarbage())\r\n\t\t\t{\r\n\t\t\t\tlIter.remove();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void removeInsTag(ArrayList p_tags, HtmlObjects.Tag p_tag)\n {\n int i_start = 0;\n int i_end = 0;\n\n loop: for (int i = 0, max = p_tags.size(); i < max; i++)\n {\n Object o = p_tags.get(i);\n\n if (o == p_tag)\n {\n i_start = i;\n\n for (int j = i + 1; j < max; j++)\n {\n Object o1 = p_tags.get(j);\n\n if (o1 instanceof HtmlObjects.EndTag)\n {\n HtmlObjects.EndTag etag = (HtmlObjects.EndTag) o1;\n\n if (p_tag.tag.equalsIgnoreCase(etag.tag)\n && p_tag.partnerId == etag.partnerId)\n {\n i_end = j;\n break loop;\n }\n }\n }\n }\n }\n\n if (i_start >= 0 && i_end > i_start)\n {\n p_tags.subList(i_end - 1, i_end + 1).clear();\n p_tags.subList(i_start, i_start + 2).clear();\n }\n }", "@Override public List<Node> visitText(@NotNull XQueryParser.TextContext ctx) {\n\t\tfor(int i = 0; i < r.size(); ){\n\t\t\tif(r.get(i).getNodeType() != Node.TEXT_NODE ){\n\t\t\t\tr.remove(i);\n\t\t\t} else i++;\n\t\t}\n\t\treturn visitChildren(ctx);\n\t}", "public static void main(String[] args) throws MalformedURLException, IOException{\n TagStripper ts = new TagStripper();\n\n // open an url connection to the specified adress\n URL url = new URL(\"http://sv.wikipedia.org/wiki/Henrik_VIII_av_England\");\n InputStreamReader input = new InputStreamReader(url.openConnection().getInputStream());\n\n // use the tag stripper to strip most of the tags\n String result = ts.stripHTML(input);\n\n //print the result\n System.out.println(result);\n }", "static void parseIt() {\n try {\n long start = System.nanoTime();\n int[] modes = {DET_MODE, SUM_MODE, DOUBLES_MODE};\n String[] filePaths = {\"\\\\catalogue_products.xml\", \"\\\\products_to_categories.xml\", \"\\\\doubles.xml\"};\n HashMap<String, String[]> update = buildUpdateMap(remainderFile);\n window.putLog(\"-------------------------------------\\n\" + updateNodes(offerNodes, update) +\n \"\\nФайлы для загрузки:\");\n for (int i = 0; i < filePaths.length; i++) {\n // Define location for output file\n File outputFile = new File(workingDirectory.getParent() + filePaths[i]);\n pushDocumentToFile(outputFile, modes[i]);\n printFileInfo(outputFile);\n }\n window.putLog(\"-------------------------------------\\nВсего обработано уникальных записей: \" +\n offerNodes.size());\n long time = (System.nanoTime() - start) / 1000000;\n window.putLog(\"Завершено без ошибок за \" + time + \" мс.\");\n offerNodes = null;\n //window.workshop.setParseButtonDisabled();\n } catch (TransformerException e) {\n reportException(Thread.currentThread(),\n new RuntimeException(e.getCause() + \" (\" + e.getException() + \")\\n\\t\" + e.getMessageAndLocation()));\n } catch (ParserConfigurationException e) {\n reportException(Thread.currentThread(),\n new RuntimeException(e.getCause() + \"\\n\\t\" + e.getLocalizedMessage()));\n } catch (SAXException e) {\n reportException(Thread.currentThread(),\n new RuntimeException(\"SAXexception: \" + e.getMessage()));\n\n } catch (IOException e) {\n reportException(Thread.currentThread(),\n new RuntimeException(e.getCause() + \"\\n\\t\" + e.getMessage() + \". \" + e.getStackTrace()[0]));\n }\n }", "public void removeAllOfficialArtistWebpage() {\r\n\t\tBase.removeAll(this.model, this.getResource(), OFFICIALARTISTWEBPAGE);\r\n\t}", "public void destroy() {\n\t\tfor (ANodeAttributeRenderer attributeRenderer : attributeRenderers) {\n\t\t\tattributeRenderer.unregisterPickingListeners();\n\t\t}\n\t}", "private Element removeSubElements(Element p_seg)\n {\n ArrayList elems = new ArrayList();\n\n findSubElements(elems, p_seg);\n\n for (int i = 0; i < elems.size(); i++)\n {\n Element sub = (Element)elems.get(i);\n\n removeSubElement(sub);\n }\n\n return p_seg;\n }" ]
[ "0.5847313", "0.5660514", "0.53572124", "0.53306407", "0.5267574", "0.5262387", "0.52516896", "0.52312356", "0.5209022", "0.5166629", "0.51650405", "0.5149708", "0.514563", "0.5137376", "0.5082595", "0.5062539", "0.50517315", "0.50511783", "0.49772823", "0.4975673", "0.49600384", "0.49509907", "0.4944126", "0.49387652", "0.49345452", "0.48963705", "0.4880796", "0.48208266", "0.48187423", "0.48173493", "0.48170805", "0.48160526", "0.4792716", "0.47856835", "0.47578517", "0.4747948", "0.47299483", "0.47272336", "0.47258025", "0.47024298", "0.46937752", "0.46884608", "0.46863323", "0.46809673", "0.46793163", "0.46521986", "0.4646047", "0.46350086", "0.46196523", "0.4617432", "0.46114582", "0.4608754", "0.46050188", "0.46015245", "0.45962194", "0.45951056", "0.45879367", "0.45868826", "0.45866048", "0.45632356", "0.45458218", "0.45393243", "0.45362896", "0.45362127", "0.45347756", "0.45284593", "0.4520197", "0.45177305", "0.45050842", "0.4497016", "0.4496277", "0.4495994", "0.44912067", "0.44902444", "0.44899893", "0.44853044", "0.44853044", "0.44853044", "0.44776332", "0.44772822", "0.44772762", "0.44772762", "0.44772762", "0.44772762", "0.4477179", "0.44754976", "0.4474172", "0.4463343", "0.44598377", "0.44587457", "0.44555777", "0.444768", "0.4446586", "0.4446198", "0.44455466", "0.44385618", "0.4435627", "0.4431916", "0.44253987", "0.4425142" ]
0.67551976
0
open the notes dialog fragment
public void getNotes(String type, String name, String oldNote) { DialogFragment dialog = new InputFragment(); Bundle extra = new Bundle(); extra.putString("type", type); extra.putString("name", name); extra.putString("oldNote", oldNote); dialog.setArguments(extra); dialog.show(fragmentManager, "dialog"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void MoodRatingAddNoteDialog() {\n FragmentManager manager = getFragmentManager();\n Fragment frag = manager.findFragmentByTag(\"fragment_add_note\");\n if (frag != null) {\n manager.beginTransaction().remove(frag).commit();\n }\n fragmentAddNote fraAddNoteDialog = new fragmentAddNote();\n fraAddNoteDialog.setTargetFragment(this, DIALOG_ADDNOTE);\n\n fraAddNoteDialog.show(getFragmentManager().beginTransaction(), \"fragment_add_note\");\n }", "@Override\n public void onClick(View view) {\n\n NoteData newNote = new NoteData();\n String header = tagNewHeader.getText().toString();\n String note = tagNewNotes.getText().toString();\n newNote.setNote(header\n + DocumentPOJOUtils.DOC_NOTE_HEADER_DELIMITER\n + note\n );\n newNote.setOwner(globalVariable.getCurrentUser().getName());\n\n TabbedDocumentDialog listener = MappingUtilities.getTabbedDialog(getFragmentManager().getFragments());\n listener.onFinishEditDialog(newNote);\n CreateDocNotesDialog.super.dismiss();\n\n }", "void openNote(Note note, int position);", "@Override\n public void onClick(View view) {\n\n startActivity(new Intent(MainActivity.this,InsertNotesActivity.class));\n }", "@Override\n\t\t\t\tpublic void onClick(View view) {\n\t\t\t\t\tIntent i = new Intent(view.getContext(), OpenNote.class);\n\t\t\t\t\ti.putExtra(\"ID\", lyrics.get(getBindingAdapterPosition()).getID());\n\t\t\t\t\tview.getContext().startActivity(i);\n\t\t\t\t}", "@Override\n public void onClick(View v) {\n noteDialog.dismiss();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n \tUri uri = Uri.parse(\"http://l-sls0483d.research.ltu.se/userdata/notes/\"+param1+\"/notes.html\");\n \t\t\n \t\n \t\tIntent intent = new Intent(Intent.ACTION_VIEW, uri);\n \t\tstartActivity(intent);\n \n }", "@Override\n\t\t\tpublic void onClick(View v) {\n \tUri uri = Uri.parse(\"http://l-sls0483d.research.ltu.se/userdata/notes/\"+param1+\"/notes.html\");\n \t\n \t\tIntent intent = new Intent(Intent.ACTION_VIEW, uri);\n \t\tstartActivity(intent);\n }", "private void openDialog() {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(getString(R.string.allmark));\n\t\tfinal List<ReaderTags> listData = ReaderDataBase\n\t\t\t\t.getReaderDataBase(this);\n\t\tif (listData.size() > 0) {\n\t\t\tListView list = new ListView(this);\n\t\t\tfinal MTagAdapter myAdapter = new MTagAdapter(this, listData);\n\t\t\tlist.setAdapter(myAdapter);\n\t\t\tlist.setOnItemClickListener(new OnItemClickListener() {\n\t\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\tJump(arg2, listData, myAdapter);\n\t\t\t\t}\n\t\t\t});\n\t\t\tlist.setOnItemLongClickListener(new OnItemLongClickListener() {\n\n\t\t\t\tpublic boolean onItemLongClick(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\tdeleteOneDialog(arg2, listData, myAdapter);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t});\n\t\t\tbuilder.setView(list);\n\t\t} else {\n\t\t\tTextView txt = new TextView(this);\n\t\t\ttxt.setText(getString(R.string.nomark));\n\t\t\ttxt.setPadding(10, 5, 0, 5);\n\t\t\ttxt.setTextSize(16f);\n\t\t\tbuilder.setView(txt);\n\t\t}\n\t\tbuilder.setNegativeButton(getString(R.string.yes),\n\t\t\t\tnew OnClickListener() {\n\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.show();\n\t}", "@Override\n public void onClick(View v) {\n String note = edit_note.getText().toString().trim();\n noteDialog.dismiss();\n setNote(note);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(MainActivity.this, CreateNoteActivity.class);\n startActivity(intent);\n }", "private void openAddDialog(){\n DialogFragment dialog = new AddLocationDialog();\n dialog.show(getFragmentManager(), getText(R.string.map_ask_add).toString());\n }", "private void MoodRatingSummaryDialog(String note) {\n FragmentManager manager = getFragmentManager();\n Fragment frag = manager.findFragmentByTag(\"fragment_add_note\");\n if (frag != null) {\n manager.beginTransaction().remove(frag).commit();\n }\n DialogFragment fraMoodSummartDialog = fragmentMoodSummary.newInstance(note);\n fraMoodSummartDialog.setTargetFragment(this, DIALOG_ADDNOTE);\n\n fraMoodSummartDialog.show(getFragmentManager().beginTransaction(), \"fragment_add_note\");\n }", "public void howtouse(View view) {\n showdialog();\n }", "private void startListActivity() {\n\t\tCursor c = mDbHelper.fetchAllNotes(TableName);\n\t\tString[] from = new String[]{NotesDbAdapter.KEY_TITLE};\n\t\tint[] to = new int[] {android.R.id.text1 };\n\t\tnotes = new SimpleCursorAdapter(this,android.R.layout.simple_list_item_1,c,from, to);\n\t\t\n\t\t////\n\t\tlv = (ListView) findViewById(R.id.titleList2);\n\t\tlv.setAdapter(adapter);\n\t\t\n\t\tlv.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t\t\t\t\tCursor c = mDbHelper.fetchNote(TableName,arg3);\n\t\t\t\t\t\t\t\tstartActivity(c.getString(1),c.getString(2),arg3);\n\t\t\t}\n\t\t});\n\t\tlv.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic boolean onItemLongClick(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tDialogButton a = new DialogButton(ctx,TableName,arg3);\n\t\t\t\ta.createEdit();\n\t\t\t\ta.show();\t\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\n\t\t\t\n\t\t});\n\t}", "@Override\n public void onClick(View v) {\n DialogFragment fragment = ExpandedImageDialogFragment.newInstance(note);\n fragment.show(mActivity.getFragmentManager(), \"expandedimagefragment\");\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsmsDialog= new Comments();\n\t\t\t\tsmsDialog.show(getSupportFragmentManager(), \"sms\");\n\t\t\t}", "protected void editNote()\n\t{\n\t\tActivity rootActivity = process_.getRootActivity();\n\t\tActivityPanel rootActivityPanel = processPanel_.getChecklistPanel().getActivityPanel(rootActivity);\n\t\tActivityNoteDialog activityNoteDialog = new ActivityNoteDialog(rootActivityPanel);\n\t\tint dialogResult = activityNoteDialog.open();\n\t\tif (dialogResult == SWT.OK) {\n\t\t\t// Store the previous notes to determine below what note icon to use\n\t\t\tString previousNotes = rootActivity.getNotes();\n\t\t\t// If the new note is not empty, add it to the activity notes\n\t\t\tif (activityNoteDialog.getNewNote().trim().length() > 0)\n\t\t\t{\n\t\t\t\t// Get the current time\n\t\t\t\tString timeStamp = new SimpleDateFormat(\"d MMM yyyy HH:mm\").format(Calendar.getInstance().getTime());\n\t\t\t\t// Add the new notes (with time stamp) to the activity's notes.\n\t\t\t\t//TODO: The notes are currently a single String. Consider using some more sophisticated\n\t\t\t\t// data structure. E.g., the notes for an activity can be a List of Note objects. \n\t\t\t\trootActivity.setNotes(rootActivity.getNotes() + timeStamp + \n\t\t\t\t\t\t\" (\" + ActivityPanel.AGENT_NAME + \"):\\t\" + activityNoteDialog.getNewNote().trim() + \"\\n\");\n\t\t\t}\n\t\t\t\n\t\t\t// Determine whether the note icon should change.\n\t\t\tif (previousNotes.trim().isEmpty())\n\t\t\t{\n\t\t\t\t// There were no previous notes, but now there are -- switch to image of note with text \n\t\t\t\tif (!rootActivity.getNotes().trim().isEmpty())\n\t\t\t\t\tactivityNoteButton_.setCurrentImage(noteWithTextImage_);\n\t\t\t}\n\t\t\telse // There were previous notes, but now there aren't -- switch to blank note image\n\t\t\t\tif (rootActivity.getNotes().trim().isEmpty())\n\t\t\t\t\tactivityNoteButton_.setCurrentImage(noteWithoutTextImage_);\n\t\t\t// END of determine whether the note icon should change\n\t\t\t\n\t\t\t// Set the tooltip text of the activityNoteButton_ to the current notes associated with the activity. \n\t\t\tactivityNoteButton_.setToolTipText(rootActivity.getNotes());\n\t\t\t\n\t\t\tprocessHeaderComposite_.redraw();\t// Need to redraw the activityNoteButton_ since its image changed.\n\t\t\t// We redraw the entire activity panel, because redrawing just the activityNoteButton_ \n\t\t\t// causes it to have different background color from the activity panel's background color\n\t\t\tSystem.out.println(\"Activity Note is \\\"\" + rootActivity.getNotes() + \"\\\".\");\n\t\t}\n\t}", "public void showNoticeDialog() {\n DialogFragment dialog = new MyDialog();\n dialog.show(getSupportFragmentManager(), \"NoticeDialogFragment\");\n }", "@Override\r\n\tpublic void onVersesNotes(String book, int chapter, ArrayList<Integer> verses) {\n\t\tfor (int i = 0; i < verses.size() ; i++) \r\n\t\t\tLog.d(LiteralWord.TAG, TAG + \" Tagged : \" + book + \" \" + Integer.toString(chapter) + \":\" + Integer.toString(verses.get(i)));\r\n\r\n\t\tViewFlipper myNotePanel = ((ViewFlipper) findViewById(R.id.notes_p));\r\n\t\tif (myNotePanel != null) {\r\n\t\t\t\r\n\t\t\t// pull up notes page\r\n\t\t\tif (myNotePanel.getVisibility() == View.GONE)\r\n\t\t\t\topenNotesList(myNotePanel);\r\n\t\t\t\r\n\t\t\tif (myNotePanel.getDisplayedChild() == 0)\r\n\t\t\t\tmyNotePanel.showNext();\r\n\r\n\t\t\t\r\n\t\t\t// create a new note\r\n\t\t\tNoteEditFragment myNote = ((NoteEditFragment) getSupportFragmentManager().findFragmentByTag(\r\n\t\t\t\t\tNOTEEDIT_PANEL));\r\n\t\t\tif (myNote == null) {\r\n\t\t\t\tLog.d(LiteralWord.TAG, TAG + \" - Why do i not exist?!\");\r\n\t\t\t} else {\r\n\t\t\t\tmyNote.onHandleIntent(new Intent());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tLog.d(LiteralWord.TAG, TAG + \" - Handling Intent\");\r\n\r\n\t\t} else {\r\n\t\t\tIntent i = new Intent(this, NoteEdit.class);\r\n\t\t\ti.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);\r\n\t\t\tstartActivity(i);\r\n\t\t}\r\n\r\n\t}", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\n\t\t\t\t\tdialog.show();\n\t\t\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_notes, container, false);\n\n btnNotes = view.findViewById(R.id.nt_btnNotes);\n btnHumor = view.findViewById(R.id.nt_btnHumor);\n btnSintoma = view.findViewById(R.id.nt_btnSintoma);\n\n btnNotes.setOnClickListener(v -> {\n Intent i = new Intent(getActivity(), List_Activity.class);\n startActivity(i);\n setBtnNotesId(1);\n });\n\n btnHumor.setOnClickListener(v -> {\n Intent i = new Intent(getActivity(), List_Activity.class);\n startActivity(i);\n setBtnNotesId(2);\n });\n\n btnSintoma.setOnClickListener(v -> {\n Intent i = new Intent(getActivity(), List_Activity.class);\n startActivity(i);\n setBtnNotesId(3);\n });\n\n return view;\n }", "public void open(){\n dialog.setLocation\n (parent.getLocation().x + 10, parent.getLocation().y + 10);\n dialog.setSize(PREF_SIZE);\n dialog.setResizable(false);\n dialog.setVisible(true);\n dialog.setResizable(true);\n }", "public void showNoticeDialog() {\n DialogFragment dialog = new OptionDialog();\n dialog.show(getSupportFragmentManager(), \"NoticeDialogFragment\");\n }", "private void showAudioFilebrowserDialog() {\n\t\tFragmentTransaction ft = getFragmentManager().beginTransaction();\n\t\tFilebrowserDialogFragment fbdf = new FilebrowserDialogFragment();\n\t\tfbdf.show(ft, \"dialog\");\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_edit, container, false);\n final EditText editHeading= (EditText) view.findViewById(R.id.editHeading);\n final EditText editNotes= (EditText) view.findViewById(R.id.editNotes);\n Button edit= (Button) view.findViewById(R.id.edit);\n String heading = getArguments().getString(\"Heading\");\n String notes=getArguments().getString(\"Notes\");\n final int position=getArguments().getInt(\"position\");\n editHeading.setText(heading);\n editNotes.setText(notes);\n edit.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String newH=editHeading.getText().toString();\n String newN=editNotes.getText().toString();\n MyDatabase db=new MyDatabase(getActivity());\n db.updateNotes(position,newH,newN);\n getFragmentManager().popBackStack();\n }\n });\n return view;\n }", "void onItemClick(Note note);", "private void openNotification(int position) {\n Notification notificationToOpen = mNoteWithNotificationList.get(position).getNotification();\n\n try {\n db.getNotificationFromNotificationID(notificationToOpen.getId());\n Intent intent = new Intent(activity.getApplicationContext(), NotificationEditorActivity.class);\n intent.putExtra(\"NOTIFICATION_ID\", notificationToOpen.getId());\n activity.startActivityForResult(intent, 0);\n } catch (Exception e) {\n Toast.makeText(activity, activity.getResources().getString(R.string.notification_open_error), Toast.LENGTH_LONG);\n }\n\n refresh();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\n\t\t\t\tshowdialog();\n\n\t\t\t}", "public void diler(View view) {\n//dialogi stexcman mek ayl dzev en kirarel\n dialog_diler.show();\n }", "public void addNewNote(MenuItem item){\n \t\tIntent intent = new Intent(this, ActivityNote.class);\n \t\tstartActivity(intent);\n \t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(NoteListActivity.this,\r\n\t\t\t\t\t\tEditNoteActivity.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}", "public void openDialog(){\n DialogforTheboysHeroImage dialogforTheboysHeroImage = new DialogforTheboysHeroImage();\n dialogforTheboysHeroImage.show(getSupportFragmentManager(), \"Heros info\");\n }", "public void showDialog(Context context) {\n \n }", "public void onClick(View view) {\n\n openDialog();\n }", "public void openDialog(){\n if (!isAdded()) return;\n homeViewModel.getAllSets().removeObservers(getViewLifecycleOwner());\n ChooseSetDialog dialog = new ChooseSetDialog(setsTitles);\n dialog.show(getChildFragmentManager(), \"choose_set_dialog\");\n dialog.setOnSelectedListener(choice -> {\n Word word = new Word(setsObjects.get(choice).getId(), original, translation);\n homeViewModel.insertWord(word);\n original=\"\"; translation=\"\";\n etOrigWord.setText(\"\"); etTransWord.setText(\"\");\n });\n }", "public void showDialog() {\n mDialogInfoWithTwoButtons = new DialogInfoWithTwoButtons(mContext,\n new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n saveTemplate(mToastEdited);\n mDialogInfoWithTwoButtons.getDialog().dismiss();\n }\n }, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mTemplateId = mDatabaseManager.getTemplateNewId();\n mPreferenceManager.setTemplateId(mTemplateId);\n saveTemplate(mToastCreated);\n mDialogInfoWithTwoButtons.getDialog().dismiss();\n }\n }, mTitle, mMessage, mTitleButtonOne, mTitleButtonTwo);\n mDialogInfoWithTwoButtons.getDialog().show();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n \tUri uri = Uri.parse(\"http://l-sls0483d.research.ltu.se/userdata/notes/\"+param1+\"/cchat.html\");\n \t\t\n \t\tIntent intent = new Intent(Intent.ACTION_VIEW, uri);\n \t\tstartActivity(intent);\n }", "void showDialog() {\n\t\tDFTimePicker dtf = DFTimePicker.newInstance();\n DialogFragment newFragment = dtf;\n newFragment.show(getFragmentManager(), \"dialog\");\n }", "@Override\n public void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.bookmarks);\n dbHelper = new Db(this);\n db = dbHelper.getWritableDatabase();\n final Bookmarks current_activity = this;\n ((Button)findViewById(R.id.new_bookmark)).setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n current_activity.showDialog(DIALOG_LABEL);\n \t}\n });\n }", "public void noteOptionTextButtonClicked(View button) {\n Intent i = new Intent(this, NoteTypeTextActivity.class);\n startActivity(i);\n }", "public void showOptions() {\n this.popupWindow.showAtLocation(this.layout, 17, 0, 0);\n this.customview.findViewById(R.id.dialog).setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n DiscussionActivity.this.popupWindow.dismiss();\n }\n });\n this.pdf.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n DiscussionActivity discussionActivity = DiscussionActivity.this;\n discussionActivity.type = \"pdf\";\n discussionActivity.showPdfChooser();\n DiscussionActivity.this.popupWindow.dismiss();\n }\n });\n this.img.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n DiscussionActivity discussionActivity = DiscussionActivity.this;\n discussionActivity.type = ContentTypes.EXTENSION_JPG_1;\n discussionActivity.showImageChooser();\n DiscussionActivity.this.popupWindow.dismiss();\n }\n });\n this.cancel.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n DiscussionActivity.this.popupWindow.dismiss();\n }\n });\n }", "protected void editClicked(View view){\n FragmentManager fm = getSupportFragmentManager();\n ЕditDialog editDialogFragment = new ЕditDialog(2);\n Bundle args = new Bundle();\n args.putInt(\"position\", this.position);\n args.putString(\"itemName\", this.itm.getItem(this.position).getName());\n args.putString(\"itemUrl\", this.itm.getItem(this.position).getUrl());\n editDialogFragment.setArguments(args);\n editDialogFragment.show(fm, \"edit_item\");\n }", "@Override\n \t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n \t\t\t\t\t\t\t\t\tint which) {\n \t\t\t\t\t\t\t\taudioView.stopRecord();\n \t\t\t\t\t\t\t\tString mRecordFile = audioView.getFile();\n \t\t\t\t\t\t\t\tNoteEditView.this.mNoteItemModel\n \t\t\t\t\t\t\t\t\t\t.setAudio(mRecordFile);\n \n \t\t\t\t\t\t\t\tContentValues cv = new ContentValues();\n \t\t\t\t\t\t\t\tcv.put(NoteItemModel.AUDIO, mRecordFile);\n \t\t\t\t\t\t\t\tDBHelper dbHelper = DBHelper\n \t\t\t\t\t\t\t\t\t\t.getInstance(NoteEditView.this\n \t\t\t\t\t\t\t\t\t\t\t\t.getContext());\n \t\t\t\t\t\t\t\tdbHelper.update(\n \t\t\t\t\t\t\t\t\t\tDBHelper.TABLE.NOTES,\n \t\t\t\t\t\t\t\t\t\tcv,\n \t\t\t\t\t\t\t\t\t\tNoteItemModel.ID\n \t\t\t\t\t\t\t\t\t\t\t\t+ \" = \"\n \t\t\t\t\t\t\t\t\t\t\t\t+ NoteEditView.this.mNoteItemModel\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t.getId(), null);\n \n \t\t\t\t\t\t\t\tNoteEditView.this.mAudioPlay\n \t\t\t\t\t\t\t\t\t\t.setVisibility(VISIBLE);\n \t\t\t\t\t\t\t}", "private void open23() {\n Intent intent = new Intent(this, id3v23editor.class);\n intent.putExtra(\"queuePos\", 0);\n intent.putExtra(\"queueStrings\", new String[]{\"[IDENT]\"});\n startActivity(intent);\n\n finish();\n }", "public void onClick(DialogInterface dialog,int id) {\n changeActionMode(NDEFEditorFragment.VIEW_NDEF_RECORD);\n }", "void open() {\n \tJFileChooser fileopen = new JFileChooser();\n int ret = fileopen.showDialog(null, \"Open file\");\n\n if (ret == JFileChooser.APPROVE_OPTION) {\n document.setFile(fileopen.getSelectedFile());\n textArea.setText(document.getContent());\n }\n }", "public void loadItemNotes(View view, Order_Item item) {\n Intent i = new Intent(getActivity(), item_notes.class);\n b.putSerializable(\"item\", item);\n i.putExtras(b);\n startActivity(i);\n }", "@Override\n public void onClick(View view) {\n dateDialog.show(getFragmentManager(), \"datePicker\");\n }", "public void startImportant(View view) {\n\n startActivity(new Intent(this, ImportantNotes.class));\n\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tnewNote();//新建一条记录\n\t\t\t}", "public void showEditTitleDialog( ){\n FragmentTransaction ft = fragmentManager.beginTransaction();\n Fragment prev = fragmentManager.findFragmentByTag(FRAGMENT_DIALOG);\n if (prev != null) {\n ft.remove(prev);\n }\n\n // Send Related Information...\n ModelUpdateItem updateItem = new ModelUpdateItem(\n itemPosition,\n rootParentID, // Sending Root Or Parent ID.\n listManageHome.get(itemPosition).getLayoutID(), listManageHome.get(itemPosition).getLayoutTitle() );\n\n PopUpDialogEditTitle dialogFragment = new PopUpDialogEditTitle( this, updateItem );\n dialogFragment.show( fragmentManager, FRAGMENT_DIALOG );\n }", "@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.update_save:\n try {\n DialogUpdateNote(title);\n } catch (IOException e) {\n e.printStackTrace();\n }\n break;\n case R.id.update_cancel:\n dialog.dismiss();\n break;\n default:\n break;\n }\n }", "public void showFindDialog() {\n \tLog.d(TAG, \"find dialog...\");\n \tfinal Dialog dialog = new Dialog(this);\n \tdialog.setTitle(R.string.find_dialog_title);\n \tLinearLayout contents = new LinearLayout(this);\n \tcontents.setOrientation(LinearLayout.VERTICAL);\n \tthis.findTextInputField = new EditText(this);\n \tthis.findTextInputField.setWidth(this.pagesView.getWidth() * 80 / 100);\n \tButton goButton = new Button(this);\n \tgoButton.setText(R.string.find_go_button);\n \tgoButton.setOnClickListener(new OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString text = OpenFileActivity.this.findTextInputField.getText().toString();\n\t\t\t\tOpenFileActivity.this.findText(text);\n\t\t\t\tdialog.dismiss();\n\t\t\t}\n \t});\n \tLinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n \tparams.leftMargin = 5;\n \tparams.rightMargin = 5;\n \tparams.bottomMargin = 2;\n \tparams.topMargin = 2;\n \tcontents.addView(findTextInputField, params);\n \tcontents.addView(goButton, params);\n \tdialog.setContentView(contents);\n \tdialog.show();\n }", "public void onClick(DialogInterface dialog, int whichButton) {\n \t\t \t\t\tUri uri = Uri.parse(content);\n \t\t \t\t\tstartActivity(new Intent(Intent.ACTION_VIEW)\n \t\t \t\t\t\t\t\t\t.setData(uri));\n \t\t \t }", "@Override\n public void onClick(View view) {\n FragmentManager fm = getSupportFragmentManager();\n EditNameDialog editNameDialog = new EditNameDialog();\n editNameDialog.show(fm, \"fragment_edit_name\");\n }", "@Override\n public void onClick(View view) {\n Intent getBackIntent = new Intent(AddNoteActivity.this,\n MainActivity.class);\n startActivity(getBackIntent);\n }", "@Override\n public void onEdit(int position, String old_content) {\n FragmentTransaction ft = getFragmentManager().beginTransaction();\n EditVoteFragment fr = EditVoteFragment.newInstance(position, old_content);\n fr.show(ft, \"dialog\");\n }", "private void open24() {\n Intent intent = new Intent(this, id3v24editor.class);\n intent.putExtra(\"queuePos\", 0);\n intent.putExtra(\"queueStrings\", new String[]{\"[IDENT]\"});\n startActivity(intent);\n\n finish();\n }", "@Override\n public void onClick(View view){\n if(view.getId()==R.id.pencilBtn){\n // Pencil button has been clicked\n handwritingView.setErase(false);\n }\n else if(view.getId()==R.id.eraseBtn){\n // Erase button has been clicked\n handwritingView.setErase(true);\n }\n else if(view.getId()==R.id.newBtn){\n // New note button has been clicked\n AlertDialog.Builder newDialog = new AlertDialog.Builder(this);\n newDialog.setTitle(\"New Note\");\n newDialog.setMessage(\"Would you like to start a new note (you will lose the current note)?\");\n newDialog.setPositiveButton(\"Okay\", new DialogInterface.OnClickListener(){\n public void onClick(DialogInterface dialog, int which){\n handwritingView.newNote();\n dialog.dismiss();\n }\n });\n newDialog.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener(){\n public void onClick(DialogInterface dialog, int which){\n dialog.cancel();\n }\n });\n newDialog.show();\n }\n else if(view.getId()==R.id.saveBtn){\n // Save button has been clicked\n AlertDialog.Builder saveDialog = new AlertDialog.Builder(this);\n saveDialog.setTitle(\"Save Note\");\n saveDialog.setMessage(\"Save note to device Gallery?\");\n saveDialog.setPositiveButton(\"Okay\", new DialogInterface.OnClickListener(){\n public void onClick(DialogInterface dialog, int which){\n // Saves\n }\n });\n saveDialog.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener(){\n public void onClick(DialogInterface dialog, int which){\n dialog.cancel();\n }\n });\n saveDialog.show();\n }\n }", "@Override\n public void onClick(View v) {\n FlagListFragment fragment = new FlagListFragment();\n fragment.switchToDescriptionPanel();\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\tdialog.show();\n\t\t\t\t//alert.show();\n\t\t\t\t\n\t\t\t}", "void showDialog() {\n DialogFragment newFragment = MyAlertDialogFragment.newInstance(R.string.alert_dialog_two_buttons_title);\n newFragment.show(getFragmentManager(), \"dialog\");\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n return new AlertDialog.Builder(getActivity())\n .setMessage(R.string.more_info_text)\n\n // User cannot dismiss dialog by hitting back button\n .setCancelable(false)\n\n // Set up No Button\n .setNegativeButton(R.string.not_now,\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,\n int id) {\n dismiss();\n }\n })\n\n // Set up Yes Button\n .setPositiveButton(R.string.visit_moma,\n new DialogInterface.OnClickListener() {\n public void onClick(final DialogInterface dialog, int id) {\n startActivity(new Intent(Intent.ACTION_VIEW, Uri\n .parse(VISIT_MOMA_URL)));\n dismiss();\n }\n }).create();\n }", "private void showRewardDialog() {\n\t\tFragmentManager fm = getSupportFragmentManager();\n\t\taddRewardDialogue = RewardsDialogFragment.newInstance(\"Some Title\");\n\t\taddRewardDialogue.show(fm, \"fragment_edit_task\");\n\t}", "@Override\n public void onClick(View v) {\n showDialog();\n }", "void OpenFragmentInteraction();", "@Override\r\n\tpublic void onResume() {\n\t\tsuper.onResume();\r\n\t\tmh=new MyHelper3(getActivity());\r\n\t\tSQLiteDatabase db = mh.getReadableDatabase();\r\n\t\tCursor c= db.rawQuery(\"SELECT * FROM notes\",null);\r\n\t\twhile(c.moveToNext())\r\n\t\t{\r\n\t\t\tbody.setText(c.getString(0));\r\n\t\t}\r\n\t\tc.close();\r\n\t\tdb.close();\r\n\t\tbody.setSelection(body.length());\r\n\t}", "private void MoodRatingAddNoteConfirmDialog() {\n final Dialog dialog = new Dialog(getActivity());\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n // Include dialog.xml file\n dialog.setContentView(R.layout.lay_moodratings_addnote);\n // Set dialog TV_TITLE\n dialog.setTitle(\"Custom Dialog\");\n\n // set values for custom dialog components - text, image and button\n TextView _tvNo = (TextView) dialog.findViewById(R.id.tvNo);\n TextView _tvYes = (TextView) dialog.findViewById(R.id.tvYes);\n\n dialog.show();\n _tvNo.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n dialog.dismiss();\n }\n });\n\n _tvYes.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n dialog.dismiss();\n MoodRatingAddNoteDialog();\n }\n });\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(Intent.ACTION_DIAL, Uri.fromParts(\"tel\", tv_desc.getText().toString(), null));\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t\tshowDialog();\n\t\t\t}", "private void modositodialog(){\n mennyisegmodositodialog.setTargetFragment(Targyleirasreszletek.this,9999);\n mennyisegmodositodialog.show(getFragmentManager(),\"TargyMennyisegModositoDialog\");\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n RecyclerView recyclerView = new RecyclerView(getContext());\n Adapter adapter;\n FloatingActionButton floatingActionButton;\n\n\n View view = inflater.inflate(R.layout.fragment_notes, container, false);\n\n //View view1 = inflater.inflate(R.layout.layout_for_user_input, container, false);\n\n recyclerView = view.findViewById(R.id.recyclerViewID);\n recyclerView.setHasFixedSize(true);\n StaggeredGridLayoutManager staggeredGridLayoutManager = new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL);\n recyclerView.setLayoutManager(staggeredGridLayoutManager);\n floatingActionButton = view.findViewById(R.id.fab_icon_item_id);\n\n floatingActionButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // HelperToFragment.fragmentManager.beginTransaction().replace(R.id.FrameLayout_id, new HelperToFragment()).addToBackStack(null).commit();\n NoteInformation noteInformation = new NoteInformation();\n Intent intent = new Intent();\n intent.setClass(getActivity(), HelperToFragment.class);\n getActivity().startActivity(intent);\n\n\n }\n });\n\n\n //final String[] st = new String[2];\n /*floatingActionButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n final Dialog dialog = new Dialog(getContext());\n dialog.setContentView(R.layout.dialog);\n dialog.setTitle(\"Title...\");\n\n // set the custom dialog components - text, image and button\n\n //st[0] = t;\n //st[1] = d;\n //Log.i(\"Basedul islam\", t);\n\n Button dialogButton = (Button) dialog.findViewById(R.id.button);\n // if button is clicked, close the custom dialog\n dialogButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n EditText ti =(EditText) dialog.findViewById(R.id.title_id);\n EditText des = (EditText) dialog.findViewById(R.id.des_id);\n String t = ti.getText().toString();\n String d = des.getText().toString();\n arrayList.add(new NoteInformation(t, d));\n dialog.dismiss();\n }\n });\n\n dialog.show();\n\n }\n });*/\n\n arrayList.add(new NoteInformation(\"Bangladesh\", \"I love Bangladesh\"));\n arrayList.add(new NoteInformation(\"Bangladesh\", \"I love Bangladesh\"));\n arrayList.add(new NoteInformation(\"Bangladesh\", \"I love Bangladesh\"));\n arrayList.add(new NoteInformation(\"Bangladesh\", \"I love Bangladesh\"));\n arrayList.add(new NoteInformation(\"Bangladesh\", \"I love Bangladesh\"));\n arrayList.add(new NoteInformation(\"Bangladesh\", \"I love Bangladesh\"));\n arrayList.add(new NoteInformation(\"Bangladesh\", \"I love Bangladesh\"));\n arrayList.add(new NoteInformation(\"Bangladesh\", \"I love Bangladesh\"));\n arrayList.add(new NoteInformation(\"Bangladesh\", \"I love Bangladesh\"));\n arrayList.add(new NoteInformation(\"Bangladesh\", \"I love Bangladesh\"));\n arrayList.add(new NoteInformation(\"Bangladesh\", \"I love Bangladesh\"));\n arrayList.add(new NoteInformation(\"Bangladesh\", \"I love Bangladesh\"));\n arrayList.add(new NoteInformation(\"Bangladesh\", \"I love Bangladesh\"));\n arrayList.add(new NoteInformation(\"Bangladesh\", \"I love Bangladesh\"));\n arrayList.add(new NoteInformation(\"Bangladesh\", \"I love Bangladesh\"));\n arrayList.add(new NoteInformation(\"Bangladesh\", \"I love Bangladesh\"));\n arrayList.add(new NoteInformation(\"Bangladesh\", \"I love Bangladesh\"));\n arrayList.add(new NoteInformation(\"Bangladesh\", \"I love Bangladesh\"));\n arrayList.add(new NoteInformation(\"Bangladesh\", \"I love Bangladesh\"));\n arrayList.add(new NoteInformation(\"Bangladesh\", \"I love Bangladesh\"));\n arrayList.add(new NoteInformation(\"Bangladesh\", \"I love Bangladesh\"));\n arrayList.add(new NoteInformation(\"Bangladesh\", \"I love Bangladesh\"));\n arrayList.add(new NoteInformation(\"Bangladesh\", \"I love Bangladesh\"));\n\n\n adapter = new Adapter(getContext(),arrayList);\n recyclerView.setAdapter(adapter);\n return view;\n }", "public void clickOpenEditDialog(Item item){\n /** Store as public reference */\n this.item = item;\n dialogNewItem.show();\n }", "@Override\n\tpublic void show() {\n\t\tGameView.VIEW.addDialog(this);\n\t\tsuper.show();\n\t}", "@FXML\n void viewNotes(ActionEvent event) {\n Parent root;\n try {\n //Loads library scene using library.fxml\n root = FXMLLoader.load(getClass().getResource(model.NOTES_VIEW_PATH));\n model.getNotesViewController().setPodcast(this.podcast);\n Stage stage = new Stage();\n stage.setTitle(this.podcast.getTitle()+\" notes\");\n stage.setScene(new Scene(root));\n stage.getIcons().add(new Image(getClass().getResourceAsStream(\"resources/musicnote.png\")));\n stage.setResizable(false);\n stage.showAndWait();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "private void showPatternDetectPeroidDialog() {\r\n\r\n\t\tRadioListDialogFragment inputFragment = RadioListDialogFragment.newInstance(\r\n\t\t\t\tR.string.setting_pattern_password_detect, R.array.pattern_detect_peroid, new NineDaleyOnItemClickListener(), \"nine\");\r\n\t\tint i = getSelectedNineDelay();\r\n\t\tinputFragment.setSelectedPosition(i);\r\n\t\tinputFragment.setShowsDialog(false);\r\n\t\tgetActivity().getSupportFragmentManager().beginTransaction()\r\n\t\t.add(inputFragment, \"nineDelayFragment\").addToBackStack(null).commit();\r\n\t}", "private void showDialog(String tag) {\n \t\tFragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n \t\tFragment prev = getSupportFragmentManager().findFragmentByTag(tag);\n \t\tif (prev != null) {\n \t\t\tft.remove(prev);\n \t\t}\n \n \t\tDialogFragment newFragment = null;\n \n \t\t// Create and show the dialog.\n \t\tnewFragment = DownloadScannerDialog.newInstance();\n \n \t\tft.add(0, newFragment, tag);\n \t\tft.commit();\n \t}", "@FXML\n private void openReplyWindow() {\n try {\n ComposeEmailWindow cew = new ComposeEmailWindow(\"RE: \", this.fromContent.getText(),\n this.subjectContent.getText(), this.msgContent.getText());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static LabNotes newInstance() {\n LabNotes fragment = new LabNotes();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public void openLivrosLidos(){\n\n //fazendo a transição\n FragmentTransaction ft = fm.beginTransaction();\n\n //trocando um layout por outro\n ft.replace(R.id.frame_layout, new LidosFragment());\n\n //mandando as alterações\n\n ft.commit();\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tshowNote((Note)v.getTag());//查看这条记录\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tdialog();\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(context ,commentshow.class);\n context.startActivity(intent);\n\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.trip_menu_add_note) {\n\n Intent intent = NoteFormActivity.newIntent(getActivity(), mTrip);\n startActivity(intent);\n\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "public void onClick(DialogInterface dialog,int id) {\n Intent in = new Intent(OpenBookMark.this,PDFViewActivity_.class);\n startActivity(in);\n Toast.makeText(getApplicationContext(),\"go\", Toast.LENGTH_LONG).show();\n //dialogBookmark.dismiss();\n // OpenBookMark.this.finish();\n }", "public void openMidi() {\r\n FileDialog fd = new FileDialog(new Frame(), \r\n \"Select a MIDI file to import...\", \r\n FileDialog.LOAD);\r\n fd.show();\r\n String fileName = fd.getFile();\r\n if (fileName != null) {\r\n jm.util.Read.midi(score, fd.getDirectory() + fileName);\r\n makeBtnsVisible();\r\n }\r\n }", "public void ClickNotesAndMessagesPage() {\r\n\t\tnotesandmessages.click();\r\n\t\t\tLog(\"Clicked the \\\"Notes and Messages\\\" button on the Birthdays page\");\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\tprivate void showDialog() {\n\t\tLayoutInflater layoutInflater = LayoutInflater.from(getActivity());\r\n\t\tviewAddEmployee = layoutInflater\r\n\t\t\t\t.inflate(R.layout.activity_dialog, null);\r\n\t\teditText = (EditText) viewAddEmployee.findViewById(R.id.editText1);\r\n\t\ttv_phone = (TextView) viewAddEmployee.findViewById(R.id.tv_phone);\r\n\t\tbt_setting = (Button) viewAddEmployee.findViewById(R.id.bt_setting);\r\n\t\tbt_cancel = (Button) viewAddEmployee.findViewById(R.id.bt_cancel);\r\n\t\tString tel = SharePreferenceUtil.getInstance(\r\n\t\t\t\tgetActivity().getApplicationContext()).getUserTel();\r\n\t\ttv_phone.setText(StringUtils.getTelNum(tel));\r\n\r\n\t\tshowPop();\r\n\r\n\t\tbt_setting.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tString psd = SharePreferenceUtil.getInstance(\r\n\t\t\t\t\t\tgetActivity().getApplicationContext()).getUserPsd();\r\n\t\t\t\tString password = editText.getText().toString().trim();\r\n\t\t\t\tif (TextUtils.isEmpty(password)) {\r\n\t\t\t\t\tShowToast(\"密码不能为空!\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (password.equals(psd)) {\r\n\t\t\t\t\tavatorPop.dismiss();\r\n\t\t\t\t\tintentAction(getActivity(), GesturePsdActivity.class);\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tShowToast(\"输入密码错误!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tbt_cancel.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tavatorPop.dismiss();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "@OnClick(R.id.documents_button)\n protected void onPickFromDocumentsClicked() {\n EasyImage.openDocuments(this);\n }", "public void show() {\r\n isOkPressed = false;\r\n\r\n dialog = RitDialog.create(context);\r\n dialog.setTitle(\"Inline Method\");\r\n dialog.setContentPane(contentPanel);\r\n\r\n buttonOk.requestFocus();\r\n\r\n HelpViewer.attachHelpToDialog(dialog, buttonHelp, \"refact.inline_method\");\r\n SwingUtil.initCommonDialogKeystrokes(dialog, buttonOk, buttonCancel, buttonHelp);\r\n\r\n dialog.show();\r\n }", "@Override\n public void onClick(View v) {\n if (AppUtils.isEmptyString(edtNoteTitle.getText().toString())) {\n Toast.makeText(MainActivity.this, \"Enter note!\", Toast.LENGTH_SHORT).show();\n return;\n } else {\n alertDialog.dismiss();\n }\n\n final String noteTitle = edtNoteTitle.getText().toString();\n final String noteDes = edtNoteDes.getText().toString();\n // check if user updating note\n if (shouldUpdate && todo != null) {\n // update note by it's id\n updateNote(todo.getTodoId(), noteTitle, noteDes, position);\n } else {\n // create new note\n createNote(noteTitle, noteDes, mUserId);\n }\n }", "public void open() {\n\t\tthis.createContents();\n\n\t\tWindowBuilder delegate = this.getDelegate();\n\t\tdelegate.setTitle(this.title);\n\t\tdelegate.setContents(this);\n\t\tdelegate.setIcon(this.iconImage);\n\t\tdelegate.setMinHeight(this.minHeight);\n\t\tdelegate.setMinWidth(this.minWidth);\n\t\tdelegate.open();\n\t}", "@Override\n public void onClick(View v) {\n addUpdateNotes();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tDialogFragment newFragment = new DatePickerFragment();\n\t\t\t\tnewFragment.show(getFragmentManager(), \"datePicker\");\n\t\t\t}", "public void onOpen() {\n\t\t\n\t\t//if things are dirty, ask if they're sure they want to do this\n\t\tif(FormDesignerController.getIsDirty())\n\t\t{\n\t\t\t//if the use says no, then bounce\n\t\t\tif(!Window.confirm(LocaleText.get(\"newFormConfirm\")))\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\txformsWidget.hideWindow();\n\t\tFormUtil.dlg.setText(\"Opening...\");\n\t\tFormUtil.dlg.show();\n\n\n\t\tScheduler.get().scheduleDeferred(new Command() {\n\t\t\tpublic void execute() {\n\t\t\t\ttry {\n\t\t\t\t\t//openFile();\n\t\t\t\t\txformsWidget.setXform(\"\");\n\t\t\t\t\txformsWidget.showOpenButton(true);\n\t\t\t\t\txformsWidget.showWindow();\n\t\t\t\t\tFormUtil.dlg.hide();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tFormUtil.displayException(ex);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "@Override\n public void onClick(View v) {\n ThreeFragment dialogFragment = ThreeFragment.newInstance(\"Are you sure to do this action?\");\n dialogFragment.show(getFragmentManager(), \"dialog\");\n }", "@Override\n public void onClick(View v) {\n if (TextUtils.isEmpty(editText.getText().toString())){\n Toast.makeText(getContext(), \"Enter note!\", Toast.LENGTH_SHORT).show();\n return;\n } else {\n alertDialog.dismiss();\n }\n\n // check if user updating note\n\n if (shouldUpdate && note != null){\n // update note by it's id\n note.setNote(editText.getText().toString());\n updateNote(note, position);\n } else {\n // create new note\n //createNote(editText.getText().toString());\n }\n }", "public void openLivrosParaLer(){\n\n //fazendo a transição\n FragmentTransaction ft = fm.beginTransaction();\n\n //trocando um layout por outro\n ft.replace(R.id.frame_layout, new LerFragment());\n\n //mandando as alterações\n\n ft.commit();\n }", "private void showHelpDialog() {\n\n view.helpDialog();\n }" ]
[ "0.71259004", "0.6989577", "0.68190897", "0.6500935", "0.6472275", "0.6371916", "0.63338363", "0.6305396", "0.62224954", "0.6217076", "0.61997056", "0.6156576", "0.61295897", "0.6103243", "0.607028", "0.60312194", "0.6016366", "0.59946823", "0.5963296", "0.5955106", "0.5941778", "0.5914098", "0.5859631", "0.5858334", "0.5828783", "0.5822608", "0.581035", "0.5808851", "0.58049995", "0.5779009", "0.5778929", "0.57638663", "0.5755259", "0.57401735", "0.57172155", "0.57138383", "0.5702543", "0.5701329", "0.5689638", "0.56894505", "0.56877863", "0.5685223", "0.56806225", "0.5680109", "0.567683", "0.566354", "0.5640415", "0.56337106", "0.56187016", "0.5616564", "0.56132454", "0.56033194", "0.559517", "0.55936", "0.558847", "0.55862784", "0.5579394", "0.55776995", "0.5575141", "0.55749196", "0.5573578", "0.556985", "0.55612004", "0.5560816", "0.5557112", "0.5545618", "0.5541227", "0.5537998", "0.5533917", "0.5529141", "0.55280524", "0.5521191", "0.5521124", "0.551884", "0.5513192", "0.55103886", "0.55098075", "0.54973614", "0.5483351", "0.54828846", "0.5476132", "0.54742545", "0.5469978", "0.54686177", "0.54682714", "0.5464467", "0.5456345", "0.5454255", "0.5452856", "0.545029", "0.5449134", "0.5446592", "0.54441", "0.54437566", "0.54430604", "0.5441292", "0.54372644", "0.54363936", "0.5433361", "0.54228777" ]
0.6147565
12
Instantiates a new admin.
public Admin() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public admin() {\n\t\tsuper();\n\t}", "public Admin() {\n initComponents();\n }", "public Admin() {\n initComponents();\n }", "public Admin() {\n initComponents();\n }", "public Admin createAdmin(){\n\t\ttry {\n\t\t\treturn conn.getAdmin();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "AdminConsole createAdminConsole();", "public Admin() {\r\n initComponents();\r\n \r\n }", "public HomeAdmin() {\n initComponents();\n }", "public Administrator() {\n // no-agrs constructor (ham dung khong tham so)\n }", "public AdminController()\n { \n int totalNumAdmin = 99999;\n admin = new Administrator[totalNumAdmin];\n for(int index = 0; index < totalNumAdmin; index++)\n {\n admin[index] = new Administrator(\"????\",\"????\");\n }\n }", "public AdminPage() {\n initComponents();\n }", "public VAdmin() {\n initComponents();\n }", "public AdminFacade() {\n super();\n }", "public AdminUI() {\n initComponents();\n wdh=new WebDataHandler();\n initList();\n }", "public Admin_Home() {\n initComponents();\n }", "public Tenancy init() {\n if (createAdminRole == null) {\n createAdminRole = true;\n }\n return this;\n }", "public void addAdmin(Admin admin);", "public AdminController(Admin a)\n {\n \tthis.adminModel=a;\t\n }", "public admin(String dni) {\r\n\t\tsuper(dni);\r\n\t}", "public AdministratorImpl() {\n\n\t}", "@Override\n\tpublic Admin createAdmin(Admin admin) {\n\t\treturn ar.save(admin);\n\t}", "public Admin(String username, String email) {\n super(username, email);\n userType = UserType.ADMIN;\n }", "public AdministratorDAO() {\n super();\n DAOClassType = Administrator.class;\n }", "public Administrador() {\n //título da tela Administrador\n setTitle(\"Administrador\");\n //Inicializa os componentes da tela\n initComponents();\n //Inicializa o combo box contendo os instrutores cadastrados\n initComboBox();\n //inicia tela no centro\n this.setLocationRelativeTo(null);\n }", "public AdminINS() {\n initComponents();\n setLocationRelativeTo(null);\n getdata();\n }", "public AdminPanel() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "private Admin createNewAdmin(AdminRequest adminRequest, User user, PersonalData personalData) {\n\n Admin newAdmin = new Admin();\n newAdmin.setPersonalData(personalData);\n newAdmin.setUser(user);\n\n newAdmin.setEnabled(true);\n newAdmin.setDeleted(false);\n\n // Save on DB\n return saveAdmin(newAdmin);\n }", "public Admin() {\n initComponents();\n jRadioButton2.setSelected(true);\n try {\n data = DataBase.getInstance();\n } catch (SQLException ex) {\n Logger.getLogger(Admin.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public AdministradorView() {\n initComponents();\n }", "public MainFrameAdmin() {\n\t\tsuper(\"Stock Xtreme: Administrador\");\n\t}", "public Administrator(String userID, String password){\r\n\t\tsuper(userID, password);\r\n\t\tthis.type = \"Admin\";\r\n\t}", "public Admin_MainPage() {\n initComponents();\n }", "public AdminLogin() {\n initComponents();\n }", "public Builder setNewAdmin(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n newAdmin_ = value;\n onChanged();\n return this;\n }", "public Admin(int id, String firstName, String lastName, String email, String phone, String location,\n\t\t\tDate dob, Date regDate) {\n\t\tthis.id = id;\n\t\tthis.firstName = firstName;\n\t\tthis.lastName = lastName;\n\t\tthis.email = email;\n\t\tthis.phone = phone;\n\t\tthis.location = location;\n\t\tthis.dob = dob;\n\t\tthis.registeredDate = regDate;\n\t}", "public Login() {\n initComponents();\n this.setTitle(\"Login\");\n this.setLocationRelativeTo(null);\n this.pack();\n // Asignanado objecto\n adminUsers = new usuarioAdmin();\n \n // No hay inicializacion de usuarios\n sys.us[0] = new Usuario();\n sys.us[0].setId(\"admin\");\n sys.us[0].setNombre(\"admin\");\n sys.us[0].setApellido(\"admin\");\n sys.us[0].setUser(\"admin\");\n sys.us[0].setPassword(\"admin\");\n sys.us[0].setRol(\"admin\");\n }", "public signadmin() {\n initComponents();\n }", "public static void creaAdmin(Admin admin) {\n\t\ttry {\n\t\t\tRequestContent rp = new RequestContent();\n\t\t\trp.type = RequestType.CREATE_USER;\n\t\t\trp.userType = UserType.ADMIN;\n\t\t\trp.parameters = new Object[] { admin };\n\t\t\tsend(rp);\n\t\t} catch (Exception e) {\n\n\t\t}\n\t}", "public Admin(JSONObject joAdmin){\n\t\ttry {\n\t\t\tif(joAdmin.has(\"id\"))\n\t\t\t\tthis.id = joAdmin.getInt(\"id\");\n\t\t\t\n\t\t\tif(joAdmin.has(\"firstName\"))\n\t\t\t\tthis.firstName = joAdmin.getString(\"firstName\");\n\t\t\t\n\t\t\tif(joAdmin.has(\"lastName\"))\n\t\t\t\tthis.lastName = joAdmin.getString(\"lastName\");\n\t\t\t\n\t\t\tif(joAdmin.has(\"email\"))\n\t\t\t\tthis.email = joAdmin.getString(\"email\");\n\t\t\t\n\t\t\tif(joAdmin.has(\"phone\"))\n\t\t\t\tthis.phone = joAdmin.getString(\"phone\");\n\t\t\t\n\t\t\tif(joAdmin.has(\"location\"))\n\t\t\t\tthis.location = joAdmin.getString(\"location\");\n\t\t\t\n\t\t\t// sdf defines Date string as yyyy-MM-dd\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\n\t\t\tif(joAdmin.has(\"dob\")) {\n\t\t\t\tString dateStr = joAdmin.getString(\"dob\");\n\t\t\t\ttry {\n\t\t\t\t\t// Date dob is set by using sdf to parse dateStr\n\t\t\t\t\tthis.dob = sdf.parse(dateStr);\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t// if error is thrown, stack trace is printed.\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(joAdmin.has(\"registeredDate\")) {\n\t\t\t\tString dateStr = joAdmin.getString(\"registeredDate\");\n\t\t\t\ttry {\n\t\t\t\t\t// Date dob is set by using sdf to parse dateStr\n\t\t\t\t\tthis.registeredDate = sdf.parse(dateStr);\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t// if error is thrown, stack trace is printed.\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} catch (JSONException e) {\n\t\t\t// if error is thrown, stack trace is printed.\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Admin(int id, String firstName, String lastName, String email, Date regDate) {\n\t\tthis.id = id;\n\t\tthis.firstName = firstName;\n\t\tthis.lastName = lastName;\n\t\tthis.email = email;\n\t\tthis.registeredDate = regDate;\n\t}", "public AdminData() {\n initComponents();\n TampilData();\n }", "public AdminLogInPage() {\n initComponents();\n }", "public static final Account createDefaultAdminAccount() {\n Name name = new Name(\"Alice\");\n Credential credential = new Credential(\"admin\", \"admin\");\n MatricNumber matricNumber = new MatricNumber(\"A0123456X\");\n PrivilegeLevel privilegeLevel = new PrivilegeLevel(2);\n Account admin = new Account(name, credential, matricNumber, privilegeLevel);\n return admin;\n }", "public adminAuthor() {\n initComponents();\n List();\n\n }", "public C_AdminForm() {\n initComponents();\n }", "public Server(String adminUsername, String adminPassword)\n\t{\n\t\tusers = new ArrayList<User>();\n\t\t//Give the Server an initial Admin which can be used to add other users.\n\t\tUser admin = new Admin(adminUsername, adminPassword, true);\n\t\tadmin.department = new Department(\"DEFAULT\");\n\t\tusers.add(admin);\n\t\tdepartments = new ArrayList<Department>();\n\t\tdepartments.add(admin.department);\n\t\ttokenGenerator = new Random(System.currentTimeMillis());\n\t}", "public Principal() {\n initComponents();\n ab = new adminbarra(pg_Ordenes);\n }", "protected void init(KKAdminIf adminEng)\n {\n this.adminEng = adminEng;\n adminMgrFactory = new AdminMgrFactory(this.adminEng);\n }", "public Administrador() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public void add_admin(String admin_id, String admin_name, String admin_address, String admin_designation,\n\t\t\t double salary, String contact, boolean status_vacancy, String password,String admin_project_key)\n {\n\t\t\n \tadm_list.insert(new Admin(admin_id,admin_name,admin_address,admin_designation, salary,contact,status_vacancy,password,admin_project_key));\n \twrite_adm_file();\n }", "java.lang.String getNewAdmin();", "public AdminServiceImpl() {\n\t\tuserDao = DaoImpl.getDaoImpl();\n\t\temployeeDao = DaoImpl.getDaoImpl();\n\t}", "public RequestPromotionPageAdminController() {\n\t\tsuper(RequestPromotionPageAdminController.class, MAIN_ENTITY_NAME );\n\t\tlog(\"PromotionPageAdminController created.\");\n\t}", "private void createAdminPanel() {\n username = new JTextField(8);\n password = new JPasswordField(8);\n JPanel loginArea = adminLoginPanels();\n JPanel buttons = adminLoginButtons();\n loginFrame = new JFrame();\n loginFrame.setLayout(new BorderLayout());\n loginFrame.getRootPane().setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\n loginLabel = new JLabel(\"Please log in as administrator\", SwingConstants.CENTER);\n loginFrame.getContentPane().add(loginLabel, BorderLayout.NORTH);\n loginFrame.getContentPane().add(loginArea, BorderLayout.CENTER);\n loginFrame.getContentPane().add(buttons, BorderLayout.SOUTH);\n loginFrame.setVisible(true);\n loginFrame.pack();\n }", "@Override\n public ResultMessage createNewAdmin(NewAdminCommand command) {\n String currentAdmin = command.getCurrentAdmin();\n if (!adminDao.hasHighestAuthority(currentAdmin))\n return ResultMessage.failure(\"Permission denied\");\n\n // Permission passed\n if (adminDao.addAdmin(command.getNewAdminName(),\n encryptor.encrypt(command.getPassword(), command.getNewAdminName()))) {\n log.info(\"New administrator is created successfully\");\n return ResultMessage.success();\n }\n\n return ResultMessage.failure();\n }", "public DataPresensiAdmin() {\n initComponents();\n }", "public AdminPanel(String admin, Font regular, Font bold, Font italic, Font boldItalic) throws IOException, UserNotFoundException {\n this.setSize(1600, 900);\n this.setOpaque(false);\n this.setLayout(new BorderLayout());\n Color bg = new Color(51, 51, 51);\n Color current = new Color(32, 32, 32);\n Color gray = new Color(184, 184, 184);\n Color red = new Color(219, 58, 52);\n UserQuery userQuery = new UserQuery();\n JPanel overviewPanel = new OverviewPanel(admin, regular, bold, italic, boldItalic);\n JPanel searchPanel = new SearchPanel(admin, regular, bold, italic, boldItalic);\n JPanel controlPanel = new ControlPanel(admin, regular, bold, italic, boldItalic);\n MessagePanel messagePanel = new MessagePanel(admin, regular, bold, italic, boldItalic);\n\n messagePanel.changeToAdminColorScheme();\n\n searchPanel.setBackground(Color.BLACK);\n menuContainer.setPreferredSize(new Dimension(250, this.getHeight()));\n menuContainer.setOpaque(false);\n GridBagConstraints gbc = setupGbc();\n setupIconText(admin, boldItalic, userQuery, gbc);\n setupUsernameTitle(admin, regular, userQuery, gbc);\n setupUserIdTitle(admin, regular, gray, gbc);\n setupOverviewPanelButton(regular, current, gbc);\n setupPanelButton(regular, current, gbc, \"Control Panel\", 4);\n setupPanelButton(regular, current, gbc, \"Messages\", 5);\n setupPanelButton(regular, current, gbc, \"Search\", 6);\n\n setupLogoutButton(boldItalic, red, gbc);\n setupMenuPanelContainer(bg, overviewPanel, searchPanel, controlPanel, messagePanel);\n this.add(menuContainer, BorderLayout.WEST);\n this.add(menuPanelContainer, BorderLayout.CENTER);\n\n }", "public Administrator(String username, String password) {\n super(username,password);\n }", "public AdminDAO()\n {\n con = DataBase.getConnection();//crear una conexión al crear un objeto AdminDAO\n }", "Dashboard createDashboard();", "public adminUsuarios() {\n initComponents();\n showUsuarios();\n }", "public static void createInitialAdmin() throws InvalidDBTransferException {\n \tString salt = PasswordHash.getSalt();\n \tString pw = PasswordHash.hash(\"Password!123\", salt);\n \tsalt = \"'\" + salt + \"'\";\n \tpw = \"'\" + pw + \"'\";\n \t\n \texecuteInitialization(CHECK_ADMIN, String.format(INIT_ADMIN, pw, salt));\n }", "private void startAdmin() {\n final Intent adminActivity = new Intent(this, AdminActivity.class);\n finish();\n startActivity(adminActivity);\n }", "private AdminEntity() {\n \tsuper();\n\n this.emf = Persistence.createEntityManagerFactory(\"entityManager\");\n\tthis.em = this.emf.createEntityManager();\n\tthis.tx = this.em.getTransaction();\n }", "public adminhome() {\n initComponents();\n jButton7.setVisible(false);\n addtopic.setVisible(false);\n addDatatoTable();\n }", "public Builder setAdmin(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n admin_ = value;\n onChanged();\n return this;\n }", "public MenuAdminGUI() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setVisible(true);\n }", "public Admin_SignUp() {\n initComponents();\n }", "public AdminCommandList(final JDealsController sysCtrl) {\n super(\"Admin Menu\", sysCtrl);\n\n this.addItem(\"Insert an item\", new Callable() {\n @Override\n public Object call() throws Exception {\n return new ItemMenu(sysCtrl).runMenu();\n }\n });\n this.addItem(\"Delete an item\", new Callable() {\n @Override\n public Boolean call() throws Exception {\n return delItem();\n }\n });\n this.addItem(\"List current active offers\", new Callable() {\n @Override\n public Object call() throws Exception {\n return new ListOrderMenu(sysCtrl, false).runMenu();\n }\n });\n this.addItem(\"List expired offers\", new Callable() {\n @Override\n public Object call() throws Exception {\n return new ListOrderMenu(sysCtrl, true).runMenu();\n }\n });\n }", "public VerInfoSerieAdmin() {\r\n initComponents();\r\n }", "public AdminAppUser() {\n this(DSL.name(\"admin_app_user\"), null);\n }", "public Sucelje_admin() {\n initComponents();\n// setLocationRelativeTo(null);\n }", "public login() {\n\n initComponents();\n \n usuarios.add(new usuarios(\"claudio\", \"claudioben10\"));\n usuarios.get(0).setAdminOno(true);\n \n }", "@Test\n\tpublic void testAdminCreate() {\n\t\tAccount acc1 = new Account(00000, \"ADMIN\", true, 1000.00, 0, false);\n\t\taccounts.add(acc1);\n\n\t\ttransactions.add(0, new Transaction(10, \"ADMIN\", 00000, 0, \"A\"));\n\t\ttransactions.add(1, new Transaction(05, \"new acc\", 00001, 100.00, \"A\"));\n\t\ttransactions.add(2, new Transaction(00, \"ADMIN\", 00000, 0, \"A\"));\n\n\t\ttransHandler = new TransactionHandler(accounts, transactions);\n\t\toutput = transHandler.HandleTransactions();\n\n\t\tif (outContent.toString().contains(\"Account Created\")) {\n\t\t\ttestResult = true;\n\t\t} else {\n\t\t\ttestResult = false;\n\t\t}\n\n\t\tassertTrue(\"unable to create account as admin\", testResult);\n\t}", "public void setAdmin(int admin) {\n this.admin = admin;\n }", "public Builder clearNewAdmin() {\n \n newAdmin_ = getDefaultInstance().getNewAdmin();\n onChanged();\n return this;\n }", "public TbAdminMenuDAOImpl() {\n super();\n }", "public AgregarAlumnoAdmin() {\n initComponents();\n }", "public int getAdminId() {\n\t\treturn adminId;\n\t}", "public ControllerAdministrarTrabajadores() {\r\n }", "public static void main(String[] args) {\n\t\tAdmin a = new Admin(\"syh1011\", \"123\", \"[email protected]\", 20);\n\t}", "public void setAdmin(boolean admin) {\n this.admin = admin;\n }", "public void createAndShowGUI() {\n frame= new JFrame(\"TabAdmin\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setLocation(200,50);\n //Create and set up the content pane.\n \n addComponentToPane(frame.getContentPane());\n \n //Display the window.\n frame.pack();\n frame.setVisible(true);\n //create admin to operate \n \n }", "public static AdminRecord initialize() {\n if (Logger.isTraceOn(Logger.TT_CORE, 9) || Logger.isDebugLoggingActivatedByCommandLine()) {\n Logger.log(Logger.DEBUG, Logger.MSG_CORE_STARTUPINITIALIZATION, \"initialize()\");\n printEfaInfos(false, false, true, false, false);\n }\n AdminRecord newlyCreatedAdminRecord = null;\n iniScreenSize();\n iniMainDirectory();\n iniEfaBaseConfig();\n iniLanguageSupport();\n iniUserDirectory();\n iniLogging();\n iniSplashScreen(true);\n iniEnvironmentSettings();\n iniDirectories();\n iniEfaSec();\n boolean createNewAdmin = iniAdmins();\n Object[] efaFirstSetup = iniEfaFirstSetup(createNewAdmin);\n CustSettings cust = (efaFirstSetup != null ? (CustSettings) efaFirstSetup[0] : null);\n iniEfaConfig(cust);\n iniEfaRunning();\n iniEfaTypes(cust);\n iniCopiedFiles();\n iniAllDataFiles();\n iniRemoteEfaServer();\n iniEmailSenderThread();\n iniGUI();\n iniChecks();\n if (createNewAdmin && efaFirstSetup != null) {\n return (AdminRecord) efaFirstSetup[1];\n }\n return null;\n }", "@Override\n\tpublic Admin getModel() {\n\t\treturn admin;\n\t}", "public Administrador(String nome, String endereco, String email, String telefone, String id_usuario, String senha_usuario) {\n super(nome, endereco, email, telefone, id_usuario, senha_usuario);\n }", "public interface AdminController {\n\n Admin login(Admin admin) throws SQLException;\n\n List<Admin> listAdmin(String adminName, String adminRole) throws SQLException;\n\n int addAdmin(Admin admin) throws SQLException;\n\n boolean delete(Long id) throws SQLException;\n\n boolean updateAdmin(Admin admin) throws SQLException;\n}", "public AdminLog() {\n initComponents();\n setSize(1450,853);\n setLocation (250,130);\n }", "public Administrator(String firstname, String lastname, String email, String username, String password,\n String branch, String numberEmployee, boolean isLoggedIn) {\n super(firstname, lastname, email, username, password, branch, numberEmployee, isLoggedIn);\n }", "public String getAdminId() {\n return adminId;\n }", "public String getAdminId() {\n return adminId;\n }", "public Users(int id, String FirstName, String LastName, boolean Admin) {\n\t\t_id = id;\n\t\t_FirstName = FirstName;\n\t\t_LastName = LastName;\n\t\t_Admin = Admin;\n\t}", "public Administrator(String username, String password) {\n this.username = username;\n this.password = password;\n }", "public VentanaAdministradorVista() {\n initComponents();\n }", "public AdminMenu(JDealsController sysCtrl) {\n super(\"Select Menu\", sysCtrl);\n\n this.addItem(\"Admin Panel\", new Callable() {\n @Override\n public Boolean call() throws Exception {\n new AdminCommandList(getSysCtrl()).runMenu();\n return true;\n }\n });\n\n this.addItem(\"Default Menu\", new Callable() {\n @Override\n public Boolean call() throws Exception {\n new UserMenu(getSysCtrl()).runMenu();\n return true;\n }\n });\n }", "public void createAdminLog(TadminLog adminlog) {\n\t\tadminLogDao.create(adminlog);\n\t}", "public SystemAdminWorkArea() {\n initComponents();\n }", "public ShoppingListAdministrationImpl() throws IllegalArgumentException {\r\n\r\n\t}", "public AdminMainView() {\n initComponents();\n setComponent(new SearchEmployeeView(), mainPanel);\n }", "public Permission( String objName, String opName, boolean admin )\n {\n this.objName = objName;\n this.opName = opName;\n this.admin = admin;\n }" ]
[ "0.7381341", "0.72883075", "0.72883075", "0.72883075", "0.7284018", "0.69843525", "0.6954602", "0.688659", "0.6727338", "0.6706652", "0.6655711", "0.6613299", "0.661178", "0.65837026", "0.6570962", "0.65179443", "0.6501824", "0.6498339", "0.6425691", "0.64034724", "0.6389354", "0.63423777", "0.6326998", "0.6305511", "0.6272811", "0.6228855", "0.6213013", "0.62125957", "0.6165708", "0.616565", "0.61353034", "0.6127294", "0.61159855", "0.610724", "0.602219", "0.6021001", "0.60191804", "0.59860545", "0.59832144", "0.59706825", "0.59602356", "0.5945555", "0.5940947", "0.5926811", "0.5922255", "0.59152937", "0.5900518", "0.5887126", "0.58726895", "0.58650976", "0.5855755", "0.5838756", "0.58332753", "0.5815687", "0.5799689", "0.57933384", "0.5788316", "0.5779955", "0.5772932", "0.5768813", "0.57548296", "0.573984", "0.573402", "0.57273155", "0.5714777", "0.57042724", "0.5695372", "0.5647116", "0.5640385", "0.5629373", "0.5623582", "0.5622099", "0.56209356", "0.56085116", "0.55876106", "0.55649674", "0.55491865", "0.5541033", "0.5536795", "0.55281043", "0.55057275", "0.55039847", "0.5495303", "0.5490649", "0.54844713", "0.5468057", "0.54646224", "0.5455045", "0.544859", "0.54441506", "0.54441506", "0.54424864", "0.5437211", "0.5436622", "0.5429867", "0.54237026", "0.54223347", "0.5416726", "0.5415186", "0.54143476" ]
0.7827758
0
Gets the mail id.
public String getMailId() { return mailId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getmailID() {\n\t\treturn _mailID;\n\t}", "public String getMessageId() {\n Field field = obtainField(FieldName.MESSAGE_ID);\n if (field == null)\n return null;\n\n return field.getBody();\n }", "@AutoEscape\n\tpublic String getEmailId();", "public String getEmailID() {\n\t\treturn emailID;\n\t}", "public String getMailNo() {\n return mailNo;\n }", "Object getMessageId();", "java.lang.String getMessageId();", "public String getEmailId() {\r\n\t\treturn emailId;\r\n\t}", "long getMessageId();", "long getMessageId();", "public String getEmailId() {\n return emailId;\n }", "int getMessageId();", "public String getEmailId()\r\n {\r\n return emailId;\r\n }", "public Object getMessageId()\n {\n return getUnderlyingId(true);\n }", "public long getEmailID(String email) {\n SQLiteDatabase db_read = ClientBaseOpenHelper.getHelper(mContext).getReadableDatabase();\n Cursor cursor = null;\n long emailID = 0;\n\n try {\n cursor = db_read.query(ClientBaseOpenHelper.TABLE_EMAILS, new String[]{BaseColumns._ID},\n ClientBaseOpenHelper.EMAIL + \"='\" + email + \"'\", null, null, null, null);\n while (cursor.moveToNext()) {\n emailID = cursor.getLong(cursor.getColumnIndex(BaseColumns._ID));\n }\n return emailID;\n\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n return emailID;\n\n } finally {\n if (cursor != null && !cursor.isClosed()) {\n cursor.close();\n }\n if (db_read != null && db_read.isOpen()) {\n db_read.close();\n }\n if (ClientBaseOpenHelper.getHelper(mContext) != null) {\n ClientBaseOpenHelper.getHelper(mContext).close();\n }\n }\n }", "public synchronized String getMail()\r\n {\r\n return mail;\r\n }", "long getMessageID();", "long getMessageID();", "public int getMessageId() {\n return concatenateBytes(binary[MSID_OFFSET],\n binary[MSID_OFFSET+1],\n binary[MSID_OFFSET+2],\n binary[MSID_OFFSET+3]);\n }", "public String getMail() {\r\n\t\treturn mail;\r\n\t}", "public String getMessageId() {\n\n // Get the message ID\n return this.messageHeader.getMsgId();\n }", "String getNotificationID();", "java.lang.String getSenderId();", "public String getId() {\n\t\treturn m_MessageId;\n\t}", "public long getMentionID() {\n return _getLongValueNc(wrapGetIntCatchException(_FH_mentionID));\n }", "public static String getBiblioMail() {\n\t\treturn \"mail\";\n\t}", "public java.lang.String getMail() {\n return mail;\n }", "java.lang.String getMessageInfoID();", "public long getId() {\n\t\treturn _tempNoTiceShipMessage.getId();\n\t}", "public long getMessageId() {\n return instance.getMessageId();\n }", "public byte[] getID() {\n return messageid;\n }", "int getMsgid();", "public String getId ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"getId\", true);\n $in = _invoke ($out);\n String $result = $in.read_string ();\n return $result;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n return getId ( );\n } finally {\n _releaseReply ($in);\n }\n }", "public long getIdMessage() {\r\n\t\treturn idMessage;\r\n\t}", "int getSendid();", "public Long getMessage_id() {\n return message_id;\n }", "public String getEmailById(long emailID) {\n SQLiteDatabase db_read = ClientBaseOpenHelper.getHelper(mContext).getReadableDatabase();\n Cursor cursor = null;\n String email = \"\";\n\n try {\n cursor = db_read.query(ClientBaseOpenHelper.TABLE_EMAILS,\n new String[]{ClientBaseOpenHelper.EMAIL},\n BaseColumns._ID + \"=\" + emailID, null, null, null, null);\n while (cursor.moveToNext()) {\n email = cursor.getString(cursor.getColumnIndex(ClientBaseOpenHelper.EMAIL));\n }\n return email;\n\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n return email;\n\n } finally {\n if (cursor != null && !cursor.isClosed()) {\n cursor.close();\n }\n if (db_read != null && db_read.isOpen()) {\n db_read.close();\n }\n if (ClientBaseOpenHelper.getHelper(mContext) != null) {\n ClientBaseOpenHelper.getHelper(mContext).close();\n }\n }\n }", "public long getMsgId() {\n return msgId_;\n }", "public WebElement getEmail()\n {\n\t\t\n \tWebElement user_emailId = driver.findElement(email);\n \treturn user_emailId;\n \t\n }", "public long getMsgId() {\n return msgId_;\n }", "public long getMessageID() {\n return messageID_;\n }", "public long getMessageId() {\n\t\treturn messageId;\n\t}", "public void setmailID(String mailID) {\n\t\t_mailID = mailID;\n\t}", "int getReceiverid();", "public long getMessageID() {\n return messageID_;\n }", "public int getMessageId() {\r\n return messageId;\r\n }", "public String getEmail() { return (this.idcorreo == null) ? \"\" : this.idcorreo; }", "public Integer getMessageId() {\n\t\treturn messageId;\n\t}", "public final Long getMessageId( Message msg )\n\t{\n\t\treturn (Long) msg.get( _mf__messageId );\n\t}", "public int getMessageId() {\n return messageId;\n }", "public UUID getID() {\r\n if(!getPayload().has(\"id\")) return null;\r\n return UUID.fromString(getPayload().getString(\"id\"));\r\n }", "public int getMsgid() {\n return msgid_;\n }", "public int getContactIdByEmail(String email) {\r\n\t\tHttpGet request = new HttpGet(QueryId(email));\r\n credential(request);\r\n try {\r\n \tString jsonResponse = connectionHttp.ConnectionResponse(request); \t \r\n \t\tObjectMapper om = new ObjectMapper();\r\n \t\tJsonNode nodes = om.readTree(jsonResponse).get(PropertiesReader.stringElements());\r\n \t\treturn nodes.get(0).get(\"id\").asInt();\r\n }catch (ClientProtocolException e) {\r\n \treturn 0;\r\n }catch (IOException e) {\r\n \treturn 0;\r\n\t\t}catch (NullPointerException e) {\r\n \treturn 0;\r\n\t\t}\r\n\t}", "public Integer getMsgId() {\n return msgId;\n }", "java.lang.String getID();", "public String getId() {\n if (id == null)\n return \"\"; //$NON-NLS-1$\n return id;\n }", "public long getMessageId(int index) {\n return instance.getMessageId(index);\n }", "public String getContentId() {\n\n String as[] = getMimeHeader(\"Content-Id\");\n\n if (as != null && as.length > 0) {\n return as[0];\n } else {\n return null;\n }\n }", "public int getMsgid() {\n return msgid_;\n }", "String getInvitationId();", "public long getMessageId(int index) {\n return messageId_.getLong(index);\n }", "@Override\n\tpublic String getId() {\n\t\tString pName = ctx.getCallerPrincipal().getName();\n\t\tPerson p = userEJB.findPerson(pName);\n\t\tString id = p.getId()+\"\";\n\t\treturn id;\n\t\t\n\t}", "String getReceiptId();", "public long getMessageId() {\n return messageId_;\n }", "String getUserMail();", "public int getMessageId() {\n return messageId_;\n }", "public netty.framework.messages.MsgId.MsgID getMsgID() {\n return msgID_;\n }", "public netty.framework.messages.MsgId.MsgID getMsgID() {\n return msgID_;\n }", "protected String getMessageId(Exchange exchange) {\n switch (component) {\n case \"aws-sns\":\n return (String) exchange.getIn().getHeader(\"CamelAwsSnsMessageId\");\n case \"aws-sqs\":\n return (String) exchange.getIn().getHeader(\"CamelAwsSqsMessageId\");\n case \"ironmq\":\n return (String) exchange.getIn().getHeader(\"CamelIronMQMessageId\");\n case \"jms\":\n return (String) exchange.getIn().getHeader(\"JMSMessageID\");\n default:\n return null;\n }\n }", "public String recipientId() {\n return recipientId;\n }", "public netty.framework.messages.MsgId.MsgID getMsgID() {\n return msgID_;\n }", "public netty.framework.messages.MsgId.MsgID getMsgID() {\n return msgID_;\n }", "public ThreePid getEmailThreePid() {\n return mEmail;\n }", "public String getId() {\r\n\t\treturn userId.toString();\r\n\t}", "public long getId() {\n\t\treturn Long.parseLong(_id);\n\t}", "public long getId() {\n\t\treturn getTo(true).getId();\n\t}", "public Mail getMail() {\n return mail;\n }", "public int getMessageId() {\n return messageId_;\n }", "public String getID() {\r\n return insertMode ? null : stringValue(CONTACTS_ID);\r\n }", "public int getReceiverID(int messageID){\n Message message = allmessage.get(messageID);\n return message.getGetterid();\n }", "protected String getID(){\n sharedPref = getSharedPreferences(AppCSTR.PREF_NAME, Context.MODE_PRIVATE);\n //Log.d(\"ID\", sharedPref.getString(\"id\", null));\n return sharedPref.getString(AppCSTR.ACCOUNT_ID, null);\n }", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "public java.lang.String getID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$24);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public int getMailbox ()\n {\n return mailbox;\n }", "public java.lang.String getID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$12);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public java.lang.String getID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$12);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "@Override\n public String getUserId() {\n return email;\n }", "public static String id()\n {\n return _id;\n }", "public String getMessageId() {\n return this.messageId;\n }", "netty.framework.messages.MsgId.MsgID getMsgID();", "netty.framework.messages.MsgId.MsgID getMsgID();", "public int getSenderId() {\n return messages.get(messages.size()-1).getNodeId();\n }", "@Override\r\n\tpublic int getIdByEmail(String email) {\n\t\treturn 0;\r\n\t}", "public final long getExternalSubjectId() {\n\t\treturn Long.parseLong(getExternalSubjectIdAsString());\n\t}", "com.google.protobuf.ByteString\n getMessageIdBytes();" ]
[ "0.8163277", "0.6976142", "0.69559497", "0.68835723", "0.6874002", "0.6728356", "0.67198586", "0.66848254", "0.6682378", "0.6682378", "0.66412747", "0.6637155", "0.66198045", "0.6612233", "0.65489995", "0.64781815", "0.64714277", "0.64714277", "0.6462786", "0.64040726", "0.63902384", "0.6328436", "0.6326338", "0.6305143", "0.627637", "0.6259263", "0.62560517", "0.6225932", "0.6210998", "0.619497", "0.6191571", "0.6159533", "0.61590624", "0.6140562", "0.6135095", "0.61120987", "0.6104209", "0.6101782", "0.60886407", "0.6088244", "0.6088214", "0.6067679", "0.60340655", "0.6031116", "0.602136", "0.6020291", "0.6014828", "0.6014365", "0.60094917", "0.60013753", "0.59441185", "0.59439445", "0.59355694", "0.5929526", "0.5901073", "0.5896399", "0.5894417", "0.588532", "0.58821124", "0.58748335", "0.5869352", "0.5866715", "0.58660257", "0.5863771", "0.586264", "0.585677", "0.5846061", "0.5846061", "0.58448505", "0.58320594", "0.58294296", "0.58294296", "0.58160865", "0.5815642", "0.5814523", "0.5811085", "0.58057725", "0.58045787", "0.57967836", "0.5790408", "0.5785795", "0.57775044", "0.57775044", "0.57775044", "0.57775044", "0.57775044", "0.57775044", "0.5769184", "0.5768574", "0.576636", "0.576636", "0.57581306", "0.575074", "0.5749309", "0.5738858", "0.5738858", "0.573765", "0.57328993", "0.5726864", "0.57141167" ]
0.81620383
1
Sets the mail id.
public void setMailId(String mailId) { this.mailId = mailId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMailId(int v) \n {\n \n if (this.mailId != v)\n {\n this.mailId = v;\n setModified(true);\n }\n \n \n }", "public void setmailID(String mailID) {\n\t\t_mailID = mailID;\n\t}", "public String getMailId() {\n\t\treturn mailId;\n\t}", "public void setPrimaryKey( int mailId, int receiverId)\n \n {\n setMailId(mailId);\n setReceiverId(receiverId);\n }", "public String getmailID() {\n\t\treturn _mailID;\n\t}", "@Override\n\tpublic void modifyClientMail(long id, String mail) {\n\t\t\n\t}", "public void setId(long id) {\n\t\t_tempNoTiceShipMessage.setId(id);\n\t}", "public void setEmailId(String emailId);", "public void setMail(java.lang.String mail) {\n this.mail = mail;\n }", "public void setEmail(String p) { this.idcorreo = p; }", "public void setID(String id) {\r\n element.setAttributeNS(WSU_NS, WSU_PREFIX + \":Id\", id);\r\n }", "@Override\r\n\tpublic void updateEmail(Integer id, String email) {\n\t\t\r\n\t}", "public void setEmailId(final String emailId)\r\n {\r\n this.emailId = emailId;\r\n }", "public void setMailing(String mail) {\n mailing = mail;\n }", "public void setMailNo(String mailNo) {\n this.mailNo = mailNo;\n }", "@Override\n\tpublic void setId(long id) {\n\t\t_contentupdate.setId(id);\n\t}", "public void setEmailID(String emailID) {\n this.emailID = emailID;\n }", "public Builder setRecipientId(long value) {\n\n recipientId_ = value;\n bitField0_ |= 0x00000080;\n onChanged();\n return this;\n }", "public void setME(String id, Object me) {\n\t\tthis.m.addRecipient(id, me);\n\t\tthis.e.addRecipient(id, me);\n\t}", "void setSenderId(int id) {\n this.senderId = id;\n }", "public void setId(int id)\r\n {\r\n this.mId = id;\r\n }", "public void setId(String id) {\n mId = id;\n }", "public void setId(int id) {\n this.id = String.valueOf(this.hashCode());\n }", "void setMessageID(long messageID);", "public void setOrder(String id,String email);", "public void enterRandomEmailId() {\n String email = \"test\" + Utility.getRandomString(3) + \"@gmail.com\";\n Reporter.addStepLog(\"Enter email \" + email + \" to email field \" + _emailField.toString());\n sendTextToElement(_emailField, email);\n log.info(\"Enter email \" + email + \" to email field \" + _emailField.toString());\n }", "public void setId(String id)\n {\n data().put(_ID, id);\n }", "public void setidnumber(int id) {\r\n idnumber = id;\r\n }", "public void setNewsletterId(int v) \n {\n \n if (this.newsletterId != v)\n {\n this.newsletterId = v;\n setModified(true);\n }\n \n \n }", "public void setMailType(int v) \n {\n \n if (this.mailType != v)\n {\n this.mailType = v;\n setModified(true);\n }\n \n \n }", "public Builder setMsgid(int value) {\n bitField0_ |= 0x00000100;\n msgid_ = value;\n onChanged();\n return this;\n }", "public void setId(int id_)\n\t{\n\t\tthis.id=id_;\n\t}", "public void enterEmail(String emailId) {\r\n\t\tdriver.findElement(this.email).sendKeys(emailId);\r\n\t}", "public void assignId(int id);", "public void setId (long id)\r\n {\r\n _id = id;\r\n }", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(Object id) {\n this.id = id;\n }", "public String getEmailId() {\r\n\t\treturn emailId;\r\n\t}", "public void set(String id, Message mes) {\r\n messageMap.put(id, mes);\r\n }", "public void setId(String id)\n\t{\n\t\tm_sID=id;\t\n\t}", "public void setId (String id)\n {\n _id = id;\n }", "void setID(java.lang.String id);", "protected void setId(final String id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(String id) {\r\n\t\tsId = id;\r\n\t}", "public void setId(String id) {\n mBundle.putString(KEY_ID, id);\n }", "public void setEmailID(String emailID) {\n\t\tthis.emailID = emailID;\n\t}", "protected void setId(long id) {\n\t\tthis.id = id;\n\t}", "public String getEmailID() {\n\t\treturn emailID;\n\t}", "public void setId(String anId) {\n _theId = anId;\n }", "public void setEmailId(String emailId) {\n this.emailId = emailId;\n }", "public void setId(String id) {\n if (this.id == null) {\n this.id = id;\n }\n }", "public Builder setMessageID(long value) {\n bitField0_ |= 0x00000800;\n messageID_ = value;\n onChanged();\n return this;\n }", "public void setId(int id) {\n if (id != Mote.INVALID_ID) {\n moteId.setText(String.valueOf(id));\n }\n else {\n moteId.setText(\"\");\n }\n }", "public void setSendMail(SendMail sendMail) {\n this.sendMail = sendMail;\n }", "public void setID(long id);", "public void setId(ID id){\r\n\t\tthis.id = id;\r\n\t}", "protected void setId(String id) {\r\n assert id != null;\r\n\r\n this.id = id;\r\n }", "public OutMail (\r\n\t\t Long in_mailId\r\n ) {\r\n\t\tthis.setMailId(in_mailId);\r\n }", "public void setId(java.lang.String value) {\n this.id = value;\n }", "public void setId(java.lang.String value) {\n this.id = value;\n }", "public void setId(java.lang.String value) {\n this.id = value;\n }", "public void setPrimaryKey(ObjectKey key) throws TorqueException\n {\n SimpleKey[] keys = (SimpleKey[]) key.getValue();\n SimpleKey tmpKey = null;\n setMailId(((NumberKey)keys[0]).intValue());\n setReceiverId(((NumberKey)keys[1]).intValue());\n }", "public JoinNowPage enterEmailID() {\n\t\temail.sendKeys(\"[email protected]\");\n\t\treturn this;\n\t}", "public final void setId(long id) {\n mId = id;\n }", "public void setId(String id){\r\n\t\tthis.id = id;\r\n\t}", "public void setId (int id) {\r\n\t\tthis.id=id;\r\n\t}", "public void setId(String id) {\n _id = id;\n }", "public String getEmailId()\r\n {\r\n return emailId;\r\n }", "public void setId(String id) {\n\t\tthis._id = id;\n\t}", "public void setId(long id){\n\t\tthis.id = id;\n\t}", "public final void setId(final String id) {\r\n\t\tthis.id = id;\r\n\t}", "private void setMessageId(long value) {\n \n messageId_ = value;\n }", "public void setId(final int id) {\n mId = id;\n }", "void setId(java.lang.String id);", "public void setId(long id);", "public void setId(long id);", "public void setId(long id);", "public void setId(long id);", "public String getEmailId() {\n return emailId;\n }", "public void setId(long id) {\n\t\tgetTo(false).setId(id);\n\t}", "public void setId(String id) {\n\t\t_id = id;\n\t}", "public void setId(int id) {\n\t\tthis._id = id;\n\t}", "public void setId(int id) {\n\t\tthis._id = id;\n\t}", "public void setId(String id) {\r\n \t\tthis.id = id;\r\n \t}", "@Override\r\n\tpublic void setId(String id) {\n\t\tthis.id = id;\r\n\t}", "protected void setId(long id) {\n if (this.id == -1)\n this.id = id;\n }", "public void setId(int id){\n\t\tthis.id = id;\n\t}", "public void setId(final String id);", "public void setId(final String id);", "public void setId (String id) {\n this.id = id;\n }", "public void setId(long id) {\r\n this.id = id;\r\n }", "public void setId( final String id )\r\n {\r\n this.id = id;\r\n }", "@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }", "public void setId( String id ) {\n\t\t_id = id;\n\t}", "@Override\n public void setId(final long id) {\n super.setId(id);\n }", "public void setMentionID(long v) {\n _setLongValueNfc(wrapGetIntCatchException(_FH_mentionID), v);\n }", "void setId(int id) {\n this.id = id;\n }", "public void setMailService(IMailService mailService) {\n\n this.mailService = mailService;\n }", "void xsetID(org.apache.xmlbeans.XmlString id);", "public void setId(int id) {\n \t\tthis.id = id;\n \t}" ]
[ "0.77154773", "0.73266053", "0.7017565", "0.69242847", "0.68454367", "0.6762985", "0.6216698", "0.61503005", "0.612021", "0.6067588", "0.5953872", "0.5937659", "0.5872336", "0.5870279", "0.5869056", "0.5837342", "0.5827681", "0.5826471", "0.58183974", "0.5811807", "0.5800233", "0.57934725", "0.5787217", "0.5782585", "0.5778083", "0.5754827", "0.5746008", "0.5744221", "0.57437974", "0.57437634", "0.5743314", "0.5742839", "0.57427204", "0.57191086", "0.57149506", "0.57028526", "0.57028526", "0.56946194", "0.5690636", "0.56883883", "0.5685414", "0.56714016", "0.566461", "0.5655788", "0.5651448", "0.56498337", "0.56415546", "0.563296", "0.56279516", "0.5622095", "0.56211257", "0.56200886", "0.56167597", "0.56127065", "0.5612057", "0.5607144", "0.5598757", "0.55979514", "0.5594963", "0.5594963", "0.5594963", "0.5591976", "0.55899596", "0.55863976", "0.5576874", "0.5572367", "0.5569826", "0.55694366", "0.556222", "0.5562191", "0.5561107", "0.5560214", "0.5559565", "0.5557825", "0.5556213", "0.5556213", "0.5556213", "0.5556213", "0.5553882", "0.5550845", "0.554144", "0.55413616", "0.55413616", "0.5537367", "0.5536423", "0.55213946", "0.5518324", "0.55171674", "0.55171674", "0.55151063", "0.5514863", "0.5513226", "0.5513054", "0.5511401", "0.5507607", "0.5502438", "0.5498275", "0.5497494", "0.5496184", "0.549597" ]
0.6988149
3
Gets the admin id.
public int getAdminId() { return adminId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAdminId() {\n return adminId;\n }", "public String getAdminId() {\n return adminId;\n }", "public String getAdminid() {\r\n return adminid;\r\n }", "public int getAdmin() {\n return admin;\n }", "public String getAdminName() {\n return adminName;\n }", "public String getAdminName() {\n return adminName;\n }", "public String getAdminUser() {\n return adminUser;\n }", "public ArrayList<Integer> getAdminIDs() {\n return adminIDs;\n }", "public String getAdminname() {\n return adminname;\n }", "java.lang.String getAdmin();", "public String getAdminName() {\n\t\treturn adminName;\n\t}", "public Long getAdminRoleId() {\n\t\treturn this.adminRoleId;\n\t}", "public java.lang.String getAdmin() {\n java.lang.Object ref = admin_;\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 admin_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getAdminUsername() {\n\treturn adminUsername;\n}", "public int getCod_admin() {\r\n return cod_admin;\r\n }", "public String getAdminAddr() {\n return adminAddr;\n }", "public int getIdAdministradorf() {\n return idAdministradorf;\n }", "@Override\n\tpublic Admin getAdminById(int id) {\n\t\treturn ar.getOne(id);\n\t}", "public String getAdminCode(){\n return this.adminCode;\n }", "@java.lang.Override\n public java.lang.String getAdmin() {\n java.lang.Object ref = admin_;\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 admin_ = s;\n return s;\n }\n }", "@Override\n\tpublic AdminEntity getAdmin(int adminID) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic int getLastId() {\n\t\treturn adminDAO.getLastId();\r\n\t}", "public Long getProposalAdminDetailId() {\n return proposalAdminDetailId;\n }", "public void setAdminId(int adminId) {\n\t\tthis.adminId = adminId;\n\t}", "@Override\n\tpublic Admin getAdminById(Long adminId) {\n\t\treturn (Admin) getSession().get(Admin.class, adminId);\n\t}", "public URI getAdminURL() {\n return adminURL;\n }", "static public int getADMIN() {\n return 1;\n }", "public String getAdminUserName() {\n return adminUserName;\n }", "public com.google.protobuf.ByteString\n getAdminBytes() {\n java.lang.Object ref = admin_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n admin_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public void setAdminId(String adminId) {\n this.adminId = adminId == null ? null : adminId.trim();\n }", "public void setAdminId(String adminId) {\n this.adminId = adminId == null ? null : adminId.trim();\n }", "public String getAdminTel() {\n return adminTel;\n }", "@Override\n\tpublic Admin getAdmin(String adminId) {\n\t\tif(!adminRepository.existsById(adminId))\n\t\t\tthrow new AdminNotFoundException(\"User with id \"+adminId+\" Not Found\");\n\t\treturn adminRepository.getOne(adminId);\n\t}", "public static SecretKey getAdminLoggingKey() {\n return adminLoggingKey;\n }", "public String getAdminPhone() {\n return adminPhone;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getAdminBytes() {\n java.lang.Object ref = admin_;\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 admin_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getAdminLevel()\n\t{\n\t\treturn m_adminLevel;\n\t}", "public Integer getIsadmin() {\r\n return isadmin;\r\n }", "public Integer getAdminStatus() {\n return adminStatus;\n }", "public int getID() {\n\t\treturn manager_id;\n\t}", "public String getAdminRole() {\r\n\t\treturn adminRole;\r\n\t}", "public String getAdminPwd() {\n return adminPwd;\n }", "public String getAdminpass() {\n return adminpass;\n }", "public String getID(){\n return this.getKey().getTenantId(this.getTenantName());\n }", "public static SecretKey getAdminEncryptionKey() {\n return adminEncryptionKey;\n }", "public String getAdminpwd() {\r\n return adminpwd;\r\n }", "public Admin getAdminByid(int id) {\n\t\treturn adminMapper.selectAdminByid(id);\n\t\t//return admins;\n\t}", "public static String id()\n {\n return _id;\n }", "public static String getAdminIdIfLoggedIn(final Http.Context ctx){\n AuthUser u = PlayAuthenticate.getUser(ctx.session());\n if (u == null) return null;\n if (ADMIN_ID.equals(u.getId())) {\n System.out.println(\"SECURED ADMIN nech sa paci\");\n User user = User.find.ref(u.getId());\n if (new Date().getTime() - user.lastUpdate > 1_700_000){\n System.out.println(\"--------------------update access token from SecuredAdmin\");\n try {\n user.updateAccessToken();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n ctx.session().put(\"accessToken\", user.accessToken);\n }else{\n System.out.println(\"Secured Admin A sakra POST sa nerobil ubehlo zatial: \" + (new Date().getTime() - user.lastUpdate));\n }\n return u.getId();\n }\n System.out.println(\"SECURED ADMIN vracia NULL pristup odoporeny\");\n return null;\n }", "private ApplicationUser getAdminUser() {\n GroupManager groupManager = ComponentAccessor.getGroupManager();\n\n Collection <ApplicationUser> adminUsers = groupManager.getUsersInGroup(\"jira-administrators\",false);\n if ( adminUsers != null && adminUsers.size() > 0 ) {\n return adminUsers.iterator().next();\n }\n return null;\n }", "public String getPermissionAdmin() {\n return permissionAdmin;\n }", "@GetMapping(\"/{id}\")\n public Optional<Admin> getAdmin(@PathVariable int id){\n return adminService.getAdmin(id);\n }", "@Override\r\n\tpublic int deleteAdmin(int adminid) {\n\t\treturn administratorDao.deleteByPrimaryKey(adminid);\r\n\t}", "public java.lang.String getAdministrator () {\n\t\treturn administrator;\n\t}", "Admin selectByPrimaryKey(Integer adminid);", "public void deleteAdmin(Long idAdmin);", "public AdminEAO getAdminEAO()\n {\n return adminEAO;\n }", "Admin selectByPrimaryKey(Integer adminId);", "public void setAdminid(String adminid) {\r\n this.adminid = adminid == null ? null : adminid.trim();\r\n }", "public String getAdmId() {\n return admId;\n }", "@Override\n\tpublic String deleteAdminById(int id) {\n\t\tar.deleteById(id);\n\t\treturn \"Admin with id: \" + id + \" was deleted.\";\n\t}", "private long getOwnID(){\n return authenticationController.getMember() == null ? -1 :authenticationController.getMember().getID();\n }", "public String getId() {\r\n\t\treturn userId.toString();\r\n\t}", "public Integer getManagerId() {\n return managerId;\n }", "public String getNombreAdministrador() {\n return nombreAdministrador;\n }", "com.google.protobuf.ByteString\n getAdminBytes();", "public String getIsAdmin() {\n return isAdmin;\n }", "public Integer getMemberId() {\n return (Integer) get(2);\n }", "@Override\r\n\tpublic Integer findAdminPassword(Admin admin) {\n\t\treturn adminMapper.findAdminPassword(admin);\r\n\t}", "public String getAdminOther() {\n return adminOther;\n }", "public static Map<String, Admin> getAdminMap() {\r\n return adminMap;\r\n }", "public static SecretKey getAdminSigningKey() {\n return adminSigningKey;\n }", "public Long getId() {\n return this.id.get();\n }", "java.lang.String getNewAdmin();", "int getLoginId();", "int getLoginId();", "int getLoginId();", "int getLoginId();", "int getLoginId();", "AdminPreference getAdminPreference(AuthenticationToken admin);", "public void setAdmin(int admin) {\n this.admin = admin;\n }", "public int getId()\r\n\t{\r\n\t\treturn this.userId;\r\n\t}", "public int getGameManagerID() {\n return ID;\n }", "public int getId() {\n if (!this.registered)\n return -1;\n return id;\n }", "public java.lang.String getNewAdmin() {\n java.lang.Object ref = newAdmin_;\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 newAdmin_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public long getMemberId() {\n return _sTransaction.getMemberId();\n }", "long getLoginId();", "long getLoginId();", "long getLoginId();", "public java.lang.Long getUsua_id();", "Integer getRealmId();", "String getLoginId();", "public Integer geteId() {\n return eId;\n }", "public Integer geteId() {\n return eId;\n }", "public PanelAdminConfig getAdminConfig(){\n return adminConfig;\n }", "protected String getCustomerID() {\n\t\treturn this.clientUI.getCustomerID();\n\t}", "public Admin queryOneAdmin(Admin admin);", "@Override\n\tpublic Admin getAdminByLoginNameAndPassword(int parseInt) {\n\t\tString hql = \"from Admin a where a.id=?\";\n\t\tList<Admin> al = getHibernateTemplate().find(hql,parseInt);\n\t\treturn al.isEmpty()||al==null?null:al.get(0);\n\t}", "@Override\n\tpublic String getUsername() {\n\t\treturn admin.getPassword();\n\t}", "public Long getId()\n\t{\n\t\treturn (Long) this.getKeyValue(\"id\");\n\n\t}" ]
[ "0.8477229", "0.8477229", "0.82715625", "0.7507442", "0.6976115", "0.6976115", "0.69445884", "0.6921598", "0.69123137", "0.6856799", "0.6853589", "0.6802345", "0.6675946", "0.6618764", "0.65974706", "0.65930706", "0.65498036", "0.6542557", "0.65417725", "0.65325147", "0.6512185", "0.65085626", "0.65082705", "0.6505423", "0.65008175", "0.64905804", "0.64719445", "0.64099395", "0.63236105", "0.62946934", "0.62946934", "0.6288719", "0.6278266", "0.6267439", "0.62587297", "0.6251024", "0.62507385", "0.62499845", "0.6248728", "0.62202054", "0.6184901", "0.61843127", "0.6157881", "0.61465925", "0.6139585", "0.61376464", "0.6106317", "0.60766196", "0.6073897", "0.60576737", "0.60473835", "0.6039993", "0.6037245", "0.60323447", "0.6003876", "0.5995472", "0.59931576", "0.59890443", "0.5980351", "0.5976439", "0.59753305", "0.5971681", "0.5969696", "0.5934549", "0.5932826", "0.59256995", "0.59080744", "0.5905676", "0.58941996", "0.58904356", "0.5884433", "0.58717495", "0.58716875", "0.58603024", "0.5858929", "0.5858929", "0.5858929", "0.5858929", "0.5858929", "0.58535165", "0.58481634", "0.5834235", "0.5826625", "0.5804055", "0.5802125", "0.57986414", "0.57976115", "0.57976115", "0.57976115", "0.57953143", "0.5792184", "0.57813835", "0.5777061", "0.5777061", "0.57733095", "0.57718784", "0.57637435", "0.57627815", "0.57527673", "0.57458776" ]
0.84706116
2
Sets the admin id.
public void setAdminId(int adminId) { this.adminId = adminId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAdminId(String adminId) {\n this.adminId = adminId == null ? null : adminId.trim();\n }", "public void setAdminId(String adminId) {\n this.adminId = adminId == null ? null : adminId.trim();\n }", "public void setAdminid(String adminid) {\r\n this.adminid = adminid == null ? null : adminid.trim();\r\n }", "public int getAdminId() {\n\t\treturn adminId;\n\t}", "public String getAdminId() {\n return adminId;\n }", "public String getAdminId() {\n return adminId;\n }", "public void setAdmin(int admin) {\n this.admin = admin;\n }", "public String getAdminid() {\r\n return adminid;\r\n }", "@RequestMapping(value=\"/players/setAdmin\", method=RequestMethod.POST)\n\t@ResponseBody\n\tpublic void setAdmin(String id) {\n\t\tplayerService.setAdmin(playerService.getPlayerById(id));\n\n\t}", "@External\n\tpublic void set_admin(Address _admin) {\n\t\t\n\t\tif (Context.getCaller().equals(this.super_admin.get())) {\n\t\t\tthis.admin_list.add(_admin);\n\t\t}\t\t\n\t}", "public void setAdmins(ArrayList<Integer> adminIDs) {\n this.adminIDs = adminIDs;\n }", "public void setIdAdministradorf(int idAdministradorf) {\n this.idAdministradorf = idAdministradorf;\n }", "public void setAdmin( boolean admin )\n {\n this.admin = admin;\n }", "public void setAdmin(boolean admin) {\n this.admin = admin;\n }", "public Builder setAdmin(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n admin_ = value;\n onChanged();\n return this;\n }", "public void deleteAdmin(Long idAdmin);", "public void setIsadmin(Integer isadmin) {\r\n this.isadmin = isadmin;\r\n }", "public void setAdminStatus(Integer adminStatus) {\n this.adminStatus = adminStatus;\n }", "protected void setId(short id) {\n this.id = id;\n }", "public void setAdminURL(URI adminURL) {\n this.adminURL = adminURL;\n }", "public void setAdminName(String adminName) {\n this.adminName = adminName == null ? null : adminName.trim();\n }", "public void setAdminName(String adminName) {\n this.adminName = adminName == null ? null : adminName.trim();\n }", "@Override\r\n\tpublic void saveAdmin(Admin admin) {\n\t\tdao.saveAdmin(admin);\r\n\t}", "public void setAdminname(String adminname) {\n this.adminname = adminname == null ? null : adminname.trim();\n }", "public void setCod_admin(int cod_admin) {\r\n this.cod_admin = cod_admin;\r\n }", "public void updateAdmin(Admin admin) {\n\t\tadminDao.updateAdmin(admin);\r\n\t\t\r\n\t}", "@Override\r\n\tpublic int deleteAdmin(int adminid) {\n\t\treturn administratorDao.deleteByPrimaryKey(adminid);\r\n\t}", "public void setAdminName(String adminName) {\n\t\tAdminName = adminName;\n\t}", "public void setId(String id) {\n this.ide = id;\n //System.out.println(\"linkyhandler setid \" + ide);\n }", "public void setAdminName(String adminName) {\n\t\tthis.adminName = adminName;\n\t}", "public static void retrocedi_admin(int id) {\r\n\t\ttry {\r\n\t\tDatabase.connect();\r\n\t\tDatabase.updateRecord(\"utente\", \"utente.ruolo=2\", \"utente.id=\"+id); \t\t\r\n\t\tDatabase.close();\r\n\t\t}catch(NamingException e) {\r\n \t\tSystem.out.println(e);\r\n }catch (SQLException e) {\r\n \tSystem.out.println(e);\r\n }catch (Exception e) {\r\n \tSystem.out.println(e); \r\n }\r\n\t}", "public void addAdmin(Admin admin);", "public void addAdministrator(Administrator admin) {\n\t\ttry {\n\t\t\tConnection conn = DbConnections.getConnection(DbConnections.ConnectionType.POSTGRESQL);\n\t\t\tPreparedStatement ps = conn.prepareStatement(\n\t\t\t\t\t\"insert into public.administrator(id_user, nume, prenume) values(?,?,?)\", Statement.RETURN_GENERATED_KEYS);\n\t\t\tps.setInt(1, admin.getIdUser());\n\t\t\tps.setString(2, admin.getNume());\n\t\t\tps.setString(3, admin.getPrenume());\n\n\t\t\tint affectedRows = ps.executeUpdate();\n\t\t\tResultSet rs = ps.getGeneratedKeys();\n\t\t\tif (rs.next()) {\n\t\t\t\tadmin.setId(rs.getInt(1));\n\t\t\t}\n\t\t\tDbConnections.closeConnection(conn);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void setAdminPhone(String adminPhone) {\n this.adminPhone = adminPhone == null ? null : adminPhone.trim();\n }", "public void setAdminUsername(String adminUsername) {\n\tthis.adminUsername = adminUsername;\n}", "public int getAdmin() {\n return admin;\n }", "public void setAdminAddr(String adminAddr) {\n this.adminAddr = adminAddr == null ? null : adminAddr.trim();\n }", "public void setAdmin(boolean value) {\r\n this.admin = value;\r\n }", "public Builder setNewAdmin(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n newAdmin_ = value;\n onChanged();\n return this;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "void setId(Long id);", "public void assignCurrentAdminUser(final String val) {\n currentAdminUser = val;\n }", "public void setAdminUser(String adminUser) {\n this.adminUser = adminUser == null ? null : adminUser.trim();\n }", "public void setAdminLevel(int adminLevel)\n\t{\n\t\tm_adminLevel = adminLevel;\n\t}", "public void setId (long id)\r\n {\r\n _id = id;\r\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setIdManager(IdMgr idMgr);", "public void setId(Long id){\n\t\tthis.id = id;\n\t}", "public void setId(Long id){\n\t\tthis.id = id;\n\t}", "public void setId(Long id){\n\t\tthis.id = id;\n\t}", "public void setId(Long id) {\n\t\t\n\t}", "public void setId(short value) {\n this.id = value;\n }", "void setId(int id) {\n this.id = id;\n }", "public void setId(int id){\r\n this.id = id;\r\n }", "public void setId(Long id){\n this.id = id;\n }", "public void setId(long id){\n\t\tthis.id = id;\n\t}", "public void setID(long id);", "public void setId( Long id ) {\n this.id = id ;\n }", "public void setId(ID id){\r\n\t\tthis.id = id;\r\n\t}", "protected void setId(long id) {\n\t\tthis.id = id;\n\t}", "private void setId(int value) {\n \n id_ = value;\n }", "public void setId (int id) {\r\n\t\tthis.id=id;\r\n\t}", "public void setId(long id) {\r\n this.id = id;\r\n }", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(Long id) \r\n {\r\n this.id = id;\r\n }", "public void setId(Long id)\r\n {\r\n this.id = id;\r\n }", "public void setId(Long id)\n {\n this.id = id;\n }", "public void setId(int value) {\r\n this.id = value;\r\n }", "public void setId(String id){\r\n\t\tthis.id = id;\r\n\t}", "public void setId(Long value) {\r\n this.id = value;\r\n }", "public void setId(Long id) \n {\n this.id = id;\n }", "@Override\r\n\tpublic void setId(String id) {\n\t\tmWarehouseId = id;\r\n\t}", "public ArrayList<Integer> getAdminIDs() {\n return adminIDs;\n }", "public void setId (String id)\n {\n _id = id;\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "@RolesAllowed(RoleEnum.ROLE_ADMIN)\n\tpublic Integer saveAdmin(Admin admin);", "public void setId(long id) {\n this.id = id;\n }", "public void setId(long id) {\n this.id = id;\n }", "public void defId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "@Override\n\tpublic String deleteAdminById(int id) {\n\t\tar.deleteById(id);\n\t\treturn \"Admin with id: \" + id + \" was deleted.\";\n\t}", "public void setId(Long id) {\n this.id = id;\n }" ]
[ "0.76581776", "0.76581776", "0.7468752", "0.7358959", "0.72417414", "0.72417414", "0.7173319", "0.7172991", "0.6811887", "0.65485775", "0.6501027", "0.6345086", "0.62507695", "0.62131906", "0.61790925", "0.61712354", "0.61648184", "0.6106016", "0.6105213", "0.6039306", "0.60199094", "0.60199094", "0.5986947", "0.5975296", "0.59740597", "0.5942833", "0.5930751", "0.59303", "0.58955216", "0.589368", "0.58643335", "0.5860001", "0.5859563", "0.5850634", "0.58494097", "0.58439946", "0.5843759", "0.5803222", "0.57926375", "0.5782109", "0.5762342", "0.5757581", "0.5746512", "0.5745667", "0.57255447", "0.5722777", "0.5722777", "0.5722217", "0.5721277", "0.5721277", "0.5721277", "0.5719837", "0.57058215", "0.5699069", "0.5690327", "0.56881577", "0.5685486", "0.5679044", "0.5675842", "0.56730056", "0.56656295", "0.5664974", "0.5660787", "0.56569445", "0.5656802", "0.5656802", "0.5655798", "0.5654198", "0.56535405", "0.5650097", "0.56468135", "0.56452423", "0.5644304", "0.5643347", "0.56426495", "0.56414354", "0.5640398", "0.5640398", "0.5640398", "0.5640398", "0.5640398", "0.5640398", "0.5640398", "0.5640398", "0.5640398", "0.5640398", "0.5640398", "0.5640398", "0.5640398", "0.5640398", "0.5640398", "0.5640398", "0.5640398", "0.5640398", "0.5634756", "0.5633702", "0.5633702", "0.5633258", "0.5626425", "0.5624717" ]
0.7735195
0
Gets the admin name.
public String getAdminName() { return adminName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAdminname() {\n return adminname;\n }", "public String getAdminName() {\n return adminName;\n }", "public String getAdminName() {\n return adminName;\n }", "java.lang.String getAdmin();", "public java.lang.String getAdmin() {\n java.lang.Object ref = admin_;\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 admin_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@java.lang.Override\n public java.lang.String getAdmin() {\n java.lang.Object ref = admin_;\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 admin_ = s;\n return s;\n }\n }", "public String getAdminUserName() {\n return adminUserName;\n }", "public String getAdminUsername() {\n\treturn adminUsername;\n}", "public String getAdminId() {\n return adminId;\n }", "public String getAdminId() {\n return adminId;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getAdminBytes() {\n java.lang.Object ref = admin_;\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 admin_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getNombreAdministrador() {\n return nombreAdministrador;\n }", "public java.lang.String getAdministrator () {\n\t\treturn administrator;\n\t}", "public java.lang.String getNewAdmin() {\n java.lang.Object ref = newAdmin_;\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 newAdmin_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public com.google.protobuf.ByteString\n getAdminBytes() {\n java.lang.Object ref = admin_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n admin_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getAdminid() {\r\n return adminid;\r\n }", "public String getAdminUser() {\n return adminUser;\n }", "@Override\n\tpublic String getUsername() {\n\t\treturn admin.getPassword();\n\t}", "public void setAdminName(String adminName) {\n\t\tAdminName = adminName;\n\t}", "public void setAdminName(String adminName) {\n\t\tthis.adminName = adminName;\n\t}", "public int getAdmin() {\n return admin;\n }", "java.lang.String getNewAdmin();", "public String getPermissionAdmin() {\n return permissionAdmin;\n }", "public void setAdminName(String adminName) {\n this.adminName = adminName == null ? null : adminName.trim();\n }", "public void setAdminName(String adminName) {\n this.adminName = adminName == null ? null : adminName.trim();\n }", "public int getAdminId() {\n\t\treturn adminId;\n\t}", "public String getAdminAddr() {\n return adminAddr;\n }", "@java.lang.Override\n public java.lang.String getNewAdmin() {\n java.lang.Object ref = newAdmin_;\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 newAdmin_ = s;\n return s;\n }\n }", "String getManagerName();", "public URI getAdminURL() {\n return adminURL;\n }", "public String name() {\n return aliases.get(0);\n }", "public String getName() {\n return user.getName();\n }", "public String getName() {\n return (String) getObject(\"username\");\n }", "public String getIsAdmin() {\n return isAdmin;\n }", "public String getAdminCode(){\n return this.adminCode;\n }", "public String getName() {\n\t\treturn this.username;\n\t}", "@Override\n\tpublic String getAdminAuth() {\n\t\tSet<String> sets = Constant.authMap.keySet();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tif (null != sets) {\n\t\t\tfor (String auth : sets) {\n\t\t\t\tsb.append(auth);\n\t\t\t\tsb.append(Constant.SPLITER_COMMA);\n\t\t\t}\n\t\t}\n\n\t\treturn sb.toString();\n\t}", "public String getName() {\r\n\t\treturn name.get();\r\n\t}", "public String getName() {\n return name.get();\n }", "public static String getName()\n {\n read_if_needed_();\n \n return _get_name;\n }", "protected String getDefaultUserName()\n {\n return \"admin\";\n }", "public String getAdminOther() {\n return adminOther;\n }", "public String getTheName() {\n\t\treturn name.getText();\n\t}", "public String getName() {\n return name + \"\";\n }", "public String name() {\n return celestialName;\n }", "public String getAdmName() {\n return admName;\n }", "public String getName() {\r\n\t\treturn LocalizedTextManager.getDefault().getProperty(name());\r\n\t}", "public String getAdminRole() {\r\n\t\treturn adminRole;\r\n\t}", "public String getName() {\n\t\treturn name != null ? name : getDirectory().getName();\n\t}", "public String getName() {\n\t\treturn MenuString;\n\t}", "public String getName() {\n\t\treturn (String) get_Value(\"Name\");\n\t}", "public String getName() {\n\t\treturn (String) get_Value(\"Name\");\n\t}", "public String getName() {\n\t\treturn (String) get_Value(\"Name\");\n\t}", "public String getName() {\r\n\t\treturn username;\r\n\t}", "public static String getName() {\n return name;\n }", "public String getName(){\n \treturn this.name().replace(\"_\", \" \");\n }", "public String getName() {\n\t\tSharedPreferences settings = parentContext.getSharedPreferences(PREFERENCE_FILE,\n\t\t\t\tContext.MODE_PRIVATE);\n\t\treturn settings.getString(USERNAME_KEY, null);\n\t}", "public String getName() {\n\t\treturn this.toString();\n\t}", "public String getStrDashboardName() {\n return strDashboardName;\n }", "public String getName() {\n return getProperty(Property.NAME);\n }", "public String getName() {\n if(name == null)\n return \"\"; \n return name;\n }", "public String getName() {\r\n return this.name();\r\n }", "public String getName() {\n return aao.getName();\n }", "@ZAttr(id=674)\n public String getHelpAdminURL() {\n return getAttr(Provisioning.A_zimbraHelpAdminURL, null);\n }", "public com.google.protobuf.ByteString\n getNewAdminBytes() {\n java.lang.Object ref = newAdmin_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n newAdmin_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.commercetools.api.models.common.LocalizedString getName() {\n return this.name;\n }", "public void setAdminname(String adminname) {\n this.adminname = adminname == null ? null : adminname.trim();\n }", "@Transient\n public String getGuestName() {\n return primaryRole.isRegisteredUser() ? primaryRole.getDisplayNameResolved() : ((Guest) primaryRole).getDisplayName();\n }", "@Override\n public String getLName() {\n\n if(this.lName == null){\n\n this.lName = TestDatabase.getInstance().getClientField(token, id, \"lName\");\n }\n\n return lName;\n }", "public java.lang.String getNameAsString()\n {\n return getName().toString();\n }", "public String getName() {\n return this.name().toLowerCase(Locale.US);\n }", "@ApiModelProperty(value = \"The username, which is unique within a Cloudera Manager installation.\")\n\n\n public String getName() {\n return name;\n }", "@AutoEscape\n public String getGeneralManagerName();", "public String getName() {\r\n\t\treturn GDAssemblerUI.getText(UI_TEXT);\r\n\t}", "public final String getName() {\n if (name == null) {\n name = this.getClass().getSimpleName().substring(3);\n }\n return name;\n }", "public String getAdminPhone() {\n return adminPhone;\n }", "@ZAttr(id=696)\n public String getAdminConsoleLoginURL() {\n return getAttr(Provisioning.A_zimbraAdminConsoleLoginURL, null);\n }", "public String getName() {\n\t\t\n\t\tString name = \"\";\n\t\t\n\t\tif (securityContext != null) {\n\t\t\tname = securityContext.getIdToken().getPreferredUsername();\n\t\t}\n\t\t\n\t\treturn name;\n\t}", "public String getName() {\r\n\t\treturn this.userName;\r\n\t}", "public String getName() {\n return (String) getValue(NAME);\n }", "public final String getName() {\n\treturn name.getName();\n }", "public String getAdminTel() {\n return adminTel;\n }", "public String getName() {\n return (NAME_PREFIX + _applicationId + DELIM + _endpointId);\n }", "public java.lang.String getName();", "public String geteName() {\n return eName;\n }", "public String getName()\n\t{\n\t\tString strName;\n\t\tstrName=this.name;\n\t\treturn strName;\n\t}", "static public int getADMIN() {\n return 1;\n }", "public String getName()\n {\n return (this.name);\n }", "public final String getName() {\n\t\treturn this.name;\n\t}", "com.google.protobuf.ByteString\n getAdminBytes();", "protected String getName() {\n\t\t\t\treturn name;\n\t\t\t}", "@java.lang.Override\n public com.google.protobuf.ByteString\n getNewAdminBytes() {\n java.lang.Object ref = newAdmin_;\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 newAdmin_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getLocalizedName()\n {\n return StatCollector.translateToLocal(this.getUnlocalizedName() + \".\" + TreeOresLogs2.EnumType.DIAMOND.getUnlocalizedName() + \".name\");\n }", "protected String getName() {\n\t\treturn name;\n\t}", "protected String getName() {\n\t\treturn name;\n\t}", "@ZAttr(id=701)\n public String getWebClientAdminReference() {\n return getAttr(Provisioning.A_zimbraWebClientAdminReference, null);\n }", "public Name getAlias() {\n\t\treturn getSingleName();\n\t}", "public String getAdminpass() {\n return adminpass;\n }", "String getName() {\n\t\treturn customer.getName();\n\t}", "public String getName()\n\t\t{\n\t\t\treturn this.name;\n\t\t}" ]
[ "0.8478206", "0.8471725", "0.8471725", "0.7737027", "0.7556323", "0.741367", "0.70139396", "0.6958255", "0.6867049", "0.6867049", "0.6833623", "0.68329793", "0.68250936", "0.68054223", "0.6804805", "0.6794629", "0.67848885", "0.67408335", "0.67395514", "0.6711558", "0.6647906", "0.65362877", "0.65192777", "0.6506", "0.6506", "0.6477787", "0.6476641", "0.64671665", "0.6433951", "0.64248246", "0.6376309", "0.6348041", "0.63420784", "0.62742305", "0.62589586", "0.62509304", "0.6244026", "0.6228852", "0.62277055", "0.62234616", "0.6205875", "0.6205434", "0.6198229", "0.619778", "0.61890095", "0.617284", "0.61626464", "0.61595356", "0.61546224", "0.61504275", "0.6140455", "0.6140455", "0.6140455", "0.6134144", "0.6131777", "0.6117893", "0.61032814", "0.6102987", "0.60987204", "0.6097272", "0.6094348", "0.6086634", "0.60847294", "0.60841095", "0.6081757", "0.6081388", "0.6078688", "0.6071343", "0.60648876", "0.6060886", "0.60558236", "0.60499936", "0.6039523", "0.60334194", "0.6030958", "0.60303307", "0.6025613", "0.6024853", "0.6023855", "0.6019237", "0.6017839", "0.60144657", "0.60108376", "0.60001415", "0.6000067", "0.59983337", "0.59957594", "0.5983175", "0.5977815", "0.5977316", "0.59721863", "0.59720576", "0.59708816", "0.5968915", "0.5968915", "0.5967365", "0.59583765", "0.5939898", "0.5933731", "0.59331" ]
0.84688926
3
Sets the admin name.
public void setAdminName(String adminName) { this.adminName = adminName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAdminName(String adminName) {\n\t\tAdminName = adminName;\n\t}", "public void setAdminName(String adminName) {\n this.adminName = adminName == null ? null : adminName.trim();\n }", "public void setAdminName(String adminName) {\n this.adminName = adminName == null ? null : adminName.trim();\n }", "public void setAdminname(String adminname) {\n this.adminname = adminname == null ? null : adminname.trim();\n }", "public String getAdminName() {\n\t\treturn adminName;\n\t}", "public String getAdminname() {\n return adminname;\n }", "public String getAdminName() {\n return adminName;\n }", "public String getAdminName() {\n return adminName;\n }", "public Builder setAdmin(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n admin_ = value;\n onChanged();\n return this;\n }", "public void setName(String name) {\n setUserProperty(\"ant.project.name\", name);\n this.name = name;\n }", "public Builder setNewAdmin(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n newAdmin_ = value;\n onChanged();\n return this;\n }", "public void setAdmin(int admin) {\n this.admin = admin;\n }", "public void setName(String value) {\n this.name = value;\n }", "public void setName(String s) {\n\t\t\n\t\tname = s;\n\t}", "public void setName(String value) {\n\t\tname = value;\n\t}", "public void setName (String name) {\n this.name = name;\n NameRegistrar.register (\"server.\"+name, this);\n }", "public void setName(String name) {\n\t\tName = name;\n\t}", "public void setName(String s) {\n this.name = s;\n }", "private void setName(java.lang.String name) {\n System.out.println(\"setting name \"+name);\n this.name = name;\n }", "protected void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\n if (!name.isEmpty()) {\n this.name = name;\n }\n }", "public void setName(String nm){\n\t\tname = nm;\n\t}", "public void setName(java.lang.String value) {\n this.name = value;\n }", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String val) {\n name = val;\n }", "public void setName(String name) {\t\t\r\n\t\tthis.name = name;\t\t\r\n\t}", "public void setName (String n){\n\t\tname = n;\n\t}", "public void setName(String name){\r\n gotUserName = true;\r\n this.name = name;\r\n }", "public void setName(String new_name){\n this.name=new_name;\n }", "public void setName(String n) {\r\n name = n;\r\n }", "public void setName(String name){\n \t\tthis.name = name;\n \t}", "protected void setName(String name) {\n this._name = name;\n }", "protected void setName(String name) {\r\n this.name = name;\r\n }", "public void setAdminUsername(String adminUsername) {\n\tthis.adminUsername = adminUsername;\n}", "public void setName(String name) {\n \tthis.name = name;\n }", "public void setName(String name) {\n \tthis.name = name;\n }", "@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\n\t\tthis.name = name;\n\t}", "public void setName(String name){\n\t\tthis.name = name;\n\t}", "public void setName(String name){\n\t\tthis.name = name;\n\t}", "@Override\n\tpublic void setName(String name) {\n\t\tsuper.setName(name);\n\t}", "@Override\n\tpublic void setName(String name) {\n\t\tsuper.setName(name);\n\t}", "public synchronized void setName(final InternationalString newValue) {\n checkWritePermission();\n name = newValue;\n }", "public void setName( String name ) {\n this.name = name;\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "protected void setName(final String name) {\r\n\t\tthis.name = name;\r\n\t}", "@Override\n\tpublic void setName( final String name )\n\t{\n\t\tsuper.setName( name );\n\t}", "public void setName(String newname)\n {\n name = newname;\n \n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "public void setName(String aName) {\n name = aName;\n }", "public void setName( String name )\n {\n this.name = name;\n }", "public void setName( String name )\n {\n this.name = name;\n }", "public void setName (String n) {\n name = n;\n }", "public void setName(String name) {\n\t this.name = name;\n\t }", "public void setName(String val) {\n this.name = val;\n }", "public void setName(String name)\r\n\t{\t\t\r\n\t\tthis.name = name;\r\n\t}", "public void setName (String name) {\n this.name = name;\n }", "public void setName (String name) {\n this.name = name;\n }", "public void setName (String name) {\n this.name = name;\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setName(String name)\n \t{\n \t\tthis.name = name;\n \t}", "public void setName( final String name )\r\n {\r\n this.name = name;\r\n }", "public void setName(String name) \n {\n this.name = name;\n }", "public void setName(String v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/name\",v);\n\t\t_Name=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}", "public void setName(String name) {\n \t\tthis.name = name;\n \t}", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name) {\n _name = name;\n }" ]
[ "0.7855451", "0.78515255", "0.78515255", "0.76481014", "0.7388901", "0.737226", "0.7295128", "0.7295128", "0.694415", "0.67923135", "0.66580594", "0.6472158", "0.64441633", "0.63912606", "0.6389181", "0.6372186", "0.6356997", "0.6352737", "0.63466835", "0.63461995", "0.63394374", "0.63245595", "0.63220286", "0.63118905", "0.63118905", "0.63118905", "0.6296274", "0.6293295", "0.62920463", "0.62919325", "0.6289637", "0.62883425", "0.62871724", "0.6286325", "0.6285941", "0.628188", "0.62719834", "0.62719834", "0.62689143", "0.6266402", "0.6266402", "0.6266402", "0.6265112", "0.6265112", "0.62631893", "0.62587893", "0.6257566", "0.6257566", "0.6257566", "0.6256676", "0.6256064", "0.62505037", "0.6248992", "0.6248992", "0.62450826", "0.62395936", "0.62395936", "0.6239565", "0.6238832", "0.62379533", "0.62318784", "0.62307405", "0.62307405", "0.62307405", "0.6230043", "0.6229497", "0.6229497", "0.6229497", "0.6229497", "0.6229497", "0.6229497", "0.6229497", "0.6229497", "0.6229497", "0.6229497", "0.6229497", "0.6229497", "0.6229497", "0.6229497", "0.6229497", "0.6229497", "0.6229497", "0.6229497", "0.6229497", "0.6228795", "0.6228795", "0.6228795", "0.62236476", "0.6222455", "0.62221354", "0.62210345", "0.62197345", "0.62193", "0.62193", "0.62193", "0.62193", "0.62193", "0.62193", "0.62193", "0.62187326" ]
0.78494096
3
Setup UI elements listeners
public void setupUIListeners() { setupEditTextListeners(); setupSeekBarsListeners(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void initUiAndListener();", "private void listenersInitiation() {\n ActionSelectors listener = new ActionSelectors();\n submit.addActionListener(listener);\n goBack.addActionListener(listener);\n }", "private void initEvents() {\n\t\tuser_head_img.setOnClickListener(this);\r\n\t\ttxt_zcgl.setOnClickListener(this);\r\n\t\ttxt_tzgl.setOnClickListener(this);\r\n\t\ttxt_jlcx.setOnClickListener(this);\r\n\t\ttxt_wdyhk.setOnClickListener(this);\r\n\t\ttxt_wdxx.setOnClickListener(this);\r\n\t\tlayout_zhaq.setOnClickListener(this);\r\n\t\tlayout_ssmm.setOnClickListener(this);\r\n\t\ttxt_myredpager.setOnClickListener(this);\r\n\t}", "private void setListener() {\n\t\tmSlidingLayer.setOnInteractListener(this);\r\n\t\tmMsgNotifySwitch.setOnCheckedChangeListener(this);\r\n\t\tmMsgSoundSwitch.setOnCheckedChangeListener(this);\r\n\t\tmShowHeadSwitch.setOnCheckedChangeListener(this);\r\n\t\tmAccountSetting.setOnClickListener(this);\r\n\t\tmMyProfile.setOnClickListener(this);\r\n\t\tmFaceJazzEffect.setOnClickListener(this);\r\n\t\tmAcountInfo.setOnClickListener(this);\r\n\t\tmFeedBack.setOnClickListener(this);\r\n\t\tmExitAppBtn.setOnClickListener(this);\r\n\r\n\t}", "protected void setupListeners() {\n\t\t\n\t\tloginBtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent click) {\n\t\t\t\tSession session = theController.validateUser(usernameField.getText(), passwordField.getText());\n\t\t\t\tif(session != null) {\n\t\t\t\t\ttheController.login();\n\t\t\t\t} else {\n\t\t\t\t\tlblInvalid.setVisible(true);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnRegister.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent click) {\n\t\t\t\ttheController.register();\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnGuide.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent click) {\n\t\t\t\ttheController.viewGuide();\n\t\t\t}\n\t\t});\n\t\t\n\t}", "private void setupListeners() {\n\t\tfor (int i = 0; i < _controlPoints.length; i++) {\n\t\t\taddControlPointListener(_controlPoints[i][0], i);\n\t\t\taddControlPointListener(_controlPoints[i][1], i);\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < _selectionButtons.length; i++) {\n\t\t\taddPointSelectionButtonListener(i);\n\t\t}\n\t}", "public void addListeners()\n {\n view.addListeners(new FileButtonClick(view, this), new ViewButtonClick(view, this), new ClassClick(view, this), new RelationshipClick(view, this), new RightClickListenerFactory(view, this));\n\t}", "private void addListeners() {\n\t\t\n\t\tresetButton.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t \n\t\t public void handle(ActionEvent e) {\n\t\t \n\t\t \treset();\n\t\t \t\n\t\t }\n\t\t \n\t\t});\n\t\t\n\t\ttoggleGroup.selectedToggleProperty().addListener(\n\t\t\t (ObservableValue<? extends Toggle> ov, Toggle old_toggle, \n\t\t\t Toggle new_toggle) -> {\n\t\t\t \t\n\t\t\t \tif(rbCourse.isSelected()) {\n\t\t \t\t\n\t\t \t\thbox3.getChildren().set(0, CourseSelectionBox.instance());\n\t\t \t\thbox3.setDisable(false);\n\t\t \t\t\n\t\t \t}else if(rbAuthor.isSelected()) {\n\t\t \t\t\n\t\t \t\thbox3.getChildren().set(0, AuthorSelectionBox.instance());\n\t\t \t\thbox3.setDisable(false);\n\t\t \t\t\n\t\t \t}else if(rbNone.isSelected()) {\n\t\t \t\t\n\t\t \t\thbox3.setDisable(true);\n\t\t \t\t\n\t\t \t}\n\t\t\t \t\n\t\t\t});\n\t\t\n\t\tapplyButton.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t \n\t\t public void handle(ActionEvent e) {\n\t\t \n\t\t \tfilter();\n\t\t \t\n\t\t }\n\t\t \n\t\t});\n\t\t\n\t\tsearchButton.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t \n\t\t public void handle(ActionEvent e) {\n\t\t \n\t\t \tResult.instance().search(quizIDField.getText());\n\t\t \t\n\t\t }\n\t\t \n\t\t});\n\t\t\n\t}", "private void initListener() {\n initPieceListener();\n initButtonsListener();\n }", "void installListeners() {\n\t\t\t// Listeners on this popup's table and scroll bar\n\t\t\tproposalTable.addListener(SWT.FocusOut, this);\n\t\t\tScrollBar scrollbar = proposalTable.getVerticalBar();\n\t\t\tif (scrollbar != null) {\n\t\t\t\tscrollbar.addListener(SWT.Selection, this);\n\t\t\t}\n\n\t\t\t// Listeners on this popup's shell\n\t\t\tgetShell().addListener(SWT.Deactivate, this);\n\t\t\tgetShell().addListener(SWT.Close, this);\n\n\t\t\t// Listeners on the target control\n\t\t\tcontrol.addListener(SWT.MouseDoubleClick, this);\n\t\t\tcontrol.addListener(SWT.MouseDown, this);\n\t\t\tcontrol.addListener(SWT.Dispose, this);\n\t\t\tcontrol.addListener(SWT.FocusOut, this);\n\t\t\t// Listeners on the target control's shell\n\t\t\tShell controlShell = control.getShell();\n\t\t\tcontrolShell.addListener(SWT.Move, this);\n\t\t\tcontrolShell.addListener(SWT.Resize, this);\n\t\t}", "private void initListeners() {\n this.setOnMousePressed((event -> {\n this.setPressedStyle();\n }));\n\n this.setOnMouseReleased((event -> {\n this.setReleasedStyle();\n }));\n\n this.setOnMouseEntered((event -> {\n this.setEffect(new DropShadow());\n }));\n\n this.setOnMouseExited((event -> {\n this.setEffect(null);\n }));\n }", "public void setListeners() {\n backButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n finish();\n }\n });\n\n settingButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showEditDialog();\n }\n });\n\n cameraButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showChoosePictureDialog();\n }\n });\n }", "private void initEvent() {\n\t\tmBtnPower.setOnClickListener(this);\n\t\tmBtnProfile.setOnClickListener(this);\n\t\tmBtnArea.setOnClickListener(this);\n\t\tmBtnSkipTime.setOnClickListener(this);\n\t\tmBtnFrequencyPoint.setOnClickListener(this);\n\t\tmBtnAlgorithm.setOnClickListener(this);\n\t}", "private void setupUI(){\n this.setupTimerSchedule(controller, 0, 500);\n this.setupFocusable(); \n this.setupSensSlider();\n this.setupInitEnable();\n this.setupDebugger();\n }", "private void initializeListeners() {\n llBack.setOnClickListener(this);\n btnChange.setOnClickListener(this);\n btnNext.setOnClickListener(this);\n }", "private void initHandlers(){\n\t\tlabel.setOnMouseClicked(new EventHandler<MouseEvent>() {\n\t\t\tpublic void handle(MouseEvent e) {\n\t\t\t\tfor(TLEventLabel label : eventLabels){\n\t\t\t\t\tlabel.setSelected(false);\n\t\t\t\t}\n\t\t\t\tsetSelected(true);\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tmodel.selectEvent(event);\n\t\t\t\t\t}\n\t\t\t\t}).start();\n\t\t\t}\n\t\t});\n\t}", "public void setListeners() {\n mbt_no_realizar_comentario.setOnClickListener(this);\n mbt_realizar_comentario_propietario.setOnClickListener(this);\n }", "private void initListeners() {\n appCompatButtonLogout.setOnClickListener(this);\n appCompatButtonDelete.setOnClickListener(this);\n }", "public void setListeners() {\n buttonPanel.getAddTask().addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if (toDoList.toDoListLength() >= 6) {\n JDialog errorBox = new JDialog();\n JLabel errorMessage = new JLabel(\"You already have 6 Tasks remove one to add another\");\n errorBox.add(errorMessage);\n errorBox.setSize(450, 100);\n errorBox.setVisible(true);\n } else {\n addDialog = new AddDialog();\n addDialog.setVisible(true);\n addDialog.setSize(500, 500);\n acceptListener();\n }\n }\n });\n saveListener();\n removeListener();\n completeListener();\n editSetup();\n }", "void configureButtonListener();", "public void initListeners() {\n\t\tlogoGrabListener = new LogoGrabListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onResponse(JSONObject response) {\n\t\t\t\tLog.i(TAG, \"LogoGrab Application responded with: \" + response.toString());\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onError(String error) {\n\t\t\t\tLog.e(TAG, error);\n\t\t\t}\n\t\t};\n\t\t\n\t\t// set LogoGrabListener\n\t\tLogoGrabInterface.setLogoGrabListener(logoGrabListener);\n\t\t\n\t\t\n\t\t// init OnClickListener\n\t\tonClickListener = new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tLogoGrabInterface.startLogoGrab(MainActivity.this);\n\t\t\t}\n\t\t};\n\t\t\n\t\t// set OnClickListener\n\t\tlogoGrabButton.setOnClickListener(onClickListener);\n\t}", "@Override\n\tpublic void initListeners() {\n\t\tmClick.setOnClickListener(this);\n\t}", "private void initListeners() {\n btnCadastrar.setOnClickListener(this);\n cadastrar.setOnClickListener(this);\n }", "public void setListeners(){\n\t\t\n\t\tthis.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// chosen to add new patient\n\t\t\t\t\n\t\t\t\tArrayList<String> constructorInput = null;\n\t\t\t\tconstructorInput = NewPatientWindow.showInputdialog(true);\n\t\t\t\t\n\t\t\t\t// if cancel or close chosen on new patient window:\n\t\t\t\tif (constructorInput == null)\n\t\t\t\t\treturn; \n\t\t\t\t\n\t\t\t\t//else:\n\t\t\t\tBrainFreezeMain.patients.add(new Patient(\n\t\t\t\t\t\t(constructorInput.toArray( new String[constructorInput.size()]))));\n\t\t\t\tBrainFreezeMain.currentPatientIndex = BrainFreezeMain.patients.size()-1;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tLeftPanel.refreshPatientLabel(); // change to patient list, update label\n\t\t\t\tLeftPanel.refreshPatientData(); // change to patient, update data\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t}", "public void createEvents(){\r\n\t\tbtnCurrent.addActionListener((ActionEvent e) -> JLabelDialog.run());\r\n\t}", "public void addListeners() {\r\n\t\tbtnLogin.addActionListener(listener);\r\n\t\tbtnChooseFile.addActionListener(listener);\r\n\t\tbtnSendMessage.addActionListener(listener);\r\n\t\tbtnRemoveImage.addActionListener(listener);\r\n\t\tbtnUpdateMessages.addActionListener(listener);\r\n\t\tbtnUpdateUsers.addActionListener(listener);\r\n\t}", "private void InitListeners() {\n craftRobot.addActionListener(e -> settler.CraftRobot());\n craftTp.addActionListener(e -> settler.CraftTeleportGate());\n placeTp.addActionListener(e -> settler.PlaceTeleporter());\n fill.addActionListener(e -> {\n if(!inventory.isSelectionEmpty()) settler.PlaceResource(inventory.getSelectedValue());\n });\n inventory.addListSelectionListener(e -> fill.setEnabled(!(inventory.isSelectionEmpty())\n && settler.GetOnAsteroid().GetResource()==null\n && settler.GetOnAsteroid().GetLayerCount()==0)\n );\n }", "private void setButtonListener() {\n for(CellButton[] buttonsRow : mainFrame.getButtons()) {\n for(CellButton button :buttonsRow) {\n button.addButtonListener(this);\n }\n }\n }", "public void createListeners() {\n\n addRow.addActionListener(e -> gui.addRow());\n deleteRow.addActionListener(e -> gui.deleteRow());\n }", "protected void setupUI() {\n textView = (TextView) findViewById(R.id.textView);\n viewGradeButton = (Button) findViewById(R.id.viewAllBillsButton);\n viewDash = (Button) findViewById(R.id.viewDash);\n\n //Listen if the buttons is clicked\n viewGradeButton.setOnClickListener(onClickViewGradeButton);\n viewDash.setOnClickListener(onClickViewDash);\n\n }", "@Override\r\n\tprotected void initEvents() {\n\t\t\r\n\t}", "private void setViewListeners() {\n // Set an OnClickListener for each button.\n btnDecrease.setOnClickListener(this);\n btnIncrease.setOnClickListener(this);\n btnOrder.setOnClickListener(this);\n\n // Set an OnTouchListener for each view.\n btnDecrease.setOnTouchListener(touchListener);\n btnIncrease.setOnTouchListener(touchListener);\n etTitle.setOnTouchListener(touchListener);\n etAuthor.setOnTouchListener(touchListener);\n etPrice.setOnTouchListener(touchListener);\n etEditQuantity.setOnTouchListener(touchListener);\n etSupplier.setOnTouchListener(touchListener);\n etPhoneNumber.setOnTouchListener(touchListener);\n\n /* Format the phone number as the user types it.\n Reference: https://stackoverflow.com/a/15647444\n Date: 8/1/18\n */\n etPhoneNumber.addTextChangedListener(new PhoneNumberFormattingTextWatcher());\n // End referenced code.\n }", "private void setListeners() {\n\t\trefreshButton.addActionListener(new refreshButtonListener());\n\n\t\tthis.list.addMouseListener(new MouseAdapter() {\n\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent event) {\n\t\t\t\tif (event.getClickCount() == 2 && list.getSelectedValue() != null && !list.getSelectedValue().equals(\"\") && tabs.getSelectedIndex() != -1) {\n\t\t\t\t\tlaunchDocument(tabs.getTitleAt(tabs.getSelectedIndex()), list.getSelectedValue());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\ttabs.addChangeListener(new ChangeListener() {\n\n\t\t\t@Override\n\t\t\tpublic void stateChanged(ChangeEvent arg0) {\n\t\t\t\tif (!tabs.getTitleAt(tabs.getSelectedIndex()).equals(\"Chat\")) {\n\t\t\t\t\tlistmodel.clear();\n\t\t\t\t\tmakeRequest();\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\t}", "private void registerListeners() {\n\n\t\tline.addActionListener(new LineButtonListener());\n\t\trect.addActionListener(new RectButtonListener());\n\t\toval.addActionListener(new OvalButtonListener());\n\t\timage.addActionListener(new ImageButtonListener());\n\n\t\tMouseListener listener = new ListenToMouse();\n\t\tMouseMotionListener motionListener = new ListenToMouse();\n\n\t\tcanvas.addMouseMotionListener(motionListener);\n\t\tcanvas.addMouseListener(listener);\n\n\t}", "private void addMenuListeners()\n\t{\n\t\texit.addActionListener (new menuListener());\n\t\treadme.addActionListener (new menuListener());\n\t\tabout.addActionListener (new menuListener());\n\t\tsettings.addActionListener (new menuListener());\n\t}", "private void setOnClickListeners() {\n now_playing_previous_button.setOnClickListener(this::handleTransportControls);\n\n now_playing_play_button.setOnClickListener(this::handleTransportControls);\n\n now_playing_next_button.setOnClickListener(this::handleTransportControls);\n }", "private void setListeners() {\n\n }", "private void setupListeners()\n\t{\n\t\tequals.addMouseListener(new MouseAdapter()\n\t\t{\n\t\t\tpublic void mouseClicked(MouseEvent click)\n\t\t\t{\n\t\t\t\tappController.calculate();\n\t\t\t\tappController.refocus();\n\t\t\t}\n\n\t\t\tpublic void mousePressed(MouseEvent onClick)\n\t\t\t{\n\t\t\t\tequals.setBackground(Color.RED.darker());\n\t\t\t}\n\n\t\t\tpublic void mouseReleased(MouseEvent offClick)\n\t\t\t{\n\t\t\t\tequals.setBackground(Color.RED);\n\t\t\t}\n\n\t\t\tpublic void mouseEntered(MouseEvent enter)\n\t\t\t{\n\t\t\t\tequals.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.WHITE, 3)));\n\t\t\t}\n\n\t\t\tpublic void mouseExited(MouseEvent exit)\n\t\t\t{\n\t\t\t\tequals.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3)));\n\t\t\t}\n\t\t});\n\t\tclear.addMouseListener(new MouseAdapter()\n\t\t{\n\t\t\tpublic void mouseClicked(MouseEvent click)\n\t\t\t{\n\t\t\t\tappController.clearText();\n\t\t\t\tappController.refocus();\n\t\t\t}\n\n\t\t\tpublic void mousePressed(MouseEvent onClick)\n\t\t\t{\n\t\t\t\tclear.setBackground(new Color(0, 170, 100).darker());\n\t\t\t}\n\n\t\t\tpublic void mouseReleased(MouseEvent offClick)\n\t\t\t{\n\t\t\t\tclear.setBackground(new Color(0, 170, 100));\n\t\t\t}\n\n\t\t\tpublic void mouseEntered(MouseEvent enter)\n\t\t\t{\n\t\t\t\tclear.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.WHITE, 3)));\n\t\t\t}\n\n\t\t\tpublic void mouseExited(MouseEvent exit)\n\t\t\t{\n\t\t\t\tclear.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3)));\n\t\t\t}\n\t\t});\n\t\tbackspace.addMouseListener(new MouseAdapter()\n\t\t{\n\t\t\tpublic void mouseClicked(MouseEvent click)\n\t\t\t{\n\t\t\t\tappController.backspace();\n\t\t\t\tappController.refocus();\n\t\t\t}\n\n\t\t\tpublic void mousePressed(MouseEvent onClick)\n\t\t\t{\n\t\t\t\tbackspace.setBackground(new Color(0, 170, 100).darker());\n\t\t\t}\n\n\t\t\tpublic void mouseReleased(MouseEvent offClick)\n\t\t\t{\n\t\t\t\tbackspace.setBackground(new Color(0, 170, 100));\n\t\t\t}\n\n\t\t\tpublic void mouseEntered(MouseEvent enter)\n\t\t\t{\n\t\t\t\tbackspace.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.WHITE, 3)));\n\t\t\t}\n\n\t\t\tpublic void mouseExited(MouseEvent exit)\n\t\t\t{\n\t\t\t\tbackspace.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3)));\n\t\t\t}\n\t\t});\n\t\tnegative.addMouseListener(new MouseAdapter()\n\t\t{\n\t\t\tpublic void mouseClicked(MouseEvent click)\n\t\t\t{\n\t\t\t\tappController.changeSign();\n\t\t\t\tappController.refocus();\n\t\t\t}\n\n\t\t\tpublic void mousePressed(MouseEvent onClick)\n\t\t\t{\n\t\t\t\tnegative.setBackground(Color.GRAY.darker());\n\t\t\t}\n\n\t\t\tpublic void mouseReleased(MouseEvent offClick)\n\t\t\t{\n\t\t\t\tnegative.setBackground(Color.GRAY);\n\t\t\t}\n\n\t\t\tpublic void mouseEntered(MouseEvent enter)\n\t\t\t{\n\t\t\t\tnegative.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.WHITE, 3)));\n\t\t\t}\n\n\t\t\tpublic void mouseExited(MouseEvent exit)\n\t\t\t{\n\t\t\t\tnegative.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3)));\n\t\t\t}\n\t\t});\n\t}", "private void setupEventListeners(){\n\t\t//Check boxes.k\n\t\tchkVisible.addClickHandler(new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\t((QuestionDef)propertiesObj).setVisible(chkVisible.getValue() == true);\n\t\t\t\tformChangeListener.onFormItemChanged(propertiesObj);\n\t\t\t}\n\t\t});\n\n\t\tchkEnabled.addClickHandler(new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\t((QuestionDef)propertiesObj).setEnabled(chkEnabled.getValue() == true);\n\t\t\t\tformChangeListener.onFormItemChanged(propertiesObj);\n\t\t\t}\n\t\t});\n\n\t\tchkLocked.addClickHandler(new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\t((QuestionDef)propertiesObj).setLocked(chkLocked.getValue() == true);\n\t\t\t\tformChangeListener.onFormItemChanged(propertiesObj);\n\t\t\t}\n\t\t});\n\n\t\tchkRequired.addClickHandler(new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\t((QuestionDef)propertiesObj).setRequired(chkRequired.getValue() == true);\n\t\t\t\tformChangeListener.onFormItemChanged(propertiesObj);\n\t\t\t}\n\t\t});\n\n\t\t//Text boxes.\n\t\ttxtDefaultValue.addChangeHandler(new ChangeHandler(){\n\t\t\tpublic void onChange(ChangeEvent event){\n\t\t\t\tif(checkDefaultValueAgainstQuestionType()){\n\t\t\t\t\tupdateDefaultValue();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttxtDefaultValue.addKeyUpHandler(new KeyUpHandler(){\n\t\t\tpublic void onKeyUp(KeyUpEvent event) {\n\t\t\t\tif(checkDefaultValueAgainstQuestionType()){\n\t\t\t\t\tupdateDefaultValue();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tWindow.alert(LocaleText.get(\"invalidDefaultValueForQuestionType\"));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\ttxtHelpText.addChangeHandler(new ChangeHandler(){\n\t\t\tpublic void onChange(ChangeEvent event){\n\t\t\t\tupdateHelpText();\n\t\t\t}\n\t\t});\n\t\ttxtHelpText.addKeyUpHandler(new KeyUpHandler(){\n\t\t\tpublic void onKeyUp(KeyUpEvent event) {\n\t\t\t\tupdateHelpText();\n\t\t\t}\n\t\t});\n\n\t\ttxtHelpText.addKeyDownHandler(new KeyDownHandler(){\n\t\t\tpublic void onKeyDown(KeyDownEvent event) {\n\t\t\t\tint keyCode = event.getNativeKeyCode();\n\t\t\t\tif(keyCode == KeyCodes.KEY_ENTER || keyCode == KeyCodes.KEY_DOWN)\n\t\t\t\t\tcbDataType.setFocus(true);\n\t\t\t\telse if(keyCode == KeyCodes.KEY_UP){\n\t\t\t\t\ttxtText.setFocus(true);\n\t\t\t\t\ttxtText.selectAll();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\ttxtBinding.addChangeHandler(new ChangeHandler(){\n\t\t\tpublic void onChange(ChangeEvent event){\n\t\t\t\tupdateBinding();\n\t\t\t}\n\t\t});\n\t\ttxtBinding.addKeyUpHandler(new KeyUpHandler(){\n\t\t\tpublic void onKeyUp(KeyUpEvent event) {\n\t\t\t\tString s = txtBinding.getText();\n\n\t\t\t\ts = s.replace(\"%\", \"\");\n\t\t\t\ts = s.replace(\"(\", \"\");\n\t\t\t\ts = s.replace(\"!\", \"\");\n\t\t\t\ts = s.replace(\"&\", \"\");\n\t\t\t\t//s = s.replace(\".\", \"\"); //Looks like this is an allowed character in xml node names.\n\t\t\t\ts = s.replace(\"'\", \"\");\n\t\t\t\ts = s.replace(\"\\\"\", \"\");\n\t\t\t\ts = s.replace(\"$\", \"\");\n\t\t\t\ts = s.replace(\"#\", \"\");\n\n\t\t\t\ttxtBinding.setText(s);\n\t\t\t\tupdateBinding();\n\t\t\t}\n\t\t});\n\n\t\ttxtBinding.addKeyDownHandler(new KeyDownHandler(){\n\t\t\tpublic void onKeyDown(KeyDownEvent event) {\n\t\t\t\tif(event.getNativeKeyCode() == KeyCodes.KEY_UP){\n\t\t\t\t\tif(cbDataType.isEnabled())\n\t\t\t\t\t\tcbDataType.setFocus(true);\n\t\t\t\t\telse{\n\t\t\t\t\t\ttxtText.setFocus(true);\n\t\t\t\t\t\ttxtText.selectAll();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\ttxtBinding.addKeyPressHandler(new KeyPressHandler(){\n\t\t\tpublic void onKeyPress(KeyPressEvent event) {\n\t\t\t\tif(propertiesObj instanceof PageDef){\n\t\t\t\t\tif(!Character.isDigit(event.getCharCode())){\n\t\t\t\t\t\t((TextBox) event.getSource()).cancelKey(); \n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(propertiesObj instanceof FormDef || propertiesObj instanceof QuestionDef){\n\t\t\t\t\tif(((TextBox) event.getSource()).getCursorPos() == 0){\n\t\t\t\t\t\tif(!isAllowedXmlNodeNameStartChar(event.getCharCode())){\n\t\t\t\t\t\t\t((TextBox) event.getSource()).cancelKey(); \n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if(!isAllowedXmlNodeNameChar(event.getCharCode())){\n\t\t\t\t\t\t((TextBox) event.getSource()).cancelKey(); \n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t} //else OptionDef varname can be anything\n\t\t\t}\n\t\t});\n\n\t\ttxtText.addChangeHandler(new ChangeHandler(){\n\t\t\tpublic void onChange(ChangeEvent event){\n\t\t\t\tString orgText = getSelObjetOriginalText();\n\t\t\t\tupdateText();\n\t\t\t\tupdateSelObjBinding(orgText);\n\t\t\t}\n\t\t});\n\t\ttxtText.addKeyUpHandler(new KeyUpHandler(){\n\t\t\tpublic void onKeyUp(KeyUpEvent event) {\n\t\t\t\tString orgText = getSelObjetOriginalText();\n\t\t\t\tupdateText();\n\t\t\t\tupdateSelObjBinding(orgText);\n\t\t\t}\n\t\t});\n\n\t\ttxtText.addKeyDownHandler(new KeyDownHandler(){\n\t\t\tpublic void onKeyDown(KeyDownEvent event) {\n\t\t\t\tif(event.getNativeKeyCode() == KeyCodes.KEY_ENTER || event.getNativeKeyCode() == KeyCodes.KEY_DOWN){\n\t\t\t\t\tif(txtHelpText.isEnabled())\n\t\t\t\t\t\ttxtHelpText.setFocus(true);\n\t\t\t\t\telse{\n\t\t\t\t\t\ttxtBinding.setFocus(true);\n\t\t\t\t\t\ttxtBinding.selectAll();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\ttxtDescTemplate.addChangeHandler(new ChangeHandler(){\n\t\t\tpublic void onChange(ChangeEvent event){\n\t\t\t\tupdateDescTemplate();\n\t\t\t}\n\t\t});\n\t\ttxtDescTemplate.addKeyUpHandler(new KeyUpHandler(){\n\t\t\tpublic void onKeyUp(KeyUpEvent event) {\n\t\t\t\tupdateDescTemplate();\n\t\t\t}\n\t\t});\n\n\t\ttxtCalculation.addChangeHandler(new ChangeHandler(){\n\t\t\tpublic void onChange(ChangeEvent event){\n\t\t\t\tupdateCalculation();\n\t\t\t}\n\t\t});\n\t\ttxtCalculation.addKeyUpHandler(new KeyUpHandler(){\n\t\t\tpublic void onKeyUp(KeyUpEvent event) {\n\t\t\t\tupdateCalculation();\n\t\t\t}\n\t\t});\n\n\t\t//Combo boxes\n\t\tcbDataType.addClickHandler(new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\tupdateDataType();\n\t\t\t}\n\t\t});\n\t\tcbDataType.addChangeHandler(new ChangeHandler(){\n\t\t\tpublic void onChange(ChangeEvent event){\n\t\t\t\tupdateDataType();\n\t\t\t}\n\t\t});\n\t\tcbDataType.addKeyDownHandler(new KeyDownHandler(){\n\t\t\tpublic void onKeyDown(KeyDownEvent event) {\n\t\t\t\tint keyCode = event.getNativeEvent().getKeyCode();\n\t\t\t\tif(keyCode == KeyCodes.KEY_ENTER || keyCode == KeyCodes.KEY_DOWN){\n\t\t\t\t\ttxtBinding.setFocus(true);\n\t\t\t\t\ttxtBinding.selectAll();\n\t\t\t\t}\n\t\t\t\telse if(keyCode == KeyCodes.KEY_UP){\n\t\t\t\t\ttxtHelpText.setFocus(true);\n\t\t\t\t\ttxtHelpText.selectAll();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\ttxtFormKey.addChangeHandler(new ChangeHandler(){\n\t\t\tpublic void onChange(ChangeEvent event){\n\t\t\t\tupdateFormKey();\n\t\t\t}\n\t\t});\n\t\ttxtFormKey.addKeyUpHandler(new KeyUpHandler(){\n\t\t\tpublic void onKeyUp(KeyUpEvent event) {\n\t\t\t\tupdateFormKey();\n\t\t\t}\n\t\t});\n\t}", "private void initListeners() {\n comboBox.comboBoxListener(this::showProgramData);\n view.refreshListener(actionEvent -> scheduledUpdate());\n\n }", "private void uiInit() {\n mRemoveIcon = findViewById(R.id.remove_icon);\n mRemoveIcon.setOnClickListener(v -> {\n if (mListener != null && mRemoveEnabled) {\n mListener.onRemoveClicked(mEntry);\n }\n });\n\n mDragIcon = findViewById(R.id.drag_icon);\n }", "private void setupBtnListeners() {\n findViewById(R.id.btnAddValue).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n buttonAddValues();\n updateUI();\n MainActivity.hideKeyboard(getApplicationContext(), v);\n }\n });\n\n //Button to open blood pressure chart sets opens blood pressure chart activity\n findViewById(R.id.btnOpenBPChart).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent bpChart = new Intent(WeightActivity.this, BPChartActivity.class);\n startActivity(bpChart.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION));\n mSettingsOrBPChartOpened = true;\n }\n });\n\n //Clicking date button opens date picker and closes keyboard\n findViewById(R.id.tvDate).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showDatePickerDialog();\n MainActivity.hideKeyboard(getApplicationContext(), v);\n }\n });\n }", "private void registerEventListeners() {\n addDisposeListener(new DisposeListener() {\n @Override\n public void widgetDisposed(DisposeEvent de) {\n Display display = getDisplay();\n display.removeFilter(SWT.Move, moveFilter);\n OldFXCanvas.this.widgetDisposed(de);\n }\n });\n\n addPaintListener(pe -> {\n OldFXCanvas.this.paintControl(pe);\n });\n\n addMouseListener(new MouseListener() {\n @Override\n public void mouseDoubleClick(MouseEvent me) {\n // Clicks and double-clicks are handled in FX\n }\n @Override\n public void mouseDown(MouseEvent me) {\n // FX only supports 3 buttons so don't send the event for other buttons\n if (me.button > 3) {\n return;\n }\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_PRESSED);\n }\n @Override\n public void mouseUp(MouseEvent me) {\n // FX only supports 3 buttons so don't send the event for other buttons\n if (me.button > 3) {\n return;\n }\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_RELEASED);\n }\n });\n\n addMouseMoveListener(me -> {\n if ((me.stateMask & SWT.BUTTON_MASK) != 0) {\n // FX only supports 3 buttons so don't send the event for other buttons\n if ((me.stateMask & (SWT.BUTTON1 | SWT.BUTTON2 | SWT.BUTTON3)) != 0) {\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_DRAGGED);\n } else {\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_MOVED);\n }\n } else {\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_MOVED);\n }\n });\n\n addMouseWheelListener(me -> {\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_WHEEL);\n });\n\n addMouseTrackListener(new MouseTrackListener() {\n @Override\n public void mouseEnter(MouseEvent me) {\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_ENTERED);\n }\n @Override\n public void mouseExit(MouseEvent me) {\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_EXITED);\n }\n @Override\n public void mouseHover(MouseEvent me) {\n // No mouse hovering in FX\n }\n });\n\n addControlListener(new ControlListener() {\n @Override\n public void controlMoved(ControlEvent ce) {\n OldFXCanvas.this.sendMoveEventToFX();\n }\n @Override\n public void controlResized(ControlEvent ce) {\n OldFXCanvas.this.sendResizeEventToFX();\n }\n });\n\n addFocusListener(new FocusListener() {\n @Override\n public void focusGained(FocusEvent fe) {\n OldFXCanvas.this.sendFocusEventToFX(fe, true);\n }\n @Override\n public void focusLost(FocusEvent fe) {\n OldFXCanvas.this.sendFocusEventToFX(fe, false);\n }\n });\n\n addKeyListener(new KeyListener() {\n @Override\n public void keyPressed(KeyEvent e) {\n OldFXCanvas.this.sendKeyEventToFX(e, SWT.KeyDown);\n \n }\n @Override\n public void keyReleased(KeyEvent e) {\n OldFXCanvas.this.sendKeyEventToFX(e, SWT.KeyUp);\n }\n });\n \n addMenuDetectListener(e -> {\n Runnable r = () -> {\n if (isDisposed()) {\n return;\n }\n OldFXCanvas.this.sendMenuEventToFX(e);\n };\n // In SWT, MenuDetect comes before the equivalent mouse event\n // On Mac, the order is MenuDetect, MouseDown, MouseUp. FX\n // does not expect this order and when it gets the MouseDown,\n // it closes the menu. The fix is to defer the MenuDetect\n // notification until after the MouseDown is sent to FX.\n if (\"cocoa\".equals(SWT.getPlatform())) {\n getDisplay().asyncExec(r);\n } else {\n r.run();\n }\n });\n }", "private void init()\n {\n // Add listeners to the view\n addEventListeners();\n addSelectionChangeListeners();\n\n // Add listeners to the model\n addBackgroundImageHandler();\n addFrameWidgetHandler();\n addWidgetShapeChangeHandler();\n\n project.addHandler(this,\n Project.DesignChange.class,\n new AlertHandler()\n {\n\n public void handleAlert(EventObject alert)\n {\n Project.DesignChange chg =\n (Project.DesignChange) alert;\n\n if ((! chg.isAdd) &&\n (chg.element == design))\n {\n closeOpenController();\n }\n }\n });\n\n design.addHandler(this,\n Design.FrameChange.class,\n new AlertHandler()\n {\n\n public void handleAlert(EventObject alert)\n {\n Design.FrameChange chg =\n (Design.FrameChange) alert;\n\n if ((! chg.isAdd) &&\n (chg.element == frame))\n {\n closeOpenController();\n }\n }\n });\n\n design.addHandler(this,\n Design.DeviceTypeChange.class,\n new AlertHandler()\n {\n\n public void handleAlert(EventObject alert)\n {\n Set<DeviceType> dts =\n design.getDeviceTypes();\n int deviceTypes =\n DeviceType.buildDeviceSet(dts);\n\n view.resetDeviceTypes(deviceTypes);\n }\n });\n\n // Add listeners to rename events on project and design\n frame.addHandler(this, NameChangeAlert.class, renameHandler);\n design.addHandler(this,\n NameChangeAlert.class,\n renameHandler);\n\n // Some items should always be enabled.\n // Should be the last call in the constructor\n setInitiallyEnabled(true);\n }", "private void setListeners() {\r\n \t/*----------------------------\r\n\t\t * 1. Buttons\r\n\t\t\t----------------------------*/\r\n\t\t//\r\n \tButton bt_create = (Button) findViewById(R.id.db_manager_btn_create_table);\r\n \tButton bt_drop = (Button) findViewById(R.id.db_manager_btn_drop_table);\r\n \tButton bt_register_patterns = \r\n \t\t\t\t\t\t(Button) findViewById(R.id.db_manager_btn_register_patterns);\r\n \t\r\n \t/*----------------------------\r\n\t\t * 2. Tags\r\n\t\t\t----------------------------*/\r\n \tbt_create.setTag(Methods.ButtonTags.db_manager_activity_create_table);\r\n \tbt_drop.setTag(Methods.ButtonTags.db_manager_activity_drop_table);\r\n \tbt_register_patterns.setTag(Methods.ButtonTags.db_manager_activity_register_patterns);\r\n \t\r\n \t/*----------------------------\r\n\t\t * 3. Listeners\r\n\t\t * \t\t1. OnClick\r\n\t\t * \t\t2. OnTouch\r\n\t\t\t----------------------------*/\r\n \t/*----------------------------\r\n\t\t * 3.1. OnClick\r\n\t\t\t----------------------------*/\r\n \t//\r\n \tbt_create.setOnClickListener(new ButtonOnClickListener(this));\r\n \tbt_drop.setOnClickListener(new ButtonOnClickListener(this));\r\n \tbt_register_patterns.setOnClickListener(new ButtonOnClickListener(this));\r\n \t\r\n \t/*----------------------------\r\n\t\t * 3.2. OnTouch\r\n\t\t\t----------------------------*/\r\n \t//\r\n \tbt_create.setOnTouchListener(new ButtonOnTouchListener(this));\r\n \tbt_drop.setOnTouchListener(new ButtonOnTouchListener(this));\r\n \tbt_register_patterns.setOnTouchListener(new ButtonOnTouchListener(this));\r\n \t\r\n \t/*----------------------------\r\n\t\t * 4. Disenable => \"Create table\"\r\n\t\t\t----------------------------*/\r\n// \tbt_create.setEnabled(false);\r\n \t\r\n\t}", "private void setClickListeners() {\n buttonSomethingWentWrong.setOnClickListener(this);\n buttonSuggestion.setOnClickListener(this);\n buttonHighlightRequest.setOnClickListener(this);\n closeButton.setOnClickListener(this);\n }", "private void registerListeners() {\r\n View.OnClickListener clickListener = new ButtonListener();\r\n btnStart.setOnClickListener(clickListener);\r\n btnStop.setOnClickListener(clickListener);\r\n }", "private void setupListeners() {\t\t\n\n\t\tnextButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t gameModel.generateGame();\n\t\t\t\t \n\t\t\t\t setGameModel(gameModel);\n\t\t\t\t \n\t\t\t\t //gameModel = new GameModel(gameModel.getList());\n\t\t\t\t \n\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\ttilePanel.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tSystem.out.println(\"PRESS\");\n\t\t\t}\n\t\t\t\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\tSystem.out.println(\"RELEASED\");\n\t\t\t}\n\t\t});\n\t}", "private void setEventListener() {\n mCameraView.addCameraKitListener(this);\n mCameraButton.setOnClickListener(this);\n mCameraButtonCloud.setOnClickListener(this);\n }", "private void setListener() {\n\t}", "public void addListeners() {\n\t\timages[TOP].setOnClickListener(top);\t\n\t\timages[BOTTOM].setOnClickListener(bottom);\n\t\timages[TOP].setOnLongClickListener(topsave);\t\n\t\timages[BOTTOM].setOnLongClickListener(bottomsave);\n }", "private void initUI() {\n }", "private void addChangeListeners() {\r\n myTetrisPanel.addPropertyChangeListener(myInfoPanel);\r\n myTetrisMenuBar.addPropertyChangeListener(myInfoPanel);\r\n myTetrisMenuBar.addPropertyChangeListener(myKeyAdapter);\r\n myTetrisMenuBar.addPropertyChangeListener(myTetrisPanel);\r\n addPropertyChangeListener(myTetrisMenuBar);\r\n myInfoPanel.addPropertyChangeListener(myTetrisMenuBar);\r\n }", "private void initializeEvents() {\r\n\t}", "private void installListeners() {\r\n\t\tcboText.addActionListener(this);\r\n\r\n\t\tComponent c = cboText.getEditor().getEditorComponent();\r\n\t\tif (c instanceof JTextComponent) {\r\n\t\t\t((JTextComponent) c).getDocument().addDocumentListener(this);\r\n\t\t}\r\n\r\n\t\tbtnFind.addActionListener(this);\r\n\t\tbtnReplace.addActionListener(this);\r\n\t\tbtnReplaceAll.addActionListener(this);\r\n\t\tbtnReplaceFind.addActionListener(this);\r\n\r\n\t\trbAll.addActionListener(this);\r\n\t\trbSelectedLines.addActionListener(this);\r\n\r\n\t\tcbUseRegex.addItemListener(this);\r\n\t}", "private void configureButtons() {\n\n\t\t// Set button listeners\n\t\tfor(SLChannelControllerViews views : mChannelViews) {\n\t\t\tviews.getChannelButton().setOnTouchListener(new SLSeekBarOnTouchListener(views.getChannelSeekBar()));\n\t\t}\n\t}", "public void createEventListeners() {\n this.addComponentListener(new ComponentAdapter() {\n @Override\n public void componentResized(ComponentEvent e) {\n super.componentResized(e);\n //canvas.setSize(J2DNiftyView.this.getSize());\n }\n });\n }", "void addListeners() {\n\t\t/* Get a handle to the views */\n\t\tmsgText = (TextView) findViewById(R.id.msgView); //TextView handle\n\t\tviewAgainButton = (Button) findViewById(R.id.button_viewAgain); //Button handle\n\t\t\n\t\t/* Add a click listener to the View Again button */\n\t\tviewAgainButton.setOnClickListener(this);\n\t\t\n\t\t/* Add a click listener to the Instructions button */\n\t\tButton buttonInstructions = (Button) findViewById(R.id.button_instructions2);\n\t\tbuttonInstructions.setOnClickListener(this);\n\t\t\n\t\t/* Add listeners to the ImageViews */\n\t\taddImageViewListeners();\n\t}", "@Override\n\tpublic void setListeners() {\n\t\tet1.setOnClickListener(this);\n\t\tet2.setOnClickListener(this);\n\t\tet3.setOnClickListener(this);\n\t\tet4.setOnClickListener(this);\n\t\tet5.setOnClickListener(this);\n\t\tet6.setOnClickListener(this);\n\t\tet7.setOnClickListener(this);\n\t\tet8.setOnClickListener(this);\n\t\tet9.setOnClickListener(this);\n\t\tet10.setOnClickListener(this);\n\t\tet11.setOnClickListener(this);\n\t\tet12.setOnClickListener(this);\n\t\tet13.setOnClickListener(this);\n\t\tet14.setOnClickListener(this);\n\t}", "private void registerEvents() {\n MouseEventHandler handler = new MouseEventHandler();\n setOnMousePressed(handler);\n setOnMouseReleased(handler);\n setOnMouseMoved(handler);\n setOnMouseEntered(handler);\n setOnMouseExited(handler);\n\n }", "private void init() {\n initView();\n setListener();\n }", "@Override\n\tprotected void setListenerAndAdapter() {\n\t\t\n\t}", "protected void installListeners() {\n spinner.addPropertyChangeListener(propertyChangeListener); }", "private void setupListeners()\n\t{\n\t\tfinal String query = \"INSERT INTO\" + \"`\" + table + \"` \" + getFields() + \"VALUES\" + getValues();\n\t\t\n\t\tqueryButton.addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent click)\n\t\t\t{\n\t\t\t\tbaseController.getDataController().submitUpdateQuery(query);\n\t\t\t}\n\t\t});\n\t}", "protected void addEventListeners()\n {\n // Add them to the contents.\n InteractionFigure interactionLayer =\n view.getEditor().getInteractionFigure();\n\n // let mouseState handle delete key events\n interactionLayer.addKeyListener(mouseState);\n getShell().addShellListener(new ShellAdapter() {\n @Override\n public void shellDeactivated(ShellEvent e)\n {\n mouseState.cancelDynamicOperation();\n }\n });\n }", "private void componentsListeners() {\r\n\t\t// NIFs\r\n\t\tbtnRefrescarnifs.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tcb_nifCliente.setModel(new DefaultComboBoxModel(ContenedorPrincipal.getContenedorPrincipal().getContenedorClientes().getNifs()));\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// Clientes\r\n\t\tbtnClientes.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tcontroladorVehiculos.pulsarClientes();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// Reparaciones\r\n\t\tbtnRepararVehvulo.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tcontroladorVehiculos.pulsarReparaciones();\r\n\t\t\t}\r\n\t\t});\r\n\t\t// Anterior vehiculo\r\n\t\tbuttonLeftArrow.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tif (!Constantes.MODO_CREAR) {\r\n\t\t\t\t\tcontroladorVehiculos.pulsarLeftArrow();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t// Siguiente vehiculo\r\n\t\tbuttonRightArrow.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tif (!Constantes.MODO_CREAR) {\r\n\t\t\t\t\tcontroladorVehiculos.pulsarRightArrow();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// Atras\r\n\t\tbtnAtrs.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tcontroladorVehiculos.pulsarAtras();\r\n\t\t\t}\r\n\t\t});\r\n\t\t// Guarda el vehiculo\r\n\t\tbtnGuardar.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tif (Constantes.MODO_CREAR) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tcontroladorVehiculos.guardarVehiculo();\r\n\t\t\t\t\t} catch (NumberFormatException e1) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Hay campos vacios\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t} catch (Exception e2) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Algo ha ido mal\", \"Error\", JOptionPane.ERROR_MESSAGE);\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// Borra el vehículo\r\n\t\tbtnBorrarVehiculo.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tif (Constantes.MODO_CREAR) {\r\n\t\t\t\t\tcontroladorVehiculos.pulsarBorrarVehiculo();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public void setListeners() {\n coachName.textProperty().addListener( observable -> {\n if(warningText.isVisible()) {\n warningText.setVisible(false);\n }\n });\n coachSurname.textProperty().addListener( observable -> {\n if(warningText.isVisible()) {\n warningText.setVisible(false);\n }\n });\n }", "@Override\r\n\tprotected void setListeners() {\n\t\t\r\n\t}", "@Override\n protected void setListener() {\n findView(R.id.btnClear).setOnClickListener(this);\n findView(R.id.btnSave).setOnClickListener(this);\n\n ivGraffit.setOnTouchListener(new GraffitTouchListener());\n }", "private void AddUIViewAndHandlers()\n\t{\n\t\t// Set view and autocomplete text\t\t\n\t\tSetViewAndAutoCompleteText(VIEW_ID_COMMAND);\n\t\tSetViewAndAutoCompleteText(VIEW_ID_KEY);\n\t\t\n\t\t// Set handler\n\t\tmCommandViewHandler = MakeViewHandler(VIEW_ID_COMMAND);\t\t\n\t\tmKeyViewHandler = MakeViewHandler(VIEW_ID_KEY);\n\t}", "public void setupHandlers(){\n\t\trestartButtonHandler rbh = new restartButtonHandler();\n\t\trestart.addActionListener(rbh);\n\t\tInstructionButtonHandler ibh = new InstructionButtonHandler();\n\t\tinstruction.addActionListener(ibh);\n\t\tCardButtonHandler cbh = new CardButtonHandler();\n\t\tfor (int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 6; j++){\n\t\t\t\t\tbuttons[i][j].addActionListener(cbh);\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void adicionaListeners() {\r\n\t\t\taddFocusListener(this);\r\n\t\t\taddKeyListener(this);\r\n\t\t\taddMouseListener(this);\r\n\t\t}", "private void initInputListeners() {\n focusGrabber = new FocusGrabber();\r\n mouseClickScroller = new MouseClickScroller();\r\n cursorChanger = new CursorChanger();\r\n wheelScroller = new MouseWheelScroller();\r\n keyScroller = new KeyScroller();\r\n }", "protected void setupUI() {\n\n }", "private void addListeners()\n {\n // Enable LDAP Checkbox\n addDirtyListener( enableLdapCheckbox );\n addSelectionListener( enableLdapCheckbox, enableLdapCheckboxListener );\n\n // LDAP Port Text\n addDirtyListener( ldapPortText );\n addModifyListener( ldapPortText, ldapPortTextListener );\n\n // LDAP Address Text\n addDirtyListener( ldapAddressText );\n addModifyListener( ldapAddressText, ldapAddressTextListener );\n\n // LDAP nbThreads Text\n addDirtyListener( ldapNbThreadsText );\n addModifyListener( ldapNbThreadsText, ldapNbThreadsTextListener );\n\n // LDAP BackLogSize Text\n addDirtyListener( ldapBackLogSizeText );\n addModifyListener( ldapBackLogSizeText, ldapBackLogSizeTextListener );\n\n // Enable LDAPS Checkbox\n addDirtyListener( enableLdapsCheckbox );\n addSelectionListener( enableLdapsCheckbox, enableLdapsCheckboxListener );\n\n // LDAPS Address Text\n addDirtyListener( ldapsAddressText );\n addModifyListener( ldapsAddressText, ldapsAddressTextListener );\n\n // LDAPS Port Text\n addDirtyListener( ldapsPortText );\n addModifyListener( ldapsPortText, ldapsPortTextListener );\n\n // LDAPS nbThreads Text\n addDirtyListener( ldapsNbThreadsText );\n addModifyListener( ldapsNbThreadsText, ldapsNbThreadsTextListener );\n\n // LDAPS BackLogSize Text\n addDirtyListener( ldapsBackLogSizeText );\n addModifyListener( ldapsBackLogSizeText, ldapsBackLogSizeTextListener );\n \n // Enable wantClientAuth Checkbox\n addDirtyListener( wantClientAuthCheckbox );\n addSelectionListener( wantClientAuthCheckbox, wantClientAuthListener );\n\n // Enable needClientAuth Checkbox\n addDirtyListener( needClientAuthCheckbox );\n addSelectionListener( needClientAuthCheckbox, needClientAuthListener );\n\n // Auth Mechanisms Simple Checkbox\n addDirtyListener( authMechSimpleCheckbox );\n addSelectionListener( authMechSimpleCheckbox, authMechSimpleCheckboxListener );\n\n // Auth Mechanisms GSSAPI Checkbox\n addDirtyListener( authMechGssapiCheckbox );\n addSelectionListener( authMechGssapiCheckbox, authMechGssapiCheckboxListener );\n\n // Auth Mechanisms CRAM-MD5 Checkbox\n addDirtyListener( authMechCramMd5Checkbox );\n addSelectionListener( authMechCramMd5Checkbox, authMechCramMd5CheckboxListener );\n\n // Auth Mechanisms DIGEST-MD5 Checkbox\n addDirtyListener( authMechDigestMd5Checkbox );\n addSelectionListener( authMechDigestMd5Checkbox, authMechDigestMd5CheckboxListener );\n\n // Auth Mechanisms NTLM Checkbox\n addDirtyListener( authMechNtlmCheckbox );\n addSelectionListener( authMechNtlmCheckbox, authMechNtlmCheckboxListener );\n\n // Auth Mechanisms NTLM Text\n addDirtyListener( authMechNtlmText );\n addModifyListener( authMechNtlmText, authMechNtlmTextListener );\n\n // Auth Mechanisms GSS SPNEGO Checkbox\n addDirtyListener( authMechGssSpnegoCheckbox );\n addSelectionListener( authMechGssSpnegoCheckbox, authMechGssSpnegoCheckboxListener );\n addModifyListener( authMechGssSpnegoText, authMechGssSpnegoTextListener );\n\n // Auth Mechanisms GSS SPNEGO Text\n addDirtyListener( authMechGssSpnegoText );\n addModifyListener( authMechGssSpnegoText, authMechGssSpnegoTextListener );\n\n // Keystore File Text\n addDirtyListener( keystoreFileText );\n addModifyListener( keystoreFileText, keystoreFileTextListener );\n\n // Keystore File Browse Button\n addSelectionListener( keystoreFileBrowseButton, keystoreFileBrowseButtonSelectionListener );\n\n // Password Text\n addDirtyListener( keystorePasswordText );\n addModifyListener( keystorePasswordText, keystorePasswordTextListener );\n\n // Show Password Checkbox\n addSelectionListener( showPasswordCheckbox, showPasswordCheckboxSelectionListener );\n\n // SASL Host Text\n addDirtyListener( saslHostText );\n addModifyListener( saslHostText, saslHostTextListener );\n\n // SASL Principal Text\n addDirtyListener( saslPrincipalText );\n addModifyListener( saslPrincipalText, saslPrincipalTextListener );\n\n // SASL Seach Base Dn Text\n addDirtyListener( saslSearchBaseDnText );\n addModifyListener( saslSearchBaseDnText, saslSearchBaseDnTextListener );\n\n // SASL Realms Table Viewer\n addSelectionChangedListener( saslRealmsTableViewer, saslRealmsTableViewerSelectionChangedListener );\n addDoubleClickListener( saslRealmsTableViewer, saslRealmsTableViewerDoubleClickListener );\n addSelectionListener( editSaslRealmsButton, editSaslRealmsButtonListener );\n addSelectionListener( addSaslRealmsButton, addSaslRealmsButtonListener );\n addSelectionListener( deleteSaslRealmsButton, deleteSaslRealmsButtonListener );\n\n // Max Time Limit Text\n addDirtyListener( maxTimeLimitText );\n addModifyListener( maxTimeLimitText, maxTimeLimitTextListener );\n\n // Max Size Limit Text\n addDirtyListener( maxSizeLimitText );\n addModifyListener( maxSizeLimitText, maxSizeLimitTextListener );\n\n // Max PDU Size Text\n addDirtyListener( maxPduSizeText );\n addModifyListener( maxPduSizeText, maxPduSizeTextListener );\n\n // Enable TLS Checkbox\n addDirtyListener( enableTlsCheckbox );\n addSelectionListener( enableTlsCheckbox, enableTlsCheckboxListener );\n\n // Hashing Password Checkbox\n addDirtyListener( enableServerSidePasswordHashingCheckbox );\n addSelectionListener( enableServerSidePasswordHashingCheckbox, enableServerSidePasswordHashingCheckboxListener );\n\n // Hashing Method Combo Viewer\n addDirtyListener( hashingMethodComboViewer );\n addSelectionChangedListener( hashingMethodComboViewer, hashingMethodComboViewerListener );\n\n // Advanced SSL Cipher Suites\n ciphersSuiteTableViewer.addCheckStateListener( ciphersSuiteTableViewerListener );\n\n // Advanced SSL Enabled Protocols\n // Enable sslv3 Checkbox\n addDirtyListener( sslv3Checkbox );\n addSelectionListener( sslv3Checkbox, sslv3CheckboxListener );\n\n // Enable tlsv1 Checkbox\n addDirtyListener( tlsv1_0Checkbox );\n addSelectionListener( tlsv1_0Checkbox, tlsv1_0CheckboxListener );\n\n // Enable tlsv1.1 Checkbox\n addDirtyListener( tlsv1_1Checkbox );\n addSelectionListener( tlsv1_1Checkbox, tlsv1_1CheckboxListener );\n\n // Enable tlsv1.2 Checkbox\n addDirtyListener( tlsv1_2Checkbox );\n addSelectionListener( tlsv1_2Checkbox, tlsv1_2CheckboxListener );\n\n // Replication Pinger Sleep\n addDirtyListener( replicationPingerSleepText );\n addModifyListener( replicationPingerSleepText, replicationPingerSleepTextListener );\n\n // Disk Synchronization Delay\n addDirtyListener( diskSynchronizationDelayText );\n addModifyListener( diskSynchronizationDelayText, diskSynchronizationDelayTextListener );\n }", "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 }", "@Override\r\n protected void setListener() {\n logout.setOnClickListener(this);\r\n update.setOnClickListener(this);\r\n cleanCache.setOnClickListener(this);\r\n pushSwitch.setOnCheckedChangeListener(this);\r\n feedback.setOnClickListener(this);\r\n }", "private void createEvents() {\n\t\taddBtn.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbuildOutput();\n\t\t\t}\n\t\t});\n\t}", "private void initGui() {\n initSeekBar();\n initDateFormatSpinner();\n GuiHelper.defineButtonOnClickListener(view, R.id.settings_buttonSave, this);\n\n }", "private void attachListeners(){\n\t\t//Add window listener\n\t\tthis.removeWindowListener(this);\n\t\tthis.addWindowListener(this); \n\n\t\tbuttonCopyToClipboard.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttry {\n\t\t\t\t\tOS.copyStringToClipboard( getMessagePlainText() );\n\t\t\t\t} catch (BadLocationException e) {\n\t\t\t\t\tshowErrorMessage(e.getMessage());\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tsetMessage( translations.getMessageHasBeenCopied() );\n\t\t\t}\n\t\t});\n\t\t\n\t\tbuttonChooseDestinationDirectory.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tchooseDirectoryAction();\n\t\t\t}\n\t\t});\n\t\t\n\t\tbuttonChangeFileNames.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tchangeFileNamesAction(false);//false => real file change\n\t\t\t}\n\t\t});\n\t\t\n\t\tbuttonSimulateChangeFileNames.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tchangeFileNamesAction(true);//true => only simulation of change with log\n\t\t\t\tif(DebuggingConfig.debuggingOn){\n\t\t\t\t\tshowTextAreaHTMLInConsole();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tbuttonExample.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tsetupInitialValues();\n\t\t\t\t//if it's not debugging mode\n\t\t\t\tif(!DebuggingConfig.debuggingOn){\n\t\t\t\t\tshowPlainMessage(translations.getExampleSettingsPopup());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tbuttonClear.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttextArea.setText(textAreaInitialHTML);\n\t\t\t}\n\t\t});\n\t\t\n\t\tbuttonResetToDefaults.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tif( deleteSavedObject() ) {\n\t\t\t\t\tsetMessage( translations.getPreviousSettingsRemovedFromFile().replace(replace, getObjectSavePath()) );\n\t\t\t\t\tsetMessage( translations.getPreviousSettingsRemoved() );\n\t\t\t\t\t//we have to delete listener, because it's gonna save settings after windowClosing, we don't want that\n\t\t\t\t\tFileOperationsFrame fileOperationsFrame = (FileOperationsFrame) getInstance();\n\t\t\t\t\tfileOperationsFrame.removeWindowListener(fileOperationsFrame);\n\t\t\t\t\tresetFields();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tshowWarningMessage( translations.getFileHasNotBeenRemoved().replace(replace, getObjectSavePath()) + BR + translations.getPreviousSettingsHasNotBeenRemoved() );\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tcomboBox.addActionListener(new ActionListener() {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tJComboBox<String> obj = (JComboBox<String>) arg0.getSource();\n\t\t\t\tselectedLanguage = AvailableLanguages.getByName( (String)obj.getSelectedItem() ) ;\n\t\t\t\tselectLanguage(selectedLanguage);\n\t\t\t\tsetComponentTexts();\n\t\t\t};\n\t\t});\t\n\t\t\n\t\t//for debug \n\t\tif(DebuggingConfig.debuggingOn){\n\t\t\tbuttonExample.doClick();\n\t\t}\n\t\t\n\t\t\n\t}", "private void createMainEvents() {\n\t\taddWindowListener(new WindowAdapter() {\n\t\t\t@Override\n\t\t\tpublic void windowClosing(WindowEvent arg0) {\n\t\t\t\tjdbc.closeSQLConnection();\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtn_settings.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t}\n\t\t});\n\n\t}", "protected void setupUI()\n {\n showLetter = (TextView) findViewById(R.id.showHelpLetter);\n myLetters = (ListView)findViewById(R.id.letterList);\n myLetters.setClickable(true);\n }", "protected void installListeners() {\n\t\tMappingMouseWheelListener mouseWheelHandler = \n\t\t\t\tnew MappingMouseWheelListener(this);\n\n\t\t// Handles mouse wheel events in the outline and graph component\n\t\tgraphOutline.addMouseWheelListener(mouseWheelHandler);\n\t\tgraphComponent.addMouseWheelListener(mouseWheelHandler);\n\n\t\tGraphOutlinePopupMouseAdapter outlinePoputListener = new \n\t\t\t\tGraphOutlinePopupMouseAdapter(this);\n\t\t\n\t\t// Installs the popup menu in the outline\n\t\tgraphOutline.addMouseListener(outlinePoputListener);\n\n\t\tGraphComponentPopupMouseAdapter componentPoputListener = new \n\t\t\t\tGraphComponentPopupMouseAdapter(this);\n\t\t\n\t\t// Installs the popup menu in the graph component\n\t\tgraphComponent.getGraphControl().addMouseListener(\n\t\t\t\tcomponentPoputListener);\n\t}", "@Override\r\n\tpublic void initListeners() {\n\t\t\r\n\t}", "public void enableMultiTouchElementListeners() {\r\n\t\tif (itemListeners == null) {\r\n\t\t\titemListeners = new ArrayList<ItemListener>();\r\n\t\t}\r\n\t\tif (screenCursorListeners == null) {\r\n\t\t\tscreenCursorListeners = new ArrayList<ScreenCursorListener>();\r\n\t\t}\r\n\t\tif (orthoControlPointRotateTranslateScaleListeners == null) {\r\n\t\t\torthoControlPointRotateTranslateScaleListeners = new ArrayList<OrthoControlPointRotateTranslateScaleListener>();\r\n\t\t}\r\n\t\tif (bringToTopListeners == null) {\r\n\t\t\tbringToTopListeners = new ArrayList<BringToTopListener>();\r\n\t\t}\r\n\t\tif (orthoSnapListeners == null) {\r\n\t\t\torthoSnapListeners = new ArrayList<OrthoSnapListener>();\r\n\t\t}\r\n\t\tif (flickListeners == null) {\r\n\t\t\tflickListeners = new ArrayList<OrthoFlickListener>();\r\n\t\t}\r\n\t\t\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.addBringToTopListener(this);\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.addItemListener(this);\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.addOrthoControlPointRotateTranslateScaleListener(this);\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.addSnapListener(this);\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.addFlickListener(this);\r\n\t}", "public void initListeners()\n {\n _removeItemView = _packItemView.getRemoveItemView();\n if(_removeItemView != null)\n {\n _removeItemView.setOnClickListener(ViewHolder.this);\n }\n // Subscribe to item clicked event\n itemView.setOnClickListener(new View.OnClickListener() {\n @Override public void onClick(View v) {\n _listener.onPackItemClicked(_packItemView, ViewHolder.this.getAdapterPosition());\n }\n });\n }", "@Override\r\n\tprotected void initViewListener() {\n\t\tsuper.initViewListener();\r\n\t\ttitleBarBack.setOnClickListener(this);\r\n\t\tchongzhi.setOnClickListener(this);\r\n\t\thuankuan.setOnClickListener(this);\r\n\t}", "private void createListeners() {\n btGeneralSave.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n saveGeneralData();\n }\n });\n }", "@Override\n\tprotected void initListeners() {\n\t\t\n\t}", "@Override\r\n\tprotected void bindEvents() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void bindEvents() {\n\t\t\r\n\t}", "private void setupMouseEventHandlers() {\n this.setOnMouseClicked(event -> {\n if (event.getButton() == MouseButton.PRIMARY) {\n fireEvent(new MenuSelectedEvent(\n MenuManager.MenuType.BUILDING, this.getSpriteType(),\n event.getSceneX(), event.getSceneY()));\n }\n });\n }", "private void initUI() {\n\t\tthis.horizontalLayout = new XdevHorizontalLayout();\n\t\tthis.gridLayout = new XdevGridLayout();\n\t\tthis.button = new XdevButton();\n\t\tthis.button2 = new XdevButton();\n\t\tthis.label = new XdevLabel();\n\n\t\tthis.button.setCaption(\"go to HashdemoView\");\n\t\tthis.button2.setCaption(\"go to CommonView\");\n\t\tthis.label.setValue(\"Go into code tab to view comments\");\n\n\t\tthis.gridLayout.setColumns(2);\n\t\tthis.gridLayout.setRows(2);\n\t\tthis.button.setWidth(200, Unit.PIXELS);\n\t\tthis.button.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button, 0, 0);\n\t\tthis.button2.setWidth(200, Unit.PIXELS);\n\t\tthis.button2.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button2, 1, 0);\n\t\tthis.label.setWidth(100, Unit.PERCENTAGE);\n\t\tthis.label.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.label, 0, 1, 1, 1);\n\t\tthis.gridLayout.setComponentAlignment(this.label, Alignment.TOP_CENTER);\n\t\tthis.gridLayout.setSizeUndefined();\n\t\tthis.horizontalLayout.addComponent(this.gridLayout);\n\t\tthis.horizontalLayout.setComponentAlignment(this.gridLayout, Alignment.MIDDLE_CENTER);\n\t\tthis.horizontalLayout.setExpandRatio(this.gridLayout, 10.0F);\n\t\tthis.horizontalLayout.setSizeFull();\n\t\tthis.setContent(this.horizontalLayout);\n\t\tthis.setSizeFull();\n\n\t\tthis.button.addClickListener(event -> this.button_buttonClick(event));\n\t\tthis.button2.addClickListener(event -> this.button2_buttonClick(event));\n\t}", "private void setUpListeners(LoginListener loginButtonListener, RegisterListener registerListener) {\r\n\t\t//TODO: Create listener for registerButton\r\n\t\tloginButton.addActionListener(loginButtonListener);\r\n\t\tregisterButton.addActionListener(registerListener);\r\n\t}", "@Override\r\n\tpublic void setListener() {\n\r\n\t}", "@Override\r\n\tpublic void setListener() {\n\r\n\t}", "private void initListeners() {\n appCompatButtonLogin.setOnClickListener(this);\n }", "protected void initEvent() {\n\t\tbase_ib.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tmainActivity.getSlidingMenu().toggle();\n\n\t\t\t}\n\t\t});\n\t}", "private void setupListeners() {\n mCalendarView.setOnDateChangeListener(new CalendarView.OnDateChangeListener() {\n @Override\n public void onSelectedDayChange(CalendarView view, int year, int month, int dayOfMonth) {\n // When the clicked date is changed, change the date displayed on screen\n String date = dayOfMonth + \"/\" + (month + 1) + \"/\" + year;\n mTextView.setText(date);\n }\n });\n }", "@SuppressLint(\"ClickableViewAccessibility\")\n private void setTouchListeners() {\n mStudentNameEditText.addTextChangedListener(mTextListener);\n mStudentSexSpinner.setOnTouchListener(mTouchListener);\n mStudentBirthdateRelativeLayout.setOnTouchListener(mTouchListener);\n mStudentGradeEditText.addTextChangedListener(mTextListener);\n mAddPhotoView.setOnTouchListener(mTouchListener);\n mStudentAddClassView.setOnTouchListener(mTouchListener);\n mStudentRemoveClassView.setOnTouchListener(mTouchListener);\n }" ]
[ "0.75474775", "0.7431107", "0.7319327", "0.7216196", "0.71548885", "0.71475077", "0.71395206", "0.7132016", "0.7131996", "0.7121745", "0.70928645", "0.7067968", "0.7065162", "0.6977523", "0.6958786", "0.68651205", "0.68622255", "0.68578917", "0.68560004", "0.68551725", "0.6841291", "0.6837915", "0.6834841", "0.6820059", "0.6817038", "0.68133575", "0.6793693", "0.6774326", "0.67679447", "0.6756378", "0.6751417", "0.67448336", "0.6735915", "0.6733729", "0.6732585", "0.67322886", "0.672908", "0.6723905", "0.6690339", "0.66579074", "0.66575044", "0.6637212", "0.6631878", "0.6626118", "0.662464", "0.66221637", "0.6612399", "0.66083163", "0.6606843", "0.66046375", "0.65864754", "0.65860546", "0.6571677", "0.65682554", "0.65644133", "0.65550417", "0.6552574", "0.65400463", "0.65354645", "0.6524253", "0.6520826", "0.651495", "0.64975566", "0.6496809", "0.64780074", "0.6475031", "0.64698356", "0.64659405", "0.64581174", "0.6445285", "0.64424735", "0.6436889", "0.6424773", "0.6422538", "0.6415484", "0.64087784", "0.64069253", "0.640659", "0.6391977", "0.63893974", "0.6377332", "0.6375763", "0.63738847", "0.6373678", "0.63665444", "0.6365086", "0.6360556", "0.6358744", "0.6356289", "0.63397306", "0.63397306", "0.6329942", "0.63227105", "0.63221616", "0.63218427", "0.63218427", "0.63211143", "0.6321009", "0.63086724", "0.63080204" ]
0.834445
0
Helper function to recalculate and update actual and displayed value for tip amount.
private void updateActualAndDisplayedResult() { resultTipValue = calculateTip( amountValue, percentValue, splitValue); tvResult.setText( "Tip: $" + String.format("%.2f", resultTipValue) + " per person." ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void calculateTip()\n {\n\t\ttry\n {\n\t\t\tbillAmount = Double.parseDouble(billAmountEditText.getText().toString());\n\t\t\thideKeyboard();\n loadTipPercentage();\n\t\t}\n catch (NumberFormatException ex)\n {\n\t\t\tbillAmount = 0;\n\t\t}\n try\n {\n numberPeople = Integer.parseInt(nbOfPpleView.getText().toString());\n hideKeyboard();\n loadTipPercentage();\n }\n catch (NumberFormatException ex)\n {\n numberPeople = 1;\n nbOfPpleView.setText(String.format(\"%d\", 1));\n }\n\t\t\n\t\ttipAmount = billAmount * tipPercentage;\n\t\ttotalAmount = billAmount + tipAmount;\n if (numberPeople > 0)\n {\n totalAmountByPerson = totalAmount / numberPeople;\n totalAmountByPerson = Math.ceil(totalAmountByPerson);\n }\n else\n {\n totalAmountByPerson = totalAmount;\n totalAmountByPerson = Math.ceil(totalAmountByPerson);\n }\n\n tipAmtView.setText(String.format(\"$%.2f\", tipAmount));\n totalAmtView.setText(String.format(\"$%.2f\", totalAmount));\n totalAmtByPersonView.setText(String.format(\"$%.0f\", totalAmountByPerson));\n\t}", "double getTipAmount();", "public void updateTipAmount(Double value) {\n\t\tString formattedValue = currencyFormat.format(value).toString();\n\t\t// Set the tip amount\n\t\ttvTipAmount.setText(formattedValue);\n\t}", "@Override\r\n public double getCalculatedTip() {\r\n return amountPerDrink * drinkCount;\r\n }", "private void updateCustom(){\n\n // sets customTipTextView's text to match the position of the SeekBar\n customTipTextView.setText(currentCustomPercent + getString(R.string.percent_sign));\n\n // calculate the custom tip amount\n double customTipAmount = currentBillTotal * currentCustomPercent * .01;\n\n // calculate the total bill including the custom tip\n double customTotalAmount = currentBillTotal + customTipAmount;\n\n // display the tip and total bill amounts\n tipCustomEditText.setText(String.format(getString(R.string.two_dec_float), customTipAmount));\n totalCustomEditText.setText(String.format(getString(R.string.two_dec_float), customTotalAmount));\n }", "private void updateStandard(){\n\n // calculate bill total with a ten percent tip\n double tenPercentTip = currentBillTotal * .1;\n double tenPercentTotal = currentBillTotal + tenPercentTip;\n // set tip10EditText's text to tenPercentTip\n tip10EditText.setText(String.format(getString(R.string.two_dec_float), tenPercentTip));\n //set total10EditText's text to tenPercentTotal\n total10EditText.setText(String.format(getString(R.string.two_dec_float), tenPercentTotal));\n\n // calculate bill total with a fifteen percent tip\n double fifteenPercentTip = currentBillTotal * .15;\n double fifteenPercentTotal = currentBillTotal + fifteenPercentTip;\n // set tip15EditText's text to fifteenPercentTip\n tip15EditText.setText(String.format(getString(R.string.two_dec_float), fifteenPercentTip));\n //set total15EditText's text to fifteenPercentTotal\n total15EditText.setText(String.format(getString(R.string.two_dec_float), fifteenPercentTotal));\n\n // calculate bill total with a twenty percent tip\n double twentyPercentTip = currentBillTotal * .20;\n double twentyPercentTotal = currentBillTotal + twentyPercentTip;\n // set tip20EditText's text to twentyPercentTip\n tip20EditText.setText(String.format(getString(R.string.two_dec_float), twentyPercentTip));\n //set total20EditText's text to twentyPercentTotal\n total20EditText.setText(String.format(getString(R.string.two_dec_float), twentyPercentTotal));\n\n }", "@Override\n\tpublic void modifyView(TipCalcModel tipCalcModel) {\n\t\t\tDecimalFormat dFormat=new DecimalFormat(\"#.##\");\n\t\t\tTipCalcView.getInstance().totalTip.setText(String.valueOf(dFormat.format(tipCalcModel.getTotalTip())));\n\t\t\tTipCalcView.getInstance().totalBill.setText(String.valueOf(dFormat.format(tipCalcModel.getTotalBill())));\n\t\t\t\n\t\t\n\t\t\n\t}", "public void tpsTax() {\n TextView tpsView = findViewById(R.id.checkoutPage_TPStaxValue);\n tpsTaxTotal = beforeTaxTotal * 0.05;\n tpsView.setText(String.format(\"$%.2f\", tpsTaxTotal));\n }", "public void calculate(View v) {\n EditText inputBill = findViewById(R.id.inputBill);\n EditText inputTipPercent = findViewById(R.id.inputTipPercent);\n String num1Str = inputBill.getText().toString();\n String num2Str = inputTipPercent.getText().toString();\n\n // multiply Bill by Tip to get Tip in dollars\n double num1 = Double.parseDouble(num1Str);\n double num2 = Double.parseDouble(num2Str);\n double tipInDollar = num1 * (num2 / 100);\n double total = num1 + tipInDollar;\n\n // show tip in dollars\n TextView lblTipAmount = findViewById(R.id.lblTipAmount);\n lblTipAmount.setText(String.valueOf(tipInDollar));\n\n // show total price with tip included\n TextView lblTotalAmount = findViewById(R.id.lblTotalAmount);\n lblTotalAmount.setText(String.valueOf(total));\n }", "public void afterTax() {\n TextView afterView = findViewById(R.id.checkoutPage_afterTaxValue);\n afterTaxTotal = beforeTaxTotal + tpsTaxTotal + tvqTaxTotal;\n afterView.setText(String.format(\"$%.2f\", afterTaxTotal));\n }", "public void tvqTax() {\n TextView tvqView = findViewById(R.id.checkoutPage_TVQtaxValue);\n tvqTaxTotal = beforeTaxTotal * 0.09975;\n tvqView.setText(String.format(\"$%.2f\", tvqTaxTotal));\n }", "void tip(double amount);", "public void calculateTip(View view) {\n\t\tTextView txtErrorMsg = (TextView) findViewById(R.id.txtErrorMsg);\n\t\ttxtErrorMsg.setVisibility(View.GONE);\n\t\tEditText edtBillAmount = (EditText) findViewById(R.id.edtBillAmount);\n\t\ttry{\n\t\t\tdouble amount = Double.parseDouble(edtBillAmount.getText().toString());\n\t\t\tCheckBox chkRound = (CheckBox) findViewById(R.id.chkRound);\n\t\t\tboolean round = chkRound.isChecked();\n\t\t\tTextView txtTipResult = (TextView) findViewById(R.id.txtTipResult);\n\t\t\tDecimalFormat df = new DecimalFormat(\"#.##\");\n\t\t\tString tipResult = round? Integer.toString((int)Math.round(amount*0.12)): df.format(amount*0.12);\n\t\t\ttxtTipResult.setText(\"Tip: \" + tipResult+\"$\");\n\t\t}\n\t\tcatch (Exception e){\n\t\t\ttxtErrorMsg.setVisibility(View.VISIBLE);\n\t\t\t}\n\t}", "public void getTip(View v)\n {\n EditText billEditText = (EditText) findViewById(R.id.billEditText);\n EditText percentEditText = (EditText) findViewById(R.id.percentEditText);\n TextView tipTextView = (TextView) findViewById(R.id.tipTextView);\n TextView totalTextView = (TextView) findViewById(R.id.totalTextView);\n\n //get the values from the EditText boxes and convert them to double data types\n double bill = Double.parseDouble(billEditText.getText().toString());\n double percent = Double.parseDouble(percentEditText.getText().toString());\n //double total = Double.parseDouble(totalTextView.getText().toString());\n\n //calculate tip\n percent = percent/100;\n double tip = bill*percent;\n double total = bill + tip;\n\n tipTextView.setText(\"Tip: \" + tip);\n totalTextView.setText(\"Total: \" + total);\n\n\n\n\n }", "public void updateTotalPrice(){\n\t\tBigDecimal discount = currentOrder.getDiscount();\n\t\tBigDecimal subtotal = currentOrder.getSubtotal();\n\t\tthis.subtotal.text.setText(CURR+subtotal.add(discount).toString());\n\t\tthis.discount.text.setText(CURR + discount.toString());\n\t\tthis.toPay.text.setText(CURR+subtotal.toString());\n\t}", "public void setAmountTip(String tipAmount) {\n\t\tAMOUNT_TIP = tipAmount;\n\t}", "public void updateTotalSpentLabel() {\n totalSpentLabel.setText(\"Total: $\" + duke.expenseList.getTotalAmount());\n }", "public void calculateAmount() {\n totalAmount = kurv.calculateTotalAmount() + \" DKK\";\n headerPrice.setText(totalAmount);\n }", "private static void updateTotals()\r\n\t{\r\n\t\ttaxAmount = Math.round(subtotalAmount * salesTax / 100.0);\r\n\t\ttotalAmount = subtotalAmount + taxAmount;\r\n\t}", "public void setTipPercentage(double newTip) {\n tip = newTip;\n }", "public static void tipCalculator(double totalPurchase, double tip) {\n\t\tif(totalPurchase < 0 && tip < 0) {\n\t\t\tSystem.out.println(\"Invalid values, please try again.\");\n\t\t}\n\t\t\n\t\t// standard/exact calculator\n\t\tdouble tipAmount = totalPurchase * (tip / 100);\n\t\tdouble totalAmount = totalPurchase + tipAmount;\n\t\tprintReceipt(totalPurchase, tip, tipAmount, totalAmount);\n\t\t\n\t\t/*\n\t\t * flags for amounts that can be rounded up and asks if user would like to do so. \n\t\t * Rounds up to the next higher dollar amount (i.e. totalAmount = 11.50 -> 12.00\n\t\t */\n\t\tif(totalAmount % 1 != 0) {\n\t\t\tSystem.out.println(\"Would you like to round up? (yes/no)\");\n\t\t\tString answer = scanner.nextLine().toLowerCase();\n\t\t\tif(answer.equals(\"yes\")) {\n\t\t\t\tdouble totalAmountRounded = Math.ceil(totalAmount);\n\t\t\t\tdouble tipAmountRounded = totalAmountRounded - totalPurchase;\n\t\t\t\tdouble tipRounded = Math.round((tipAmountRounded / totalAmountRounded) * 100);\n\t\t\t\tprintReceipt(totalPurchase, tipRounded, tipAmountRounded, totalAmountRounded);\n\t\t\t\tSystem.out.println(\"Thank you!\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Okay. Thank you!\");\n\t\t\t}\n\t\t} \n\t\t\n\t}", "private void updateTotal() {\n int total = table.getTotal();\n vip.setConsumption(total);\n if (total > 0)\n payBtn.setText(PAY + RMB + total);\n else if (total == 0)\n payBtn.setText(PAY);\n }", "private void setTotalValueAndNet(){\n\t\tBigDecimal currentPrice = getCurrentPrice(); //getCurrentPrice() is synchronized already\n\t\tsynchronized(this){\n\t\t\t//If quantity == 0, then there's no total value or net\n\t\t\tif(quantityOfShares > 0){\n\t\t\t\ttotalValue = currentPrice.multiply(new BigDecimal(quantityOfShares));\n\t\t\t\tnet = totalValue.subtract(principle);\n\t\t\t}\n\t\t\telse{\n\t\t\t\ttotalValue = new BigDecimal(0);\n\t\t\t\tnet = new BigDecimal(0);\n\t\t\t}\n\t\t}\n\t}", "private float calculateTip( float amount, int percent, int totalPeople ) {\n\t\tfloat result = (float) ((amount * (percent / 100.0 )) / totalPeople);\n\t\treturn result;\n\t}", "@Override\r\n public void update() {\r\n this.total = calculateTotal();\r\n }", "public void beforeTax() {\n TextView beforeView = findViewById(R.id.checkoutPage_beforeTaxValue);\n beforeView.setText(String.format(\"$%.2f\", beforeTaxTotal));\n }", "public double getTip() {\r\n return tipCalculator.getCalculatedTip();\r\n }", "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 }", "private void setDiscountedPrice() {\n seekbarNewprice.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n @Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n tvDiscountPerc.setText(progress * 5 + \"%\");\n try {\n double originalPrice = Double.parseDouble(etOriginalPrice.getText().toString());\n double sp = (progress * 5 * originalPrice) / 100;\n\n tvNewPrice.setText(String.format(Locale.US, \"%.2f\", originalPrice - sp));\n } catch (NumberFormatException ne) {\n ne.printStackTrace();\n }\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 }", "public void calcVal(JLabel l){\n\t\tdouble total = 0;\n\t\tfor(int i = 0; i < coinList.size(); i++){\n\t\t\ttotal += coinList.get(i).getValue();\n\t\t}\n\t\tl.setText(\"Total Money: $\" + toPercent(total));\n\t}", "public void updateDisplay(View view) {\n if(!EditText_isEmpty(total_bill) && !EditText_isEmpty(tip)) {\n float total_bill_value = Float.valueOf(total_bill.getText().toString());\n float tip_value = Float.valueOf(tip.getText().toString());\n float total_to_pay_value = total_bill_value * (1+tip_value/100);\n total_to_pay.setText(\"$\" + String.format(\"%.2f\", total_to_pay_value));\n\n float total_tip_value = total_bill_value * (tip_value/100);\n total_tip.setText(\"$\" + String.format(\"%.2f\", total_tip_value));\n\n if(!EditText_isEmpty(split_bill)) {\n float split_bill_value = Float.valueOf(split_bill.getText().toString());\n float total_per_person_value = total_to_pay_value/split_bill_value;\n total_per_person.setText(\"$\" + String.format(\"%.2f\", total_per_person_value));\n }\n }\n else {\n total_to_pay.setText(\"\");\n total_tip.setText(\"\");\n total_per_person.setText(\"\");\n }\n }", "@Override\n\tdouble updateTotalPrice() {\n\t\treturn 0;\n\t}", "private double prixTotal() \r\n\t{\r\n\t\tdouble pt = getPrix() ; \r\n\t\t\r\n\t\tfor(Option o : option) \r\n\t\t\tpt += o.getPrix();\t\r\n\t\treturn pt;\r\n\t}", "public BigDecimal getPriceActual();", "@Override\n public double calcCost() {\n return calcSalesFee()+calcTaxes();\n }", "public static void setPrice() {\n double summe = 0.0;\n for (Object obj : dlm.getDisplayedArtikel()) {\n if (obj instanceof Article) {\n Article art = (Article) obj;\n if (!art.isIsAbfrage()) {\n if (((art.isJugendSchutz() && art.isJugendSchutzOk())) || !art.isJugendSchutz()) {\n if (art.isEloadingAmmountOk() && !art.isPriceZero()) {\n summe += ((Article) ((obj))).getPreis() * ((Article) ((obj))).getAmount();\n }\n }\n }\n } else if (obj instanceof Karte) {\n Karte card = (Karte) obj;\n summe += card.getAufladung() / 100;\n }\n }\n for (Object obj : dlm.getRemovedObjects()) {\n if (obj instanceof Article) {\n if (!((Article) ((obj))).isStorno_error()) {\n summe -= ((Article) ((obj))).getPreis() * ((Article) ((obj))).getAmount();\n }\n } else if (obj instanceof Karte) {\n Karte card = (Karte) obj;\n summe -= card.getAufladung() / 100;\n }\n }\n if (Math.round(summe) == 0) {\n summe = 0;\n }\n if (GUIOperations.isTraining()) {\n summe += 1000;\n }\n tfSumme.setText(String.format(\"%.2f\", summe));\n }", "public void calcPrecioTotal() {\n try {\n float result = precioUnidad * Float.parseFloat(unidades.getText().toString());\n prTotal.setText(String.valueOf(result) + \"€\");\n }catch (Exception e){\n prTotal.setText(\"0.0€\");\n }\n }", "private void updateMoney() {\n balance = mysql.getMoney(customerNumber);\n balanceConverted = (float) balance / 100.00;\n }", "private void updateSubtotal() {\n subtotal = entreePrice + drinkPrice + dessertPrice;\n subtotalEdtTxt.setText(String.format(\"$%.2f\", subtotal));\n }", "private void updateCardBalanceUI() {\n exactAmount.setText(decimalFormat.format(cardBalance));\n }", "public void calculateAndDisplay() {\n fromUnitString = fromUnitEditText.getText().toString();\r\n if (fromUnitString.equals(\"\")) {\r\n fromValue = 0;\r\n }\r\n else {\r\n fromValue = Float.parseFloat(fromUnitString);\r\n }\r\n\r\n // calculate the \"to\" value\r\n toValue = fromValue * ratio;\r\n\r\n // display the results with formatting\r\n NumberFormat number = NumberFormat.getNumberInstance();\r\n number.setMaximumFractionDigits(2);\r\n number.setMinimumFractionDigits(2);\r\n toUnitTextView.setText(number.format(toValue));\r\n }", "private void updatePriceView() {\n int subTotal = 0;\n int cartQuantity = 0;\n int calculatedDiscount = 0;\n\n DecimalFormat decimalFormatter = new DecimalFormat(\"₹#,##,###.##\");\n\n for (CartItem cartItem : cartList) {\n cartQuantity += cartItem.getQuantity();\n subTotal += cartItem.getQuantity() * cartItem.getPrice();\n }\n\n switch (discountType) {\n case AMOUNT:\n calculatedDiscount = discount;\n break;\n case PERCENTAGE:\n calculatedDiscount = (subTotal * discount) / 100;\n break;\n }\n\n subTotalView.setText(decimalFormatter.format(subTotal));\n\n String count = \"(\" + cartQuantity;\n\n if (cartQuantity < 2) {\n count += \" Item)\";\n } else {\n count += \" Items)\";\n }\n\n textNumberItems.setText(count);\n discountView.setText(decimalFormatter.format(calculatedDiscount));\n total = subTotal - calculatedDiscount;\n totalView.setText(decimalFormatter.format(total));\n updateCartNotification(cartQuantity);\n }", "@Override\n\tpublic void setTip(double tip) {\n\t\t\n\t}", "@Override\n public double calcTaxes() {\n return getCost() * 0.07;\n }", "public double calculatePrice(){\r\n\t\treturn getBasePrice()+getBasePrice()*getVat()+(getBasePrice()+getBasePrice()*getVat())*0.3;\r\n\t}", "private void setTipPercentage(){\n System.out.println(\"You indicated the service quality was \"+\n serviceQuality+\". What percentage tip would you like to leave?\");\n tipRate=keyboard.nextDouble();\n \n \n }", "public double useTax() {\n \n return super.useTax() + getValue()\n * PER_AXLE_TAX_RATE * getAxles();\n }", "public void updateChange(View v){\n if(tempUnit=='F')\n changeToTemp.setText(Double.toString(\n (double)Math.round(totalChangeFarenheit*10)/10)\n );\n // Display temperature in Celsius\n else\n changeToTemp.setText(Double.toString(\n (double)Math.round((totalChangeFarenheit-32)*5/9*10)/10)\n );\n }", "public float getTotalPrice(){\n return price * amount;\n }", "private void updateTaxAmount(BigDecimal newAmount, DemandDetailAndCollection latestDetailInfo) {\n\t\tBigDecimal diff = newAmount.subtract(latestDetailInfo.getTaxAmountForTaxHead());\n\t\tBigDecimal newTaxAmountForLatestDemandDetail = latestDetailInfo.getLatestDemandDetail().getTaxAmount()\n\t\t\t\t.add(diff);\n\t\tlatestDetailInfo.getLatestDemandDetail().setTaxAmount(newTaxAmountForLatestDemandDetail);\n\t}", "public double getTotalValue(){\r\n return this.quantity * this.price;\r\n }", "private void calculatePrice() {\n\t\tint temp = controller.getQualityPrice(hotel.getText(), quality.getText());\n\n\t\ttemp *= getDays();\n\n\t\tif (discountChoice > 0) {\n\t\t\tdouble discountTmp = (double) discountChoice / 100;\n\t\t\ttemp *= (1.00 - discountTmp);\n\t\t}\n\n\t\tprice.setText(Integer.toString(temp));\n\n\t}", "BigDecimal getDirtyPrice();", "static void solve(double meal_cost, int tip_percent, int tax_percent) {\n double res = meal_cost * (100+tip_percent+tax_percent) / 100;\n System.out.println(Math.round(res));\n\n }", "public BigDecimal getActualAmount() {\n return actualAmount;\n }", "public void amount() {\n \t\tfloat boxOHamt=boxOH*.65f*48f;\n \t\tSystem.out.printf(boxOH+\" boxes of Oh Henry ($0.65 x 48)= $%4.2f \\n\",boxOHamt);\n \t\tfloat boxCCamt=boxCC*.80f*48f;\n \t\tSystem.out.printf(boxCC+\" boxes of Coffee Crisp ($0.80 x 48)= $%4.2f \\n\", boxCCamt);\n \t\tfloat boxAEamt=boxAE*.60f*48f;\n \t\tSystem.out.printf(boxAE+\" boxes of Aero ($0.60 x 48)= $%4.2f \\n\", boxAEamt);\n \t\tfloat boxSMamt=boxSM*.70f*48f;\n \t\tSystem.out.printf(boxSM+\" boxes of Smarties ($0.70 x 48)= $%4.2f \\n\", boxSMamt);\n \t\tfloat boxCRamt=boxCR*.75f*48f;\n \t\tSystem.out.printf(boxCR+\" boxes of Crunchies ($0.75 x 48)= $%4.2f \\n\",boxCRamt);\n \t\tSystem.out.println(\"----------------------------------------------\");\n \t\t//display the total prices\n \t\tsubtotal=boxOHamt+boxCCamt+boxAEamt+boxSMamt+boxCRamt;\n \t\tSystem.out.printf(\"Sub Total = $%4.2f \\n\", subtotal);\n \t\ttax=subtotal*.07f;\n \t\tSystem.out.printf(\"Tax = $%4.2f \\n\", tax);\n \t\tSystem.out.println(\"==============================================\");\n \t\ttotal=subtotal+tax;\n \t\tSystem.out.printf(\"Amount Due = $%4.2f \\n\", total);\n \t}", "private void calculate() {\n Log.d(\"MainActivity\", \"inside calculate method\");\n\n try {\n if (billAmount == 0.0);\n throw new Exception(\"\");\n }\n catch (Exception e){\n Log.d(\"MainActivity\", \"bill amount cannot be zero\");\n }\n // format percent and display in percentTextView\n textViewPercent.setText(percentFormat.format(percent));\n\n if (roundOption == 2) {\n tip = Math.ceil(billAmount * percent);\n total = billAmount + tip;\n }\n else if (roundOption == 3){\n tip = billAmount * percent;\n total = Math.ceil(billAmount + tip);\n }\n else {\n // calculate the tip and total\n tip = billAmount * percent;\n\n //use the tip example to do the same for the Total\n total = billAmount + tip;\n }\n\n // display tip and total formatted as currency\n //user currencyFormat instead of percentFormat to set the textViewTip\n tipAmount.setText(currencyFormat.format(tip));\n\n //use the tip example to do the same for the Total\n totalAmount.setText(currencyFormat.format(total));\n\n double person = total/nPeople;\n perPerson.setText(currencyFormat.format(person));\n }", "private void CalculateTotalAmount()\n {\n double dSubTotal = 0,dTaxTotal = 0, dModifierAmt = 0, dServiceTaxAmt = 0, dOtherCharges = 0, dTaxAmt = 0, dSerTaxAmt = 0;\n float dTaxPercent = 0, dSerTaxPercent = 0;\n double dTotalBillAmount_for_reverseTax =0;\n double dIGSTAmt =0, dcessAmt =0;\n // Item wise tax calculation ----------------------------\n for (int iRow = 0; iRow < tblOrderItems.getChildCount(); iRow++)\n {\n TableRow RowItem = (TableRow) tblOrderItems.getChildAt(iRow);\n if (RowItem.getChildAt(0) != null)\n {\n TextView ColQuantity = (TextView) RowItem.getChildAt(3);\n TextView ColRate = (TextView) RowItem.getChildAt(4);\n TextView ColTaxType = (TextView) RowItem.getChildAt(13);\n TextView ColAmount = (TextView) RowItem.getChildAt(5);\n TextView ColDisc = (TextView) RowItem.getChildAt(9);\n TextView ColTax = (TextView) RowItem.getChildAt(7);\n TextView ColModifierAmount = (TextView) RowItem.getChildAt(14);\n TextView ColServiceTaxAmount = (TextView) RowItem.getChildAt(16);\n TextView ColIGSTAmount = (TextView) RowItem.getChildAt(24);\n TextView ColcessAmount = (TextView) RowItem.getChildAt(26);\n TextView ColTaxValue = (TextView) RowItem.getChildAt(28);\n dTaxTotal += Double.parseDouble(ColTax.getText().toString());\n dServiceTaxAmt += Double.parseDouble(ColServiceTaxAmount.getText().toString());\n dIGSTAmt += Double.parseDouble(ColIGSTAmount.getText().toString());\n dcessAmt += Double.parseDouble(ColcessAmount.getText().toString());\n if (crsrSettings!=null && crsrSettings.getString(crsrSettings.getColumnIndex(\"Tax\")).equalsIgnoreCase(\"1\")) // forward tax\n {\n dSubTotal += Double.parseDouble(ColAmount.getText().toString());\n }\n else // reverse tax\n {\n double qty = ColQuantity.getText().toString().equals(\"\")?0.00 : Double.parseDouble(ColQuantity.getText().toString());\n double baseRate = ColRate.getText().toString().equals(\"\")?0.00 : Double.parseDouble(ColRate.getText().toString());\n dSubTotal += (qty*baseRate);\n dTotalBillAmount_for_reverseTax += Double.parseDouble(ColAmount.getText().toString());\n }\n\n }\n }\n // ------------------------------------------\n // Bill wise tax Calculation -------------------------------\n Cursor crsrtax = db.getTaxConfigs(1);\n if (crsrtax.moveToFirst()) {\n dTaxPercent = crsrtax.getFloat(crsrtax.getColumnIndex(\"TotalPercentage\"));\n dTaxAmt += dSubTotal * (dTaxPercent / 100);\n }\n Cursor crsrtax1 = db.getTaxConfigs(2);\n if (crsrtax1.moveToFirst()) {\n dSerTaxPercent = crsrtax1.getFloat(crsrtax1.getColumnIndex(\"TotalPercentage\"));\n dSerTaxAmt += dSubTotal * (dSerTaxPercent / 100);\n }\n // -------------------------------------------------\n\n dOtherCharges = Double.valueOf(textViewOtherCharges.getText().toString());\n //String strTax = crsrSettings.getString(crsrSettings.getColumnIndex(\"Tax\"));\n if (crsrSettings.moveToFirst()) {\n if (crsrSettings.getString(crsrSettings.getColumnIndex(\"Tax\")).equalsIgnoreCase(\"1\")) // forward tax\n {\n if (crsrSettings.getString(crsrSettings.getColumnIndex(\"TaxType\")).equalsIgnoreCase(\"1\"))\n {\n tvIGSTValue.setText(String.format(\"%.2f\", dIGSTAmt));\n tvTaxTotal.setText(String.format(\"%.2f\", dTaxTotal));\n tvServiceTaxTotal.setText(String.format(\"%.2f\", dServiceTaxAmt));\n tvcessValue.setText(String.format(\"%.2f\",dcessAmt));\n\n if (chk_interstate.isChecked()) // interstate\n {\n tvIGSTValue.setTextColor(Color.WHITE);\n tvTaxTotal.setTextColor(getResources().getColor(R.color.colorPrimaryLight));\n tvServiceTaxTotal.setTextColor(getResources().getColor(R.color.colorPrimaryLight));\n } else {\n tvIGSTValue.setTextColor(getResources().getColor(R.color.colorPrimaryLight));\n tvTaxTotal.setTextColor(Color.WHITE);\n tvServiceTaxTotal.setTextColor(Color.WHITE);\n }\n\n tvSubTotal.setText(String.format(\"%.2f\", dSubTotal));\n tvBillAmount.setText(String.format(\"%.2f\", dSubTotal + dTaxTotal + dServiceTaxAmt + dOtherCharges+dcessAmt));\n }\n else\n {\n tvIGSTValue.setText(String.format(\"%.2f\", dIGSTAmt));\n tvTaxTotal.setText(String.format(\"%.2f\", dTaxTotal));\n tvServiceTaxTotal.setText(String.format(\"%.2f\", dServiceTaxAmt));\n tvcessValue.setText(String.format(\"%.2f\",dcessAmt));\n\n if (chk_interstate.isChecked()) // interstate\n {\n tvIGSTValue.setTextColor(Color.WHITE);\n tvTaxTotal.setTextColor(getResources().getColor(R.color.colorPrimaryLight));\n tvServiceTaxTotal.setTextColor(getResources().getColor(R.color.colorPrimaryLight));\n } else {\n tvIGSTValue.setTextColor(getResources().getColor(R.color.colorPrimaryLight));\n tvTaxTotal.setTextColor(Color.WHITE);\n tvServiceTaxTotal.setTextColor(Color.WHITE);\n }\n tvSubTotal.setText(String.format(\"%.2f\", dSubTotal));\n tvBillAmount.setText(String.format(\"%.2f\", dSubTotal + dTaxAmt + dSerTaxAmt + dOtherCharges+dcessAmt));\n }\n }\n else // reverse tax\n {\n if (crsrSettings.getString(crsrSettings.getColumnIndex(\"TaxType\")).equalsIgnoreCase(\"1\")) // item wise\n {\n tvIGSTValue.setText(String.format(\"%.2f\", dIGSTAmt));\n tvTaxTotal.setText(String.format(\"%.2f\", dTaxTotal));\n tvServiceTaxTotal.setText(String.format(\"%.2f\", dServiceTaxAmt));\n tvcessValue.setText(String.format(\"%.2f\",dcessAmt));\n\n if (chk_interstate.isChecked()) // interstate\n {\n tvIGSTValue.setTextColor(Color.WHITE);\n tvTaxTotal.setTextColor(getResources().getColor(R.color.colorPrimaryLight));\n tvServiceTaxTotal.setTextColor(getResources().getColor(R.color.colorPrimaryLight));\n } else {\n tvIGSTValue.setTextColor(getResources().getColor(R.color.colorPrimaryLight));\n tvTaxTotal.setTextColor(Color.WHITE);\n tvServiceTaxTotal.setTextColor(Color.WHITE);\n }\n tvSubTotal.setText(String.format(\"%.2f\", dSubTotal));\n tvBillAmount.setText(String.format(\"%.2f\", dTotalBillAmount_for_reverseTax + dOtherCharges));\n\n }\n else\n {\n tvSubTotal.setText(String.format(\"%.2f\", dSubTotal));\n tvIGSTValue.setText(String.format(\"%.2f\", dIGSTAmt));\n tvTaxTotal.setText(String.format(\"%.2f\", dTaxTotal));\n tvServiceTaxTotal.setText(String.format(\"%.2f\", dServiceTaxAmt));\n tvcessValue.setText(String.format(\"%.2f\",dcessAmt));\n\n if (chk_interstate.isChecked()) // interstate\n {\n tvIGSTValue.setTextColor(Color.WHITE);\n tvTaxTotal.setTextColor(getResources().getColor(R.color.colorPrimaryLight));\n tvServiceTaxTotal.setTextColor(getResources().getColor(R.color.colorPrimaryLight));\n } else {\n tvIGSTValue.setTextColor(getResources().getColor(R.color.colorPrimaryLight));\n tvTaxTotal.setTextColor(Color.WHITE);\n tvServiceTaxTotal.setTextColor(Color.WHITE);\n }\n tvBillAmount.setText(String.format(\"%.2f\", dTotalBillAmount_for_reverseTax + dOtherCharges));\n }\n }\n }\n }", "void calcAmount(double amountEntered, double costAmount){\n double changeAmount ;\n if(amountEntered >= costAmount){\n changeAmount = amountEntered - costAmount;\n myTextView.setText(\"Please take your change = R\"+ changeAmount + \"\\n\"+ \"Thank you!!\"+\"\\nTravel safe!!\");\n }else{\n changeAmount = amountEntered - costAmount;\n myTextView.setText(\"You still owe R\" + Math.abs(changeAmount)+ \" \\nplease pay now!!\");\n }\n }", "private void updateFields(){\n\n updateTotalPay();\n updateTotalTip();\n updateTotalPayPerPerson();\n }", "public void updatePrice(){\n\t\tprice = 0;\n\t\tfor (ParseObject selectedItem : selectedItems){\n\t\t\tprice += selectedItem.getInt(\"price\");\n\t\t}\n\n\t\tTextView orderTotal = (TextView) findViewById(R.id.orderTotal);\n\t\torderTotal.setText(\"$\" + price + \".00\");\n\t}", "public void updateResults() {\n\t\t// Do not update when there is no amount entered\n\t\tif (amountEdit.getText().toString().equalsIgnoreCase(\"\"))\n\t\t\treturn;\n\t\t\n\t\t// Transform .42 to 0.42\n\t\tif (amountEdit.getText().toString().equalsIgnoreCase(\".\")) {\n\t\t\tamountEdit.setText(\"0.\");\n\t\t\tamountEdit.setSelection(amountEdit.getText().length());\n\t\t}\n\t\t\t\n\t\tint from = (int) fromSpinner.getSelectedItemId();\n\t\tint to = (int) toSpinner.getSelectedItemId();\n\t\tDouble amount = Double.parseDouble(amountEdit.getText().toString());\n\t\tDouble result = exchangeRates.convert(from, to, amount);\n\t\t\n\t\t// Build results string and update the view\n\t\tString text = \"\";\n\t\ttext += exchangeRates.getCurrency(from) + \" \";\n\t\ttext += amount + \"\\n\";\n\t\ttext += exchangeRates.getCurrency(to) + \" \";\n\t\ttext += result.toString();\n\t\tresultsText.setText(text);\n\t}", "protected double asRelativeValue(final InformationLoss<?> infoLoss) {\n if (model != null && model.getResult() != null && model.getResult().getLattice() != null &&\n model.getResult().getLattice().getBottom() != null && model.getResult().getLattice().getTop() != null) {\n return infoLoss.relativeTo(model.getResult().getLattice().getMinimumInformationLoss(),\n model.getResult().getLattice().getMaximumInformationLoss()) * 100d;\n } else {\n return 0;\n }\n }", "@FXML\r\n private void calculateButtonPressed(ActionEvent event) {\r\n try{\r\n BigDecimal amount = new BigDecimal(amountTextField.getText());\r\n BigDecimal tip = amount.multiply(tipPercentage);\r\n BigDecimal total = amount.add(tip);\r\n \r\n tipTextField.setText(currency.format(tip));\r\n totalTextField.setText(currency.format(total));\r\n }\r\n catch(NumberFormatException ex){\r\n amountTextField.setText(\"Enter amount\");\r\n amountTextField.selectAll();\r\n amountTextField.requestFocus();\r\n }\r\n }", "@Override\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tint perPersonTipPercentage=((JSlider) e.getSource()).getValue();\n\t\t\t\tfloat perPersonNewTip=(((float)perPersonTipPercentage)/100)*(Float.valueOf(TipCalcView.getInstance().totalTip.getText()).floatValue());\n\t\t\n\t\t\t\tDecimalFormat decimalFormat=new DecimalFormat(\"#.##\");\n\t\t\t\tTipTailorView.getInstance().labels[no].setText(String.valueOf(decimalFormat.format(perPersonNewTip)));\n\t\t\t\tTipCalcView.getInstance().perPersonTip.setText(\"Not Applicable\");\n\t\t\t\tTipCalcView.getInstance().perPersonTip.setEditable(false);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "public BigDecimal getTaxAmtPriceStd();", "BigDecimal getOrigAmount();", "private void CalculateTotalAmount() {\r\n\r\n double dSubTotal = 0, dTaxTotal = 0, dModifierAmt = 0, dServiceTaxAmt = 0, dOtherCharges = 0, dTaxAmt = 0, dSerTaxAmt = 0, dIGSTAmt=0, dcessAmt=0, dblDiscount = 0;\r\n float dTaxPercent = 0, dSerTaxPercent = 0;\r\n\r\n // Item wise tax calculation ----------------------------\r\n for (int iRow = 0; iRow < tblOrderItems.getChildCount(); iRow++) {\r\n\r\n TableRow RowItem = (TableRow) tblOrderItems.getChildAt(iRow);\r\n\r\n if (RowItem.getChildAt(0) != null) {\r\n\r\n TextView ColTaxType = (TextView) RowItem.getChildAt(13);\r\n TextView ColAmount = (TextView) RowItem.getChildAt(5);\r\n TextView ColDisc = (TextView) RowItem.getChildAt(9);\r\n TextView ColTax = (TextView) RowItem.getChildAt(7);\r\n TextView ColModifierAmount = (TextView) RowItem.getChildAt(14);\r\n TextView ColServiceTaxAmount = (TextView) RowItem.getChildAt(16);\r\n TextView ColIGSTAmount = (TextView) RowItem.getChildAt(24);\r\n TextView ColcessAmount = (TextView) RowItem.getChildAt(26);\r\n TextView ColAdditionalCessAmt = (TextView) RowItem.getChildAt(29);\r\n TextView ColTotalCessAmount = (TextView) RowItem.getChildAt(30);\r\n dblDiscount += Double.parseDouble(ColDisc.getText().toString());\r\n dTaxTotal += Double.parseDouble(ColTax.getText().toString());\r\n dServiceTaxAmt += Double.parseDouble(ColServiceTaxAmount.getText().toString());\r\n dIGSTAmt += Double.parseDouble(ColIGSTAmount.getText().toString());\r\n// dcessAmt += Double.parseDouble(ColcessAmount.getText().toString()) + Double.parseDouble(ColAdditionalCessAmt.getText().toString());\r\n dcessAmt += Double.parseDouble(ColTotalCessAmount.getText().toString());\r\n dSubTotal += Double.parseDouble(ColAmount.getText().toString());\r\n\r\n }\r\n }\r\n // ------------------------------------------\r\n\r\n // Bill wise tax Calculation -------------------------------\r\n Cursor crsrtax = dbBillScreen.getTaxConfig(1);\r\n if (crsrtax.moveToFirst()) {\r\n dTaxPercent = crsrtax.getFloat(crsrtax.getColumnIndex(\"TotalPercentage\"));\r\n dTaxAmt += dSubTotal * (dTaxPercent / 100);\r\n }\r\n Cursor crsrtax1 = dbBillScreen.getTaxConfig(2);\r\n if (crsrtax1.moveToFirst()) {\r\n dSerTaxPercent = crsrtax1.getFloat(crsrtax1.getColumnIndex(\"TotalPercentage\"));\r\n dSerTaxAmt += dSubTotal * (dSerTaxPercent / 100);\r\n }\r\n // -------------------------------------------------\r\n\r\n dOtherCharges = Double.valueOf(tvOthercharges.getText().toString());\r\n //String strTax = crsrSettings.getString(crsrSettings.getColumnIndex(\"Tax\"));\r\n if (crsrSettings.moveToFirst()) {\r\n if (crsrSettings.getString(crsrSettings.getColumnIndex(\"Tax\")).equalsIgnoreCase(\"1\")) {\r\n if (crsrSettings.getString(crsrSettings.getColumnIndex(\"TaxType\")).equalsIgnoreCase(\"1\")) {\r\n\r\n tvIGSTValue.setText(String.format(\"%.2f\", dIGSTAmt));\r\n tvCGSTValue.setText(String.format(\"%.2f\", dTaxTotal));\r\n tvSGSTValue.setText(String.format(\"%.2f\", dServiceTaxAmt));\r\n tvcessValue.setText(String.format(\"%.2f\",dcessAmt));\r\n\r\n if (chk_interstate.isChecked()) // interstate\r\n {\r\n tvIGSTValue.setTextColor(Color.WHITE);\r\n tvCGSTValue.setTextColor(getResources().getColor(R.color.colorPrimaryLight));\r\n tvSGSTValue.setTextColor(getResources().getColor(R.color.colorPrimaryLight));\r\n } else {\r\n tvIGSTValue.setTextColor(getResources().getColor(R.color.colorPrimaryLight));\r\n tvCGSTValue.setTextColor(Color.WHITE);\r\n tvSGSTValue.setTextColor(Color.WHITE);\r\n }\r\n\r\n tvSubTotal.setText(String.format(\"%.2f\", dSubTotal));\r\n tvBillAmount.setText(String.format(\"%.2f\", dSubTotal + dTaxTotal + dServiceTaxAmt + dOtherCharges+dcessAmt));\r\n } else {\r\n\r\n tvIGSTValue.setText(String.format(\"%.2f\", dIGSTAmt));\r\n tvCGSTValue.setText(String.format(\"%.2f\", dTaxTotal));\r\n tvSGSTValue.setText(String.format(\"%.2f\", dServiceTaxAmt));\r\n tvcessValue.setText(String.format(\"%.2f\",dcessAmt));\r\n\r\n if (chk_interstate.isChecked()) // interstate\r\n {\r\n tvIGSTValue.setTextColor(Color.WHITE);\r\n tvCGSTValue.setTextColor(getResources().getColor(R.color.colorPrimaryLight));\r\n tvSGSTValue.setTextColor(getResources().getColor(R.color.colorPrimaryLight));\r\n } else {\r\n tvIGSTValue.setTextColor(getResources().getColor(R.color.colorPrimaryLight));\r\n tvCGSTValue.setTextColor(Color.WHITE);\r\n tvSGSTValue.setTextColor(Color.WHITE);\r\n }\r\n tvSubTotal.setText(String.format(\"%.2f\", dSubTotal));\r\n tvBillAmount.setText(String.format(\"%.2f\", dSubTotal + dTaxAmt + dSerTaxAmt + dOtherCharges+dcessAmt));\r\n }\r\n } else {\r\n if (crsrSettings.getString(crsrSettings.getColumnIndex(\"TaxType\")).equalsIgnoreCase(\"1\")) {\r\n tvIGSTValue.setText(String.format(\"%.2f\", dIGSTAmt));\r\n tvCGSTValue.setText(String.format(\"%.2f\", dTaxTotal));\r\n tvSGSTValue.setText(String.format(\"%.2f\", dServiceTaxAmt));\r\n tvcessValue.setText(String.format(\"%.2f\",dcessAmt));\r\n\r\n if (chk_interstate.isChecked()) // interstate\r\n {\r\n tvIGSTValue.setTextColor(Color.WHITE);\r\n tvCGSTValue.setTextColor(getResources().getColor(R.color.colorPrimaryLight));\r\n tvSGSTValue.setTextColor(getResources().getColor(R.color.colorPrimaryLight));\r\n } else {\r\n tvIGSTValue.setTextColor(getResources().getColor(R.color.colorPrimaryLight));\r\n tvCGSTValue.setTextColor(Color.WHITE);\r\n tvSGSTValue.setTextColor(Color.WHITE);\r\n }\r\n tvSubTotal.setText(String.format(\"%.2f\", dSubTotal));\r\n tvBillAmount.setText(String.format(\"%.2f\", dSubTotal + dOtherCharges));\r\n\r\n } else {\r\n tvSubTotal.setText(String.format(\"%.2f\", dSubTotal));\r\n tvIGSTValue.setText(String.format(\"%.2f\", dIGSTAmt));\r\n tvCGSTValue.setText(String.format(\"%.2f\", dTaxTotal));\r\n tvSGSTValue.setText(String.format(\"%.2f\", dServiceTaxAmt));\r\n tvcessValue.setText(String.format(\"%.2f\",dcessAmt));\r\n\r\n\r\n if (chk_interstate.isChecked()) // interstate\r\n {\r\n tvIGSTValue.setTextColor(Color.WHITE);\r\n tvCGSTValue.setTextColor(getResources().getColor(R.color.colorPrimaryLight));\r\n tvSGSTValue.setTextColor(getResources().getColor(R.color.colorPrimaryLight));\r\n } else {\r\n tvIGSTValue.setTextColor(getResources().getColor(R.color.colorPrimaryLight));\r\n tvCGSTValue.setTextColor(Color.WHITE);\r\n tvSGSTValue.setTextColor(Color.WHITE);\r\n }\r\n tvBillAmount.setText(String.format(\"%.2f\", dSubTotal + dOtherCharges));\r\n }\r\n }\r\n tvDiscountAmount.setText(String.format(\"%.2f\", dblDiscount));\r\n }\r\n }", "abstract protected BigDecimal getBasicTaxRate();", "@Override\r\n public void update() {\r\n this.highestRevenueRestaurant = findHighestRevenueRestaurant();\r\n this.total = calculateTotal();\r\n }", "private void updateBalanceLabel() {\n balanceLabel.setText(String.format(\"<html><b>Balance</b><br>$%.2f</html>\", balance));\n }", "private void calcTotalAmount(){\n\t totalAmount = 0;\n\t\tfor(FlightTicket ft : tickets)\n\t\t{\n\t\t\ttotalAmount += ft.getClassType().getFee() * getFlight().getFlightCost();\n\t\t}\n\t\tsetTotalAmount(totalAmount);\n\t}", "public double dollarTorp()\r\n\t{\r\n\t\treturn getAmount() * 14251.25;\r\n\t}", "double getTaxAmount();", "public double getMarketValue()\n {\n return this.totalShares * super.getCurrentPrice();\n }", "public void totalprice(float tprice)\n {\n \t this.mTotalPrice=tprice;\n }", "float calculatePrice () \n\t{\n\t\tfloat final_price = 0;\n\t\tfinal_price = (float)(price * quantity); // price * number of items\n\t\tfinal_price += final_price*(.10); // add tax\n\t\tif(perishable.equals(\"P\"))\n\t\t{\n\t\t\tfloat ship = (float)(20* weight)*quantity; // add shipping\n\t\t\tship += ship*.20;\n\t\t\tfinal_price += ship;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfinal_price += (20* weight)*quantity; // add shipping\n\t\t}\n\t\treturn final_price;\n\t}", "public BigDecimal getPriceStdEntered();", "public double getCurrentValue()\r\n\t{\r\n\t\tcurrentValue=(2*border+24)/2;\r\n\t\treturn currentValue;\r\n\t}", "float getAmount();", "private void displaySatistics()\r\n {\r\n DecimalFormat df = new DecimalFormat(\"#.##\");\r\n df.setRoundingMode(RoundingMode.FLOOR);\r\n double goodVal = ((double)this.good / (double)this.attemps) * 100;\r\n double reachVal = ((double)this.reachable / (double)this.attemps) * 100;\r\n double unreachVal = ((double)this.unreachable / (double)this.attemps) * 100;\r\n \r\n this.goodLabel.setText(df.format(goodVal)+ \" %\");\r\n this.reachableLabel.setText(df.format(reachVal) + \" %\");\r\n this.unreachableLabel.setText(df.format(unreachVal) + \" %\");\r\n \r\n }", "public BigDecimal getActualAmt() {\n return actualAmt;\n }", "public void updateMoney()\n\t\t{\n\t\t\t\n\t\t\tFPlayer p1 = this.viewer;\n\t\t\tFPlayer p2 = (p1.equals(this.t.p1)) ? this.t.p2 : this.t.p1;\n\t\t\t\n\t\t\tItemStack om = new ItemStack(Material.GREEN_WOOL,1);\n\t\t\tItemMeta it = om.getItemMeta();\n\t\t\tit.setDisplayName(ChatColor.DARK_GREEN+ChatColor.BOLD.toString()+\"Money in trade:\");\n\t\t\tit.setLore(Arrays.asList(new String[] {\"\",Util.getMoney(this.t.getMoneyTraded(p1)),\"\",\"Click to add/remove money from trade\"}));\n\t\t\tom.setItemMeta(it);\n\t\t\t\n\t\t\tif (this.canAdd()) super.contents.put(0,new ItemSwapMenu(this,om,new MenuMoney(super.viewer,this.t)));\n\t\t\telse super.contents.put(0,new ItemDummy(this,om));\n\t\t\t\n\t\t\t// Trader money in trade\n\t\t\tItemStack tm = new ItemStack(Material.GREEN_WOOL,1);\n\t\t\tit = tm.getItemMeta();\n\t\t\tit.setDisplayName(ChatColor.DARK_GREEN+ChatColor.BOLD.toString()+\"Money in trade:\");\n\t\t\tit.setLore(Arrays.asList(new String[] {\"\",Util.getMoney(this.t.getMoneyTraded(p2))}));\n\t\t\ttm.setItemMeta(it);\n\t\t\tsuper.contents.put(8,new ItemDummy(this,tm));\n\t\t\tthis.composeInv();\n\t\t}", "public abstract double calculateTax();", "void calculate() {\n if (price <= 1000)\n price = price - (price * 2 / 100);\n else if (price > 1000 && price <= 3000)\n price = price - (price * 10 / 100);\n else\n price = price - (price * 15 / 100);\n }", "public BigDecimal getPriceEntered();", "public static void calculateTotal(){\n int i=0;\n total=0;\n while(i<CustomAdapter.selecteditems.size()){\n total+= CustomAdapter.selecteditems.get(i).getPrice() * CustomAdapter.selecteditems.get(i).getQuantity();\n i++;\n }\n String s=\"Rs \"+String.valueOf(total);\n tv_total.setText(s);\n }", "public BigDecimal getTaxAmtPriceLimit();", "public double calculateTax(double amount){\n return (amount*TAX_4_1000)/1000;\n }", "public Number getActualCost()\r\n {\r\n return (m_actualCost);\r\n }", "private void updateComputerPlayerMoney()\n {\n lb_money_1.setText(\"My money: \" + computerPlayer_1.getMoney());\n\n // step 2. set lb_money_2 to be \"\"My money: \" + computerPlayer_2.getMoney(), using setText() of the label\n lb_money_2.setText(\"My money: \" + computerPlayer_2.getMoney());\n }", "private void updateAmplificationValue() {\n ((TextView) findViewById(R.id.zoomUpDownText)).setText(String.valueOf(curves[0].getCurrentAmplification()));\n }", "@Override\n\tprotected double calcularImpuestoVehiculo() {\n\t\treturn this.getValor() * 0.003;\n\t}", "private void calcPrice() {\n double itemPrice = 0;\n \n //get price of burger (base)\n if (singleRad.isSelected())\n {\n itemPrice = 3.50;\n }\n else \n {\n itemPrice = 4.75;\n }\n \n //check options add to item price\n if(cheeseCheckbox.isSelected())\n itemPrice = itemPrice += 0.50;\n if(baconCheckbox.isSelected())\n itemPrice = itemPrice += 1.25;\n if(mealCheckbox.isSelected())\n itemPrice = itemPrice += 4.00;\n \n //include the quantity for the item price\n int quantity= 1;\n if (quantityTextField.getText().equals(\"\"))\n quantityTextField.setText(\"1\");\n quantity = Integer.parseInt(quantityTextField.getText());\n itemPrice = itemPrice * quantity;\n\n \n //show the price no $ symbol\n \n itemPriceTextField.setText(d2.format(itemPrice));\n }", "private double promptForDepositAmount() {\n\n // display the prompt\n depositView.PrintAmountInCent();\n int input = keypad.getInput(); // receive input of deposit amount\n \n // check whether the user canceled or entered a valid amount\n if (input == CANCELED) {\n return CANCELED;\n }\n else {\n return (double) input / 100; // return dollar amount\n }\n }", "public void updateFuelUsed(double fuel) {\r\n\t\tfuelUsed.setText(\"Fuel Used (L): \" + BigDecimal.valueOf(fuel).setScale(2, RoundingMode.HALF_UP));\r\n\t\t\r\n\t}", "public void calcPrice() {\r\n\t\tsuper.price = 3 * super.height;\r\n\t}", "public String getCurrentAmount() {\n\t\twaitForControl(driver, LiveGuru99.WithdrawallPage.GET_CURRENT_AMOUNT, timeWait);\n\t\tString currentAmount = getText(driver, LiveGuru99.WithdrawallPage.GET_CURRENT_AMOUNT);\n\t\treturn currentAmount;\n\t}", "private void updatePriceStats(double newPrice) {\n this.currentPrice = newPrice;\n this.currentAvgPrice = Double.parseDouble(decimalFormat.format(computeSMA(newPrice, currentAvgPrice, priceHistory)));\n this.priceChangePCT = Double.parseDouble(decimalFormat.format(computeDifferentialPCT(newPrice, currentAvgPrice)));\n }", "public double calculateCost() {\n double output = price * (1 + taxRate);\n return output;\n }" ]
[ "0.73580843", "0.72356516", "0.7207718", "0.68723834", "0.6825073", "0.6759772", "0.6689006", "0.6641879", "0.6627424", "0.65564567", "0.64534026", "0.6450304", "0.6435054", "0.6425488", "0.6419682", "0.6399114", "0.6370349", "0.6340248", "0.63127023", "0.61732215", "0.61524093", "0.6146966", "0.6081795", "0.6056029", "0.6036567", "0.60333115", "0.60312706", "0.60021603", "0.59951466", "0.5967591", "0.59378034", "0.58839333", "0.5835278", "0.58336043", "0.58083093", "0.57857054", "0.57707185", "0.5731526", "0.57223964", "0.57175213", "0.57007486", "0.56924117", "0.5682197", "0.56782216", "0.56769204", "0.56679296", "0.56525344", "0.56476825", "0.5644259", "0.56366533", "0.5636133", "0.5634846", "0.56265736", "0.5620773", "0.5614439", "0.56049657", "0.5602482", "0.55995864", "0.5598921", "0.5576532", "0.5551767", "0.5551056", "0.55430025", "0.5533543", "0.55157226", "0.5512788", "0.55112654", "0.55086434", "0.5507755", "0.54923093", "0.54874164", "0.5485335", "0.54850423", "0.54795396", "0.5466868", "0.5456028", "0.5451916", "0.54457957", "0.54405445", "0.54361016", "0.543457", "0.54325646", "0.5432002", "0.5430892", "0.54205024", "0.5406664", "0.54032314", "0.54017586", "0.54009753", "0.54000103", "0.5394529", "0.5394092", "0.5387148", "0.53853774", "0.5379693", "0.5376346", "0.53726363", "0.537113", "0.5367205", "0.5363206" ]
0.74015695
0
Helper function to determine a proper unit(s) based on the given progress/unit
private String getStringPersonUnitBasedOnNumber( int progress ) { String msg = "1 person"; if ( progress > 1) { msg = progress + " people"; } return msg; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getResultUnit() {\n switch (mCalculationType) {\n case CONSUMPTION_L_100_KM:\n return \"l/100 km\";\n case CONSUMPTION_KM_L:\n return \"km/l\";\n case CONSUMPTION_MPG:\n return \"mpg\";\n default:\n return \"\";\n }\n }", "String getUnit();", "public static NormalTridasUnit parseUnitString(String str) throws Exception\n\t{\n\t\tstr = str.trim();\n\t\tif ((str==null) || (str.equals(\"\"))) return null;\n\t\n\t\tstr =str.toLowerCase();\n\t\t\n\t\tInteger val;\n\t\tBoolean mmDetected = false;\n\t\t\n\t\t//Remove leading fraction\n\t\tif(str.startsWith(\"1/\")){ str = str.substring(2);}\n\t\t\n\t\t// Remove 'ths'\n\t\tif(str.contains(\"ths\")){ str = str.replace(\"ths\", \"\");}\n\t\t\n\t\t// Remove 'th'\n\t\tif(str.contains(\"th\")){ str = str.replace(\"th\", \"\");}\n\t\t\n\t\t// Remove 'mm'\n\t\tif(str.contains(\"mm\"))\n\t\t{ \n\t\t\tstr = str.replace(\"mm\", \"\");\n\t\t\tmmDetected = true;\n\t\t}\n\t\tif(str.contains(\"millimet\"))\n\t\t{ \n\t\t\tstr = str.replace(\"millimetres\", \"\");\n\t\t\tstr = str.replace(\"millimeters\", \"\");\n\t\t\tstr = str.replace(\"millimetre\", \"\");\n\t\t\tstr = str.replace(\"millimeter\", \"\");\n\t\t\tmmDetected = true;\n\t\t}\n\t\t\n\t\tif(str.length()==0 && mmDetected)\n\t\t{\n\t\t\treturn NormalTridasUnit.MILLIMETRES;\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tval = Integer.parseInt(str.trim());\n\t\t} catch (NumberFormatException e)\n\t\t{\n\t\t\tthrow new Exception(\"Unable to parse units from units string\");\n\t\t}\n\t\t\n\t\tswitch(val)\n\t\t{\t\n\t\t\tcase 10: return NormalTridasUnit.TENTH_MM; \n\t\t\tcase 20: return NormalTridasUnit.TWENTIETH_MM;\n\t\t\tcase 50: return NormalTridasUnit.FIFTIETH_MM;\n\t\t\tcase 100: return NormalTridasUnit.HUNDREDTH_MM; \n\t\t\tcase 1000: return NormalTridasUnit.MICROMETRES; \n\t\t}\n\t\t\n\t\tthrow new Exception(\"Unable to parse units from units string\");\n\t}", "public abstract double toBasicUnit(double unit);", "public static String units(String unit) {\n\t\tswitch (unit) {\n\t\t\tcase \"feet\":\n\t\t\t\treturn \"ft\";\n\t\t\tcase \"miles\":\n\t\t\t\treturn \"mi\";\n\t\t\tcase \"meters\":\n\t\t\t\treturn \"m\";\n\t\t\tcase \"kilometers\":\n\t\t\t\treturn \"km\";\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t}\n\t}", "private int convertProgressToMeters(int progress) {\n return progress * METERS_PER_PROGRESS;\n }", "public String getUnit();", "ChronoUnit getUnit();", "private ChronoUnit parseUnit(String unitStr) {\n unitStr = unitStr.toUpperCase();\n // If the unitStr ends with a 'S' then do nothing otherwise add a 'S' to the end\n unitStr = unitStr.charAt(unitStr.length() - 1) == 'S' ? unitStr : unitStr + \"S\";\n // Return the corresponding ChronoUnit\n switch (unitStr) {\n case \"DAYS\":\n return ChronoUnit.DAYS;\n case \"WEEKS\":\n return ChronoUnit.WEEKS;\n case \"HOURS\":\n return ChronoUnit.HOURS;\n case \"SECONDS\":\n return ChronoUnit.SECONDS;\n case \"MINUTES\":\n return ChronoUnit.MINUTES;\n }\n return ChronoUnit.DAYS;\n }", "String getUnits();", "String getUnits();", "String getUnits();", "private String getUnits(Unit units, int value) {\n if (units == Unit.FEET) {\n if (value == 1) return \" foot\";\n return \" feet\";\n }\n if (value == 1) return \" inch\";\n return \" inches\";\n }", "int getToughness(Unit unit);", "String getUnitsString();", "TimeUnit getUnit();", "DefiningUnitType getDefiningUnit();", "Unit getUnit();", "void progress(int pUnitsCompleted);", "public String getUnit() {\n String unit = (String) comboUnits.getSelectedItem();\n if (\"inch\".equals(unit)) {\n return \"in\";\n } else if (\"cm\".equals(unit)) {\n return \"cm\";\n } else if (\"mm\".equals(unit)) {\n return \"mm\";\n } else if (\"pixel\".equals(unit)) {\n return \"px\";\n }\n return \"\";\n }", "public static UnitTypes GetUnitType(Units unit)\n {\n return MethodsCommon.GetTypeFromUnit(unit);\n }", "public void setUnit(Length units) {\n unit = units;\n }", "Units getUnits();", "public void setUnit (String value) {\n\tthis.unit = value;\n }", "public abstract String getUnit();", "public String getUnit() {\n\t\tString unit;\n\t\ttry {\n\t\t\tunit = this.getString(\"unit\");\n\t\t} catch (Exception e) {\n\t\t\tunit = null;\n\t\t}\n\t\treturn unit;\n\t}", "DefinedUnitType getDefinedUnit();", "public int calculateUnits(Object oKey, Object oValue);", "private final int unit1 (Parsing text, StringBuffer edited) \n\tthrows ParseException {\n\t\tint posini = text.pos;\t\t// Initial position in text\n\t\tUdef theUnit = uDef[0];\t\t// Default Unit = Unitless\n\t\tint mult_index = -1;\t\t// Index in mul_fact by e.g. &mu;\n\t\tint power = 1;\n\t\tchar op = Character.MIN_VALUE;\t// Operator power\n\t\tint error = 0;\t\t\t// Error counter\n\t\tboolean close_bracket = false;\t// () not edited when buffer empty\n\t\tint edited_pos = -1;\n\t\tint i, s;\n\n\t\t/* Initialize the Unit to unitless */\n\t\tmksa = underScore; factor = 1.;\n\t\tif (text.pos >= text.length) return(0);\t// Unitless\n\n\t\tif (DEBUG>0) System.out.println(\"....unit1(\" + text + \")\");\n\t\tswitch(text.a[text.pos]) {\n\t\tcase '(':\t\t/* Match parenthesized expression */\n\t\t\ttheUnit = null;\t// Parenthese do NOT define any unit.\n\t\t\ttext.pos++;\t\t// Accept the '('\n\t\t\tclose_bracket = (edited != null) ; /*&& (edited.length() > 0)*/\n\t\t\tif (close_bracket) {\n\t\t\t\tedited_pos = edited.length();\t// where to insert 'square'\n\t\t\t\tedited.append('(') ;\n\t\t\t}\n\t\t\tthis.unitec(text, edited) ;\n\t\t\tif ((text.pos < text.length) && (text.a[text.pos] == ')'))\n\t\t\t\ttext.pos++;\n\t\t\telse throw new ParseException\n\t\t\t(\"****Unit: Missing ) in '\" + text + \"'\", text.pos);\n\t\t\tif (close_bracket) {\n\t\t\t\t// Remove the Ending blanks, before closing the bracket\n\t\t\t\ti = edited.length(); \n\t\t\t\twhile ((--i >= 0) && (edited.charAt(i) == ' ')) ;\n\t\t\t\tedited.setLength(++i);\n\t\t\t\tedited.append(')') ;\n\t\t\t\tclose_bracket = false;\n\t\t\t}\n\t\t\tbreak ;\n\t\tcase '\"':\t\t/* Quoted units must match exactly */\n\t\t\ti = text.matchingQuote();\n\t\t\tif (i<text.length) i++;\t// Matching quote\n\t\t\ttheUnit = uLookup(text, i-text.pos);\n\t\t\tif (theUnit == null) throw new ParseException\n\t\t\t(\"****Unit: quoted unit does not match\", text.pos);\n\t\t\tbreak ;\n\t\tcase '-':\t\t// Unitless ?\n\t\t\ts = text.pos++;\n\t\t\tif (text.pos >= text.length) break;\n\t\t\tif (Character.isDigit(text.a[text.pos])) { \t// Number ?\n\t\t\t\ttext.pos = s;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\twhile ((text.pos<text.length) && (text.a[text.pos]=='-')) \n\t\t\t\ttext.pos++;\t// Accept unitless as \"--\" or \"---\"\n\t\t\tbreak;\n\t\tcase '%':\n\t\t\ttheUnit = uLookup(text, 1);\n\t\t\tbreak;\n\t\tcase '\\\\':\t\t// Special constants\n\t\t\tfor (i=text.pos+1; (i<text.length) && Character.isLetter(text.a[i]); \n\t\t\ti++) ;\n\t\t\ttheUnit = uLookup(text, i-text.pos) ;\n\t\t\tif (theUnit == null) error++ ;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tfor (i=text.pos; (i<text.length) && Character.isLetter(text.a[i]); \n\t\t\ti++) ;\n\t\t// A unit may be terminated by 0 (a0 = classical electron radius)\n\t\tif ((i<text.length) && (text.a[i] == '0')) i++;\n\t\ttheUnit = uLookup(text, i-text.pos) ;\n\t\tif (theUnit != null) break;\n\t\t/* Simple unit not found. Look for multiple prefix */\n\t\ts = text.pos ;\t// Save \n\t\tif ((text.length-text.pos)>1) \n\t\t\tmult_index = text.lookup(mul_symb) ;\n\t\tif (mult_index < 0) break;\n\t\ttheUnit = uLookup(text, i-text.pos) ;\n\t\tif (theUnit == null) text.pos = s; \n\t\t}\n\t\t/* Look now for a Power: */\n\t\tif ((error == 0) && (text.pos < text.length)) \n\t\t\top = text.a[text.pos];\n\t\t/* Power is however not acceptable for complex and date numbers */\n\t\tif (theUnit != null) {\n\t\t\tif ((theUnit.mksa&(_abs|_pic)) != 0)\n\t\t\t\top = Character.MIN_VALUE;\n\t\t}\n\t\tif ((op == '+') || (op == '-') || (op == '^') || \n\t\t\t\t(Character.isDigit(op) && (op != '0'))) {\n\t\t\tif (DEBUG>0) System.out.print(\" look for power with op=\" + op);\n\t\t\tif (op == '^') text.pos += 1;\n\t\t\tif (text.pos < text.length) {\n\t\t\t\top = text.a[text.pos];\n\t\t\t\tif (op == '+') text.pos++ ;\n\t\t\t\tif (op != '-') op = '+';\n\t\t\t\tpower = text.parseInt() ;\n\t\t\t\t// A zero-power is illegal !!\n\t\t\t\tif (power == 0) error++;\n\t\t\t\t// 'square' or 'cubic' is spelled out BEFORE the unit name\n\t\t\t\telse if ((power > 0) && (power < 10) && (edited != null)) {\n\t\t\t\t\ttext.pos--;\t\t// Now text is the digit of power\n\t\t\t\t\ti = text.lookup(op_symb) ;\n\t\t\t\t\tif (i >= 0) { \t// Square or cubic\n\t\t\t\t\t\tif (edited_pos >= 0)\n\t\t\t\t\t\t\tedited.insert(edited_pos, op_text[i]);\n\t\t\t\t\t\telse edited.append(op_text[i]) ; \n\t\t\t\t\t\top = ' '; \t// Power is now edited\n\t\t\t\t\t}\n\t\t\t\t\telse text.pos++;\n\t\t\t\t}\n\t\t\t\tif (DEBUG>0) System.out.print(\", power=\" + power);\n\t\t\t}\n\t\t\telse error++;\n\t\t\tif (DEBUG>0) System.out.println(\", error=\" + error);\n\t\t}\n\n\t\tif (error>0) throw new ParseException\n\t\t(\"****Unit: '\" + text + \"'+\" + text.pos, text.pos) ;\n\n\t\tif (mult_index >= 0) {\t\t// Multiplicities like 'k', '&mu;', ...\n\t\t\tfactor *= AstroMath.dexp(mul_fact[mult_index]);\n\t\t\tif (edited != null) edited.append(mul_text[mult_index]) ;\n\t\t}\n\n\t\tif (theUnit != null) {\n\t\t\tfactor *= theUnit.fact ;\n\t\t\tmksa = theUnit.mksa;\n\t\t\toffset = theUnit.orig;\n\t\t\tif (edited != null)\n\t\t\t\tedited.append(theUnit.expl) ;\n\t\t}\n\n\t\tif (power != 1) {\n\t\t\tthis.power (power) ;\n\t\t\tif ((op != ' ') && (edited != null)) {\n\t\t\t\tedited.append(\"power\") ;\n\t\t\t\tif (power>=0) edited.append(op);\t// - sign included...\n\t\t\t\tedited.append(power);\t\t\t// by this edition!\n\t\t\t}\n\t\t}\n\t\ts = text.pos - posini;\n\t\tif (DEBUG>0) System.out.println(\" =>unit1: return=\" + s \n\t\t\t\t+ \", f=\"+factor + \", val=\"+value);\n\t\treturn(s);\n\t}", "public UnitTypes GetCurrentUnitType()\n {\n return MethodsCommon.GetTypeFromUnit(Unit);\n }", "public void setUnit(String unit) {\n this.unit = unit;\n }", "public void setUnit(String unit)\n {\n this.unit = unit;\n }", "public String getUnit()\n {\n return (this.unit);\n }", "void switchToDeterminate(int pUnits);", "public void setUnit(String unit);", "public String getUnit() {\n return unit;\n }", "public String getUnit() {\n return unit;\n }", "public String getUnit() {\n return unit;\n }", "private String getAmountUnit(int unit) {\n switch (unit) {\n case UNIT_LITERS:\n return getResourceString(R.string.val_l);\n case UNIT_GALLONS:\n return getResourceString(R.string.val_g);\n }\n\n return \"\";\n }", "public String getUnitsString() {\n String result = null;\n if (forVar != null) {\n Attribute att = forVar.findAttributeIgnoreCase(CDM.UNITS);\n if ((att != null) && att.isString())\n result = att.getStringValue();\n }\n return (result == null) ? units : result.trim();\n }", "public String getUnit () {\n\treturn this.unit;\n }", "public void setUnits(String units) {\n this.units = units;\n }", "public void setUnits(String units) {\n this.units = units;\n }", "public static TemplateParameterUnit getTemplateParameterUnit(String unit,Logger logger){\r\n TemplateParameterUnit currentUnit = new TemplateParameterTimeUnit(unit,logger);\r\n \r\n if(currentUnit.getTemplateParameterUnitString() != null)\r\n return currentUnit;\r\n \r\n currentUnit = new TemplateParameterQuotaUnit(unit,logger);\r\n \r\n if(currentUnit.getTemplateParameterUnitString() != null)\r\n return currentUnit;\r\n \r\n currentUnit = new TemplateParameterDateUnit(unit,logger);\r\n \r\n if(currentUnit.getTemplateParameterUnitString() != null)\r\n return currentUnit;\r\n \r\n currentUnit = new TemplateParameterMoneyUnit(unit,logger);\r\n \r\n if(currentUnit.getTemplateParameterUnitString() != null)\r\n return currentUnit;\r\n \r\n return null;\r\n \r\n }", "public String getUnit() {\n\t\treturn unit;\n\t}", "final Unit getUnits() {\n Unit units = null;\n for ( int i = getDimension(); --i >= 0; ) {\n final Unit check = getUnits( i );\n if ( units == null )\n units = check;\n else if ( !units.equals( check ) )\n return null;\n }\n return units;\n }", "public float[][] valunitSeparate(String[] data, String ps) {\n int eq=0,i;\n int u=0,sum=0;\n String units[],values[];\n String unknown;\n int un[];\n float[][] val = new float[3][2];\n un = new int[3]; //stores integer values corresponding to each var\n units = new String[3];\n values = new String[3];\n\n for(i=0;i<3;i++) {\n units[i] = \"\";\n values[i] = \"\";\n }\n\n for(i=0;i<3;i++) {\n for(int j=0;j<data[i].length();j++) {\n String c = \"\";\n c=c+data[i].charAt(j);\n if(Pattern.matches(\"[0-9]*\\\\.?[0-9]*\",c)) {\n values[i] = values[i]+c;\n } else {\n units[i] = units[i]+c;\n }\n }\n }\n\n unknown = ai.unknownFnd(ps); //contains the unknown var\n\n for (i=0;i<3;i++) {\n if (Objects.equals(units[i], \"m/ssq\"))\n un[i] = 3;\n else if (Objects.equals(units[i], \"s\"))\n un[i] = 4;\n else if(Objects.equals(units[i], \"m\"))\n un[i] = 5;\n else if (Objects.equals(units[i], \"m/s\")) {\n if (Objects.equals(unknown, \"u\"))\n un[i] = 1;\n else if (Objects.equals(unknown, \"v\"))\n un[i] = 2;\n else\n un[i] = 2;\n }\n }\n\n for (i=0;i<3;i++) {\n val[i][0] = Float.parseFloat(values[i]);\n val[i][1] = un[i];\n }\n\n return (val);\n }", "protected int calculateUnits(Object oValue)\n {\n OldOldCache map = OldOldCache.this;\n Object oKey = getKey();\n switch (map.getUnitCalculatorType())\n {\n case UNIT_CALCULATOR_BINARY:\n return BinaryMemoryCalculator.INSTANCE.calculateUnits(oKey, oValue);\n\n case UNIT_CALCULATOR_EXTERNAL:\n return map.getUnitCalculator().calculateUnits(oKey, oValue);\n\n case UNIT_CALCULATOR_FIXED:\n default:\n return 1;\n }\n }", "public String unit() {\n return this.unit;\n }", "Unit infantryUnit(Canvas canvas ,String name);", "public void setUnit(String unit) {\n\t\tthis.unit = unit;\n\t}", "public abstract Unit getUnits( int dimension );", "@Override\n\tprotected long getUpdatedUnits(long units) {\n\t\treturn units;\n\t}", "public byte getUnits() { return units; }", "public Unit<? extends Quantity> getUnit(int index) {\n return _elements[index].getUnit();\n }", "protected String getUnits()\n {\n return units;\n }", "public static String convertUnitStr(Unit source_unit, Unit target_unit) \n\tthrows ArithmeticException {\n\t\tdouble f = source_unit.factor/target_unit.factor;\n\t\tdouble ls;\n\t\tif(target_unit.mksa == source_unit.mksa) {\n\t\t\tif((target_unit.mksa&_log)==0){\n\t\t\t\tdouble toAdd = (source_unit.offset-target_unit.offset)/target_unit.factor;\n\t\t\t\treturn f*((source_unit.value!=0.0)?source_unit.value:1.0)+\"*UNIT\"+((toAdd==0.0)?\"\":(toAdd<0.0)?\"\":\"+\"+toAdd);\n\t\t\t}\n\t\t\telse{\t// Convert to log scale: log(km) --> log(m)+log(k)\n\t\t\t\tif((source_unit.offset!=0)||(target_unit.offset!=0)){\n\t\t\t\t\tthrow new ArithmeticException(\"****Unit: can't convert non-standard unit \" + source_unit.symbol + \" into \" + target_unit.symbol);\n\t\t\t\t}\n\t\t\t\tf = AstroMath.log(f);\n\t\t\t\tif ((target_unit.mksa&_mag) != 0) f = -2.5*f;\n\t\t\t\treturn ((source_unit.value!=0.0)?source_unit.value+\"*\":\"\")+\"UNIT\"+((f<0.0)?\"\":\"+\")+f;\n\t\t\t}\n\t\t}\n\t\tif((target_unit.mksa&(~_LOG))!=(source_unit.mksa&(~_LOG))){\t\n\t\t\tthrow new ArithmeticException(\"****Unit: can't convert \" + source_unit.symbol + \" into \" + target_unit.symbol);\n\t\t}\n\t\t/* Convert to / from Log scale */\n\t\tif ((target_unit.mksa&_log)==0) {\t\t// Remove the log\n\t\t\tls = (source_unit.mksa&_mag)!=0?-2.5:1.;\n\t\t\treturn (source_unit.mksa&_mag)!=0?\n\t\t\t\t\tf+\"*exp(-(UNIT*\"+((source_unit.value!=0.0)?source_unit.value:1.0)*AstroMath.ln10+\")/2.5)\"\n\t\t\t\t\t:f+\"*exp(UNIT*\"+((source_unit.value!=0.0)?source_unit.value:1.0)*AstroMath.ln10+\")\";\n\t\t}\n\t\t/* The target is a log. Check whether the source is also in log scale */\n\t\tif ((source_unit.mksa&_log) != 0) {\t// Convert from log to log\n\t\t\tString toReturn = (source_unit.mksa&_mag)!=0?-0.4*((source_unit.value!=0.0)?source_unit.value:1.0)+\"*UNIT\":((source_unit.value!=0.0)?source_unit.value+\"*\":\"\")+\"UNIT\";\n\t\t\ttoReturn += AstroMath.log(f); // Target assumed to be log\n\t\t\tif((target_unit.mksa&_mag)!=0) return \"-2.5*(\"+toReturn+\")\";\t// Target is a magnitude\n\t\t\treturn toReturn;\n\t\t}\n\t\t/* The target is a log, the source is in a linear scale. */\n\t\tls = (target_unit.mksa&_mag)!=0?-2.5:1.;\n\t\treturn ls+\"*log(\"+(f*((source_unit.value!=0.0)?source_unit.value:1.0))+\"*UNIT)\";\n\t}", "private chProcUnit getUnit(Integer index) {\n chProcUnit returnedUnit = new chProcUnit();\n if (currentState == states.INPUT) {\n java.util.ListIterator<chProcUnit> chIter = chProcList.listIterator();\n while (chIter.hasNext()) {\n chProcUnit tempUnit = chIter.next();\n if (tempUnit.chFillOrder == index) {\n returnedUnit = tempUnit;\n break;\n }\n }\n } else if (currentState == states.OUTPUT) {\n java.util.ListIterator<chProcUnit> chIter = chProcList.listIterator();\n while (chIter.hasNext()) {\n chProcUnit tempUnit = chIter.next();\n if (tempUnit.chReleaseOrder == index) {\n returnedUnit = tempUnit;\n break;\n }\n }\n } else {\n JTVProg.logPrint(this, 1, \"ошибка вызова: процессор без состояния\");\n }\n return returnedUnit;\n }", "public void setUnits(byte units) { this.units = units; }", "public void setUnitTable(Units value);", "public Units getUnitTable();", "public String getUnits() {\n return units;\n }", "long getDuration(TimeUnit timeUnit);", "public int changeUnits(int additionalUnits){\n if (units + additionalUnits < 1){\n return 0;\n }\n else {\n units += additionalUnits;\n return units;\n }\n }", "public String getToUnit() {\r\n return this.toUnit;\r\n }", "public int getUnits() {\r\n return units;\r\n }", "public Length getUnit() {\n return unit;\n }", "public String getUnits() {\n return units;\n }", "protected static float toMillimeters(int unit, float value) {\n \t\tswitch (unit) {\n \t\tcase CSSPrimitiveValue.CSS_CM:\n \t\t\treturn (value * 10);\n \t\tcase CSSPrimitiveValue.CSS_MM:\n \t\t\treturn value;\n \t\tcase CSSPrimitiveValue.CSS_IN:\n \t\t\treturn (value * 25.4f);\n \t\tcase CSSPrimitiveValue.CSS_PT:\n \t\t\treturn (value * 25.4f / 72);\n \t\tcase CSSPrimitiveValue.CSS_PC:\n \t\t\treturn (value * 25.4f / 6);\n \t\tdefault:\n \t\t\tthrow new DOMException(DOMException.INVALID_ACCESS_ERR, \"\");\n \t\t}\n \t}", "public String getUnits() {\r\n\t\treturn units;\r\n\t}", "public String getUnits() {\n return this.units;\n }", "Unit(double baseUnitConversion) {\n this.baseUnitConversion = baseUnitConversion;\n }", "@Test\n public void currentProgressTest() {\n\n smp.checkAndFillGaps();\n smp.increaseCurrentProgress();\n smp.increaseCurrentProgress();\n smp.increaseCurrentProgress();\n smp.increaseCurrentProgress();\n smp.increaseCurrentProgress();\n\n assertEquals(5, smp.getCurrentProgress());\n assertEquals(30, smp.getUnitsTotal() - smp.getCurrentProgress());\n assertEquals(Float.valueOf(30), smp.getEntriesCurrentPace().lastEntry().getValue());\n assertTrue(smp.getEntriesCurrentPace().size() > 0);\n assertFalse(smp.isFinished());\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MMM-YY\", Locale.getDefault());\n\n for (Map.Entry<Date, Float> entry : smp.getEntriesCurrentPace().entrySet()) {\n System.out.println(dateFormat.format(entry.getKey()) + \" : \" + entry.getValue());\n }\n\n\n for (int i = 0; i < 30; i++) {\n smp.increaseCurrentProgress();\n }\n\n assertTrue(smp.isFinished());\n\n smp.increaseCurrentProgress();\n\n assertEquals(Float.valueOf(0), smp.getEntriesCurrentPace().lastEntry().getValue());\n\n }", "@Test\n\tpublic void testgetUnits1(){\n\t\tTemperature data = new Temperature (400, Temperature.Units.FAHRENHEIT);\n\t\tassertEquals(data.getUnits() , Temperature.Units.FAHRENHEIT);\n\t}", "private String getDistanceUnit(int distance) {\n switch (distance) {\n case DISTANCE_KM:\n return getResourceString(R.string.val_km);\n case DISTANCE_MILES:\n return getResourceString(R.string.val_m);\n }\n\n return \"\";\n }", "public long elapsedTime(TimeUnit desiredUnit) {\n/* 153 */ return desiredUnit.convert(elapsedNanos(), TimeUnit.NANOSECONDS);\n/* */ }", "public final void div (Unit unit) throws ArithmeticException {\n\t\tlong u = mksa ; double r = factor; double v = value;\n\t\tif (((mksa&_abs)!=0) && (unit.factor != 1)) throw\t// On a date\n\t\tnew ArithmeticException(\"****Unit.div on a date!\");\n\t\tif (((mksa|unit.mksa)&_log) != 0) {\n\t\t\tif ((mksa == underScore) && (factor == 1.)) ;\n\t\t\telse if ((unit.mksa == underScore) && (unit.factor == 1.)) ;\n\t\t\telse throw new ArithmeticException\n\t\t\t(\"****Unit: can't divide logs: \" + symbol + \" x \" + unit.symbol);\n\t\t}\n\t\t/* As soon as there is an operation, the offset is ignored \n\t\t * except if one of the factors is unity.\n\t\t */\n\t\tif ((offset!=0) || (unit.offset!=0)) {\n\t\t\tif (mksa == underScore) offset = unit.offset;\n\t\t\telse if (unit.mksa == underScore) ;\n\t\t\telse offset = 0;\n\t\t}\n\t\tv /= unit.value; \n\t\tr /= unit.factor; \n\t\tu += underScore; u -= unit.mksa;\n\t\tif ((u&0x8c80808080808080L) != 0) throw new ArithmeticException\n\t\t(\"****too large powers in: \" + symbol + \" / \" + unit.symbol);\n\t\tmksa = u;\n\t\tfactor = r;\n\t\tvalue = v;\n\t\t/* Decision for the new symbol */\n\t\tif ((symbol != null) && (unit.symbol != null)) {\n\t\t\tif ((unit.mksa == underScore) && (unit.factor == 1)) return;\t// No unit ...\n\t\t\tif (( mksa == underScore) && ( factor == 1))\n\t\t\t\tsymbol = toExpr(unit.symbol) + \"-1\";\n\t\t\telse if (symbol.equals(unit.symbol)) symbol = edf(factor);\n\t\t\telse symbol = toExpr(symbol) + \"/\" + toExpr(unit.symbol) ;\n\t\t}\n\t}", "public void calculate()\n\t{\n\t\tString sourceUnitType = (String)this.sourceUnit.getChoice(this.sourceUnit.getSelectedIndex());\n\t\tString destUnitType = (String)this.destUnit.getChoice(this.destUnit.getSelectedIndex());\n\t\t\n\t\tdouble sourceUnitMultiplier = LengthUnits.getMultiplier(sourceUnitType);\n\t\tdouble destUnitMultiplier = LengthUnits.getMultiplier(destUnitType);\n\t\t\n\t\tdouble units = Integer.parseInt(this.input.getText());\n\t\t\n\t\tthis.outputLabel.setText(String.valueOf((units * (1 / sourceUnitMultiplier)) * destUnitMultiplier));\n\t}", "public void setUnit(Unit unit) {\r\n\t\tthis.unit = unit;\r\n\t}", "public void setUnits(int value) {\r\n this.units = value;\r\n }", "public static int getUnitType(String unitTypeName) {\n\n\tint unitType = UnitTypes.UNKNOWN;\n\n\tif(unitTypeName.equals(\"lifeForm_USSR_DIGroup6_MgGndRfl\")) {\n\t unitType = UnitTypes.LIGHT_INFANTRY;\n\t}\n\telse if(unitTypeName.equals(\"lifeForm_USSR_DIGroup3_Ags17\")) {\n\t unitType = UnitTypes.LIGHT_INFANTRY;\n\t}\n\telse if(unitTypeName.equals(\"lifeForm_USSR_DIGroup2_Lfk5\")) {\n\t unitType = UnitTypes.LIGHT_INFANTRY;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_USSR_BMP2\")) {\n\t unitType = UnitTypes.MECH_INFANTRY;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_USSR_BMP1\")) {\n\t unitType = UnitTypes.MECH_INFANTRY;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_USSR_BTR80\")) {\n\t unitType = UnitTypes.MECH_INFANTRY;\n\t}\n\telse if(unitTypeName.equals(\"US___M977_________\")) {\n\t unitType = UnitTypes.MECH_INFANTRY;\n\t}\n\telse if(unitTypeName.equals(\"USSR_T72M_________\")) {\n\t unitType = UnitTypes.ARMOR;\n\t}\n\telse if(unitTypeName.equals(\"USSR_T80__________\")) {\n\t unitType = UnitTypes.ARMOR;\n\t}\n\telse if(unitTypeName.equals(\"USSR_ZSU23_4M_____\")) {\n\t unitType = UnitTypes.AIR_DEFENSE_ARTILLERY;\n\t}\n\telse if(unitTypeName.equals(\"USSR_2S6__________\")) {\n\t unitType = UnitTypes.AIR_DEFENSE_ARTILLERY;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_US_M1\")) {\n\t unitType = UnitTypes.ARMOR;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_US_M1A1\")) {\n\t unitType = UnitTypes.ARMOR;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_US_M1A2\")) {\n\t unitType = UnitTypes.ARMOR;\n\t}\n\telse if(unitTypeName.equals(\"US___M1___________\")) {\n\t unitType = UnitTypes.ARMOR;\n\t}\n\telse if(unitTypeName.equals(\"US___M1A1_________\")) {\n\t unitType = UnitTypes.ARMOR;\n\t}\n\telse if(unitTypeName.equals(\"US___M1A2_________\")) {\n\t unitType = UnitTypes.ARMOR;\n\t}\n\telse if(unitTypeName.equals(\"US___M35__________\")) {\n\t unitType = UnitTypes.MECH_INFANTRY;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_USSR_SA_6_FCR\")) {\n\t unitType = UnitTypes.AIR_DEFENSE_ARTILLERY;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_USSR_SA_6_TEL\")) {\n\t unitType = UnitTypes.AIR_DEFENSE_ARTILLERY;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_USSR_T72M\")) {\n\t unitType = UnitTypes.ARMOR;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_USSR_T80\")) {\n\t unitType = UnitTypes.ARMOR;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_USSR_XM375S\")) {\n\t unitType = UnitTypes.AIR_DEFENSE_ARTILLERY;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_USSR_XMG1S\")) {\n\t unitType = UnitTypes.AIR_DEFENSE_ARTILLERY;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_USSR_XMLTS\")) {\n\t unitType = UnitTypes.AIR_DEFENSE_ARTILLERY;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_USSR_XMTSS\")) {\n\t unitType = UnitTypes.AIR_DEFENSE_ARTILLERY;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_USSR_ZSU23_4M\")) {\n\t unitType = UnitTypes.AIR_DEFENSE_ARTILLERY;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_USSR_ZSU23_4M\")) {\n\t unitType = UnitTypes.AIR_DEFENSE_ARTILLERY;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_USSR_MIG29\")) {\n\t unitType = UnitTypes.AIR_FORCES;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_US_F16C\")) {\n\t unitType = UnitTypes.AIR_FORCES;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_US_F16D\")) {\n\t unitType = UnitTypes.AIR_FORCES;\n\t}\n\telse if(unitTypeName.equals(\"vehicle_US_A10\")) {\n\t unitType = UnitTypes.AIR_FORCES;\n\t}\n\telse if(unitTypeName.equals(\"munition_US_Maverick\")) {\n\t unitType = UnitTypes.MISSILE;\n\t}\n\telse if(unitTypeName.startsWith(\"lifeForm_\")) {\n\t unitType = UnitTypes.LIGHT_INFANTRY;\n\t}\n\telse if(unitTypeName.equals(\"unknown\")) {\n\t unitType = UnitTypes.UNKNOWN;\n\t}\n\telse {\n\t Debug.info(\"UnitTypes.getUnitType: Unknown unitTypeName=\"+unitTypeName);\n\t}\n\n\treturn unitType;\n }", "public void setUnits(java.lang.String param) {\r\n localUnitsTracker = param != null;\r\n\r\n this.localUnits = param;\r\n }", "public Unit getUnitAt(Position p);", "String getBaseUnit() {\n return baseUnit;\n }", "public String getUnitsString() {\n return units;\n }", "Unit getHasUnit();", "private double roundUnit(double unit)\n {\n double ones = Math.pow(10, Math.ceil(Math.log10(unit)));\n double twos = Math.pow(10, Math.ceil(Math.log10(unit / 2))) * 2;\n double fives = Math.pow(10, Math.ceil(Math.log10(unit / 5))) * 5;\n\n return Math.min(Math.min(ones, twos), fives);\n }", "public String getUnits() {\n\t\treturn units;\n\t}", "private PersistenceUnitInfoImpl findUnit(List<PersistenceUnitInfoImpl>\n pinfos, String name, ClassLoader loader) {\n PersistenceUnitInfoImpl ojpa = null;\n PersistenceUnitInfoImpl result = null;\n for (PersistenceUnitInfoImpl pinfo : pinfos) {\n // found named unit?\n if (name != null) {\n if (name.equals(pinfo.getPersistenceUnitName())){\n if (result != null){\n this.addPuNameCollision(name, result.getPersistenceXmlFileUrl().toString(),\n pinfo.getPersistenceXmlFileUrl().toString());\n\n } else {\n // Grab a ref to the pinfo that matches the name we're\n // looking for. Keep going to look for duplicate pu names.\n result = pinfo;\n }\n }\n continue;\n }\n\n if (isOpenJPAPersistenceProvider(pinfo, loader)) {\n // if no name given and found unnamed unit, return it.\n // otherwise record as default unit unless we find a better match later\n if (StringUtil.isEmpty(pinfo.getPersistenceUnitName()))\n return pinfo;\n if (ojpa == null)\n ojpa = pinfo;\n }\n }\n if(result!=null){\n return result;\n }\n return ojpa;\n }", "private void changeUnitWithDirection() {\n MainActivity app = MainActivity.app;\n if (app == null) return;\n int unit = SharedPreferencesManager.getCurrencyUnit(app);\n switch (unit) {\n case BRConstants.CURRENT_UNIT_BITS:\n SharedPreferencesManager.putCurrencyUnit(app, BRConstants.CURRENT_UNIT_MBITS);\n break;\n case BRConstants.CURRENT_UNIT_MBITS:\n SharedPreferencesManager.putCurrencyUnit(app, BRConstants.CURRENT_UNIT_BITCOINS);\n break;\n case BRConstants.CURRENT_UNIT_BITCOINS:\n SharedPreferencesManager.putCurrencyUnit(app, BRConstants.CURRENT_UNIT_BITS);\n break;\n }\n\n }", "public gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType.Enum getUnit()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(UNIT$6, 0);\n if (target == null)\n {\n return null;\n }\n return (gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType.Enum)target.getEnumValue();\n }\n }", "private String getVerticalLevelUnits(String gVCord) {\n\n String tmp = gVCord.toUpperCase();\n if (tmp.compareTo(\"PRES\") == 0) {\n return \"MB\";\n }\n if (tmp.compareTo(\"THTA\") == 0) {\n return \"K \";\n }\n if (tmp.compareTo(\"HGHT\") == 0) {\n return \"M \";\n }\n if (tmp.compareTo(\"SGMA\") == 0) {\n return \"SG\";\n }\n if (tmp.compareTo(\"DPTH\") == 0) {\n return \"M \";\n }\n return \"\";\n }", "public void setUnit(String unit) {\n this.unit = unit == null ? null : unit.trim();\n }", "public void setUnit(String unit) {\n this.unit = unit == null ? null : unit.trim();\n }", "public FioUnit getUnits() {\n\t\treturn this.units;\n\t}", "public static Object[] getUnits()\n\t{\n\t\treturn new Object[]\n\t\t{\n\t\t\t// SI units\n\t\t\t\"millimeters\",\n\t\t\t\"centimeters\",\n\t\t\t\"meters\",\n\t\t\t\"kilometers\",\n\t\t\t\n\t\t\t// English units\n\t\t\t\"inches\",\n\t\t\t\"feet\",\n\t\t\t\"yards\",\n\t\t\t\"miles\",\n\t\t\t\"knots\"\n\t\t};\n\t}", "public static int progressToTimer(int progress, int totalDuration) {\r\n int currentDuration = 0;\r\n totalDuration = (int) (totalDuration / 1000);\r\n currentDuration = (int) ((((double)progress) / 100) * totalDuration);\r\n \r\n // return current duration in milliseconds\r\n return currentDuration * 1000;\r\n }", "public java.lang.String getUnits() {\r\n return localUnits;\r\n }", "public String getUnits() {\n\t\tif (GridDialog.GRID_UNITS.containsKey(name)) {\n\t\t\treturn GridDialog.GRID_UNITS.get(name);\n\t\t}else {\n\t\t\t//for contributed grid, need to find the units from the ESRIShapefile object\n\t\t\tfor (LayerPanel layerPanel : ((MapApp)map.getApp()).layerManager.getLayerPanels()) {\n\t\t\t\tif (layerPanel.layer instanceof ESRIShapefile && ((ESRIShapefile)layerPanel.layer).equals(this)) {\n\t\t\t\t\tESRIShapefile esf = (ESRIShapefile)(layerPanel.layer);\n\t\t\t\t\treturn esf.getGridUnits();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}", "private int convertProgressToMinutes(int progress) {\n return progress * MINUTE_PER_PROGRESS;\n }" ]
[ "0.6562117", "0.65601057", "0.6513692", "0.6354703", "0.63032955", "0.63012886", "0.6275321", "0.62471336", "0.61673963", "0.6147911", "0.6147911", "0.6147911", "0.61325854", "0.6096519", "0.6058506", "0.6054426", "0.60162693", "0.6000341", "0.59966046", "0.5995411", "0.59808594", "0.5954663", "0.5929313", "0.59043896", "0.5902921", "0.5834674", "0.58244663", "0.5782517", "0.5769594", "0.5759546", "0.5740974", "0.5738014", "0.5729299", "0.5701181", "0.5683409", "0.5678415", "0.5678415", "0.5678415", "0.5675752", "0.5650389", "0.5647854", "0.5627776", "0.5627776", "0.5625915", "0.559311", "0.5571904", "0.55615366", "0.5557768", "0.5539677", "0.55060226", "0.54795015", "0.54712355", "0.54641914", "0.54452235", "0.5434154", "0.54329604", "0.5429225", "0.54207826", "0.5420015", "0.53992766", "0.5390629", "0.5386008", "0.5381923", "0.5369397", "0.5366451", "0.5357726", "0.53548753", "0.5350861", "0.53504145", "0.5343866", "0.53425974", "0.5340717", "0.5338631", "0.53354496", "0.53329253", "0.5315433", "0.53115517", "0.5306221", "0.5305168", "0.5303775", "0.53020144", "0.52733487", "0.5270747", "0.5266166", "0.5265968", "0.52599174", "0.5242978", "0.5230102", "0.52297384", "0.52227837", "0.5205671", "0.52031547", "0.52004206", "0.52004206", "0.5199788", "0.51987916", "0.519794", "0.51929826", "0.51902574", "0.5189162" ]
0.62828076
6
Helper function to help getting latest value of of people will be splited tip
private void updateSplitValue() { splitValue = peopleSeekBar.getProgress(); if ( splitValue < 1 ) { splitValue = 1; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getbestline() {\n\t\tint i=0;\n\t\tint biggest=0;\n\t\tint keep_track=0;\n\t\twhile(i < amount.length) {\n\t\t\tif(Faucets.amount[i] > biggest) {\n\t\t\t\tbiggest = Faucets.amount[i];\n\t\t\t\tkeep_track = i;\n\t\t\t}\n\t\t\ti+=1;\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"Keep_Track = \\\"\" + keep_track + \"\\\"\");\n\t\treturn keep_track;\n\t\t\n\t}", "private float calculateTip( float amount, int percent, int totalPeople ) {\n\t\tfloat result = (float) ((amount * (percent / 100.0 )) / totalPeople);\n\t\treturn result;\n\t}", "private static void getStatistics() {\r\n\r\n\t\tfloat totalWaitTime = 0;\r\n\t\tfloat totalRideTime = 0;\r\n\r\n\t\t// generate info about min wait time\r\n\t\tfloat minWaitTime = people.get(0).getWaitTime();\r\n\t\tString minWaitPerson = \"\";\r\n\t\ttotalWaitTime += minWaitTime;\r\n\t\tfor (int i=1; i<people.size(); i++) {\r\n\t\t\tif(people.get(i).getWaitTime() < minWaitTime){\r\n\t\t\t\tminWaitTime = people.get(i).getWaitTime();\r\n\t\t\t\tminWaitPerson = people.get(i).getPersonName();\r\n\t\t\t}\r\n\t\t\ttotalWaitTime += people.get(i).getWaitTime();\r\n\t\t}\r\n\r\n\t\t// generate info about min ride time\r\n\t\tfloat minRideTime = people.get(0).getRideTime();\r\n\t\tString minRidePerson = \"\";\r\n\t\ttotalRideTime += minRideTime;\r\n\t\tfor (int i=1; i<people.size(); i++) {\r\n\t\t\tif(people.get(i).getRideTime() < minRideTime){\r\n\t\t\t\tminRideTime = people.get(i).getRideTime();\r\n\t\t\t\tminRidePerson = people.get(i).getPersonName();\r\n\t\t\t}\r\n\t\t\ttotalRideTime += people.get(i).getRideTime();\r\n\t\t}\r\n\r\n\t\t// generate info about max wait time\r\n\t\tfloat maxWaitTime = people.get(0).getWaitTime();\r\n\t\tString maxWaitPerson = \"\";\r\n\t\tfor (int i=1; i<people.size(); i++) {\r\n\t\t\tif(people.get(i).getWaitTime() > maxWaitTime){\r\n\t\t\t\tmaxWaitTime = people.get(i).getWaitTime();\r\n\t\t\t\tmaxWaitPerson = people.get(i).getPersonName();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// generate info about max ride time\r\n\t\tfloat maxRideTime = people.get(0).getRideTime();\r\n\t\tString maxRidePerson = \"\";\r\n\t\tfor (int i=1; i<people.size(); i++) {\r\n\t\t\tif(people.get(i).getRideTime() > maxRideTime){\r\n\t\t\t\tmaxRideTime = people.get(i).getRideTime();\r\n\t\t\t\tmaxRidePerson = people.get(i).getPersonName();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.printf(\"Avg Wait Time: %.1f sec\\n\", totalWaitTime/people.size());\r\n\t\tSystem.out.printf(\"Avg Ride Time: %.1f sec\\n\\n\", totalRideTime/people.size());\r\n\r\n\t\tSystem.out.printf(\"Min Wait Time: %.1f sec (%s)\\n\", minWaitTime, minWaitPerson);\r\n\t\tSystem.out.printf(\"Min Ride Time: %.1f sec (%s)\\n\\n\", minRideTime, minRidePerson);\r\n\r\n\t\tSystem.out.printf(\"Max Wait Time: %.1f sec (%s)\\n\", maxWaitTime, maxWaitPerson);\r\n\t\tSystem.out.printf(\"Max Ride Time: %.1f sec (%s)\\n\\n\", maxRideTime, maxRidePerson);\r\n\r\n\t}", "private ResultPersonRespList getLatestLocation(ResultPersonRespList personRespList) {\n\t\tResultDataIPC tmpIPC = null;\n\t\tfor (ResultDataPerson dataPerson: personRespList.getDataPersonList()) {\n\t\t\tfor (ResultDataMap dataMap: dataPerson.getDataMapList()) {\n\t\t\t\tfor (ResultDataIPC dataIPC: dataMap.getDataIpcList()) {\n\t\t\t\t\tif (tmpIPC==null ||\n\t\t\t\t\t\ttmpIPC.getDataFaceList().get(0).getPhotoDate().getTime() < dataIPC.getDataFaceList().get(0).getPhotoDate().getTime()) {\n\t\t\t\t\t\ttmpIPC = dataIPC;\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\ttmpIPC.setLatest(true);\n\t\t\ttmpIPC = null;\n\t\t}\n\t\treturn personRespList;\n\t}", "private void calculateTip()\n {\n\t\ttry\n {\n\t\t\tbillAmount = Double.parseDouble(billAmountEditText.getText().toString());\n\t\t\thideKeyboard();\n loadTipPercentage();\n\t\t}\n catch (NumberFormatException ex)\n {\n\t\t\tbillAmount = 0;\n\t\t}\n try\n {\n numberPeople = Integer.parseInt(nbOfPpleView.getText().toString());\n hideKeyboard();\n loadTipPercentage();\n }\n catch (NumberFormatException ex)\n {\n numberPeople = 1;\n nbOfPpleView.setText(String.format(\"%d\", 1));\n }\n\t\t\n\t\ttipAmount = billAmount * tipPercentage;\n\t\ttotalAmount = billAmount + tipAmount;\n if (numberPeople > 0)\n {\n totalAmountByPerson = totalAmount / numberPeople;\n totalAmountByPerson = Math.ceil(totalAmountByPerson);\n }\n else\n {\n totalAmountByPerson = totalAmount;\n totalAmountByPerson = Math.ceil(totalAmountByPerson);\n }\n\n tipAmtView.setText(String.format(\"$%.2f\", tipAmount));\n totalAmtView.setText(String.format(\"$%.2f\", totalAmount));\n totalAmtByPersonView.setText(String.format(\"$%.0f\", totalAmountByPerson));\n\t}", "private static String[] splitSummary(LSResponse lsResponse) {\n String[] strings = lsResponse.getSummary().split(\"Last\");\n String swap = strings[1];\n strings[1] = \"Last\" + swap;\n return strings;\n }", "private int getLatestRuns() {\n // return 90 for simplicity\n return 90;\n }", "private static int[] calculateLotto() {\r\n int [] lotto = new int[LOTTERY_JACKPOT];\r\n int [] numbers = new int[LOTTERY_END];\r\n\r\n for (int i = 0; i < LOTTERY_END; i++) {\r\n numbers[i] = i;\r\n }\r\n\r\n int index = Math.getRandom(0, numbers.length - 1);\r\n\r\n for (int i = 0; i < lotto.length; i++) {\r\n lotto[i] = numbers[index];\r\n\r\n numbers = Arrays.removeIndex(numbers, index);\r\n\r\n index = Math.getRandom(0, numbers.length - 1);\r\n }\r\n\r\n return lotto;\r\n }", "double getTipAmount();", "private void updateActualAndDisplayedResult() {\n\t\tresultTipValue = calculateTip( amountValue, percentValue, splitValue);\n\t\ttvResult.setText( \"Tip: $\" + String.format(\"%.2f\", resultTipValue) + \" per person.\" );\t\n\t}", "private String calculateLastName(RangeFacet<?, ?> facet) {\n return \"more than \" + facet.getEnd().toString();\n }", "@Override\n public Persona Last() {\n return array.get(tamano - 1);\n }", "public String splitMethodTipText() {\n return \"The method used to determine best split: 1. Gini; 2. MaxBEPP; 3. SSBEPP\";\n }", "public LiveData<PersonEntity> getLatestEntry() {\n return latestPersonEntry;\n }", "public int getPointsGainedLastRound(){return pointsGainedLastRound;}", "public double getNewPVal() { return this.pValAfter; }", "private int getObservationResult( long currentTime )\n {\n int[] votes = new int[ 6 ];\n //[copied to the readFromNBT method]\n if( m_entanglementFrequency >= 0 )\n {\n List<TileEntityQBlock> twins = getEntanglementRegistry().getEntangledObjects( m_entanglementFrequency );\n if( twins != null )\n {\n Iterator<TileEntityQBlock> it = twins.iterator();\n while( it.hasNext() )\n {\n TileEntityQBlock twin = it.next();\n if( twin != this )\n {\n //[/copied]\n if( twin.m_currentlyObserved && twin.m_timeLastUpdated == currentTime )\n {\n // If an entangled twin is already up to date, use its result\n if( twin.m_currentlyForcedSide >= 0 )\n {\n return twin.m_currentlyForcedSide + 6;\n }\n else\n {\n return twin.m_currentDisplayedSide;\n }\n }\n else\n {\n // Otherwise, add its votes to the pile\n if( twin.m_currentlyForcedSide >= 0 && twin.m_forceObserved[ m_currentlyForcedSide ] )\n {\n return twin.m_currentlyForcedSide + 6;\n }\n else\n {\n for( int i=0; i<6; ++i )\n {\n if( twin.m_forceObserved[ i ] )\n {\n return i + 6;\n }\n }\n }\n votes = addVotes( votes, twin.collectVotes() );\n }\n }\n }\n }\n }\n\n // Get local observer votes\n if( m_currentlyForcedSide >= 0 && m_forceObserved[ m_currentlyForcedSide ] )\n {\n return m_currentlyForcedSide + 6;\n }\n else\n {\n for( int i=0; i<6; ++i )\n {\n if( m_forceObserved[ i ] )\n {\n return i + 6;\n }\n }\n }\n votes = addVotes( votes, collectVotes() );\n\n // Tally the votes\n return tallyVotes( votes );\n }", "private List<Person> fetchingUtility() {\n List<Person> fetchedList = new ArrayList<>();\n fetchedList.add(new Person(-26.220616, 28.079329, \"PJ0\", \"https://twitter.com/pjapplez\", false));\n fetchedList.add(new Person(-26.187616, 28.079329, \"PJ1\", \"https://twitter.com/pjapplez\", false));\n fetchedList.add(new Person(-26.207616, 28.079329, \"PJ2\", \"https://twitter.com/pjapplez\", false));\n fetchedList.add(new Person(-26.217616, 28.079329, \"PJ3\", \"https://twitter.com/pjapplez\", false));\n fetchedList.add(new Person(-26.346316, 28.079329, \"PJ4\", \"https://twitter.com/pjapplez\", false));\n fetchedList.add(new Person(-26.215896, 28.079329, \"PJ5\", \"https://twitter.com/pjapplez\", false));\n fetchedList.add(new Person(-26.215436, 28.079129, \"PJ6\", \"https://twitter.com/pjapplez\", false));\n fetchedList.add(new Person(-26.431461, 28.079329, \"PJ7\", \"https://twitter.com/pjapplez\", false));\n fetchedList.add(new Person(-26.168879, 28.079329, \"PJ8\", \"https://twitter.com/pjapplez\", false));\n fetchedList.add(new Person(-26.227616, 28.079329, \"PJ9\", \"https://twitter.com/pjapplez\", false));\n\n return fetchedList;\n }", "public void displayLongestRangeJetInFleet() {\n\t\tfor (Jet jet : hangar.getCurrentJets()) {\n\n\t\t\tSystem.out.println(jet.getModelsOfJets());\n\t\t\tSystem.out.println(jet.getRangeInMiles());\n\t\t}\n\t}", "public int getTip() {\n\t\treturn tip;\n\t}", "int maxNoteValue();", "public static Trip tripWithMaxPersons(HashSet<Person> personList, HashSet<Trip> tripList) {\n ForexConverter fc = new ForexConverter();\n double threshold = 2.00;\n HashMap<Trip, Integer> result = new HashMap<>();\n // for each trip - loop\n for (Trip trip : tripList) { // trip - one trip\n // for each person\n for (Person person : personList) {\n // check price in the same currency\n // check each person whether they are ready in: price, gear, date, qualification\n if (person.getAvailableDates().contains(trip.getDate())\n && person.getGears().containsAll(trip.getGears())\n && person.getQualifications().containsAll(trip.getQualifications())\n && person.getMoney().isLargerThan(trip.getPrice(), fc)\n || person.getMoney().isCloseTo(trip.getPrice(), fc, threshold)) {\n // only add the person when there is person ready for the trip\n if (result.containsKey(trip)) {\n result.put(trip, result.get(trip) + 1);\n } else {\n result.put(trip, 1);\n }\n }\n }\n }\n int max = 0;\n Trip tripResult = null;\n// Set<Map.Entry<Trip, Integer>> entries = result.entrySet();\n// result.forEach((K,V)->{\n//\n// });\n for(Trip trip: result.keySet()){\n int personNum = result.get(trip);\n if(personNum > max) {\n max = personNum;\n tripResult = trip;\n }\n }\n return tripResult;\n }", "void tip(double amount);", "private LineString pickBestGrowthPossibility2(List<LineString> lookAheads) {\t\t\n\t\tif (lookAheads == null || lookAheads.size() == 0) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t//sort by:\n\t\t//1. is moving away?\n\t\t//2. number of coordinates in line\n\t\t//3. slope\n\t\tComparator<LineString> lookAheadComparator = new Comparator<LineString>() {\n\t\t\tpublic int compare(LineString s1, LineString s2) {\n\t\t\t\t\n\t\t\t\tboolean m1 = LineGrowthHelpers.isMovingAway(s1, s1.getCoordinateN(s1.getNumPoints()-1));\n\t\t\t\tboolean m2 = LineGrowthHelpers.isMovingAway(s2, s2.getCoordinateN(s2.getNumPoints()-1));\n\t\t\t\tif (m1 != m2) {\n\t\t\t\t\treturn m1 ? -1 : 1;\n\t\t\t\t}\n\t\t\t\telse { //both moving away, or neither moving away. look to second criteria\n\t\t\t\t\t\n\t\t\t\t\tif (s1.getNumPoints() == s2.getNumPoints()) {\n\n\t\t\t\t\t\tdouble slope1 = SpatialUtils.getSlope(s1);\n\t\t\t\t\t\tdouble slope2 = SpatialUtils.getSlope(s2);\n\t\t\t\t\t\treturn slope1 > slope2 ? -1 \n\t\t\t\t\t\t\t\t : slope1 < slope2 ? 1 \n\t\t\t\t\t\t\t : 0; \n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\treturn s1.getNumPoints() > s2.getNumPoints() ? -1 \n\t\t\t\t\t\t\t\t : s1.getNumPoints() < s2.getNumPoints() ? 1 \n\t\t\t\t\t\t\t : 0; \n\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\tlookAheads.sort(lookAheadComparator);\n\t\treturn lookAheads.get(0);\n\t}", "private LineString pickBestGrowthPossibility3(final LineString stem, List<LineString> lookAheads) {\t\t\n\t\tif (lookAheads == null || lookAheads.size() == 0) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t//sort by:\n\t\t//1. is moving away?\n\t\t//2. number of coordinates in line\n\t\t//3. average elevation rise (above the lowest coord) divided by length of line\n\t\t// e..g if Z values of growth possibility are 618m, 625m, 634m, the average will be the average\n\t\t//Z above the lowest coord will be 7.6m. that value will be divided by the line length\n\t\tfinal AvgElevationSectionFitness avgElevationFitness = new AvgElevationSectionFitness(getTinEdges());\n\t\tComparator<LineString> lookAheadComparator = new Comparator<LineString>() {\n\t\t\tpublic int compare(LineString s1, LineString s2) {\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t//is end of extension moving away\n\t\t\t\tboolean m1 = LineGrowthHelpers.isMovingAway(stem, s1.getCoordinateN(s1.getNumPoints()-1));\n\t\t\t\tboolean m2 = LineGrowthHelpers.isMovingAway(stem, s2.getCoordinateN(s2.getNumPoints()-1));\n\t\t\t\tif (m1 != m2) {\n\t\t\t\t\treturn m1 ? -1 : 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//is start of extension moving away\n\t\t\t\t\tboolean a1 = LineGrowthHelpers.isMovingAway(stem, s1.getCoordinateN(1));\n\t\t\t\t\tboolean a2 = LineGrowthHelpers.isMovingAway(stem, s2.getCoordinateN(1));\n\t\t\t\t\tif (a1 != a2) {\n\t\t\t\t\t\treturn a1 ? -1 : 1;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\n\t\t\t\t\t\tif (s1.getNumPoints() == s2.getNumPoints()) {\n\t\t\t\t\t\t\ttry {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tdouble fit1 = (avgElevationFitness.fitness(s1) - s1.getCoordinateN(0).getZ()) / s1.getLength();\n\t\t\t\t\t\t\t\tdouble fit2 = (avgElevationFitness.fitness(s2) - s2.getCoordinateN(0).getZ()) / s2.getLength();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (fit1<0) {\n\t\t\t\t\t\t\t\t\tfit1 = 1/fit1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (fit2<0) {\n\t\t\t\t\t\t\t\t\tfit2 = 1/fit2;\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\treturn fit1 > fit2 ? -1 \n\t\t\t\t\t\t\t\t\t\t : fit1 < fit2 ? 1 \n\t\t\t\t\t\t\t\t\t : 0;\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\tcatch(IOException e) {\n\t\t\t\t\t\t\t\treturn 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\treturn s1.getNumPoints() > s2.getNumPoints() ? -1 \n\t\t\t\t\t\t\t\t\t : s1.getNumPoints() < s2.getNumPoints() ? 1 \n\t\t\t\t\t\t\t\t : 0; \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}\n\t\t};\n\t\tlookAheads.sort(lookAheadComparator);\n\t\t\n\t\treturn lookAheads.get(0);\n\t}", "public void getCardRecentTrips() {\r\n Trip[] arrayOfRecentTrips = cardSelected.getRecentTrips();\r\n StringBuilder pastThreeTripsText = new StringBuilder();\r\n for (int i = 0; i < arrayOfRecentTrips.length; i++) {\r\n if (arrayOfRecentTrips[i] != null) {\r\n int j = i + 1;\r\n pastThreeTripsText\r\n .append(j)\r\n .append(\". \")\r\n .append(arrayOfRecentTrips[i].toString())\r\n .append(System.lineSeparator());\r\n }\r\n }\r\n riderUserView.pastThreeTrips.setText(pastThreeTripsText.toString());\r\n }", "@Override\n\tpublic List<PositionData> getLatest10PostionInfo(String terminalId) {\n\t\ttry {\n\t\t\tList<PositionData> returnData = new ArrayList<PositionData>();\n\t\t\tList<PositionData> tempData = new ArrayList<PositionData>();\n\t\t\tList<PositionData> position_list = positionDataDao.findByHQL(\"from PositionData where tid = '\" + terminalId + \"' order by date desc\");\n\t\t\tfor(int i=0;i<(position_list.size()>10?10:position_list.size());i++){\n\t\t\t\ttempData.add(position_list.get(i));\n\t\t\t}\n\t\t\tfor(int i=tempData.size()-1;i>=0;i--)\n\t\t\t\treturnData.add(tempData.get(i));\n\t\t\treturn returnData;\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "public double getTip() {\r\n return tipCalculator.getCalculatedTip();\r\n }", "public long getTimeOfLastValuesChanged();", "public static double[] getLastVisiblePointData( List<ProfilePoint> profile ) {\n if (profile.size() < 2) {\n throw new IllegalArgumentException(\"A profile needs to have at least 2 points.\");\n }\n ProfilePoint first = profile.get(0);\n double baseElev = first.getElevation();\n Coordinate baseCoord = new Coordinate(0, 0);\n\n double minAzimuthAngle = Double.POSITIVE_INFINITY;\n double maxAzimuthAngle = Double.NEGATIVE_INFINITY;\n ProfilePoint minAzimuthPoint = null;\n ProfilePoint maxAzimuthPoint = null;\n for( int i = 1; i < profile.size(); i++ ) {\n ProfilePoint currentPoint = profile.get(i);\n double currentElev = currentPoint.getElevation();\n if (JGTConstants.isNovalue(currentElev)) {\n continue;\n }\n currentElev = currentElev - baseElev;\n double currentProg = currentPoint.getProgressive();\n Coordinate currentCoord = new Coordinate(currentProg, currentElev);\n\n double azimuth = GeometryUtilities.azimuth(baseCoord, currentCoord);\n if (azimuth <= minAzimuthAngle) {\n minAzimuthAngle = azimuth;\n minAzimuthPoint = currentPoint;\n }\n if (azimuth >= maxAzimuthAngle) {\n maxAzimuthAngle = azimuth;\n maxAzimuthPoint = currentPoint;\n }\n }\n\n if (minAzimuthPoint == null || maxAzimuthPoint == null) {\n return null;\n }\n\n return new double[]{//\n /* */minAzimuthPoint.elevation, //\n minAzimuthPoint.position.x, //\n minAzimuthPoint.position.y, //\n minAzimuthPoint.progressive, //\n minAzimuthAngle, //\n maxAzimuthPoint.elevation, //\n maxAzimuthPoint.position.x, //\n maxAzimuthPoint.position.y, //\n maxAzimuthPoint.progressive, //\n maxAzimuthAngle, //\n };\n\n }", "public float getLastValue() {\n // ensure float division\n return ((float)(mLastData - mLow))/mStep;\n }", "private LineString pickBestGrowthPossibility1(List<LineString> lookAheads) {\n\t\tif (lookAheads == null || lookAheads.size() == 0) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t//sort by:\n\t\t//1. is moving away?\n\t\t//2. number of coordinates in line\n\t\t//3. average elevation of line\n\t\tfinal AvgElevationSectionFitness sectionFitness = new AvgElevationSectionFitness(getTinEdges());\n\t\tComparator<LineString> lookAheadComparator = new Comparator<LineString>() {\n\t\t\tpublic int compare(LineString s1, LineString s2) {\n\t\t\t\t\n\t\t\t\tboolean m1 = LineGrowthHelpers.isMovingAway(s1, s1.getCoordinateN(s1.getNumPoints()-1));\n\t\t\t\tboolean m2 = LineGrowthHelpers.isMovingAway(s2, s2.getCoordinateN(s2.getNumPoints()-1));\n\t\t\t\tif (m1 != m2) {\n\t\t\t\t\treturn m1 ? -1 : 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (s1.getNumPoints() == s2.getNumPoints()) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tdouble fit1 = sectionFitness.fitness(s1);\n\t\t\t\t\t\t\tdouble fit2 = sectionFitness.fitness(s2);\n\t\t\t\t\t\t\treturn fit1 > fit2 ? -1 \n\t\t\t\t\t\t\t\t\t : fit1 < fit2 ? 1 \n\t\t\t\t\t\t\t\t : 0;\n\t\t\t\t\t\t} \n\t\t\t\t\t\tcatch(IOException e) {\n\t\t\t\t\t\t\treturn 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\treturn s1.getNumPoints() > s2.getNumPoints() ? -1 \n\t\t\t\t\t\t\t\t : s1.getNumPoints() < s2.getNumPoints() ? 1 \n\t\t\t\t\t\t\t : 0; \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tlookAheads.sort(lookAheadComparator);\n\t\treturn lookAheads.get(0);\n\t}", "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 Book mostExpensive() {\n //create variable that stores the book thats most expensive\n Book mostExpensive = bookList.get(0);//most expensive book is set as the first in the array\n for (Book book : bookList) {\n if(book.getPrice() > mostExpensive.getPrice()){\n mostExpensive = book;\n }\n } return mostExpensive;//returns only one (theFIRST) most expensive in the array if tehre are several with the same price\n }", "public String getLoserVotePercent(String state) {\r\n result = table.get(state);\r\n String loserVotePercentage = result.get(3);//getting loser percentage from array list\r\n \r\n \r\n return loserVotePercentage;\r\n }", "private ArrayList<String> findadded(Comm splitpoint, Comm comm) {\n ArrayList<String> added = new ArrayList<>();\n HashMap<String, Blob> originallytracked = splitpoint.getContents();\n HashMap<String, Blob> trackednow = comm.getContents();\n for (String s: trackednow.keySet()) {\n if (!originallytracked.containsKey(s)) {\n added.add(s);\n }\n }\n return added;\n\n }", "private void populatePreviousODOReading() {\n\n fuelViewModel.getAllFuel()\n .observe(getActivity(), new Observer<List<Fuel>>() {\n @Override\n public void onChanged(List<Fuel> fuels) {\n\n // if list is not empty\n if (!fuels.isEmpty()){\n\n Log.d(TAG, \"onChanged: fuels.size() = \" + fuels.size());\n\n // fuels.size()-1 displayed last item in the list, so I tested and found that 0 item is the first item\n Fuel mostRecentFuel = fuels.get(0); // most recent item is zero item on the list means first item\n Log.d(TAG, \"onChanged: mostRecentFuel.getFuelID() = \" + mostRecentFuel.getFuelID());\n\n lastODOreading = mostRecentFuel.getCurrentKm();\n tin_startingKm.setText(String.valueOf(lastODOreading));\n\n }\n\n\n }\n });\n\n }", "final String [] getPersonalInfo(Object value) {\n int countInfo = 3; //Cound of the personal information fields\n String toString [] = new String[countInfo];\n //Extract some information\n toString[0] = (String) ((AbstractPerson) value).getFirstName();\n toString[1] = (String) ((AbstractPerson) value).getLastName();\n toString[2] = (String) ((AbstractPerson) value).getEmail();\n return toString;\n }", "public List<Info> getLastInfo() {\n\t\treturn dao.getLastInfo();\n\t}", "@Override\n public String getValueFromTuple(ITuple tuple) {\n return tuple.getStringByField(\"top_n_words\");\n\t\t// End\n }", "private String getLeaderValue() {\n return new StringBuilder(Global.FIXED_LEADER_LENGTH)\n .append(Global.RECORD_STATUS_CODE)\n .append(Global.RECORD_TYPE_CODE)\n .append(Global.BIBLIOGRAPHIC_LEVEL_CODE)\n .append(Global.CONTROL_TYPE_CODE)\n .append(Global.CHARACTER_CODING_SCHEME_CODE)\n .append(Global.FIXED_LEADER_BASE_ADDRESS)\n .append(Global.ENCODING_LEVEL)\n .append(Global.DESCRIPTIVE_CATALOGUING_CODE)\n .append(Global.LINKED_RECORD_CODE)\n .append(Global.FIXED_LEADER_PORTION)\n .toString();\n }", "public static float[] Findingleader(boolean[] ineligible,float[] stat, int numberofplayer)\n {\n float first,second,third; // initializing to negative number, so even a zero can be the leader value\n first=second=third = -100;\n for (int a = 0; a<numberofplayer; a++) // loops till a is less than numofplayer\n {\n\n if ((first<stat[a]||first==stat[a])&& ineligible[a] != true)// if stat is higher or same as first, and the stat is not empty\n {\tif(first==stat[a]) { // ignore the tie because the second value will be same as the first value\n \t}\n \telse {\n third = second; // previous second value becomes third \n second = first; // previous fisrt value becomes second now\n first = stat[a]; // replace the first value with stat[a]\n \t}\n }\n else if((second<stat[a]||second==stat[a])&& ineligible[a] != true) { // if stat is higher than or equal to second value\n \tif(second==stat[a]) { // ignoring the tie \n \t}\n \telse {\n \tthird = second; // previous second value is now assigned to third\n \tsecond = stat[a]; // second is replaced by the value of stat[a]\n \t}\n }\n else if((third<stat[a]||third==stat[a])&& ineligible[a] != true) { // if stat is higher than or equal the third value\n \tif(third==stat[a]) { // ignoring the tie value\n \t}\n \telse {\n \tthird = stat[a]; // third value is now replaced by the stat[a]\n \t}\n }\n }\n float []top3value = {first,second,third}; // using array to return more than 1 value\n return top3value; // top3value array\n }", "private static void getChange(double money, double prize) {\n\t\tdouble difference = money-prize;\n\t\tdouble[] denominations = {0.01,0.05,0.10,0.25,0.50,1};\n\t\tint[] count = new int[denominations.length];\n\t\twhile(difference>0){\n\t\t\tint max = getMaxDenominationToDivide(denominations,difference);\n\t\t\tdifference -= denominations[max];\n\t\t\tdifference = (double)Math.round(difference*100)/100;\n\t\t\tcount[max] = count[max]+1;\n\t\t}\n\t\tSystem.out.print(\"[\");\n\t\tfor(int i = 0 ; i < count.length;i++){\n\t\t\tSystem.out.print(count[i]);\n\t\t\tif(i!=count.length-1)\n\t\t\t\tSystem.out.print(\",\");\n\t\t}\n\t\tSystem.out.print(\"]\");\n\t}", "private void diffusionPhase() {\n if (prevMaxTimestamp == -1 || currMaxTimestamp == -1 || prevMaxTimestamp == currMaxTimestamp) {\n return;\n }\n final Set<NodeAddress> fathers = ((GroupedOverlayModule<?>) mainOverlay).getNodeGroup(GroupedOverlayModule.fathersGroupName);\n final PrimeNodeReport alreadyRequested = new PrimeNodeReport();\n for (final NodeAddress father : fathers) {\n if (!inboxHistory.keySet().contains(father)) {\n continue;\n }\n if (client.player.getVs() == null\n || inboxHistory.get(father).getLatestTimestamp() > client.player.getVs()\n .getAvailableDescriptions(client.player.getVs().windowOffset).getLatestTimestamp()) {\n final PrimeNodeReport availableDescriptionsAtFather = inboxHistory.get(father);\n PrimeNodeReport requestToSend = (client.player.getVs() == null) ? availableDescriptionsAtFather : (client.player.getVs()\n .getAvailableDescriptions(prevMaxTimestamp)).getDelta(availableDescriptionsAtFather);\n requestToSend = alreadyRequested.getDelta(requestToSend);\n if (requestToSend.size() == 0) {\n continue;\n }\n requestToSend = requestToSend.getRandomSubset(prevMaxTimestamp, currMaxTimestamp, r);\n if (requestToSend.size() != 0) {\n if (client.player.getVs() != null) {\n requestToSend.playTime = client.player.getVs().windowOffset;\n }\n alreadyRequested.update(requestToSend);\n network.send(new PrimeRequestMessage<PrimeNodeReport>(getMessageTag(), network.getAddress(), father, new PrimeNodeReport(\n requestToSend)));\n }\n }\n }\n }", "public double GetTonnage() {\n if( LotSize != CurLotSize ) {\n double TonsPerShot = Tonnage / (double) LotSize;\n return CommonTools.RoundFractionalTons( TonsPerShot * (double) CurLotSize );\n }\n return Tonnage;\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}", "public long getLastPlayed ( ) {\n\t\treturn extract ( handle -> handle.getLastPlayed ( ) );\n\t}", "public double getLastTwoDiff() {\n\t\treturn m_lastTwoDiff;\n\t}", "public List<T> mostliked();", "static int getMaxCoinValMine(int vals[], int n) {\n int[][] maxVals = new int[n][n];\n for(int wind = 0; wind < n; wind++) {\n // start is always less than or equal to end\n for(int start=0, end = start+wind; end<n; start++,end++ ) {\n // no elements element\n if(wind==0) {\n maxVals[start][end] = 0;\n }\n else if(start == end) {\n // only single element\n maxVals[start][end] = vals[start];\n }\n else {\n // start >=0\n // calculate wind[start][end]\n // chose end, then value is val[end] for P1, val[start][end-1] for P2 and val[start][end-2] for P1\n int valEnd = vals[end] + (( start < end-2)? maxVals[start][end-2]:0);\n // chose start, then value is val[start] for P1, val[start+1][end] for P2 and val[start+2][end] for P1\n int valStart = vals[start] + ((start+2 < end)? maxVals[start+2][end]:0);\n maxVals[start][end] = max(valEnd, valStart);\n }\n }\n }\n return maxVals[0][n-1];\n\n }", "public String topNAttributesToSplitTipText() {\n return \"Value of N to use for top-N attributes to choose randomly from.\";\n }", "private void findHumidities(ForecastIO FIO, WeatherlyDayForecast day){\n FIOHourly hourlyForecast = new FIOHourly(FIO);\n int numHours = hourlyForecast.hours();\n\n //Determine the number of hours left in the day\n Calendar rightNow = Calendar.getInstance();\n int dayHoursLeft = 24 - rightNow.get(Calendar.HOUR_OF_DAY);\n\n //Find the lowest and highest chances for precipitation for the rest of the day\n double minHum = hourlyForecast.getHour(0).humidity();\n double maxHum = minHum;\n int maxHour = rightNow.get(Calendar.HOUR_OF_DAY);\n for (int i = 1; i < dayHoursLeft; i++){\n double hum = hourlyForecast.getHour(i).humidity();\n if (minHum > hum)\n minHum = hum;\n if (maxHum < hum) {\n maxHum = hum;\n maxHour = i + rightNow.get(Calendar.HOUR_OF_DAY);\n }\n\n }\n\n day.setHumMin((int) (minHum * 100));\n day.setHumMax((int) (maxHum * 100));\n day.setHumMaxTime(maxHour);\n }", "private Tuple weatherReduce(List<Tuple> input) {\n String state = input.get(0).fst();\n \n Integer highest = Integer.MIN_VALUE;\n Integer lowest = Integer.MAX_VALUE;\n \n for(Tuple pair : input) {\n String[] hiAndLow = pair.snd().split(\"\\\\s+\");\n int hi = Integer.parseInt(hiAndLow[0]);\n int lo = Integer.parseInt(hiAndLow[1]);\n \n if(hi>highest) {\n highest = hi;\n }\n \n if(lo<lowest) {\n lowest = lo;\n }\n }\n \n \n lolligag();\n \n // output <same state, state's hi low>\n return new Tuple(state, highest.toString()+\" \"+lowest.toString());\n }", "public int prIce_Per_GUeSt(int NO_OF_PEOPLE){\r\n if (NO_OF_PEOPLE>50){\r\n price_per_guest=lower_price_per_guest;\r\n System.out.println(\"PER_PERSON_PRICE = \"+lower_price_per_guest);\r\n int total_price = price_per_guest* NO_OF_PEOPLE;\r\n return total_price;\r\n }\r\n else\r\n {price_per_guest=Highest_price_per_guest;\r\n int total_price = price_per_guest* NO_OF_PEOPLE;\r\n System.out.println(\"PER_PERSON_PRICE = \"+Highest_price_per_guest);\r\n return total_price;}\r\n }", "public BigDecimal getPriceLastOrd();", "public String getSavePitchLast(String team) {\n\n String savePitchLast = \"\";\n\n // if the game status is in preview, pre-game, or warmup\n if (getGameStatus(team).equals(\"Preview\") || getGameStatus(team).equals(\"Pre-Game\") || getGameStatus(team).equals(\"Warmup\")) {\n try {\n if (compareDates(getGameInfo(team, \"original_date\"), 3)) {\n savePitchLast = getPlayerInfo(team, \"home_probable_pitcher\",\"last\");\n }\n else {\n savePitchLast = \"\";\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }\n // if the game is in progress get the current pitcher\n if (getGameStatus(team).equals(\"In Progress\")) {\n savePitchLast = getPlayerInfo(team, \"pitcher\",\"last\");\n }\n if (getGameStatus(team).equals(\"Game Over\") || getGameStatus(team).equals(\"Final\") || getGameStatus(team).equals(\"Completed Early\")) {\n savePitchLast = getPlayerInfo(team, \"save_pitcher\",\"last\");\n }\n\n return savePitchLast;\n }", "public double getLastPhotonCount() {\r\n return photoncount;\r\n }", "@Override\n\tpublic PositionData getLatestPositionInfo(String terminalId) {\n\t\ttry {\n\t\t\tList<PositionData> position_list = positionDataDao.findByHQL(\"from PositionData where tid = '\" + terminalId + \"'\");\n\t\t\tif(position_list.size()>0){\n\t\t\t\tPositionData latest_data = position_list.get(0);\n\t\t\t\tif(position_list.size()>1){\n\t\t\t\t\tfor(int i=1;i<position_list.size();i++){\n\t\t\t\t\t\tif(position_list.get(i).getDate().compareTo(latest_data.getDate())>0)\n\t\t\t\t\t\t\tlatest_data = position_list.get(i);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn latest_data;\n\t\t\t}\n\t\t\telse\n\t\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 getLastValueSensor(int id) {\n if (RESPONSES != null) {\n try {\n JSONObject jsonObject = new JSONObject(RESPONSES);\n JSONArray jsonArray = jsonObject.getJSONArray(\"data\");\n for (int i = 0; i <= jsonArray.length() + 1; i++) {\n JSONObject jsonObject1 = new JSONObject(jsonArray.getString(i));\n setId(jsonObject1.getInt(\"id\"));\n //Log.d(TAG, \"ID on the iteration \" + i + \" = \" + getId());\n if (getId() == id) {\n setValue(jsonObject1.getString(\"logvalue\"));\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n } else {\n setValue(\":)\");\n }\n }", "public double getLastDamage ( ) {\n\t\treturn extract ( handle -> handle.getLastDamage ( ) );\n\t}", "private Teller getShortestLine() {\n Teller temp = employees.get(rand.nextInt(employees.size()));\n for (Teller t: employees) {\n if (t.getLineLength() < temp.getLineLength()) {\n temp = t;\n }\n }\n return temp;\n }", "private synchronized Price determineLastSalePrice(HashMap<String, FillMessage> fills) throws InvalidDataException {\n\t\tif (fills == null) throw new InvalidDataException(\"Fills cannot be null\");\n\t\tArrayList<FillMessage> msgs = new ArrayList<FillMessage>(fills.values());\n\t\tCollections.sort(msgs);\n\t\treturn msgs.get(0).getPrice();\n\t}", "public String getLastP() {\n\t\treturn lastFieldP.getText();\n\t}", "public DataValue getLastDataByDeviceIdAndSensorTypeSortedByTimestamp(SensorValue sensorVal) throws Exception;", "private int get1(String name) {\n int t = 0;\n PlayerRecord curr = playerlist.first();\n while (curr != null) {\n if (curr.getTeamname().equals(name))\n t = t + curr.getPenalties(); // sum of all penalty minutes\n curr = playerlist.next();\n }\n return t;\n }", "public String getLosePitchLast(String team) {\n\n String losePitchLast = \"\";\n // if the game is in preview\n if (getGameStatus(team).equals(\"Pre-Game\") || getGameStatus(team).equals(\"Warmup\")) {\n losePitchLast = getPlayerInfo(team, \"home_probable_pitcher\",\"last\");\n }\n // if the game is in progress get the current pitcher\n if (getGameStatus(team).equals(\"In Progress\")) {\n losePitchLast = getPlayerInfo(team, \"pitcher\",\"last\");\n }\n // if the game is a final\n if (getGameStatus(team).equals(\"Game Over\") || getGameStatus(team).equals(\"Final\") || getGameStatus(team).equals(\"Completed Early\")) {\n losePitchLast = getPlayerInfo(team, \"losing_pitcher\",\"last\");\n }\n\n return losePitchLast;\n }", "@Override\n //TODO lambda\n public int lastFieldLine() {\n int max = -1;\n for (int i : lineToField.keySet()) {\n if (i > max) {\n max = i;\n }\n }\n return max;\n }", "P getSplitPoint();", "public int getTaille(){\r\n return this.taille;\r\n }", "public int getTT()\n {\n return toTime;\n }", "private void findBest()\r\n\t{\r\n\t\tint i;\r\n\t\tint size_mature_pool;\r\n\t\tint idx_current;//index of a currently checked genotype\r\n\t\tint num_errors;//number of errors of the current chromosome\r\n\t\tdouble min_error;//smallest error among the oldest genotypes\r\n\t\tVector<Integer> idx_oldest;\r\n\t\t\r\n\t\tsize_mature_pool = _pool_of_bests.size();\r\n\t\t\r\n\t\tidx_oldest = new Vector<Integer>(0, 1);\r\n\t\t\r\n\t\t//find all oldest genotypes\r\n\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t{\r\n\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\tif(num_errors>=_min_life_span)\r\n\t\t\t{\r\n\t\t\t\tidx_oldest.add(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//find the best oldest gentypes with a span above a threshold\r\n\t\t_best_idx = -1;\r\n\t\tif(idx_oldest.size() > 0)\r\n\t\t{\r\n\t\t\t_best_idx = idx_oldest.get(0);\r\n\t\t\tmin_error = _pool_of_bests.get(_best_idx)._error.getAverageError();\r\n\t\t\tfor(i=1; i<idx_oldest.size(); i++)\r\n\t\t\t{\r\n\t\t\t\tidx_current = idx_oldest.get(i);\r\n\t\t\t\tif(min_error > _pool_of_bests.get(idx_current)._error.getAverageError())\r\n\t\t\t\t{\r\n\t\t\t\t\t_best_idx = idx_current;\r\n\t\t\t\t\tmin_error = _pool_of_bests.get(_best_idx)._error.getAverageError();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tint perPersonTipPercentage=((JSlider) e.getSource()).getValue();\n\t\t\t\tfloat perPersonNewTip=(((float)perPersonTipPercentage)/100)*(Float.valueOf(TipCalcView.getInstance().totalTip.getText()).floatValue());\n\t\t\n\t\t\t\tDecimalFormat decimalFormat=new DecimalFormat(\"#.##\");\n\t\t\t\tTipTailorView.getInstance().labels[no].setText(String.valueOf(decimalFormat.format(perPersonNewTip)));\n\t\t\t\tTipCalcView.getInstance().perPersonTip.setText(\"Not Applicable\");\n\t\t\t\tTipCalcView.getInstance().perPersonTip.setEditable(false);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "long getLastBonusTicketDate();", "@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 Individual getWorst() {\n\t\treturn individuals[individuals.length-1];\n\t}", "public String getWinPitchLast(String team) {\n\n String winPitchLast = \"\";\n\n // if the game status is in preview, pre-game, or warmup\n if (getGameStatus(team).equals(\"Preview\") || getGameStatus(team).equals(\"Pre-Game\") || getGameStatus(team).equals(\"Warmup\")) {\n winPitchLast = getPlayerInfo(team, \"away_probable_pitcher\",\"last\");\n }\n // if the game is in progress get the current batter\n if (getGameStatus(team).equals(\"In Progress\")) {\n winPitchLast = getPlayerInfo(team, \"batter\",\"last\");\n }\n // if the game status is game over or final\n if (getGameStatus(team).equals(\"Game Over\") || getGameStatus(team).equals(\"Final\") || getGameStatus(team).equals(\"Completed Early\")) {\n winPitchLast = getPlayerInfo(team, \"winning_pitcher\",\"last\");\n }\n\n return winPitchLast;\n }", "public String[] getLastThings() {\n return lastThings;\n }", "private static int[] calculateLotto() {\r\n int random;\r\n int[] array = new int[ArraySize];\r\n for (int i = 0; i < array.length; i++) {\r\n random = Math.getRandom(1, ArrayMax);\r\n if (!Arrays.contains(random, array))\r\n array[i] = random;\r\n else\r\n i--;\r\n }\r\n return array;\r\n }", "public List<Tupel<Artist, Integer>> getLastReleaseDateOfEachArtist();", "private static void findLeader(Integer[] array) {\n Map<Integer, Integer> map = new HashMap<>();\n for (int i = 0; i < array.length; i++) {\n // Map key -> value from input array\n Integer key = array[i];\n // Map value -> occurrences number\n Integer count = map.get(key);\n if (count == null) {\n // if null put new occurrence with count 1\n map.put(key, 1);\n } else {\n // if not null increment occurrences and replace in map (put works the same in this situation)\n // https://stackoverflow.com/a/35297640\n count++;\n map.replace(key, count);\n }\n }\n Integer leader = 0;\n Integer maxCount = 0;\n // Iterator enables you to cycle through a collection, obtaining or removing elements\n // https://docs.oracle.com/javase/7/docs/api/java/util/Iterator.html\n // Take map iterator\n Iterator it = map.entrySet().iterator();\n // Loop till iterator has next element\n while (it.hasNext()) {\n // Take map next entry -> map entry consists of key and value\n Map.Entry pair = (Map.Entry) it.next();\n // Check if map value (occurrences number) is greater than current maximum\n if ((Integer) pair.getValue() > maxCount) {\n // if true swap current maxCount and leader\n maxCount = (Integer) pair.getValue();\n leader = (Integer) pair.getKey();\n }\n }\n // Check if occur more than 50%\n if(maxCount < array.length / 2 + 1){\n leader = -1;\n }\n System.out.println(leader);\n }", "@Override\n\tpublic FinanceData getLastData() {\n\t\treturn list_fr.get(0);\n\t}", "public long getTrappedPeople() {\n return trappedPeople;\n }", "private static int getNewPartnerBonus(FriendMiniGameHistory history, String game, String p1, String p2) {\n final int timesPlayed = history.getGamesPlayed(game, p1, p2);\n boolean newgame = timesPlayed == 0;\n if (newgame) {\n //calculate bonus from minigame\n return NEW_PARTNER_BONUSES.get(game);\n }\n return 0;\n }", "public Individual getFittest(){\n Individual fittest = individuals.get(0);\n for (Individual individual: individuals){\n if(fittest.equals(individual)){\n continue;\n }\n else if(fittest.getFitness() < individual.getFitness()){\n fittest = individual;\n }\n }\n return fittest;\n }", "private TeamId findWinningTeam(){\n if (state.score().totalPoints(TeamId.TEAM_1)>=Jass.WINNING_POINTS) {\n return TeamId.TEAM_1;\n }\n else {\n return TeamId.TEAM_2;\n }\n }", "@Override\n\tpublic List<Double> getCurrentBest() {\n\t\treturn null;\n\t}", "public int getTicksLived ( ) {\n\t\treturn extract ( handle -> handle.getTicksLived ( ) );\n\t}", "private UserToGame whoDiedFromKillers(UserToGame leader){\n System.out.println(\"Murderes are killing now\");\n if(userToGameService==null){\n return null;\n }\n List<UserToGame> users=userToGameService.getUsersAndMurderersVotes(leader.getGame_id());\n System.out.println(users.toString());\n Collections.sort(users,new Comparator<UserToGame>() {\n @Override\n public int compare(UserToGame o2, UserToGame o1) {\n return Integer.compare(o1.getVotesFromMurderers(), o2.getVotesFromMurderers());\n }\n });\n System.out.println(users.toString());\n if(users.get(0).getVotesFromMurderers()==0){\n return users.get(0);\n }\n users.get(0).setIs_dead(true);\n users.get(0).setIsDeadVisible(false);\n return userToGameService.update(users.get(0));\n }", "private int getExpectedStat(Stat stat, int individualValue, int natureValue) {\n return getExpectedStat(stat, getLevel(), individualValue, getTotalEvs(stat), baseValues, natureValue);\n\n }", "public void setTipPercentage(double newTip) {\n tip = newTip;\n }", "@Override\n public int getFinalBeat() {\n List<Note> currentNotes = this.getNotes();\n int size = currentNotes.size();\n int farthestBeat = 0;\n\n for (int i = 0; i < size; i++) {\n Note currentNote = currentNotes.get(i);\n int currentEnd = currentNote.getBeat() + currentNote.getDuration();\n\n if (currentEnd > farthestBeat) {\n farthestBeat = currentEnd;\n }\n }\n return farthestBeat;\n }", "public static String[] displayleader(boolean[] ineligible, String[] name, float []top3, float[] stat, int numberofplayer)\n {\n\n String top1name,top2name,top3name;\n top1name = top2name = top3name = \"\"; // initialize null value of all names \n int top1counter,top2counter,top3counter;\n top1counter = top2counter = top3counter = 0; // initialize 0 to all counters\n String top1namearray[] = new String[50]; // arrays to hold top3 names\n String top2namearray[] = new String[50];\n String top3namearray[] = new String[50];\n int a,b,c;\n a=b=c= 0;\n for (int i=0;i<numberofplayer;i++)\n {\t\n if (top3[0]==stat[i] && ineligible[i] != true) { // if the value of top1 equals the stat of player\n if (top1counter < 1) { // if the first place is only one person\n \ttop1namearray[a]=name[i]; // putting in array to sort\n top1name=name[i]; // assign name to top1name array\n a++;\n } else {\n top1namearray[a]=name[i]; // if there is more than one person with the top1 value\n top1name = top1name + \", \" + name[i];//if there is more than one leader, it prints out the names of the leader with comma between.\n a++;\n }\n top1counter++;\n }\n if (top3[1]==stat[i] && ineligible[i] != true) { // if the value of top2 equals the stat of player\n if (top2counter < 1) {\n \ttop2namearray[b]=name[i];\n top2name=name[i];\n b++;\n } else {\n \ttop2namearray[b]=name[i];\n top2name = top2name + \", \" + name[i];//if there is more than one leader, it prints out the names of the leader with comma between.\n b++;\n }\n top2counter++;\n }\n if (top3[2]==stat[i] && ineligible[i] != true) {// if the value of top1 equals the stat of player\n if (top3counter < 1) {\n \ttop3namearray[c]=name[i];\n top3name=name[i];\n c++;\n } else {\n \ttop3namearray[c]=name[i];\n top3name = top3name + \", \" + name[i];//if there is more than one leader, it prints out the names of the leader with comma between.\n c++;\n }\n top3counter++;\n }\n }\n sortname(top1namearray);// sorting the names of top1players in alphabetical order\n sortname(top2namearray);// sorting the names of top2players in alphabetical order\n sortname(top3namearray);// sorting the names of top3players in alphabetical order\n int q =1;\n if(top1counter >1) { top1name = top1namearray[0];} // reassigning name of top 1 value in alphabetical order if there is more than one\n while (top1namearray[q]!=null&&top1counter!=1) { // while there is more than 1 player with top1value and while top1name is not null\n \ttop1name = top1name + \", \" + top1namearray[q]; //inserting comma between names\n \tq++;\n }\n q=1;\n if(top2counter >1) { top2name = top2namearray[0];}// reassigning name of top 1 value in alphabetical order if there is more than one\n while (top2namearray[q]!=null&&top2counter!=1) { // while there is more than 1 player with top2value and while top2name is not null\n \ttop2name = top2name + \", \" + top2namearray[q]; //inserting comma between names\n \tq++;\n }\n q=1;\n if(top3counter >1) { top3name = top3namearray[0];}// reassigning name of top 1 value in alphabetical order if there is more than one\n while (top3namearray[q]!=null&&top3counter!=1) { // while there is more than 1 player with top3value and while top3name is not null\n \ttop3name = top3name + \", \" + top3namearray[q]; //inserting comma between names\n \tq++;\n }\n if(numberofplayer ==1) {top2name = null; top3name = null;} // if there is only one player top2 and top3 does not exist\n else if (numberofplayer==2&&top1counter<2) {top3name =null;} // if there is only 2 players top3 is null\n else if(numberofplayer==2&&top1counter>1) {top2name =null;top3name=null;} // if there is 2 players but 2players have tie value then top2 and top3 is null\n else if(top1counter>2) {top2name=null;top3name=null;} // if there is more than 2 ties with top1value, top2 and top3 does not exist\n else if(top2counter>1||top1counter>1) {top3name=null;} // if there is more than one top1 or top2, then top3 does not exist\n String []top3names = {top1name,top2name,top3name};\n return top3names;\n }", "int findMax(List<double[]> x){\n List<double[]> maxInfo = new ArrayList<>();\n boolean increasing = false;\n double maxNum = x.get(0)[0];\n double maxFrame = 1;\n double slope = 0;\n for(int i = 0; i<x.size()-1;i++){\n System.out.println(x.get(i)[0]);\n if(x.get(i+1)[0] < x.get(i)[0]){\n increasing = true;\n slope = x.get(i+1)[0] - x.get(i)[0];\n maxNum = x.get(i+1)[0];\n maxFrame = x.get(i+1)[1];\n }\n else if(x.get(i+1)[0] > x.get(i)[0] && increasing && maxNum<150){\n System.out.println(\"PEAK: \" + maxNum + \",\" + maxFrame);\n increasing = false;\n maxInfo.add(new double[]{maxNum, maxFrame});\n maxNum = 0;\n maxFrame = 0;\n }\n }\n //removes false peaks with close frame tag near each other\n for(int i = 0; i < maxInfo.size()-1;i++){\n if(maxInfo.get(i+1)[1] - maxInfo.get(i)[1] <=10){\n System.out.println(\"REMOVED \" + maxInfo.get(i+1)[0]);\n maxInfo.remove(i+1);\n }\n }\n return maxInfo.size();\n }", "public GPoint getLastPoint() {\n\t\treturn (points.size() > 0) ? points.get(points.size() - 1) : null;\n\t}", "public Individual getSecondFittest() {\n int maxFit1 = 0;\n int maxFit2 = 0;\n for (int i = 0; i < m_individual.length; i++) {\n if (m_individual[i].fitness > m_individual[maxFit1].fitness) {\n maxFit2 = maxFit1;\n maxFit1 = i;\n } else if (m_individual[i].fitness > m_individual[maxFit2].fitness) {\n maxFit2 = i;\n }\n }\n return m_individual[maxFit2];\n }", "@Override\n public God getLastGod() {\n return godPower.getLastGod();\n }", "public static void lastNSample() {\n Node ll1_5 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n\n ll1_5.lastN(1);\n ll1_5.lastN(2);\n ll1_5.lastN(3);\n ll1_5.lastN(4);\n ll1_5.lastN(5);\n ll1_5.lastN(6);\n }", "int minNoteValue();", "public double getMedianAge() {\n ArrayList<Integer> guppyAges = new ArrayList<>();\n\n Iterator<Guppy> it = guppiesInPool.iterator();\n while (it.hasNext()) {\n Guppy currentGuppy = it.next();\n guppyAges.add(currentGuppy.getAgeInWeeks());\n }\n System.out.println(guppyAges);\n\n int middleOfList = Math.floorDiv(guppyAges.size(), 2);\n\n return guppyAges.get(middleOfList);\n\n }", "private Punto getPuntoPriorizado(Punto puntoini, List<Punto> puntos ){\n\t\t\n\t\tPunto puntopriorizado = null;\n\t\t// calculamos la heuristica de distancias a los demas puntos\n\t\tfor (Punto punto : puntos) {\n\t\t\tif( (puntoini!=null && punto!=null) && !puntoini.equals(punto) ){\n\t\t\t\tdouble d = Geometria.distanciaDeCoordenadas(puntoini, punto);\n\t\t\t\tpunto.getDatos().put(\"distanci\", d);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// ordenamos por las heuristicas definidad en la clase comparator\n\t\t// hora atencion, prioridad, urgencia, distancia\n\t\tCollections.sort(puntos, new PuntoHeuristicaComparator1());\n\t\tSystem.out.println(\"### mostrando las heuristicas #####\");\n\t\tmostratPuntosHeuristica(puntos);\n\t\n\t\tif( puntos!=null && puntos.size()>0){\n\t\t\tpuntopriorizado = puntos.get(0);\n\t\t}\n\t\t\n\t\t/*Punto pa = null ;\n\t\tfor (Punto p : puntos) {\n\t\t\tif(pa!=null){\n\t\t\t\tString key = p.getDatos().toString();\n\t\t\t\tString keya = pa.getDatos().toString();\n\t\t\t\tif(!key.equals(keya)){\n\t\t\t\t\tpuntopriorizado = p;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tpa = p ;\n\t\t}*/\n\n\t\treturn puntopriorizado;\n\t}" ]
[ "0.52249163", "0.521763", "0.5147204", "0.507693", "0.5074554", "0.5053273", "0.5005813", "0.5001929", "0.49613157", "0.4947114", "0.4942603", "0.49156108", "0.49130943", "0.49066994", "0.48830733", "0.4871881", "0.4856557", "0.48422828", "0.48336807", "0.48330373", "0.48299855", "0.48221758", "0.48158255", "0.47586516", "0.47574696", "0.47529268", "0.4752079", "0.473625", "0.47136745", "0.47134513", "0.47008476", "0.46885192", "0.46882638", "0.46776187", "0.46757933", "0.4670818", "0.46665677", "0.46601748", "0.4648656", "0.463709", "0.4627877", "0.46244976", "0.4621517", "0.46187976", "0.4607789", "0.46062055", "0.46027336", "0.45975557", "0.4595989", "0.4585016", "0.45829988", "0.4578574", "0.45726436", "0.45708328", "0.45679355", "0.4563826", "0.45588258", "0.45536172", "0.45492566", "0.45441198", "0.45355025", "0.4531299", "0.4530614", "0.45262823", "0.45197782", "0.45107514", "0.4510382", "0.45079795", "0.4501515", "0.44954148", "0.44941702", "0.44926715", "0.44873965", "0.44828734", "0.44825688", "0.4480957", "0.44782475", "0.4478217", "0.44760665", "0.44759777", "0.44748178", "0.4473117", "0.44679275", "0.4467497", "0.4464738", "0.44635895", "0.4462826", "0.44599366", "0.44585732", "0.4455524", "0.44518942", "0.4450118", "0.44491044", "0.444708", "0.44466868", "0.4440572", "0.4438923", "0.4437439", "0.44361225", "0.44344872" ]
0.50382257
6
////////////////////////// / Core functionalities ///////////////////////// Calculate a tip amount per person based on the given amount and percent
private float calculateTip( float amount, int percent, int totalPeople ) { float result = (float) ((amount * (percent / 100.0 )) / totalPeople); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void calculateTip()\n {\n\t\ttry\n {\n\t\t\tbillAmount = Double.parseDouble(billAmountEditText.getText().toString());\n\t\t\thideKeyboard();\n loadTipPercentage();\n\t\t}\n catch (NumberFormatException ex)\n {\n\t\t\tbillAmount = 0;\n\t\t}\n try\n {\n numberPeople = Integer.parseInt(nbOfPpleView.getText().toString());\n hideKeyboard();\n loadTipPercentage();\n }\n catch (NumberFormatException ex)\n {\n numberPeople = 1;\n nbOfPpleView.setText(String.format(\"%d\", 1));\n }\n\t\t\n\t\ttipAmount = billAmount * tipPercentage;\n\t\ttotalAmount = billAmount + tipAmount;\n if (numberPeople > 0)\n {\n totalAmountByPerson = totalAmount / numberPeople;\n totalAmountByPerson = Math.ceil(totalAmountByPerson);\n }\n else\n {\n totalAmountByPerson = totalAmount;\n totalAmountByPerson = Math.ceil(totalAmountByPerson);\n }\n\n tipAmtView.setText(String.format(\"$%.2f\", tipAmount));\n totalAmtView.setText(String.format(\"$%.2f\", totalAmount));\n totalAmtByPersonView.setText(String.format(\"$%.0f\", totalAmountByPerson));\n\t}", "void tip(double amount);", "static void solve(double meal_cost, int tip_percent, int tax_percent) {\n double res = meal_cost * (100+tip_percent+tax_percent) / 100;\n System.out.println(Math.round(res));\n\n }", "double getTipAmount();", "public static float calculatePercent(float numOfSpecificTrees, float totalTrees){\n\t\tfloat percent= numOfSpecificTrees/totalTrees*100;\n\t\treturn percent;\n\t\t\n\t}", "@Override\r\n public double getCalculatedTip() {\r\n return amountPerDrink * drinkCount;\r\n }", "int getPercentageHeated();", "public void getTip(View v)\n {\n EditText billEditText = (EditText) findViewById(R.id.billEditText);\n EditText percentEditText = (EditText) findViewById(R.id.percentEditText);\n TextView tipTextView = (TextView) findViewById(R.id.tipTextView);\n TextView totalTextView = (TextView) findViewById(R.id.totalTextView);\n\n //get the values from the EditText boxes and convert them to double data types\n double bill = Double.parseDouble(billEditText.getText().toString());\n double percent = Double.parseDouble(percentEditText.getText().toString());\n //double total = Double.parseDouble(totalTextView.getText().toString());\n\n //calculate tip\n percent = percent/100;\n double tip = bill*percent;\n double total = bill + tip;\n\n tipTextView.setText(\"Tip: \" + tip);\n totalTextView.setText(\"Total: \" + total);\n\n\n\n\n }", "public static void main(String[] args) {\n Scanner myScanner = new Scanner(System.in); //allows to prompt user for input\n System.out.print(\"Enter the original cost of the check in the form xx.xx \");\n //using method within Scanner class\n double checkCost = myScanner.nextDouble();\n System.out.print(\"Enter the percentage tip that you wish to pay as\"+\n \"a whole number (in the form xx): \" ); \n double tipPercent = myScanner.nextDouble(); //promt user to enter tip perecentage\n tipPercent /= 100; //We want to convert the percentage into a decimal value\n System.out.print(\"Enter the number of people who went out to dinner: \"); \n int numPeople = myScanner.nextInt(); //promt user to enter number of people\n double totalCost; \n double costPerPerson;\n int dollars, //whole dollar amount of cost \n dimes, pennies; //for storing digits\n //to the right of the decimal point \n //for the cost$ \n totalCost = checkCost * (1 + tipPercent);\n costPerPerson = totalCost / numPeople;\n //get the whole amount, dropping decimal fraction\n dollars=(int)costPerPerson;\n //get dimes amount, e.g., \n // (int)(6.73 * 10) % 10 -> 67 % 10 -> 7\n // where the % (mod) operator returns the remainder\n // after the division: 583%100 -> 83, 27%5 -> 2 \n dimes=(int)(costPerPerson * 10) % 10;\n pennies=(int)(costPerPerson / 100);\n System.out.println(\"Each person in the group owes $\" + dollars + \".\" + dimes + pennies);\n \n \n }", "double ComputeCost(double order, double tipPercent, double serviceRating, double foodRating)\r\n {\r\n // kazda gwiazdka to 2 procent od sumy zamówienia\r\n return order + order * (tipPercent/100) + (serviceRating * 0.02) * order + (foodRating * 0.02) * order;\r\n }", "public void setAmountTip(String tipAmount) {\n\t\tAMOUNT_TIP = tipAmount;\n\t}", "public void setTipPercentage(double newTip) {\n tip = newTip;\n }", "public static void tipCalculator(double totalPurchase, double tip) {\n\t\tif(totalPurchase < 0 && tip < 0) {\n\t\t\tSystem.out.println(\"Invalid values, please try again.\");\n\t\t}\n\t\t\n\t\t// standard/exact calculator\n\t\tdouble tipAmount = totalPurchase * (tip / 100);\n\t\tdouble totalAmount = totalPurchase + tipAmount;\n\t\tprintReceipt(totalPurchase, tip, tipAmount, totalAmount);\n\t\t\n\t\t/*\n\t\t * flags for amounts that can be rounded up and asks if user would like to do so. \n\t\t * Rounds up to the next higher dollar amount (i.e. totalAmount = 11.50 -> 12.00\n\t\t */\n\t\tif(totalAmount % 1 != 0) {\n\t\t\tSystem.out.println(\"Would you like to round up? (yes/no)\");\n\t\t\tString answer = scanner.nextLine().toLowerCase();\n\t\t\tif(answer.equals(\"yes\")) {\n\t\t\t\tdouble totalAmountRounded = Math.ceil(totalAmount);\n\t\t\t\tdouble tipAmountRounded = totalAmountRounded - totalPurchase;\n\t\t\t\tdouble tipRounded = Math.round((tipAmountRounded / totalAmountRounded) * 100);\n\t\t\t\tprintReceipt(totalPurchase, tipRounded, tipAmountRounded, totalAmountRounded);\n\t\t\t\tSystem.out.println(\"Thank you!\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Okay. Thank you!\");\n\t\t\t}\n\t\t} \n\t\t\n\t}", "double getPricePerPerson();", "public double getPercentMutants() {\n\t\tdouble count = (double) getNumMutants();\n\t\tdouble pSize = (double) this.getPopSize();\n\n\t\treturn count*100.0 / pSize;\n\t}", "private float getPercentage(int count, int total) {\n return ((float) count / total) * 100;\n }", "public void increasePrice(int percentage);", "Float getFedAnimalsPercentage();", "float getBonusPercentHP();", "public BigDecimal getPercentageProfitPLimit();", "public BigDecimal getPercentageProfitPStd();", "java.lang.String getPercentage();", "@Override\n public double calculatePercentageExtra() {\n double percentageExtra = 0;\n \n percentageExtra += getTwoColourCost();\n \n if(getChemicalResistance()) {\n percentageExtra += getChemicalResistanceCost();\n }\n \n return percentageExtra;\n }", "public double calculateTax(double amount){\n return (amount*TAX_4_1000)/1000;\n }", "public void calculateCommission(){\r\n commission = (sales) * 0.15;\r\n //A sales Person makes 15% commission on sales\r\n }", "private double scorePonderated(int i, int total) {\r\n\t\tif (total == 1) {\r\n\t\t\treturn 100.0;\r\n\t\t}\r\n\t\tdouble score = 100.0 / (2.0 * (i + 1));\r\n\t\treturn score;\r\n\t}", "public double calculateHpPercent();", "public static double tenpercent(double amt) {\n\t\tdouble total = (amt * .1) +amt;\n\t\treturn total;\n\t}", "@Override\n public double getTotalPrice(int BTWpercentage) {\n double price = 0.0;\n double percentage = BTWpercentage / 100;\n\n for (PurchaseOrderLine orderline : orderLines) {\n price += orderline.getLineTotal();\n }\n price += price * BTWpercentage;\n\n return price;\n }", "public double taxCalc(int income1, int income2, int income3, int income4, int income5) {\n int[] arr = {income1, income2, income3, income4, income5};\n double taxTotal = 0.0;\n for (int i = 0; i < arr.length; i++) {\n taxTotal += (double) (arr[i] * 7 / 100);\n }\n return taxTotal;\n }", "public double getMainPercentage(){return mainPercentage;}", "public void percentualGordura(){\n\n s0 = 4.95 / denscorp;\n s1 = s0 - 4.50;\n percentgord = s1 * 100;\n\n }", "private String calculateDistancePerAmount() {\n double distance = parser(getTextFromEditText(R.id.distanceEdit));\n double fuel = parser(getTextFromEditText(R.id.fuelEdit));\n double value = distance / fuel;\n return rounder(value);\n }", "private final void taxCalculations(){\n\r\n hraDeduction = totalHRA - 0.1*basicIncome;\r\n ltaDeduction = totalLTA - 0.7*totalLTA;\r\n\r\n //exemptions\r\n fundsExemption = fundsIncome - 150000; //upto 1.5 lakhs are exempted under IT Regulation 80C\r\n\r\n grossIncome = basicIncome + totalHRA + totalLTA + totalSpecialAl + fundsIncome ;\r\n\r\n totalDeduction = hraDeduction + ltaDeduction;\r\n\r\n totalTaxableIncome = grossIncome - (totalDeduction + fundsExemption);\r\n\r\n taxLiability = 0.05 * (totalTaxableIncome - 250000) + 0.2*(totalTaxableIncome - 500000);\r\n\r\n taxToPay = (cessPercent*taxLiability)/100 + taxLiability;\r\n }", "private static double getBonus(double unitsMade,double workAmount) {\n\n if (workAmount == 1) {\n\n if (unitsMade > 250) {\n\n return unitsMade * 0.10;\n }\n return 0;\n }\n else if (workAmount == 2) {\n\n if (unitsMade > 700) {\n\n return unitsMade * 0.10;\n }\n return 0;\n }\n\n return 0;\n }", "public int CalculateGeneModifications(int percent) {\n\t\treturn Math.floorDiv(percent * moveOrder.length, 100);\n\t}", "private String createPercentage(String districtName, String line, HashMap<String, Integer> totalVotesHashMap){\n Integer total_votes = totalVotesHashMap.get(districtName);\n Integer votes = Integer.parseInt(line);\n\n return Double.toString(Math.round(Double.parseDouble(line) /\n Double.parseDouble(Integer.toString(totalVotesHashMap.get(districtName))) *\n 10000.0) / 100.0);\n }", "public double getPercent() { return this.percentage; }", "private void percent()\n\t{\n\t\tDouble percent;\t\t//holds the right value percentage of the left value\n\t\tString newText = \"\";//Holds the updated text \n\t\tif(calc.getLeftValue ( ) != 0.0 && Fun != null)\n\t\t{\n\t\t\tsetRightValue();\n\t\t\tpercent = calc.getRightValue() * 0.01 * calc.getLeftValue();\n\t\t\tleftValue = calc.getLeftValue();\n\t\t\tnewText += leftValue;\n\t\t\tswitch (Fun)\n\t\t\t{\n\t\t\t\tcase ADD:\n\t\t\t\t\tnewText += \" + \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase SUBTRACT:\n\t\t\t\t\tnewText += \" - \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase DIVIDE:\n\t\t\t\t\tnewText += \" / \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase MULTIPLY:\n\t\t\t\t\tnewText += \" * \";\n\t\t\t\t\tbreak;\n\t\t\t}//end switch\n\t\t\t\n\t\t\tnewText += \" \" + percent;\n\t\t\tentry.setText(newText);\n\t\t\t\n\t\t}//end if\n\t\t\n\t}", "public String getLoserVotePercent(String state) {\r\n result = table.get(state);\r\n String loserVotePercentage = result.get(3);//getting loser percentage from array list\r\n \r\n \r\n return loserVotePercentage;\r\n }", "public int awardTriviaCoins (double pct) {\n Random r = new Random();\n int min = 1;\n if (pct > 0.75) {\n min = 15;\n } else if (pct > 0.5) {\n min = 10;\n } else if (pct > 0.25) {\n min = 5;\n }\n int winnings = min + (int)(Math.ceil(r.nextInt(10) * pct));\n this.coinCount += winnings;\n this.save();\n \n UserEvent.NewCoins message = new UserEvent.NewCoins(this.id, winnings);\n notifyMe(message);\n \n return winnings;\t \n\t}", "Double getTotalSpent();", "public void calcP() {\r\n\t\tthis.setP(sick/people.size());\r\n\t}", "public int percent() {\n\t\tdouble meters = meters();\n\t\tif (meters < MIN_METERS) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn (int) (Math.pow((meters - MIN_METERS)\n\t\t\t\t/ (MAX_METERS - MIN_METERS) * Math.pow(100, CURVE),\n\t\t\t\t1.000d / CURVE));\n\t}", "@Override\n public double payment(double amount) {\n return amount * 98 / 100 ;\n }", "@Override\n public double calcTaxes() {\n return getCost() * 0.07;\n }", "static double tax( double salary ){\n\n return salary*10/100;\n\n }", "private double fillPercent() {\n\t\tdouble percent = 0;\n\t\t\n\t\tfor (LinkedList<WordCode<K, V>> ll : myBuckets) {\n\t\t\tif (ll.size() != 0) percent++;\n\t\t}\n\t\treturn (percent / myBuckets.size()) * 100;\n\t}", "public void tpsTax() {\n TextView tpsView = findViewById(R.id.checkoutPage_TPStaxValue);\n tpsTaxTotal = beforeTaxTotal * 0.05;\n tpsView.setText(String.format(\"$%.2f\", tpsTaxTotal));\n }", "public float getPercentage(int n, int total) {\n\n float proportion = ((float) n) / ((float) total);\n\n return proportion * 100;\n }", "private void updateBonusStats(double percentage) {\n baseStats.setHealth((int) (baseStats.getHealth() * percentage));\n baseStats.setStrength((int) (baseStats.getStrength() * percentage));\n baseStats.setDexterity((int) (baseStats.getDexterity() * percentage));\n baseStats.setIntelligence((int) (baseStats.getIntelligence() * percentage));\n }", "public int getPercentage() {\r\n\r\n\t\treturn (getAmount() - offeredQuantity) / 100;\r\n\r\n\t}", "public float PercentPL() {\n\t\tif (!isClosed()) {\r\n\t\t\tSystem.err.println(\"Cannot compute PL if trade is on\");\r\n\t\t\treturn -1f;\r\n\t\t}\r\n\t\tif(dir == Direction.LONG) {//If long\r\n\t\t\t//(Sell price - Buy price) / Buy price * 100\r\n\t\t\treturn ((exitPrice - entryPrice)/entryPrice)*100;\r\n\t\t}\r\n\t\t//If short\r\n\t\t//(Sell price - Buy price) / Sell price * 100\r\n\t\treturn ((entryPrice - exitPrice)/entryPrice)*100;\r\n\t}", "private void calcEfficiency() {\n \t\tdouble possiblePoints = 0;\n \t\tfor (int i = 0; i < fermentables.size(); i++) {\n \t\t\tFermentable m = ((Fermentable) fermentables.get(i));\n \t\t\tpossiblePoints += (m.getPppg() - 1) * m.getAmountAs(\"lb\")\n \t\t\t\t\t/ postBoilVol.getValueAs(\"gal\");\n \t\t}\n \t\tefficiency = (estOg - 1) / possiblePoints * 100;\n \t}", "int calcPlagiarismPercent() throws ParserException;", "int getRemainderPercent();", "private double calculateDiscountPercent(Amount discountAmount) {\n Amount runningTotalBeforeDiscount = saleState.getRunningTotal();\n double totalBeforeDiscount = \n runningTotalBeforeDiscount.getAmount().doubleValue();\n double totalDiscount = \n discountAmount.getAmount().doubleValue();\n double totalsQuotient = totalDiscount / totalBeforeDiscount;\n double discountPercent = totalsQuotient * 100;\n return discountPercent;\n }", "public Tip(double amount, int type) {\n if (type == typeCard) {\n this.hasCard = true;\n this.card = amount;\n } else if (type == typeCash) {\n this.hasCash = true;\n this.cash = amount;\n } else if (type == typeUnknown) {\n this.hasUnknown = true;\n this.unknown = amount;\n }\n }", "public static int getTranslatedPercentageForTask(Task p_task)\n {\n int totalCounts = 0;\n int translatedCounts = 0;\n\n List<TargetPage> targetPages = p_task.getTargetPages();\n for (TargetPage tp : targetPages)\n {\n int[] counts = getTotalAndTranslatedTuvCount(tp.getId());\n totalCounts += counts[0];\n translatedCounts += counts[1];\n }\n\n return calculateTranslatedPercentage(totalCounts, translatedCounts);\n }", "private void setTipPercentage(){\n System.out.println(\"You indicated the service quality was \"+\n serviceQuality+\". What percentage tip would you like to leave?\");\n tipRate=keyboard.nextDouble();\n \n \n }", "void spray(double percent)\n {\n roaches = (int) (roaches - (roaches * percent / 100));\n }", "public int getProteksi(){\n\t\treturn (getTotal() - getPromo()) * protectionCost / 100;\n\t}", "public void calculateTip(View view) {\n\t\tTextView txtErrorMsg = (TextView) findViewById(R.id.txtErrorMsg);\n\t\ttxtErrorMsg.setVisibility(View.GONE);\n\t\tEditText edtBillAmount = (EditText) findViewById(R.id.edtBillAmount);\n\t\ttry{\n\t\t\tdouble amount = Double.parseDouble(edtBillAmount.getText().toString());\n\t\t\tCheckBox chkRound = (CheckBox) findViewById(R.id.chkRound);\n\t\t\tboolean round = chkRound.isChecked();\n\t\t\tTextView txtTipResult = (TextView) findViewById(R.id.txtTipResult);\n\t\t\tDecimalFormat df = new DecimalFormat(\"#.##\");\n\t\t\tString tipResult = round? Integer.toString((int)Math.round(amount*0.12)): df.format(amount*0.12);\n\t\t\ttxtTipResult.setText(\"Tip: \" + tipResult+\"$\");\n\t\t}\n\t\tcatch (Exception e){\n\t\t\ttxtErrorMsg.setVisibility(View.VISIBLE);\n\t\t\t}\n\t}", "private Double getProzent(Double points)\r\n \t{\r\n \t\treturn points / totalPoints;\r\n \t}", "public BigDecimal getPercentageProfitPList();", "double getTaxAmount();", "public void calculate(View v) {\n EditText inputBill = findViewById(R.id.inputBill);\n EditText inputTipPercent = findViewById(R.id.inputTipPercent);\n String num1Str = inputBill.getText().toString();\n String num2Str = inputTipPercent.getText().toString();\n\n // multiply Bill by Tip to get Tip in dollars\n double num1 = Double.parseDouble(num1Str);\n double num2 = Double.parseDouble(num2Str);\n double tipInDollar = num1 * (num2 / 100);\n double total = num1 + tipInDollar;\n\n // show tip in dollars\n TextView lblTipAmount = findViewById(R.id.lblTipAmount);\n lblTipAmount.setText(String.valueOf(tipInDollar));\n\n // show total price with tip included\n TextView lblTotalAmount = findViewById(R.id.lblTotalAmount);\n lblTotalAmount.setText(String.valueOf(total));\n }", "public double getPercentRem(){\n return ((double)freeSpace / (double)totalSpace) * 100d;\n }", "void total() {\r\n t=m1+m2+m3;\r\n per=t/3;\r\n System.out.println(\"total :\"+t);\r\n System.out.println(\"persentage:\"+per);\r\n \r\n \r\n }", "public double getSettlementDiscountPercent() {\n return (settlePct);\n }", "@Override\n\tpublic double percentualeUtentiAbilitati () throws DAOException{\n\t\tConnection connection = null;\n\t\tPreparedStatement statement = null;\n\t\tResultSet resultSet = null;\n\t\tdouble numeroUtenti = 0.0;\n\t\ttry {\n\t\t\tconnection = DataSource.getInstance().getConnection();\n\t\t\tstatement = connection.prepareStatement(\" SELECT COUNT (UTENTE.ID)*100/(SELECT COUNT(ID) FROM UTENTE) FROM UTENTE WHERE ABILITATO = 1 GROUP BY(UTENTE.ABILITATO) \");\n\t\t\tresultSet = statement.executeQuery();\n\t\t\tif (resultSet.next()) {\n\t\t\t\tnumeroUtenti = BigDecimal.valueOf(resultSet.getDouble(1)).setScale(2, RoundingMode.HALF_UP).doubleValue();\n\t\t\t}\n\t\t} catch (SQLException | DAOException e) {\n\t\t\tthrow new DAOException(\"ERRORE percentualeUtentiAbilitati utenteAdmin\" + e.getMessage(), e);\n\t\t} finally {\n\t\t\tDataSource.getInstance().close(resultSet);\n\t\t\tDataSource.getInstance().close(statement);\n\t\t\tDataSource.getInstance().close(connection);\n\t\t}\n\t\treturn numeroUtenti;\n\t}", "public static int percent(int nom, int den) {\r\n\t\treturn (int) Math.round(100 * ((double) nom / den));\r\n\t}", "public void getHitPercent(double hitPer) {\r\n\t\thitPercent = hitPer;\r\n\t}", "public void setTaxPercentage(double newTax) {\n tax = newTax;\n }", "@SuppressWarnings(\"unchecked\")\n public static int getMTApprovedPercentageForTask(Task p_task)\n {\n int totalCounts = 0;\n int translatedCounts = 0;\n\n List<TargetPage> targetPages = p_task.getTargetPages();\n for (TargetPage tp : targetPages)\n {\n int[] counts = getTotalAndApprovedTuvCount(tp.getId());\n totalCounts += counts[0];\n translatedCounts += counts[1];\n }\n\n return calculateTranslatedPercentage(totalCounts, translatedCounts);\n }", "private double calcScorePercent() {\n\t\tdouble adjustedLab = totalPP * labWeight;\n\t\tdouble adjustedProj = totalPP * projWeight;\n\t\tdouble adjustedExam = totalPP * examWeight;\n\t\tdouble adjustedCodeLab = totalPP * codeLabWeight;\n\t\tdouble adjustedFinal = totalPP * finalWeight;\n\n\t\tlabScore = (labScore / labPP) * adjustedLab;\n\t\tprojScore = (projScore / projPP) * adjustedProj;\n\t\texamScore = (examScore / examPP) * adjustedExam;\n\t\tcodeLabScore = (codeLabScore / codeLabPP) * adjustedCodeLab;\n\t\tfinalExamScore = (finalExamScore / finalExamPP) * adjustedFinal;\n\n//\t\tdouble labPercent = labScore / adjustedLab;\n//\t\tdouble projPercent = projScore / adjustedProj;\n//\t\tdouble examPercent = examScore / adjustedExam;\n//\t\tdouble codeLabPercent = codeLabScore / adjustedCodeLab;\n//\t\tdouble finalPercent = finalExamScore / adjustedFinal;\n\n\t\tdouble totalPercent = (labScore + projScore + examScore + codeLabScore + finalExamScore) / totalPP;\n\t\t\n\t\tscorePercent = totalPercent;\n\t\t\n\t\treturn totalPercent;\n\t}", "public double useTax() {\n \n return super.useTax() + getValue()\n * PER_AXLE_TAX_RATE * getAxles();\n }", "private void calculate() {\n Log.d(\"MainActivity\", \"inside calculate method\");\n\n try {\n if (billAmount == 0.0);\n throw new Exception(\"\");\n }\n catch (Exception e){\n Log.d(\"MainActivity\", \"bill amount cannot be zero\");\n }\n // format percent and display in percentTextView\n textViewPercent.setText(percentFormat.format(percent));\n\n if (roundOption == 2) {\n tip = Math.ceil(billAmount * percent);\n total = billAmount + tip;\n }\n else if (roundOption == 3){\n tip = billAmount * percent;\n total = Math.ceil(billAmount + tip);\n }\n else {\n // calculate the tip and total\n tip = billAmount * percent;\n\n //use the tip example to do the same for the Total\n total = billAmount + tip;\n }\n\n // display tip and total formatted as currency\n //user currencyFormat instead of percentFormat to set the textViewTip\n tipAmount.setText(currencyFormat.format(tip));\n\n //use the tip example to do the same for the Total\n totalAmount.setText(currencyFormat.format(total));\n\n double person = total/nPeople;\n perPerson.setText(currencyFormat.format(person));\n }", "private double computeDifferentialPCT(double currentValue, double average) {\n return average <= Double.MIN_VALUE ? 0.0 : (currentValue / average - 1) * 100.0;\n }", "public Double getProgressPercent();", "public void addPercentageToCost(JTextField textField, double percent){\n\t\t//CardGrade Properties\t\t\n\t\tdouble origGradeCost = Double.valueOf(textField.getText());\n\t\t\n\t\tdouble sum = (origGradeCost * percent / 100) + origGradeCost; \n\n\t\tsum = Math.round(sum * 100);\n\t\tsum = sum/100;\n\t\t\n\t\ttextField.setText(String.valueOf(sum));\n\t}", "private double calculatePercentProgress(BigDecimal projectId) {\r\n log.debug(\"calculatePercentProgress.START\");\r\n ModuleDao moduleDao = new ModuleDao();\r\n LanguageDao languageDao = new LanguageDao();\r\n List<Module> modules = moduleDao.getModuleByProject(projectId);\r\n double totalCurrentLoc = 0;\r\n double totalCurrentPage = 0;\r\n double totalCurrentTestCase = 0;\r\n double totalCurrentSheet = 0;\r\n\r\n double totalPlannedLoc = 0;\r\n double totalPlannedPage = 0;\r\n double totalPlannedTestCase = 0;\r\n double totalPlannedSheet = 0;\r\n for (int i = 0; i < modules.size(); i++) {\r\n Language language = languageDao.getLanguageById(modules.get(i).getPlannedSizeUnitId());\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.LOC.toUpperCase())) {\r\n totalCurrentLoc += modules.get(i).getActualSize().doubleValue();\r\n totalPlannedLoc += modules.get(i).getPlannedSize().doubleValue();\r\n }\r\n\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.TESTCASE.toUpperCase())) {\r\n totalCurrentTestCase += modules.get(i).getActualSize().doubleValue();\r\n totalPlannedTestCase += modules.get(i).getPlannedSize().doubleValue();\r\n }\r\n\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.PAGE_WORD.toUpperCase())) {\r\n totalCurrentPage += modules.get(i).getActualSize().doubleValue();\r\n totalPlannedPage += modules.get(i).getPlannedSize().doubleValue();\r\n }\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.SHEET_EXCEL.toUpperCase())) {\r\n totalCurrentSheet += modules.get(i).getActualSize().doubleValue();\r\n totalPlannedSheet += modules.get(i).getPlannedSize().doubleValue();\r\n }\r\n\r\n }\r\n\r\n double percentProgress = ((totalCurrentLoc * Constant.LOC_WEIGHT)\r\n + (totalCurrentTestCase * Constant.TESTCASE_WEIGHT) + (totalCurrentPage * Constant.PAGE_WEIGHT) + (totalCurrentSheet * Constant.PAGE_WEIGHT))\r\n / ((totalPlannedLoc * Constant.LOC_WEIGHT) + (totalPlannedTestCase * Constant.TESTCASE_WEIGHT)\r\n + (totalPlannedPage * Constant.PAGE_WEIGHT) + (totalPlannedSheet * Constant.PAGE_WEIGHT)) * 100;\r\n\r\n return Math.round(percentProgress * 100.0) / 100.0;\r\n }", "public int getPercentage() {\r\n return Percentage;\r\n }", "private double getPercent(int here, int days, int d, int end, double dest, int[][] villages) {\n if (days==d){\n// System.out.println(here+ \" \"+end);\n if (here==end) {\n// System.out.println(\"dest=\"+dest);\n return dest;\n }\n return 0;\n }\n double ans = 0;\n for (int next = 0; next < villages[here].length; next++) {\n int there = villages[here][next];\n if (there==1){\n// System.out.println(degree[here]+\" des=\"+(dest/degree[here]));\n ans += getPercent(next,days+1,d,end,dest/degree[here],villages);\n }\n }\n return ans;\n }", "public void calcInterest() {\n\t\tbalance = balance + (interestPct*balance);\n\t\t}", "private static int getBonus(int sales) {\n if (sales > 5000) {\n\n return sales / 10;\n\n }\n return 0;\n }", "public void adjustPay(double percentage){\r\n this.commission = getCommission() + getCommission() * percentage;\r\n }", "double getTax();", "private int addTax(Iterable<TransactionItem> items) {\r\n\t\tint tax = 0;\r\n\r\n\t\tfor (TransactionItem item : items) {\r\n\t\t\tint newTax = (int) Math.round(item.getPriceInCents()\r\n\t\t\t\t\t* (this.tax.getPercentage() / 100.0));\r\n\t\t\ttax += newTax;\r\n\t\t}\r\n\t\treturn tax;\r\n\t}", "public static void circle_progressbar(double percentage, double x_coordinate, double y_coordinate) \n {\n if(x_coordinate>100 || y_coordinate>100 || percentage >100 || percentage < 0) \n {\n System.out.println(\"Invalid Input\");\n }\n \n else {\n if(percentage == 0)\n System.out.println(\"BLUE\");\n \n else \n {\n double angle_percentage = Math.toDegrees(Math.atan2(x_coordinate - 50, y_coordinate - 50));\n if (angle_percentage < 0)\n angle_percentage+= 360;\n \n double bar_percentage = percentage*3.6;\n \n double dist_from_center= Math.pow((x_coordinate - 50),2) + Math.pow((x_coordinate - 50),2);\n //A point can be red only if it is inside of the circle\n if(angle_percentage <= bar_percentage && dist_from_center < 2500)\n {\n System.out.println(\"RED\");\n } \n \n else\n {\n System.out.println(\"BLUE\");\n }\n \n //Calculate the x-y coordinate to angle\n //then calculate that angle is what percentage of the circle\n //then if the given percentage >= angle percentage - RED\n //if the given percentage < angle percentage - BLUE\n } \n }\n }", "private void updateActualAndDisplayedResult() {\n\t\tresultTipValue = calculateTip( amountValue, percentValue, splitValue);\n\t\ttvResult.setText( \"Tip: $\" + String.format(\"%.2f\", resultTipValue) + \" per person.\" );\t\n\t}", "public static double[] percentage(int[] array){\n\n //The total sum of all the items in the array. Used for finding the percentage.\n double total = 0;\n for(int i = 0; i < array.length; i++){\n total += array[i];\n }\n\n //The array where all the percentages will be stored\n double[] percentage = new double[9];\n\n //For each item in the array, find the percentage and insert into the percentage array\n for(int i = 0; i < array.length; i++){\n percentage[i] = Math.round((array[i] / total)*1000.0)/10.0;\n }\n \n //Checking the first percentage to see the likelihood of fraud.\n //If the percentage is between 29 and 32, then fraud most likely didn't occured.\n //If not, there is a possibility of fraud.\n if(percentage[0] >= 29 && percentage[0] <= 32){\n System.out.println(\"Fraud likely did not occur.\");\n }\n else{\n System.out.println(\"Fraud possibly occured.\");\n }\n\n //Return the percentage array\n return percentage;\n }", "public void generatePercentage(Breakdown breakdown, double total) {\n\n ArrayList<HashMap<String, Breakdown>> list1 = breakdown.getBreakdown();\n for (HashMap<String, Breakdown> map : list1) {\n\n int count = Integer.parseInt(map.get(\"count\").getMessage());\n int percent = (int) Math.round((count * 100) / total);\n map.put(\"percent\", new Breakdown(\"\" + percent));\n\n }\n\n }", "public abstract double getPercentDead();", "@Test\n public void testGetPercentageForN() throws FileNotFoundException {\n nTupleComparator = new NTupleComparator(\"syns\", \"file1\", \"file2\", 2);\n assertEquals(nTupleComparator.getPercentage(), 100);\n nTupleComparator = new NTupleComparator(\"syns\", \"file1\", \"testfile2\", 2);\n assertEquals(nTupleComparator.getPercentage(), (double) 2 * 100 / 3);\n nTupleComparator = new NTupleComparator(\"syns\", \"file1\", \"file2\", 4);\n assertEquals(nTupleComparator.getPercentage(), 100);\n nTupleComparator = new NTupleComparator(\"syns\", \"file1\", \"testfile2\", 4);\n assertEquals(nTupleComparator.getPercentage(), 0);\n }", "public double calcTax() {\n\t\treturn 0.2 * calcGrossWage() ;\n\t}", "public int prIce_Per_GUeSt(int NO_OF_PEOPLE){\r\n if (NO_OF_PEOPLE>50){\r\n price_per_guest=lower_price_per_guest;\r\n System.out.println(\"PER_PERSON_PRICE = \"+lower_price_per_guest);\r\n int total_price = price_per_guest* NO_OF_PEOPLE;\r\n return total_price;\r\n }\r\n else\r\n {price_per_guest=Highest_price_per_guest;\r\n int total_price = price_per_guest* NO_OF_PEOPLE;\r\n System.out.println(\"PER_PERSON_PRICE = \"+Highest_price_per_guest);\r\n return total_price;}\r\n }", "public static double termPercentage(final int aantalTermijnen, final double percentage)\n\t{\n\t\tdouble p = 1 + percentage * EEN_PERCENT;\n\t\tdouble m = 1 / (double) aantalTermijnen;\n\t\treturn (Math.pow(p, m) - 1d) * HON_PERCENT;\n\t}", "public void calculations(){\n\n int temp_size1 = fight_list.get(0).t1.members.size();\n int[] t1_counter = new int[temp_size1 + 1]; //counter for deaths: 0, 1, 2..., party size.\n float t1_avg = 0; //Average number of deaths.\n\n //We don't need to calculate for t2 right now, because t2 is just monsters.\n //temp_size = fight_list.get(0).t2.members.size();\n //int[] t2_counter = new int[temp_size + 1];\n\n for(FightResult fig : this.fight_list){\n int i = 0;\n while(i != fig.t1_deaths){\n i++;\n }\n t1_counter[i]++;\n t1_avg += fig.t1_deaths;\n }//end for\n\n System.out.println(t1_avg);\n System.out.println(Float.toString(t1_avg/fight_list.size()) + \" / \" + Integer.toString(temp_size1));\n\n String axis = \"# of deaths: \\t\";\n int axis_int = 0;\n String t1_results = \"Happened: \\t\";\n for(int i : t1_counter){\n axis += Integer.toString(axis_int++) + \"\\t\";\n t1_results += Integer.toString(i) + \"\\t\";\n }//end for\n System.out.println(axis);\n System.out.println(t1_results);\n\n float tpk_amount = t1_counter[temp_size1]; //by taking the size, we take the item at the end of the array. In this case, the number where everyone dies.\n tpk_amount = (tpk_amount/fight_list.size())*100;\n System.out.println(\"Probability of TPK: \" + Float.toString(tpk_amount) + \" %.\");\n\n System.out.println(\"\\n--------\\n\");\n }", "float getPercentHealth();" ]
[ "0.72023034", "0.68268853", "0.67336416", "0.65262294", "0.6171386", "0.6083714", "0.6026306", "0.60034704", "0.5999569", "0.5977095", "0.5946861", "0.5931204", "0.59168404", "0.58943135", "0.5829196", "0.5828326", "0.57957816", "0.57895577", "0.5786299", "0.5784026", "0.5704243", "0.5697155", "0.5680814", "0.56555283", "0.56447864", "0.5625964", "0.5615624", "0.5610276", "0.5587157", "0.5523006", "0.54911935", "0.5491003", "0.54799", "0.5457219", "0.5437437", "0.5436883", "0.54303354", "0.5421008", "0.54158026", "0.5409947", "0.540925", "0.5405703", "0.54023194", "0.5397982", "0.5387526", "0.5387349", "0.5373347", "0.5372503", "0.53715473", "0.5369049", "0.53643507", "0.53605276", "0.5335647", "0.5331356", "0.53238297", "0.53165597", "0.5311858", "0.5311323", "0.5298103", "0.5295501", "0.52945256", "0.52879757", "0.528609", "0.52859974", "0.52792567", "0.5275656", "0.52749443", "0.5273597", "0.5267944", "0.52651054", "0.5262151", "0.52477807", "0.5246779", "0.52456254", "0.5243479", "0.5238855", "0.5224278", "0.52186286", "0.52181613", "0.5209597", "0.5209551", "0.5208693", "0.52043456", "0.5186224", "0.5180767", "0.51761746", "0.5173954", "0.51717305", "0.51684093", "0.5168055", "0.5156959", "0.5155495", "0.5155289", "0.51546794", "0.5153788", "0.5152705", "0.51429045", "0.51379174", "0.51347494", "0.51343703" ]
0.8636496
0
//////////////////////// / Override methods ////////////////////////
@Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.calculate, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n protected void prot() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@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 protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n void init() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tprotected void update() {\n\t\t\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 public void render() { super.render(); }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n public void memoria() {\n \n }", "@Override\n public void init() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void init() {\n\n super.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\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "protected void init() {\n // to override and use this method\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\r\n\tpublic void onCustomUpdate() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n protected void end() {\n \n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public void init() {}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n public void initialize() { \n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\n public void update() {\n \n }", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void init() {\r\n\t\t// to override\r\n\t}", "@Override\n public void initialize() {\n \n }", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\n public void load() {\n }", "@Override\n\tpublic void render () {\n super.render();\n\t}", "@Override\n\tpublic void render () {\n\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n public void initialize() {\n }", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@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 initdata() {\n\n\t}", "@Override\n\tpublic void e() {\n\n\t}", "@Override\n public void init() {\n }", "@Override // opcional\n public void init(){\n\n }" ]
[ "0.74267036", "0.73357284", "0.7158339", "0.7129712", "0.7105187", "0.7023207", "0.7008079", "0.6985532", "0.68283325", "0.68271625", "0.68271625", "0.6825975", "0.6825975", "0.682024", "0.67623603", "0.6751638", "0.6751638", "0.6751638", "0.6751638", "0.6751638", "0.6751638", "0.67317694", "0.6678288", "0.6664589", "0.6662341", "0.66612566", "0.66507554", "0.66328585", "0.6624484", "0.66073805", "0.6586473", "0.65717524", "0.65672743", "0.6558387", "0.6549139", "0.6545621", "0.6520833", "0.6520833", "0.65175027", "0.64935565", "0.64923126", "0.64909685", "0.6479053", "0.6471549", "0.6465353", "0.64498156", "0.64472264", "0.639536", "0.639536", "0.63842094", "0.6375448", "0.63720953", "0.6363296", "0.6348423", "0.63454694", "0.63448864", "0.63396364", "0.6331635", "0.6331635", "0.63056314", "0.6295377", "0.6266236", "0.6260062", "0.6251479", "0.6251479", "0.6246389", "0.6242074", "0.6233585", "0.6232284", "0.6222764", "0.62153697", "0.62153697", "0.6212858", "0.6212364", "0.62108934", "0.6209608", "0.62067974", "0.6184918", "0.6183685", "0.61828375", "0.6174391", "0.6166515", "0.61591953", "0.61504376", "0.61504376", "0.6146496", "0.6146021", "0.61450714", "0.6144779", "0.6144779", "0.6144779", "0.6144779", "0.6144779", "0.6144779", "0.6134431", "0.6134431", "0.6134431", "0.6133098", "0.6130065", "0.61272454", "0.61257577" ]
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(); 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 // 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 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 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 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 // 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 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\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 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\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\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\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\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\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.79046714", "0.78065175", "0.7766765", "0.7727237", "0.76320195", "0.7622174", "0.7585192", "0.75314754", "0.74888134", "0.7458358", "0.7458358", "0.7438547", "0.7421898", "0.7402884", "0.73917156", "0.738695", "0.73795676", "0.73704445", "0.7361756", "0.7356012", "0.7345615", "0.7341667", "0.7331483", "0.73293763", "0.73263687", "0.73189044", "0.73166656", "0.73135996", "0.7304286", "0.7304286", "0.7301858", "0.72982585", "0.7293724", "0.72870094", "0.72835064", "0.7281258", "0.7278845", "0.72600037", "0.7259943", "0.7259943", "0.7259943", "0.7259806", "0.72501236", "0.7224222", "0.7219659", "0.7217153", "0.7204567", "0.7200747", "0.7200617", "0.7194191", "0.7185161", "0.71786165", "0.7168641", "0.71677953", "0.7154376", "0.7154097", "0.7136827", "0.7135085", "0.7135085", "0.7129693", "0.712958", "0.71244156", "0.71234775", "0.7123202", "0.7122462", "0.7117733", "0.711737", "0.711737", "0.711737", "0.711737", "0.7117254", "0.7117077", "0.71151257", "0.7112254", "0.7109952", "0.71089965", "0.71060926", "0.71002764", "0.70987266", "0.7095545", "0.7094154", "0.7094154", "0.70867133", "0.7082234", "0.7081284", "0.7080377", "0.70740104", "0.7068733", "0.706227", "0.7061052", "0.70605934", "0.70518696", "0.70381063", "0.70381063", "0.7036213", "0.7035876", "0.7035876", "0.7033369", "0.70309347", "0.702967", "0.70193934" ]
0.0
-1
Create an entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
public static CassaPrevidenziale createEntity(EntityManager em) { CassaPrevidenziale cassaPrevidenziale = new CassaPrevidenziale() .tipoCassa(DEFAULT_TIPO_CASSA) .alCassa(DEFAULT_AL_CASSA) .importoContributoCassa(DEFAULT_IMPORTO_CONTRIBUTO_CASSA) .imponibileCassa(DEFAULT_IMPONIBILE_CASSA) .aliquotaIVA(DEFAULT_ALIQUOTA_IVA) .ritenuta(DEFAULT_RITENUTA) .natura(DEFAULT_NATURA) .riferimentoAmministrazione(DEFAULT_RIFERIMENTO_AMMINISTRAZIONE); return cassaPrevidenziale; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Entity createEntity();", "T createEntity();", "protected abstract ENTITY createEntity();", "void create(E entity);", "void create(T entity);", "E create(E entity);", "E create(E entity);", "protected abstract EntityBase createEntity() throws Exception;", "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 }", "public static TestEntity createEntity(EntityManager em) {\n TestEntity testEntity = new TestEntity();\n // Add required entity\n User user = UserResourceIntTest.createEntity(em);\n em.persist(user);\n em.flush();\n testEntity.setUserOneToMany(user);\n return testEntity;\n }", "void create(T entity) throws Exception;", "@Override\n protected void createEntity() {\n ProjectStatus status = createProjectStatus(5);\n setEntity(status);\n }", "protected T createSimulatedExistingEntity() {\n final T entity = createNewEntity();\n entity.setId(IDUtil.randomPositiveLong());\n\n when(getDAO().findOne(entity.getId())).thenReturn(entity);\n return entity;\n }", "public Entity newEntity() { return newMyEntity(); }", "public Entity newEntity() { return newMyEntity(); }", "public static TranshipTube createEntity(EntityManager em) {\n TranshipTube transhipTube = new TranshipTube()\n .status(DEFAULT_STATUS)\n .memo(DEFAULT_MEMO)\n .columnsInTube(DEFAULT_COLUMNS_IN_TUBE)\n .rowsInTube(DEFAULT_ROWS_IN_TUBE);\n // Add required entity\n TranshipBox transhipBox = TranshipBoxResourceIntTest.createEntity(em);\n em.persist(transhipBox);\n em.flush();\n transhipTube.setTranshipBox(transhipBox);\n // Add required entity\n FrozenTube frozenTube = FrozenTubeResourceIntTest.createEntity(em);\n em.persist(frozenTube);\n em.flush();\n transhipTube.setFrozenTube(frozenTube);\n return transhipTube;\n }", "public static Student createEntity(EntityManager em) {\n Student student = new Student()\n .firstName(DEFAULT_FIRST_NAME)\n .middleName(DEFAULT_MIDDLE_NAME)\n .lastName(DEFAULT_LAST_NAME)\n .studentRegNumber(DEFAULT_STUDENT_REG_NUMBER)\n .dateOfBirth(DEFAULT_DATE_OF_BIRTH)\n .regDocType(DEFAULT_REG_DOC_TYPE)\n .registrationDocumentNumber(DEFAULT_REGISTRATION_DOCUMENT_NUMBER)\n .gender(DEFAULT_GENDER)\n .nationality(DEFAULT_NATIONALITY)\n .dateJoined(DEFAULT_DATE_JOINED)\n .deleted(DEFAULT_DELETED)\n .wxtJwtPq55wd(DEFAULT_WXT_JWT_PQ_55_WD);\n // Add required entity\n NextOfKin nextOfKin;\n if (TestUtil.findAll(em, NextOfKin.class).isEmpty()) {\n nextOfKin = NextOfKinResourceIT.createEntity(em);\n em.persist(nextOfKin);\n em.flush();\n } else {\n nextOfKin = TestUtil.findAll(em, NextOfKin.class).get(0);\n }\n student.getRelatives().add(nextOfKin);\n return student;\n }", "@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }", "public static Emprunt createEntity(EntityManager em) {\n Emprunt emprunt = new Emprunt()\n .dateEmprunt(DEFAULT_DATE_EMPRUNT)\n .dateRetour(DEFAULT_DATE_RETOUR);\n // Add required entity\n Usager usager = UsagerResourceIntTest.createEntity(em);\n em.persist(usager);\n em.flush();\n emprunt.setUsager(usager);\n // Add required entity\n Exemplaire exemplaire = ExemplaireResourceIntTest.createEntity(em);\n em.persist(exemplaire);\n em.flush();\n emprunt.setExemplaire(exemplaire);\n return emprunt;\n }", "@Override\n public EntityResponse createEntity(String entitySetName, OEntity entity) {\n return super.createEntity(entitySetName, entity);\n }", "public ClientEntity newEntity() {\r\n if (entityType == null) {\r\n entityType = getEntityType(entitySet);\r\n }\r\n return odataClient.getObjectFactory().newEntity(new FullQualifiedName(NAMESPAVE, entityType));\r\n }", "ID create(T entity);", "public static MotherBed createEntity(EntityManager em) {\n MotherBed motherBed = new MotherBed()\n .value(DEFAULT_VALUE)\n .status(DEFAULT_STATUS);\n // Add required entity\n Nursery nursery = NurseryResourceIntTest.createEntity(em);\n em.persist(nursery);\n em.flush();\n motherBed.setNursery(nursery);\n return motherBed;\n }", "@Override\n public EntityResponse createEntity(String entitySetName, OEntityKey entityKey, String navProp, OEntity entity) {\n return super.createEntity(entitySetName, entityKey, navProp, entity);\n }", "private FailingEntity createFailingEntity() {\n FailingEntity entity = app.createAndManageChild(EntitySpec.create(FailingEntity.class)\n .configure(FailingEntity.FAIL_ON_START, true));\n return entity;\n }", "public <T extends Entity> T createEntity(EntitySpec<T> spec) {\n Map<String,Entity> entitiesByEntityId = MutableMap.of();\n Map<String,EntitySpec<?>> specsByEntityId = MutableMap.of();\n \n T entity = createEntityAndDescendantsUninitialized(spec, entitiesByEntityId, specsByEntityId);\n initEntityAndDescendants(entity.getId(), entitiesByEntityId, specsByEntityId);\n return entity;\n }", "public static Prestamo createEntity(EntityManager em) {\n Prestamo prestamo = new Prestamo().observaciones(DEFAULT_OBSERVACIONES).fechaFin(DEFAULT_FECHA_FIN);\n // Add required entity\n Libro libro;\n if (TestUtil.findAll(em, Libro.class).isEmpty()) {\n libro = LibroResourceIT.createEntity(em);\n em.persist(libro);\n em.flush();\n } else {\n libro = TestUtil.findAll(em, Libro.class).get(0);\n }\n prestamo.setLibro(libro);\n // Add required entity\n Persona persona;\n if (TestUtil.findAll(em, Persona.class).isEmpty()) {\n persona = PersonaResourceIT.createEntity(em);\n em.persist(persona);\n em.flush();\n } else {\n persona = TestUtil.findAll(em, Persona.class).get(0);\n }\n prestamo.setPersona(persona);\n // Add required entity\n User user = UserResourceIT.createEntity(em);\n em.persist(user);\n em.flush();\n prestamo.setUser(user);\n return prestamo;\n }", "default E create(E entity)\n throws TechnicalException, ConflictException {\n return create(entity, null);\n }", "public static Rentee createEntity(EntityManager em) {\n Rentee rentee = new Rentee();\n rentee = new Rentee()\n .firstName(DEFAULT_FIRST_NAME)\n .lastName(DEFAULT_LAST_NAME)\n .email(DEFAULT_EMAIL)\n .phoneNumber(DEFAULT_PHONE_NUMBER)\n .password(DEFAULT_PASSWORD);\n return rentee;\n }", "public static Pocket createEntity(EntityManager em) {\n Pocket pocket = new Pocket()\n .key(DEFAULT_KEY)\n .label(DEFAULT_LABEL)\n .startDateTime(DEFAULT_START_DATE_TIME)\n .endDateTime(DEFAULT_END_DATE_TIME)\n .amount(DEFAULT_AMOUNT)\n .reserved(DEFAULT_RESERVED);\n // Add required entity\n Balance balance = BalanceResourceIntTest.createEntity(em);\n em.persist(balance);\n em.flush();\n pocket.setBalance(balance);\n return pocket;\n }", "public static ItemSubstitution createEntity(EntityManager em) {\n ItemSubstitution itemSubstitution = new ItemSubstitution()\n .timestamp(DEFAULT_TIMESTAMP)\n .type(DEFAULT_TYPE)\n .substituteType(DEFAULT_SUBSTITUTE_TYPE)\n .substituteNo(DEFAULT_SUBSTITUTE_NO)\n .description(DEFAULT_DESCRIPTION)\n .isInterchangeable(DEFAULT_IS_INTERCHANGEABLE)\n .relationsLevel(DEFAULT_RELATIONS_LEVEL)\n .isCheckedToOriginal(DEFAULT_IS_CHECKED_TO_ORIGINAL)\n .origCheckDate(DEFAULT_ORIG_CHECK_DATE);\n // Add required entity\n Item item;\n if (TestUtil.findAll(em, Item.class).isEmpty()) {\n item = ItemResourceIT.createEntity(em);\n em.persist(item);\n em.flush();\n } else {\n item = TestUtil.findAll(em, Item.class).get(0);\n }\n itemSubstitution.getItems().add(item);\n return itemSubstitution;\n }", "E create(E entity, RequestContext context)\n throws TechnicalException, ConflictException;", "public static A createEntity(EntityManager em) {\n A a = new A();\n return a;\n }", "public static Edge createEntity(EntityManager em) {\n Edge edge = new Edge()\n .description(DEFAULT_DESCRIPTION);\n // Add required entity\n Stone from = StoneResourceIntTest.createEntity(em);\n em.persist(from);\n em.flush();\n edge.setFrom(from);\n // Add required entity\n Stone to = StoneResourceIntTest.createEntity(em);\n em.persist(to);\n em.flush();\n edge.setTo(to);\n return edge;\n }", "public static QuizQuestion createEntity(EntityManager em) {\n QuizQuestion quizQuestion = new QuizQuestion()\n .text(DEFAULT_TEXT)\n .description(DEFAULT_DESCRIPTION);\n // Add required entity\n Quiz quiz;\n if (TestUtil.findAll(em, Quiz.class).isEmpty()) {\n quiz = QuizResourceIT.createEntity(em);\n em.persist(quiz);\n em.flush();\n } else {\n quiz = TestUtil.findAll(em, Quiz.class).get(0);\n }\n quizQuestion.setQuiz(quiz);\n return quizQuestion;\n }", "public static Partida createEntity(EntityManager em) {\n Partida partida = new Partida()\n .dataPartida(DEFAULT_DATA_PARTIDA);\n return partida;\n }", "public T create(T entity) {\n\t \tgetEntityManager().getTransaction().begin();\n\t getEntityManager().persist(entity);\n\t getEntityManager().getTransaction().commit();\n\t getEntityManager().close();\n\t return entity;\n\t }", "public static Emprunt createEntity(EntityManager em) {\n Emprunt emprunt = new Emprunt()\n .dateEmprunt(DEFAULT_DATE_EMPRUNT);\n return emprunt;\n }", "public static SitAndGo createEntity(EntityManager em) {\n SitAndGo sitAndGo = new SitAndGo()\n .format(DEFAULT_FORMAT)\n .buyIn(DEFAULT_BUY_IN)\n .ranking(DEFAULT_RANKING)\n .profit(DEFAULT_PROFIT)\n .bounty(DEFAULT_BOUNTY);\n return sitAndGo;\n }", "public static Exercise createEntity(EntityManager em) {\n Exercise exercise = new Exercise()\n .minutes(DEFAULT_MINUTES);\n return exercise;\n }", "@Override\n\tpublic Entity createEntity() {\n\t\tEntity entity = new Entity(LINKS_ENTITY_KIND);\n\t\tentity.setProperty(id_property, ID);\n\t\tentity.setProperty(url_property, url);\n\t\tentity.setProperty(CategoryID_property, CategoryID);\n\t\tentity.setProperty(note_property, note);\n\t\tentity.setProperty(createdOn_property, createdOn);\n\t\tentity.setProperty(updatedOn_property, updatedOn);\t\t\t\n\t\treturn entity;\n\t}", "public static House createEntity(EntityManager em) {\n House house = new House()\n .houseName(DEFAULT_HOUSE_NAME)\n .houseNo(DEFAULT_HOUSE_NO)\n .address(DEFAULT_ADDRESS)\n .houseToFloorNo(DEFAULT_HOUSE_TO_FLOOR_NO)\n .ownToFloorNo(DEFAULT_OWN_TO_FLOOR_NO)\n .lat(DEFAULT_LAT)\n .lon(DEFAULT_LON)\n .createdate(DEFAULT_CREATEDATE)\n .createBy(DEFAULT_CREATE_BY)\n .updateDate(DEFAULT_UPDATE_DATE)\n .updateBy(DEFAULT_UPDATE_BY)\n .image(DEFAULT_IMAGE)\n .imageContentType(DEFAULT_IMAGE_CONTENT_TYPE);\n // Add required entity\n Country country = CountryResourceIntTest.createEntity(em);\n em.persist(country);\n em.flush();\n house.setCountry(country);\n // Add required entity\n State state = StateResourceIntTest.createEntity(em);\n em.persist(state);\n em.flush();\n house.setState(state);\n // Add required entity\n City city = CityResourceIntTest.createEntity(em);\n em.persist(city);\n em.flush();\n house.setCity(city);\n // Add required entity\n Profile profile = ProfileResourceIntTest.createEntity(em);\n em.persist(profile);\n em.flush();\n house.setProfile(profile);\n // Add required entity\n User user = UserResourceIntTest.createEntity(em);\n em.persist(user);\n em.flush();\n house.setUser(user);\n return house;\n }", "public static CourtType createEntity(EntityManager em) {\n CourtType courtType = new CourtType()\n .type(DEFAULT_TYPE);\n return courtType;\n }", "@Override\r\n public void createNewEntity(String entityName) {\n\r\n }", "public static Ailment createEntity(EntityManager em) {\n Ailment ailment = new Ailment()\n .name(DEFAULT_NAME)\n .symptoms(DEFAULT_SYMPTOMS)\n .treatments(DEFAULT_TREATMENTS);\n return ailment;\n }", "public static Articulo createEntity(EntityManager em) {\n Articulo articulo = new Articulo()\n .titulo(DEFAULT_TITULO)\n .contenido(DEFAULT_CONTENIDO)\n .fechaCreacion(DEFAULT_FECHA_CREACION);\n return articulo;\n }", "void create(Student entity);", "public static TipoLocal createEntity(EntityManager em) {\n TipoLocal tipoLocal = new TipoLocal()\n .tipo(DEFAULT_TIPO);\n return tipoLocal;\n }", "@Override\n\tprotected CoreEntity createNewEntity() {\n\t\treturn null;\n\t}", "public static Testtable2 createEntity(EntityManager em) {\n Testtable2 testtable2 = new Testtable2();\n testtable2.setColumn2(DEFAULT_COLUMN_2);\n return testtable2;\n }", "public static OrderItem createEntity(EntityManager em) {\n OrderItem orderItem = new OrderItem().quantity(DEFAULT_QUANTITY).totalPrice(DEFAULT_TOTAL_PRICE).status(DEFAULT_STATUS);\n return orderItem;\n }", "public static Arrete createEntity(EntityManager em) {\n Arrete arrete = new Arrete()\n .intituleArrete(DEFAULT_INTITULE_ARRETE)\n .numeroArrete(DEFAULT_NUMERO_ARRETE)\n .dateSignature(DEFAULT_DATE_SIGNATURE)\n .nombreAgrement(DEFAULT_NOMBRE_AGREMENT);\n return arrete;\n }", "public static Tenant createEntity() {\n return new Tenant();\n }", "public static MyOrders createEntity(EntityManager em) {\n MyOrders myOrders = new MyOrders();\n return myOrders;\n }", "public static Enseigner createEntity(EntityManager em) {\n Enseigner enseigner = new Enseigner().dateDebut(DEFAULT_DATE_DEBUT).dateFin(DEFAULT_DATE_FIN);\n return enseigner;\n }", "@Test\n public void eventEntityConstructionTest() {\n\n Event event = new EventEntity();\n\n assertThat(event).isNotNull();\n\n }", "public static EnteteVente createEntity(EntityManager em) {\n EnteteVente enteteVente = new EnteteVente()\n .enteteVenteType(DEFAULT_ENTETE_VENTE_TYPE)\n .enteteVenteTotalHT(DEFAULT_ENTETE_VENTE_TOTAL_HT)\n .enteteVenteTotalTTC(DEFAULT_ENTETE_VENTE_TOTAL_TTC)\n .enteteVenteDateCreation(DEFAULT_ENTETE_VENTE_DATE_CREATION);\n return enteteVente;\n }", "public void createNewObject(Representation entity) throws ResourceException {\r\n\t\tT entry = createObjectFromHeaders(null, entity);\r\n\t\texecuteUpdate(entity, entry, createUpdateObject(entry));\r\n\r\n\t}", "public static Organizer createEntity(EntityManager em) {\n Organizer organizer = new Organizer()\n .name(DEFAULT_NAME)\n .description(DEFAULT_DESCRIPTION)\n .facebook(DEFAULT_FACEBOOK)\n .twitter(DEFAULT_TWITTER);\n // Add required entity\n User user = UserResourceIntTest.createEntity(em);\n em.persist(user);\n em.flush();\n organizer.setUser(user);\n return organizer;\n }", "public static Note createEntity(EntityManager em) {\n Note note = new Note().content(DEFAULT_CONTENT).title(DEFAULT_TITLE).xpos(DEFAULT_XPOS).ypos(DEFAULT_YPOS);\n return note;\n }", "public static FillingGapsTestItem createEntity(EntityManager em) {\n FillingGapsTestItem fillingGapsTestItem = new FillingGapsTestItem()\n .question(DEFAULT_QUESTION);\n return fillingGapsTestItem;\n }", "public Entity build();", "@Test\n public void createQuejaEntityTest() {\n PodamFactory factory = new PodamFactoryImpl();\n QuejaEntity newEntity = factory.manufacturePojo(QuejaEntity.class);\n QuejaEntity result = quejaPersistence.create(newEntity);\n\n Assert.assertNotNull(result);\n QuejaEntity entity = em.find(QuejaEntity.class, result.getId());\n Assert.assertNotNull(entity);\n Assert.assertEquals(newEntity.getName(), entity.getName());\n}", "public abstract boolean create(T entity) throws ServiceException;", "public static Acheteur createEntity(EntityManager em) {\n Acheteur acheteur = new Acheteur()\n .typeClient(DEFAULT_TYPE_CLIENT)\n .nom(DEFAULT_NOM)\n .prenom(DEFAULT_PRENOM)\n .tel(DEFAULT_TEL)\n .cnib(DEFAULT_CNIB)\n .email(DEFAULT_EMAIL)\n .adresse(DEFAULT_ADRESSE)\n .numroBanquaire(DEFAULT_NUMRO_BANQUAIRE)\n .deleted(DEFAULT_DELETED);\n return acheteur;\n }", "public static RoomGenericProduct createEntity(EntityManager em) {\n RoomGenericProduct roomGenericProduct = new RoomGenericProduct()\n .quantity(DEFAULT_QUANTITY)\n .quantityUnit(DEFAULT_QUANTITY_UNIT);\n return roomGenericProduct;\n }", "public static TypeOeuvre createEntity(EntityManager em) {\n TypeOeuvre typeOeuvre = new TypeOeuvre()\n .intitule(DEFAULT_INTITULE);\n return typeOeuvre;\n }", "public static Reservation createEntity(EntityManager em) {\n Reservation reservation = ReservationTest.buildReservationTest(1L);\n //reservation.setUser(User.builder().email(\"adfad\").name(\"\").build());\n return reservation;\n }", "@Test\n public void testNewEntity() throws Exception {\n\n }", "public static Model createEntity(EntityManager em) {\n\t\tModel model = new Model().name(DEFAULT_NAME).type(DEFAULT_TYPE).algorithm(DEFAULT_ALGORITHM)\n\t\t\t\t.status(DEFAULT_STATUS).owner(DEFAULT_OWNER).performanceMetrics(DEFAULT_PERFORMANCE_METRICS)\n\t\t\t\t.modelLocation(DEFAULT_MODEL_LOCATION).featureSignificance(DEFAULT_FEATURE_SIGNIFICANCE)\n\t\t\t\t.builderConfig(DEFAULT_BUILDER_CONFIG).createdDate(DEFAULT_CREATED_DATE)\n\t\t\t\t.deployedDate(DEFAULT_DEPLOYED_DATE).trainingDataset(DEFAULT_TRAINING_DATASET)\n .library(DEFAULT_LIBRARY).project(DEFAULT_PROJECT).version(DEFAULT_VERSION);\n\t\treturn model;\n\t}", "public static ProcessExecution createEntity(EntityManager em) {\n ProcessExecution processExecution = new ProcessExecution()\n .execution(DEFAULT_EXECUTION);\n return processExecution;\n }", "public static Paiement createEntity(EntityManager em) {\n Paiement paiement = new Paiement()\n .dateTransation(DEFAULT_DATE_TRANSATION)\n .montantTTC(DEFAULT_MONTANT_TTC);\n return paiement;\n }", "public static Article createEntity(EntityManager em) {\n Article article = new Article()\n .name(DEFAULT_NAME)\n .content(DEFAULT_CONTENT)\n .creationDate(DEFAULT_CREATION_DATE)\n .modificationDate(DEFAULT_MODIFICATION_DATE);\n return article;\n }", "T makePersistent(T entity);", "void buildFromEntity(E entity);", "public static XepLoai createEntity(EntityManager em) {\n XepLoai xepLoai = new XepLoai()\n .tenXepLoai(DEFAULT_TEN_XEP_LOAI);\n return xepLoai;\n }", "public static Lot createEntity(EntityManager em) {\n Lot lot = new Lot()\n .createdAt(DEFAULT_CREATED_AT)\n .updatedAt(DEFAULT_UPDATED_AT)\n .qte(DEFAULT_QTE)\n .qtUg(DEFAULT_QT_UG)\n .num(DEFAULT_NUM)\n .dateFabrication(DEFAULT_DATE_FABRICATION)\n .peremption(DEFAULT_PEREMPTION)\n .peremptionstatus(DEFAULT_PEREMPTIONSTATUS);\n return lot;\n }", "private MetaEntityImpl createMetaEntity(Class<?> entityType) {\n String className = entityType.getSimpleName();\n MetaEntityImpl managedEntity = new MetaEntityImpl();\n managedEntity.setEntityType(entityType);\n managedEntity.setName(className);\n ((MetaTableImpl) managedEntity.getTable()).setName(className);\n ((MetaTableImpl) managedEntity.getTable()).setKeySpace(environment.getConfiguration().getKeySpace());\n return managedEntity;\n }", "public TransporteTerrestreEntity createTransporte(TransporteTerrestreEntity transporteEntity) throws BusinessLogicException {\n LOGGER.log(Level.INFO, \"Inicia proceso de creación del transporte\");\n super.createTransporte(transporteEntity);\n\n \n persistence.create(transporteEntity);\n LOGGER.log(Level.INFO, \"Termina proceso de creación del transporte\");\n return transporteEntity;\n }", "public static EmployeeCars createEntity(EntityManager em) {\n EmployeeCars employeeCars = new EmployeeCars()\n .previousReading(DEFAULT_PREVIOUS_READING)\n .currentReading(DEFAULT_CURRENT_READING)\n .workingDays(DEFAULT_WORKING_DAYS)\n .updateDate(DEFAULT_UPDATE_DATE);\n // Add required entity\n Employee employee = EmployeeResourceIT.createEntity(em);\n em.persist(employee);\n em.flush();\n employeeCars.setEmployee(employee);\n // Add required entity\n Car car = CarResourceIT.createEntity(em);\n em.persist(car);\n em.flush();\n employeeCars.setCar(car);\n return employeeCars;\n }", "public static TaskComment createEntity(EntityManager em) {\n TaskComment taskComment = new TaskComment()\n .value(DEFAULT_VALUE);\n // Add required entity\n Task newTask = TaskResourceIT.createEntity(em);\n Task task = TestUtil.findAll(em, Task.class).stream()\n .filter(x -> x.getId().equals(newTask.getId()))\n .findAny().orElse(null);\n if (task == null) {\n task = newTask;\n em.persist(task);\n em.flush();\n }\n taskComment.setTask(task);\n return taskComment;\n }", "public static Personel createEntity(EntityManager em) {\n Personel personel = new Personel()\n .fistname(DEFAULT_FISTNAME)\n .lastname(DEFAULT_LASTNAME)\n .sexe(DEFAULT_SEXE);\n return personel;\n }", "public static Ordre createEntity(EntityManager em) {\n Ordre ordre = new Ordre()\n .name(DEFAULT_NAME)\n .status(DEFAULT_STATUS)\n .price(DEFAULT_PRICE)\n .creationDate(DEFAULT_CREATION_DATE);\n return ordre;\n }", "public static Territorio createEntity(EntityManager em) {\n Territorio territorio = new Territorio().nome(DEFAULT_NOME);\n return territorio;\n }", "@Override\n @LogMethod\n public T create(T entity) throws InventoryException {\n \tInventoryHelper.checkNull(entity, \"entity\");\n repository.persist(entity);\n return repository.getByKey(entity.getId());\n }", "public static Poen createEntity(EntityManager em) {\n Poen poen = new Poen()\n .tip(DEFAULT_TIP);\n return poen;\n }", "public static Expediente createEntity(EntityManager em) {\n Expediente expediente = new Expediente()\n .horarioEntrada(DEFAULT_HORARIO_ENTRADA)\n .horarioSaida(DEFAULT_HORARIO_SAIDA)\n .diaSemana(DEFAULT_DIA_SEMANA);\n return expediente;\n }", "public static Unidade createEntity(EntityManager em) {\n Unidade unidade = new Unidade()\n .descricao(DEFAULT_DESCRICAO)\n .sigla(DEFAULT_SIGLA)\n .situacao(DEFAULT_SITUACAO)\n .controleDeEstoque(DEFAULT_CONTROLE_DE_ESTOQUE)\n .idAlmoxarifado(DEFAULT_ID_ALMOXARIFADO)\n .andar(DEFAULT_ANDAR)\n .capacidade(DEFAULT_CAPACIDADE)\n .horarioInicio(DEFAULT_HORARIO_INICIO)\n .horarioFim(DEFAULT_HORARIO_FIM)\n .localExame(DEFAULT_LOCAL_EXAME)\n .rotinaDeFuncionamento(DEFAULT_ROTINA_DE_FUNCIONAMENTO)\n .anexoDocumento(DEFAULT_ANEXO_DOCUMENTO)\n .setor(DEFAULT_SETOR)\n .idCentroDeAtividade(DEFAULT_ID_CENTRO_DE_ATIVIDADE)\n .idChefia(DEFAULT_ID_CHEFIA);\n // Add required entity\n TipoUnidade tipoUnidade;\n if (TestUtil.findAll(em, TipoUnidade.class).isEmpty()) {\n tipoUnidade = TipoUnidadeResourceIT.createEntity(em);\n em.persist(tipoUnidade);\n em.flush();\n } else {\n tipoUnidade = TestUtil.findAll(em, TipoUnidade.class).get(0);\n }\n unidade.setTipoUnidade(tipoUnidade);\n return unidade;\n }", "public void spawnEntity(AEntityB_Existing entity){\r\n\t\tBuilderEntityExisting builder = new BuilderEntityExisting(entity.world.world);\r\n\t\tbuilder.loadedFromSavedNBT = true;\r\n\t\tbuilder.setPositionAndRotation(entity.position.x, entity.position.y, entity.position.z, (float) -entity.angles.y, (float) entity.angles.x);\r\n\t\tbuilder.entity = entity;\r\n\t\tworld.spawnEntity(builder);\r\n }", "public static Book createEntity() {\n Book book = new Book()\n .idBook(DEFAULT_ID_BOOK)\n .isbn(DEFAULT_ISBN)\n .title(DEFAULT_TITLE)\n .author(DEFAULT_AUTHOR)\n .year(DEFAULT_YEAR)\n .publisher(DEFAULT_PUBLISHER)\n .url_s(DEFAULT_URL_S)\n .url_m(DEFAULT_URL_M)\n .url_l(DEFAULT_URL_L);\n return book;\n }", "private void createTestData() {\n StoreEntity store = new StoreEntity();\n store.setStoreName(DEFAULT_STORE_NAME);\n store.setPecEmail(DEFAULT_PEC);\n store.setPhone(DEFAULT_PHONE);\n store.setImagePath(DEFAULT_IMAGE_PATH);\n store.setDefaultPassCode(STORE_DEFAULT_PASS_CODE);\n store.setStoreCap(DEFAULT_STORE_CAP);\n store.setCustomersInside(DEFAULT_CUSTOMERS_INSIDE);\n store.setAddress(new AddressEntity());\n\n // Create users for store.\n UserEntity manager = new UserEntity();\n manager.setUsercode(USER_CODE_MANAGER);\n manager.setRole(UserRole.MANAGER);\n\n UserEntity employee = new UserEntity();\n employee.setUsercode(USER_CODE_EMPLOYEE);\n employee.setRole(UserRole.EMPLOYEE);\n\n store.addUser(manager);\n store.addUser(employee);\n\n // Create a new ticket.\n TicketEntity ticket = new TicketEntity();\n ticket.setPassCode(INIT_PASS_CODE);\n ticket.setCustomerId(INIT_CUSTOMER_ID);\n ticket.setDate(new Date(new java.util.Date().getTime()));\n\n ticket.setArrivalTime(new Time(new java.util.Date().getTime()));\n ticket.setPassStatus(PassStatus.VALID);\n ticket.setQueueNumber(INIT_TICKET_QUEUE_NUMBER);\n store.addTicket(ticket);\n\n // Persist data.\n em.getTransaction().begin();\n\n em.persist(store);\n em.flush();\n\n // Saving ID generated from SQL after the persist.\n LAST_TICKET_ID = ticket.getTicketId();\n LAST_STORE_ID = store.getStoreId();\n LAST_MANAGER_ID = manager.getUserId();\n LAST_EMPLOYEE_ID = employee.getUserId();\n\n em.getTransaction().commit();\n }", "@Test\n public void testNewEntity_0args() {\n // newEntity() is not implemented!\n }", "public static NoteMaster createEntity(EntityManager em) {\n NoteMaster noteMaster = new NoteMaster()\n .semestre(DEFAULT_SEMESTRE)\n .noteCC1(DEFAULT_NOTE_CC_1)\n .noteCC2(DEFAULT_NOTE_CC_2)\n .noteFinal(DEFAULT_NOTE_FINAL)\n .date(DEFAULT_DATE);\n return noteMaster;\n }", "public Camp newEntity() { return new Camp(); }", "T create() throws PersistException;", "private EntityDef createEntityDef(Class<?> entityClass)\n {\n\t\tif (entityClass.isAnnotationPresent(InheritanceSingleTable.class)) {\n return new SingleTableSubclass.SingleTableSuperclass(entityClass);\n } else if (entityClass.getSuperclass().isAnnotationPresent(InheritanceSingleTable.class)) {\n return new SingleTableSubclass(entityClass);\n } else {\n return new EntityDef(entityClass);\n }\n\t}", "public static Restaurant createEntity(EntityManager em) {\n Restaurant restaurant = new Restaurant()\n .restaurantName(DEFAULT_RESTAURANT_NAME)\n .deliveryPrice(DEFAULT_DELIVERY_PRICE)\n .restaurantAddress(DEFAULT_RESTAURANT_ADDRESS)\n .restaurantCity(DEFAULT_RESTAURANT_CITY);\n return restaurant;\n }", "@Override\n\tpublic EmploieType creer(EmploieType entity) throws InvalideTogetException {\n\t\treturn emploieTypeRepository.save(entity);\n\t}", "public static Team createEntity(EntityManager em) {\n Team team = new Team().name(DEFAULT_NAME).description(DEFAULT_DESCRIPTION)\n .level(DEFAULT_LEVEL).totalMember(DEFAULT_TOTAL_MEMBER)\n .extraGroupName(DEFAULT_EXTRA_GROUP_NAME)\n .extraGroupDescription(DEFAULT_EXTRA_GROUP_DESCRIPTION)\n .extraGroupTotalMember(DEFAULT_EXTRA_GROUP_TOTAL_MEMBER);\n return team;\n }", "public static Produit createEntity(EntityManager em) {\n Produit produit = new Produit()\n .designation(DEFAULT_DESIGNATION)\n .soldeInit(DEFAULT_SOLDE_INIT)\n .prixAchat(DEFAULT_PRIX_ACHAT)\n .prixVente(DEFAULT_PRIX_VENTE)\n .quantiteDispo(DEFAULT_QUANTITE_DISPO)\n .quantiteInit(DEFAULT_QUANTITE_INIT)\n .seuilReaprov(DEFAULT_SEUIL_REAPROV)\n .reference(DEFAULT_REFERENCE);\n return produit;\n }", "public void constructEntity (EntityBuilder entityBuilder, Position position){\n entityBuilder.createEntity();\n entityBuilder.buildPosition(position);\n entityBuilder.buildName();\n entityBuilder.buildPosition();\n entityBuilder.buildContComp();\n entityBuilder.buildPhysComp(length, width);\n entityBuilder.buildGraphComp(length, width);\n }" ]
[ "0.77237844", "0.75048935", "0.7488585", "0.736279", "0.73147863", "0.71573627", "0.71573627", "0.715141", "0.7148617", "0.7077601", "0.7016931", "0.6804163", "0.6752578", "0.6741185", "0.6741185", "0.6711834", "0.6682166", "0.6668473", "0.66409945", "0.6625449", "0.66251147", "0.6607159", "0.6589094", "0.65744776", "0.65742886", "0.65659726", "0.6552969", "0.6532596", "0.6530439", "0.6482132", "0.64208865", "0.63895035", "0.6376245", "0.6368816", "0.6313854", "0.6298449", "0.62948835", "0.62593156", "0.6246077", "0.62425977", "0.62408835", "0.62193334", "0.62088436", "0.61838305", "0.6182032", "0.6175264", "0.61710083", "0.6164164", "0.6160682", "0.6160062", "0.61557025", "0.6150654", "0.61427146", "0.6137701", "0.6136231", "0.6129077", "0.61250216", "0.6122897", "0.6107728", "0.6106905", "0.6102072", "0.609315", "0.6090711", "0.6082102", "0.60744095", "0.60700476", "0.6067143", "0.60668373", "0.6062432", "0.6058693", "0.60525924", "0.6041818", "0.603872", "0.6033336", "0.60278666", "0.602292", "0.6021826", "0.60199827", "0.6016308", "0.601578", "0.6014746", "0.6003199", "0.60027117", "0.6001968", "0.6001385", "0.59958315", "0.5994888", "0.5982254", "0.5978615", "0.5975007", "0.5972647", "0.596632", "0.5964086", "0.5963887", "0.59537274", "0.59452873", "0.59446174", "0.5943897", "0.59372926", "0.5931245", "0.5930542" ]
0.0
-1
Create an updated entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
public static CassaPrevidenziale createUpdatedEntity(EntityManager em) { CassaPrevidenziale cassaPrevidenziale = new CassaPrevidenziale() .tipoCassa(UPDATED_TIPO_CASSA) .alCassa(UPDATED_AL_CASSA) .importoContributoCassa(UPDATED_IMPORTO_CONTRIBUTO_CASSA) .imponibileCassa(UPDATED_IMPONIBILE_CASSA) .aliquotaIVA(UPDATED_ALIQUOTA_IVA) .ritenuta(UPDATED_RITENUTA) .natura(UPDATED_NATURA) .riferimentoAmministrazione(UPDATED_RIFERIMENTO_AMMINISTRAZIONE); return cassaPrevidenziale; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Student createUpdatedEntity(EntityManager em) {\n Student student = new Student()\n .firstName(UPDATED_FIRST_NAME)\n .middleName(UPDATED_MIDDLE_NAME)\n .lastName(UPDATED_LAST_NAME)\n .studentRegNumber(UPDATED_STUDENT_REG_NUMBER)\n .dateOfBirth(UPDATED_DATE_OF_BIRTH)\n .regDocType(UPDATED_REG_DOC_TYPE)\n .registrationDocumentNumber(UPDATED_REGISTRATION_DOCUMENT_NUMBER)\n .gender(UPDATED_GENDER)\n .nationality(UPDATED_NATIONALITY)\n .dateJoined(UPDATED_DATE_JOINED)\n .deleted(UPDATED_DELETED)\n .wxtJwtPq55wd(UPDATED_WXT_JWT_PQ_55_WD);\n // Add required entity\n NextOfKin nextOfKin;\n if (TestUtil.findAll(em, NextOfKin.class).isEmpty()) {\n nextOfKin = NextOfKinResourceIT.createUpdatedEntity(em);\n em.persist(nextOfKin);\n em.flush();\n } else {\n nextOfKin = TestUtil.findAll(em, NextOfKin.class).get(0);\n }\n student.getRelatives().add(nextOfKin);\n return student;\n }", "protected T createSimulatedExistingEntity() {\n final T entity = createNewEntity();\n entity.setId(IDUtil.randomPositiveLong());\n\n when(getDAO().findOne(entity.getId())).thenReturn(entity);\n return entity;\n }", "public static Prestamo createUpdatedEntity(EntityManager em) {\n Prestamo prestamo = new Prestamo().observaciones(UPDATED_OBSERVACIONES).fechaFin(UPDATED_FECHA_FIN);\n // Add required entity\n Libro libro;\n if (TestUtil.findAll(em, Libro.class).isEmpty()) {\n libro = LibroResourceIT.createUpdatedEntity(em);\n em.persist(libro);\n em.flush();\n } else {\n libro = TestUtil.findAll(em, Libro.class).get(0);\n }\n prestamo.setLibro(libro);\n // Add required entity\n Persona persona;\n if (TestUtil.findAll(em, Persona.class).isEmpty()) {\n persona = PersonaResourceIT.createUpdatedEntity(em);\n em.persist(persona);\n em.flush();\n } else {\n persona = TestUtil.findAll(em, Persona.class).get(0);\n }\n prestamo.setPersona(persona);\n // Add required entity\n User user = UserResourceIT.createEntity(em);\n em.persist(user);\n em.flush();\n prestamo.setUser(user);\n return prestamo;\n }", "public static SitAndGo createUpdatedEntity(EntityManager em) {\n SitAndGo sitAndGo = new SitAndGo()\n .format(UPDATED_FORMAT)\n .buyIn(UPDATED_BUY_IN)\n .ranking(UPDATED_RANKING)\n .profit(UPDATED_PROFIT)\n .bounty(UPDATED_BOUNTY);\n return sitAndGo;\n }", "public static ItemSubstitution createUpdatedEntity(EntityManager em) {\n ItemSubstitution itemSubstitution = new ItemSubstitution()\n .timestamp(UPDATED_TIMESTAMP)\n .type(UPDATED_TYPE)\n .substituteType(UPDATED_SUBSTITUTE_TYPE)\n .substituteNo(UPDATED_SUBSTITUTE_NO)\n .description(UPDATED_DESCRIPTION)\n .isInterchangeable(UPDATED_IS_INTERCHANGEABLE)\n .relationsLevel(UPDATED_RELATIONS_LEVEL)\n .isCheckedToOriginal(UPDATED_IS_CHECKED_TO_ORIGINAL)\n .origCheckDate(UPDATED_ORIG_CHECK_DATE);\n // Add required entity\n Item item;\n if (TestUtil.findAll(em, Item.class).isEmpty()) {\n item = ItemResourceIT.createUpdatedEntity(em);\n em.persist(item);\n em.flush();\n } else {\n item = TestUtil.findAll(em, Item.class).get(0);\n }\n itemSubstitution.getItems().add(item);\n return itemSubstitution;\n }", "Entity createEntity();", "@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }", "public static A createUpdatedEntity(EntityManager em) {\n A a = new A();\n return a;\n }", "public static Testtable2 createUpdatedEntity(EntityManager em) {\n Testtable2 testtable2 = new Testtable2();\n testtable2.setColumn2(UPDATED_COLUMN_2);\n return testtable2;\n }", "public static XepLoai createUpdatedEntity(EntityManager em) {\n XepLoai xepLoai = new XepLoai()\n .tenXepLoai(UPDATED_TEN_XEP_LOAI);\n return xepLoai;\n }", "public static QuizQuestion createUpdatedEntity(EntityManager em) {\n QuizQuestion quizQuestion = new QuizQuestion()\n .text(UPDATED_TEXT)\n .description(UPDATED_DESCRIPTION);\n // Add required entity\n Quiz quiz;\n if (TestUtil.findAll(em, Quiz.class).isEmpty()) {\n quiz = QuizResourceIT.createUpdatedEntity(em);\n em.persist(quiz);\n em.flush();\n } else {\n quiz = TestUtil.findAll(em, Quiz.class).get(0);\n }\n quizQuestion.setQuiz(quiz);\n return quizQuestion;\n }", "public static OrderItem createUpdatedEntity(EntityManager em) {\n OrderItem orderItem = new OrderItem().quantity(UPDATED_QUANTITY).totalPrice(UPDATED_TOTAL_PRICE).status(UPDATED_STATUS);\n return orderItem;\n }", "public static Arrete createUpdatedEntity(EntityManager em) {\n Arrete arrete = new Arrete()\n .intituleArrete(UPDATED_INTITULE_ARRETE)\n .numeroArrete(UPDATED_NUMERO_ARRETE)\n .dateSignature(UPDATED_DATE_SIGNATURE)\n .nombreAgrement(UPDATED_NOMBRE_AGREMENT);\n return arrete;\n }", "public static Note createUpdatedEntity(EntityManager em) {\n Note note = new Note().content(UPDATED_CONTENT).title(UPDATED_TITLE).xpos(UPDATED_XPOS).ypos(UPDATED_YPOS);\n return note;\n }", "public static Unidade createUpdatedEntity(EntityManager em) {\n Unidade unidade = new Unidade()\n .descricao(UPDATED_DESCRICAO)\n .sigla(UPDATED_SIGLA)\n .situacao(UPDATED_SITUACAO)\n .controleDeEstoque(UPDATED_CONTROLE_DE_ESTOQUE)\n .idAlmoxarifado(UPDATED_ID_ALMOXARIFADO)\n .andar(UPDATED_ANDAR)\n .capacidade(UPDATED_CAPACIDADE)\n .horarioInicio(UPDATED_HORARIO_INICIO)\n .horarioFim(UPDATED_HORARIO_FIM)\n .localExame(UPDATED_LOCAL_EXAME)\n .rotinaDeFuncionamento(UPDATED_ROTINA_DE_FUNCIONAMENTO)\n .anexoDocumento(UPDATED_ANEXO_DOCUMENTO)\n .setor(UPDATED_SETOR)\n .idCentroDeAtividade(UPDATED_ID_CENTRO_DE_ATIVIDADE)\n .idChefia(UPDATED_ID_CHEFIA);\n // Add required entity\n TipoUnidade tipoUnidade;\n if (TestUtil.findAll(em, TipoUnidade.class).isEmpty()) {\n tipoUnidade = TipoUnidadeResourceIT.createUpdatedEntity(em);\n em.persist(tipoUnidade);\n em.flush();\n } else {\n tipoUnidade = TestUtil.findAll(em, TipoUnidade.class).get(0);\n }\n unidade.setTipoUnidade(tipoUnidade);\n return unidade;\n }", "@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 }", "@Override\n protected void createEntity() {\n ProjectStatus status = createProjectStatus(5);\n setEntity(status);\n }", "public static Restaurant createUpdatedEntity(EntityManager em) {\n Restaurant restaurant = new Restaurant()\n .restaurantName(UPDATED_RESTAURANT_NAME)\n .deliveryPrice(UPDATED_DELIVERY_PRICE)\n .restaurantAddress(UPDATED_RESTAURANT_ADDRESS)\n .restaurantCity(UPDATED_RESTAURANT_CITY);\n return restaurant;\n }", "public static Enseigner createUpdatedEntity(EntityManager em) {\n Enseigner enseigner = new Enseigner().dateDebut(UPDATED_DATE_DEBUT).dateFin(UPDATED_DATE_FIN);\n return enseigner;\n }", "public static Lot createUpdatedEntity(EntityManager em) {\n Lot lot = new Lot()\n .createdAt(UPDATED_CREATED_AT)\n .updatedAt(UPDATED_UPDATED_AT)\n .qte(UPDATED_QTE)\n .qtUg(UPDATED_QT_UG)\n .num(UPDATED_NUM)\n .dateFabrication(UPDATED_DATE_FABRICATION)\n .peremption(UPDATED_PEREMPTION)\n .peremptionstatus(UPDATED_PEREMPTIONSTATUS);\n return lot;\n }", "void createOrUpdate(T entity);", "public static EnteteVente createUpdatedEntity(EntityManager em) {\n EnteteVente enteteVente = new EnteteVente()\n .enteteVenteType(UPDATED_ENTETE_VENTE_TYPE)\n .enteteVenteTotalHT(UPDATED_ENTETE_VENTE_TOTAL_HT)\n .enteteVenteTotalTTC(UPDATED_ENTETE_VENTE_TOTAL_TTC)\n .enteteVenteDateCreation(UPDATED_ENTETE_VENTE_DATE_CREATION);\n return enteteVente;\n }", "public static TaskComment createUpdatedEntity(EntityManager em) {\n TaskComment taskComment = new TaskComment()\n .value(UPDATED_VALUE);\n // Add required entity\n Task newTask = TaskResourceIT.createUpdatedEntity(em);\n Task task = TestUtil.findAll(em, Task.class).stream()\n .filter(x -> x.getId().equals(newTask.getId()))\n .findAny().orElse(null);\n if (task == null) {\n task = newTask;\n em.persist(task);\n em.flush();\n }\n taskComment.setTask(task);\n return taskComment;\n }", "protected abstract ENTITY createEntity();", "public static Bounty createUpdatedEntity() {\n Bounty bounty = new Bounty()\n// .status(UPDATED_STATUS)\n// .issueUrl(UPDATED_URL)\n .amount(UPDATED_AMOUNT)\n// .experience(UPDATED_EXPERIENCE)\n// .commitment(UPDATED_COMMITMENT)\n// .type(UPDATED_TYPE)\n// .category(UPDATED_CATEGORY)\n// .keywords(UPDATED_KEYWORDS)\n .permission(UPDATED_PERMISSION)\n .expiryDate(UPDATED_EXPIRES);\n return bounty;\n }", "public static Articulo createUpdatedEntity(EntityManager em) {\n Articulo articulo = new Articulo()\n .titulo(UPDATED_TITULO)\n .contenido(UPDATED_CONTENIDO)\n .fechaCreacion(UPDATED_FECHA_CREACION);\n return articulo;\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 }", "public static GoodsReceiptDetails createUpdatedEntity(EntityManager em) {\n GoodsReceiptDetails goodsReceiptDetails = new GoodsReceiptDetails()\n .grnQty(UPDATED_GRN_QTY);\n return goodsReceiptDetails;\n }", "public static Emprunt createUpdatedEntity(EntityManager em) {\n Emprunt emprunt = new Emprunt()\n .dateEmprunt(UPDATED_DATE_EMPRUNT);\n return emprunt;\n }", "public static AnnotationType createUpdatedEntity() {\n return new AnnotationType()\n .name(UPDATED_NAME)\n .label(UPDATED_LABEL)\n .description(UPDATED_DESCRIPTION)\n .emotional(UPDATED_EMOTIONAL)\n .weight(UPDATED_WEIGHT)\n .color(UPDATED_COLOR)\n .projectId(DEFAULT_PROJECT_ID);\n }", "public static Invoice createUpdatedEntity(EntityManager em) {\n Invoice invoice = new Invoice()\n .companyName(UPDATED_COMPANY_NAME)\n .userName(UPDATED_USER_NAME)\n .userLastName(UPDATED_USER_LAST_NAME)\n .userEmail(UPDATED_USER_EMAIL)\n .dateCreated(UPDATED_DATE_CREATED)\n .total(UPDATED_TOTAL)\n .subTotal(UPDATED_SUB_TOTAL)\n .tax(UPDATED_TAX)\n .purchaseDescription(UPDATED_PURCHASE_DESCRIPTION)\n .itemQuantity(UPDATED_ITEM_QUANTITY)\n .itemPrice(UPDATED_ITEM_PRICE);\n return invoice;\n }", "public static TypeOeuvre createUpdatedEntity(EntityManager em) {\n TypeOeuvre typeOeuvre = new TypeOeuvre()\n .intitule(UPDATED_INTITULE);\n return typeOeuvre;\n }", "public static Demand createUpdatedEntity(EntityManager em) {\n Demand demand = new Demand()\n .name(UPDATED_NAME)\n .value(UPDATED_VALUE);\n return demand;\n }", "public static Acheteur createUpdatedEntity(EntityManager em) {\n Acheteur acheteur = new Acheteur()\n .typeClient(UPDATED_TYPE_CLIENT)\n .nom(UPDATED_NOM)\n .prenom(UPDATED_PRENOM)\n .tel(UPDATED_TEL)\n .cnib(UPDATED_CNIB)\n .email(UPDATED_EMAIL)\n .adresse(UPDATED_ADRESSE)\n .numroBanquaire(UPDATED_NUMRO_BANQUAIRE)\n .deleted(UPDATED_DELETED);\n return acheteur;\n }", "T createEntity();", "public static MGachaRendition createUpdatedEntity(EntityManager em) {\n MGachaRendition mGachaRendition = new MGachaRendition()\n .mainPrefabName(UPDATED_MAIN_PREFAB_NAME)\n .resultExpectedUpPrefabName(UPDATED_RESULT_EXPECTED_UP_PREFAB_NAME)\n .resultQuestionPrefabName(UPDATED_RESULT_QUESTION_PREFAB_NAME)\n .soundSwitchEventName(UPDATED_SOUND_SWITCH_EVENT_NAME);\n return mGachaRendition;\n }", "public static BII createUpdatedEntity() {\n BII bII = new BII()\n .name(UPDATED_NAME)\n .type(UPDATED_TYPE)\n .biiId(UPDATED_BII_ID)\n .detectionTimestamp(UPDATED_DETECTION_TIMESTAMP)\n .sourceId(UPDATED_SOURCE_ID)\n .detectionSystemName(UPDATED_DETECTION_SYSTEM_NAME)\n .detectedValue(UPDATED_DETECTED_VALUE)\n .detectionContext(UPDATED_DETECTION_CONTEXT)\n .etc(UPDATED_ETC)\n .etcetc(UPDATED_ETCETC);\n return bII;\n }", "E create(E entity);", "E create(E entity);", "public static EnrollmentDate createUpdatedEntity(EntityManager em) {\n EnrollmentDate enrollmentDate = new EnrollmentDate()\n .name(UPDATED_NAME)\n .isPreEnrollment(UPDATED_IS_PRE_ENROLLMENT)\n .startDate(UPDATED_START_DATE)\n .endDate(UPDATED_END_DATE);\n // Add required entity\n Semester semester;\n if (TestUtil.findAll(em, Semester.class).isEmpty()) {\n semester = SemesterResourceIT.createUpdatedEntity(em);\n em.persist(semester);\n em.flush();\n } else {\n semester = TestUtil.findAll(em, Semester.class).get(0);\n }\n enrollmentDate.setSemester(semester);\n return enrollmentDate;\n }", "public static Posicion createUpdatedEntity(EntityManager em) {\n Posicion posicion = new Posicion()\n .titulo(UPDATED_TITULO)\n .descripcion(UPDATED_DESCRIPCION)\n .numeroPuestos(UPDATED_NUMERO_PUESTOS)\n .salarioMinimo(UPDATED_SALARIO_MINIMO)\n .salarioMaximo(UPDATED_SALARIO_MAXIMO)\n .fechaAlta(UPDATED_FECHA_ALTA)\n .fechaNecesidad(UPDATED_FECHA_NECESIDAD);\n return posicion;\n }", "@Test\n void updateSuccess () {\n TestEntity testEntity = buildEntity();\n Api2 instance = new Api2();\n Long result = instance.save(testEntity);\n\n String name = \"Edited name\";\n boolean check = false;\n String description = \"edited description\";\n\n if (result != null) {\n testEntity.setName(name);\n testEntity.setCheck(check);\n testEntity.setDescription(description);\n instance.update(testEntity);\n\n Optional<TestEntity> optionalTestEntity = instance.getById(TestEntity.class, testEntity.getId());\n assertTrue(optionalTestEntity.isPresent());\n\n if (optionalTestEntity.isPresent()) {\n TestEntity entity = optionalTestEntity.get();\n\n assertEquals(entity.getName(), name);\n assertEquals(entity.getDescription(), description);\n assertEquals(entity.isCheck(), check);\n } else {\n fail();\n }\n } else {\n fail();\n }\n }", "public static Poen createUpdatedEntity(EntityManager em) {\n Poen poen = new Poen()\n .tip(UPDATED_TIP);\n return poen;\n }", "public static OrderDetailInfo createUpdatedEntity(EntityManager em) {\n OrderDetailInfo orderDetailInfo = new OrderDetailInfo()\n .productName(UPDATED_PRODUCT_NAME)\n .priceProduct(UPDATED_PRICE_PRODUCT)\n .quantityOrder(UPDATED_QUANTITY_ORDER)\n .amount(UPDATED_AMOUNT)\n .orderDate(UPDATED_ORDER_DATE);\n return orderDetailInfo;\n }", "public static ProcessExecution createUpdatedEntity(EntityManager em) {\n ProcessExecution processExecution = new ProcessExecution()\n .execution(UPDATED_EXECUTION);\n return processExecution;\n }", "public static Incident createUpdatedEntity(EntityManager em) {\n Incident incident = new Incident()\n .title(UPDATED_TITLE)\n .risk(UPDATED_RISK)\n .notes(UPDATED_NOTES);\n return incident;\n }", "public static Territorio createUpdatedEntity(EntityManager em) {\n Territorio territorio = new Territorio().nome(UPDATED_NOME);\n return territorio;\n }", "public static Invite createUpdatedEntity(EntityManager em) {\n Invite invite = new Invite()\n .nom(UPDATED_NOM)\n .prenom(UPDATED_PRENOM)\n .mail(UPDATED_MAIL)\n .mdp(UPDATED_MDP)\n .login(UPDATED_LOGIN)\n .points(UPDATED_POINTS);\n return invite;\n }", "public static DataModel createUpdatedEntity(EntityManager em) {\n DataModel dataModel = new DataModel()\n .key(UPDATED_KEY)\n .label(UPDATED_LABEL)\n .dataFormat(UPDATED_DATA_FORMAT)\n .maxLength(UPDATED_MAX_LENGTH)\n .precision(UPDATED_PRECISION)\n .modelValues(UPDATED_MODEL_VALUES);\n return dataModel;\n }", "void create(T entity);", "public static Horaire createUpdatedEntity(EntityManager em) {\n Horaire horaire = new Horaire()\n .heureDepart(UPDATED_HEURE_DEPART)\n .heureFin(UPDATED_HEURE_FIN)\n .dateJour(UPDATED_DATE_JOUR);\n return horaire;\n }", "public static Empleado createUpdatedEntity(EntityManager em) {\n Empleado empleado = new Empleado()\n .nombre(UPDATED_NOMBRE)\n .primerApellido(UPDATED_PRIMER_APELLIDO)\n .segundoApellido(UPDATED_SEGUNDO_APELLIDO)\n .sexo(UPDATED_SEXO)\n .fechaNacimiento(UPDATED_FECHA_NACIMIENTO)\n .fechaIngreso(UPDATED_FECHA_INGRESO)\n .salario(UPDATED_SALARIO)\n .puesto(UPDATED_PUESTO)\n .estado(UPDATED_ESTADO);\n return empleado;\n }", "public static Allegato createUpdatedEntity(EntityManager em) {\n Allegato allegato = new Allegato()\n .nomeAttachment(UPDATED_NOME_ATTACHMENT)\n .algoritmoCompressione(UPDATED_ALGORITMO_COMPRESSIONE)\n .formatoAttachment(UPDATED_FORMATO_ATTACHMENT)\n .descrizioneAttachment(UPDATED_DESCRIZIONE_ATTACHMENT)\n .attachment(UPDATED_ATTACHMENT);\n return allegato;\n }", "public static NoteMaster createUpdatedEntity(EntityManager em) {\n NoteMaster noteMaster = new NoteMaster()\n .semestre(UPDATED_SEMESTRE)\n .noteCC1(UPDATED_NOTE_CC_1)\n .noteCC2(UPDATED_NOTE_CC_2)\n .noteFinal(UPDATED_NOTE_FINAL)\n .date(UPDATED_DATE);\n return noteMaster;\n }", "public static TaskExecution createUpdatedEntity(EntityManager em) {\n TaskExecution taskExecution = new TaskExecution()\n .jobOrderTimestamp(UPDATED_JOB_ORDER_TIMESTAMP)\n .taskExecutionStatus(UPDATED_TASK_EXECUTION_STATUS)\n .taskExecutionStartTimestamp(UPDATED_TASK_EXECUTION_START_TIMESTAMP)\n .taskExecutionEndTimestamp(UPDATED_TASK_EXECUTION_END_TIMESTAMP);\n return taskExecution;\n }", "void create(E entity);", "public static EventAttendance createUpdatedEntity(EntityManager em) {\n EventAttendance eventAttendance = new EventAttendance()\n .attendanceDate(UPDATED_ATTENDANCE_DATE);\n return eventAttendance;\n }", "public static WorkPlace createUpdatedEntity(EntityManager em) {\n WorkPlace workPlace = new WorkPlace()\n .doctorIdpCode(UPDATED_DOCTOR_IDP_CODE)\n .name(UPDATED_NAME)\n .locationName(UPDATED_LOCATION_NAME)\n .location(UPDATED_LOCATION);\n return workPlace;\n }", "public static Fornecedor createUpdatedEntity(EntityManager em) {\n Fornecedor fornecedor = new Fornecedor()\n .tipo(UPDATED_TIPO)\n .cpf(UPDATED_CPF)\n .cnpj(UPDATED_CNPJ)\n .primeiroNome(UPDATED_PRIMEIRO_NOME)\n .nomeMeio(UPDATED_NOME_MEIO)\n .sobreNome(UPDATED_SOBRE_NOME)\n .saudacao(UPDATED_SAUDACAO)\n .titulo(UPDATED_TITULO)\n .cep(UPDATED_CEP)\n .tipoLogradouro(UPDATED_TIPO_LOGRADOURO)\n .nomeLogradouro(UPDATED_NOME_LOGRADOURO)\n .complemento(UPDATED_COMPLEMENTO);\n return fornecedor;\n }", "public Entity newEntity() { return newMyEntity(); }", "public Entity newEntity() { return newMyEntity(); }", "public static Transaction createUpdatedEntity(EntityManager em) {\n Transaction transaction = new Transaction()\n .date(UPDATED_DATE);\n return transaction;\n }", "public static Author createUpdatedEntity(EntityManager em) {\n Author author = new Author()\n .firstName(UPDATED_FIRST_NAME)\n .lastName(UPDATED_LAST_NAME);\n return author;\n }", "public static IndActivation createUpdatedEntity(EntityManager em) {\n IndActivation indActivation = new IndActivation()\n .name(UPDATED_NAME)\n .activity(UPDATED_ACTIVITY)\n .customerId(UPDATED_CUSTOMER_ID)\n .individualId(UPDATED_INDIVIDUAL_ID);\n return indActivation;\n }", "public void updateEntity();", "public EntityType initUpdateEntity(DtoType dto) throws ClassNotFoundException, IllegalArgumentException, IllegalAccessException;", "public static MQuestSpecialReward createUpdatedEntity(EntityManager em) {\n MQuestSpecialReward mQuestSpecialReward = new MQuestSpecialReward()\n .groupId(UPDATED_GROUP_ID)\n .weight(UPDATED_WEIGHT)\n .rank(UPDATED_RANK)\n .contentType(UPDATED_CONTENT_TYPE)\n .contentId(UPDATED_CONTENT_ID)\n .contentAmount(UPDATED_CONTENT_AMOUNT);\n return mQuestSpecialReward;\n }", "protected abstract EntityBase createEntity() throws Exception;", "public static Sectie createUpdatedEntity(EntityManager em) {\n Sectie sectie = new Sectie()\n .sectieId(UPDATED_SECTIE_ID)\n .nume(UPDATED_NUME)\n .sefId(UPDATED_SEF_ID)\n .tag(UPDATED_TAG)\n .nrPaturi(UPDATED_NR_PATURI);\n return sectie;\n }", "public static RolEmpleado createUpdatedEntity(EntityManager em) {\n RolEmpleado rolEmpleado = new RolEmpleado();\n return rolEmpleado;\n }", "public static ExUser createUpdatedEntity(EntityManager em) {\n ExUser exUser = new ExUser()\n .userKey(UPDATED_USER_KEY);\n return exUser;\n }", "public static ConceptDataType createUpdatedEntity(EntityManager em) {\n ConceptDataType conceptDataType = new ConceptDataType()\n .uuid(UPDATED_UUID)\n .name(UPDATED_NAME)\n .hl7Abbreviation(UPDATED_HL_7_ABBREVIATION)\n .description(UPDATED_DESCRIPTION);\n return conceptDataType;\n }", "public static Info createUpdatedEntity(EntityManager em) {\n Info info = new Info()\n .nom(UPDATED_NOM)\n .prenom(UPDATED_PRENOM)\n .etablissement(UPDATED_ETABLISSEMENT);\n return info;\n }", "public static Dishestype createUpdatedEntity(EntityManager em) {\n Dishestype dishestype = new Dishestype()\n .name(UPDATED_NAME)\n .state(UPDATED_STATE)\n .creator(UPDATED_CREATOR)\n .createdate(UPDATED_CREATEDATE)\n .modifier(UPDATED_MODIFIER)\n .modifierdate(UPDATED_MODIFIERDATE)\n .modifiernum(UPDATED_MODIFIERNUM)\n .logicdelete(UPDATED_LOGICDELETE)\n .other(UPDATED_OTHER);\n return dishestype;\n }", "public static UserDetails createUpdatedEntity(EntityManager em) {\n UserDetails userDetails = new UserDetails()\n .studentCardNumber(UPDATED_STUDENT_CARD_NUMBER)\n .name(UPDATED_NAME)\n .surname(UPDATED_SURNAME)\n .telephoneNumber(UPDATED_TELEPHONE_NUMBER)\n .studyYear(UPDATED_STUDY_YEAR)\n .faculty(UPDATED_FACULTY)\n .fieldOfStudy(UPDATED_FIELD_OF_STUDY);\n return userDetails;\n }", "public static QueryData createUpdatedEntity(EntityManager em) {\n QueryData queryData = new QueryData()\n .dataValue(UPDATED_DATA_VALUE);\n return queryData;\n }", "E update(E entity);", "E update(E entity);", "public static Pessoa createUpdatedEntity(EntityManager em) {\n Pessoa pessoa = new Pessoa()\n .nome(UPDATED_NOME)\n .email(UPDATED_EMAIL)\n .telefone(UPDATED_TELEFONE)\n .dataNascimento(UPDATED_DATA_NASCIMENTO)\n .cadastro(UPDATED_CADASTRO);\n return pessoa;\n }", "public static Source createUpdatedEntity(EntityManager em) {\n Source source = new Source()\n .idGloden(UPDATED_ID_GLODEN)\n .name(UPDATED_NAME)\n .description(UPDATED_DESCRIPTION)\n .updateDate(UPDATED_UPDATE_DATE)\n .creationDate(UPDATED_CREATION_DATE);\n return source;\n }", "public static InventoryProvider createUpdatedEntity(EntityManager em) {\n InventoryProvider inventoryProvider = new InventoryProvider()\n .idInventoryProvider(UPDATED_ID_INVENTORY_PROVIDER)\n .code(UPDATED_CODE)\n .name(UPDATED_NAME)\n .price(UPDATED_PRICE)\n .cuantity(UPDATED_CUANTITY);\n return inventoryProvider;\n }", "public static Userextra createUpdatedEntity(EntityManager em) {\n Userextra userextra = new Userextra().accountype(UPDATED_ACCOUNTYPE);\n // Add required entity\n User user = UserResourceIT.createEntity(em);\n em.persist(user);\n em.flush();\n userextra.setUser(user);\n return userextra;\n }", "void create(T entity) throws Exception;", "public static ListWrkStatus createUpdatedEntity(EntityManager em) {\n ListWrkStatus listWrkStatus = new ListWrkStatus()\n .code(UPDATED_CODE)\n .name(UPDATED_NAME)\n .fullName(UPDATED_FULL_NAME)\n .isCurrentFlag(UPDATED_IS_CURRENT_FLAG)\n .description(UPDATED_DESCRIPTION)\n .dateCreate(UPDATED_DATE_CREATE)\n .dateEdit(UPDATED_DATE_EDIT)\n .creator(UPDATED_CREATOR)\n .editor(UPDATED_EDITOR);\n // Add required entity\n ListWrkKind listWrkKind;\n if (TestUtil.findAll(em, ListWrkKind.class).isEmpty()) {\n listWrkKind = ListWrkKindResourceIT.createUpdatedEntity(em);\n em.persist(listWrkKind);\n em.flush();\n } else {\n listWrkKind = TestUtil.findAll(em, ListWrkKind.class).get(0);\n }\n listWrkStatus.setIdWrkKind(listWrkKind);\n return listWrkStatus;\n }", "public static DoctorAssistant createUpdatedEntity(EntityManager em) {\n DoctorAssistant doctorAssistant = new DoctorAssistant()\n .canPrescribe(UPDATED_CAN_PRESCRIBE);\n return doctorAssistant;\n }", "public static Kpi createUpdatedEntity(EntityManager em) {\n Kpi kpi = new Kpi()\n .title(UPDATED_TITLE)\n .reward(UPDATED_REWARD)\n .rewardDistribution(UPDATED_REWARD_DISTRIBUTION)\n .gradingProcess(UPDATED_GRADING_PROCESS)\n .active(UPDATED_ACTIVE)\n .purpose(UPDATED_PURPOSE)\n .scopeOfWork(UPDATED_SCOPE_OF_WORK)\n .rewardDistributionInfo(UPDATED_REWARD_DISTRIBUTION_INFO)\n .reporting(UPDATED_REPORTING)\n .fiatPoolFactor(UPDATED_FIAT_POOL_FACTOR)\n .grading(UPDATED_GRADING);\n return kpi;\n }", "private FailingEntity createFailingEntity() {\n FailingEntity entity = app.createAndManageChild(EntitySpec.create(FailingEntity.class)\n .configure(FailingEntity.FAIL_ON_START, true));\n return entity;\n }", "public static Location createUpdatedEntity(EntityManager em) {\n Location location = new Location()\n .name(UPDATED_NAME)\n .latitude(UPDATED_LATITUDE)\n .longitude(UPDATED_LONGITUDE)\n .details(UPDATED_DETAILS)\n .activated(UPDATED_ACTIVATED);\n return location;\n }", "public static ModePassation createUpdatedEntity(EntityManager em) {\n ModePassation modePassation = new ModePassation()\n .libelle(UPDATED_LIBELLE)\n .code(UPDATED_CODE)\n .description(UPDATED_DESCRIPTION);\n return modePassation;\n }", "public static Favorite createUpdatedEntity(EntityManager em) {\n Favorite favorite = new Favorite();\n return favorite;\n }", "public static TipoObra createUpdatedEntity(EntityManager em) {\n TipoObra tipoObra = new TipoObra().descripcion(UPDATED_DESCRIPCION);\n return tipoObra;\n }", "public static LifeConstantUnit createUpdatedEntity(EntityManager em) {\n LifeConstantUnit lifeConstantUnit = new LifeConstantUnit()\n .name(UPDATED_NAME)\n .description(UPDATED_DESCRIPTION);\n return lifeConstantUnit;\n }", "public static Timbre createUpdatedEntity(EntityManager em) {\n Timbre timbre = new Timbre().timbre(UPDATED_TIMBRE);\n return timbre;\n }", "public static UserExtra createUpdatedEntity(EntityManager em) {\n UserExtra userExtra = new UserExtra().currentParkingSpot(UPDATED_CURRENT_PARKING_SPOT).timeOfParking(UPDATED_TIME_OF_PARKING);\n return userExtra;\n }", "public static MChallengeQuestWorld createUpdatedEntity(EntityManager em) {\n MChallengeQuestWorld mChallengeQuestWorld = new MChallengeQuestWorld()\n .setId(UPDATED_SET_ID)\n .number(UPDATED_NUMBER)\n .name(UPDATED_NAME)\n .imagePath(UPDATED_IMAGE_PATH)\n .backgroundImagePath(UPDATED_BACKGROUND_IMAGE_PATH)\n .description(UPDATED_DESCRIPTION)\n .stageUnlockPattern(UPDATED_STAGE_UNLOCK_PATTERN)\n .arousalBanner(UPDATED_AROUSAL_BANNER)\n .specialRewardContentType(UPDATED_SPECIAL_REWARD_CONTENT_TYPE)\n .specialRewardContentId(UPDATED_SPECIAL_REWARD_CONTENT_ID)\n .isEnableCoop(UPDATED_IS_ENABLE_COOP);\n return mChallengeQuestWorld;\n }", "public static TypeIntervention createUpdatedEntity(EntityManager em) {\n TypeIntervention typeIntervention = new TypeIntervention()\n .libelle(UPDATED_LIBELLE);\n return typeIntervention;\n }", "public static ItemSubstitution createEntity(EntityManager em) {\n ItemSubstitution itemSubstitution = new ItemSubstitution()\n .timestamp(DEFAULT_TIMESTAMP)\n .type(DEFAULT_TYPE)\n .substituteType(DEFAULT_SUBSTITUTE_TYPE)\n .substituteNo(DEFAULT_SUBSTITUTE_NO)\n .description(DEFAULT_DESCRIPTION)\n .isInterchangeable(DEFAULT_IS_INTERCHANGEABLE)\n .relationsLevel(DEFAULT_RELATIONS_LEVEL)\n .isCheckedToOriginal(DEFAULT_IS_CHECKED_TO_ORIGINAL)\n .origCheckDate(DEFAULT_ORIG_CHECK_DATE);\n // Add required entity\n Item item;\n if (TestUtil.findAll(em, Item.class).isEmpty()) {\n item = ItemResourceIT.createEntity(em);\n em.persist(item);\n em.flush();\n } else {\n item = TestUtil.findAll(em, Item.class).get(0);\n }\n itemSubstitution.getItems().add(item);\n return itemSubstitution;\n }", "public void createNewObject(Representation entity) throws ResourceException {\r\n\t\tT entry = createObjectFromHeaders(null, entity);\r\n\t\texecuteUpdate(entity, entry, createUpdateObject(entry));\r\n\r\n\t}", "public static Category createUpdatedEntity(EntityManager em) {\n Category category = new Category()\n .label(UPDATED_LABEL)\n .primaryColor(UPDATED_PRIMARY_COLOR)\n .secondaryColor(UPDATED_SECONDARY_COLOR);\n // Add required entity\n User user = UserResourceIT.createEntity(em);\n em.persist(user);\n em.flush();\n category.setOwner(user);\n return category;\n }", "public static TestEntity createEntity(EntityManager em) {\n TestEntity testEntity = new TestEntity();\n // Add required entity\n User user = UserResourceIntTest.createEntity(em);\n em.persist(user);\n em.flush();\n testEntity.setUserOneToMany(user);\n return testEntity;\n }", "public static Course createUpdatedEntity(EntityManager em) {\n Course course = new Course()\n .title(UPDATED_TITLE)\n .description(UPDATED_DESCRIPTION)\n .courseStartDate(UPDATED_COURSE_START_DATE)\n .courseEndDate(UPDATED_COURSE_END_DATE)\n .registerStartDate(UPDATED_REGISTER_START_DATE)\n .registerEndDate(UPDATED_REGISTER_END_DATE)\n .duration(UPDATED_DURATION)\n .maximumNumberOfParticipants(UPDATED_MAXIMUM_NUMBER_OF_PARTICIPANTS)\n .minimalNumberOfParticipants(UPDATED_MINIMAL_NUMBER_OF_PARTICIPANTS)\n .lecturerName(UPDATED_LECTURER_NAME)\n .lecturerSurname(UPDATED_LECTURER_SURNAME)\n .pointPerCourse(UPDATED_POINT_PER_COURSE)\n .isVisibleInApp(UPDATED_IS_VISIBLE_IN_APP);\n return course;\n }" ]
[ "0.6943836", "0.6788255", "0.6786641", "0.67172986", "0.6693327", "0.66913915", "0.6663769", "0.6636127", "0.6620307", "0.65142477", "0.6509136", "0.64467573", "0.6422512", "0.6420476", "0.6419049", "0.6413755", "0.64120173", "0.6408185", "0.6403095", "0.63928974", "0.63896406", "0.63878655", "0.6380415", "0.63608766", "0.6341814", "0.63412535", "0.6329314", "0.632265", "0.6317988", "0.6310996", "0.62986803", "0.6274452", "0.6270122", "0.6268554", "0.62630236", "0.6260685", "0.6255407", "0.6255137", "0.6255137", "0.62367606", "0.62262136", "0.6181443", "0.61767143", "0.61722946", "0.61653244", "0.6162088", "0.615613", "0.613528", "0.61333597", "0.61287", "0.61237895", "0.61170983", "0.6116165", "0.6115564", "0.61154187", "0.6114387", "0.6101194", "0.61010766", "0.6089736", "0.60847205", "0.60847205", "0.6073194", "0.6067153", "0.60630757", "0.60601634", "0.6052779", "0.60477465", "0.6045455", "0.6045264", "0.6031801", "0.6028874", "0.6024296", "0.6022771", "0.601292", "0.60100853", "0.6005368", "0.6001686", "0.6001686", "0.5995377", "0.59865004", "0.59805375", "0.59767056", "0.5969427", "0.5965351", "0.59649086", "0.5962135", "0.5951734", "0.59470975", "0.59436506", "0.59433794", "0.5940975", "0.5937954", "0.59363127", "0.59342957", "0.59323484", "0.59230715", "0.59193313", "0.5914282", "0.590985", "0.59093046", "0.5908917" ]
0.0
-1
interface methods are public as default
double getPerimeter();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object _get_interface()\n {\n throw new NO_IMPLEMENT(reason);\n }", "public void interfaceMethod() {\n\t\tSystem.out.println(\"overriden method from interface\");\t\t\r\n\t}", "interface Interface1 {\n\n\tdefault void add() {\n\t\tSystem.out.println(\"Interface1 add method\");\n\t}\n\n\tdefault void display() {\n\t\tSystem.out.println(\"Interface1 display\");\n\t}\n\n\t//static methods can be invoked only using InterfaceName.methodName\n\tstatic void print() {\n\t\tSystem.out.println(\"Interface1 print\");\n\t}\n\n\tstatic void printV2() {\n\t\tSystem.out.println(\"Interface1 printV2\");\n\t}\n}", "private static interface Base {\n\n public void foo();\n }", "public interface i {\n}", "default void defaultMethod() {\n System.out.println(\"from InterfaceA, default method...\");\n }", "@Override\n public boolean isInterface() { return false; }", "public default void defaultMethod(){\r\n System.out.println(\"This is a method from Other Interface and can be overriden.\");\r\n }", "interface I{\n\n public void m1();\n public void m2();\n default void m3(){\n System.out.println(\"Default methods in interface\");\n }\n}", "public interface A {\n default void oi(){\n System.out.println(\"Dentro do oi de A\");\n }\n}", "public interface InterfaceA {\n\n\tpublic void methodFromInterfaceA();\n\n\t// Before Java 8, the interface only contains method signatures. \n\t// With Java 8 new feature Default Methods or Defender Methods, \n\t// you can include method body within the interface.\n\tdefault void defaultMethod() {\n System.out.println(\"from InterfaceA, default method...\");\n }\n\t\n\tstatic void someStaticMethod() {\n System.out.println(\"from InterfaceA static method...\");\n }\n\t\n\t/*\n\t * Why do we need to implement a method within the interface?\n\t * \n * Let's say you have an interface which has multiple methods, \n * and multiple classes are implementing this interface. One \n * of the method implementations can be common across the classes, \n * we can make that method as a default method, so that the \n * implementation is common for all classes.\n *\n * How to work with existing interfaces?\n * \n\t * Second scenario where you have already existing application, \n\t * for a new requirement we have to add a method to the existing \n\t * interface. If we add new method then we need to implement it \n\t * through out the implementation classes. By using the Java 8 \n\t * default method we can add a default implementation of that \n\t * method which resolves the problem.\n\t */\n}", "default void display1(){\n\t\tSystem.out.println(\"Default Method inside interface\");\n\t}", "public interface IUserService {\n\n static void test(){\n System.out.println(123);\n }\n\n default void teset1(String name){\n System.out.println(name);\n }\n\n int a = 0;\n\n}", "public interface Pasticcere {\r\n //No attributes\r\n public void accendiForno();\r\n}", "public interface a {\n void a();\n }", "public interface a {\n void a();\n }", "interface Sample {\n\tvoid method(String a);\n\t// New in Java 1.8 - default interface methods\n\tdefault void method_default() {\n\t System.out.println(\"Hello from default method!\");\n\t}\n }", "public void myPublicMethod() {\n\t\t\n\t}", "private void display3(){\n\t\tSystem.out.println(\"Private Method inside interface\");\n\t}", "interface InterfaceDemo {\n int age =0; //接口中变量都是公开静态常量\n String name =null;\n abstract void aa();\n\n public abstract void display(); //接口中方法都是抽象的\n}", "public interface ITestInterface {\n\t\tdefault public void sayHello() {\n\t\t\tSystem.out.println(\"Hi World!\");\n\t\t}\n\t}", "interface TestInterface1\n{\n // default method\n default void show()\n {\n System.out.println(\"Default TestInterface1\");\n }\n \n public static void show2()\n {\n System.out.println(\"Default TestInterface2\");\n }\n}", "public interface IPresenterHienThiSanPhamTheoDanhMuc {\n void LayDanhSachSP_theoMaLoai(int masp,boolean kiemtra);\n}", "interface I {}", "interface I4 {\n public default void m1() { // <- Modifier 'public' is redundant for interface methods\n System.out.println(\"I4.m1()\");\n } // public is redundant\n\n /**\n * it is public, but NOT abstract (error: Illegal combination of modifiers: 'abstract' and 'default')\n */\n default void m2() {\n System.out.println(\"I4.m2()\");\n }\n}", "public interface IBibliotheque {\n\t// Start of user code (user defined attributes for IBibliotheque)\n\n\t// End of user code\n\n\t/**\n\t * Description of the method listeDesEmpruntsEnCours.\n\t */\n\tpublic void listeDesEmpruntsEnCours();\n\n\t// Start of user code (user defined methods for IBibliotheque)\n\n\t// End of user code\n\n}", "public interface IMy extends IA, IB{\n int a = 10;\n int []b = {1,2,3,4,5,6,7};\n\n void m();\n static void sm(){\n System.out.println(\"hi from static method\");\n }\n default void dm(){\n System.out.println(\"hi from default method\");\n }\n}", "public interface AInterface {\n\n public void say();\n\n}", "public interface IEstado {\n\n /**\n * Modifica el estado del objeto publicacion\n *\n * @return String\n */\n String ejecutarAccion();\n}", "interface TakesScreenshot{\n\tString $FILE_EXTENSION=\".png\"; //COMPILER ADDs 'public static final' automatically \t\n\tvoid takesScreenshot();\n\t//added from jdk 1.8\nstatic void takeSelfie() {\n\t\tSystem.out.println(\"I am defined static method of TakesScreenshot interface\");\n\t}\ndefault void takePictures() {\n\t\tSystem.out.println(\"I am default defined method of TakesScreenshot interface\");\n\t}\n}", "interface C34503a {\n void bMl();\n }", "public interface C22486a {\n void bGQ();\n\n void cMy();\n }", "public interface zzo\n extends IInterface\n{\n\n public abstract void zze(AdRequestParcel adrequestparcel);\n}", "public interface IDeneme {\n \n void dene();\n}", "interface A {\n void a();\n}", "public void method_1()\n {\n System.out.println(\"Interface method.\");\n }", "interface InWriter { // In interface class, all methods are abstract. (You can't specify the body)\n // public abstract void write(); By default all methods are public and abstract\n void write();\n}", "interface Interface1 {\n\tpublic void getA();\n\n\tpublic void printA();\n}", "public interface i {\n int a();\n\n boolean b();\n\n void c();\n}", "interface Accessible {\n // All interface variables are public static final\n int SOME_CONSTANT = 100;\n // all interface methods are automatically public\n public void methodA();\n void methodB();\n boolean methodC();\n}", "public interface IFaci {\n}", "@Override\n protected void prot() {\n }", "public interface InterfaceA {\n\n default String message() {\n return \"Message from Interface A\";\n }\n\n}", "public interface ViewBinhLuan {\n void DangBinhLuanThanhCong();\n void DangBinhLuanThatBai();\n}", "public interface MyInterface2 {\n default void hello(){\n System.out.println(\"hello again\");\n }\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "interface Printer {\n\n static void print(){\n System.out.println(\"print in interface\");\n }\n}", "public interface AnInterface {\n void f();\n\n void g();\n\n void h();\n}", "public interface C11859a {\n void bvs();\n }", "public interface Walk {\n\n public default void status() {\n System.out.println(\"Walking\");\n }\n}", "public interface Zrada\n{\n void accuse();\n}", "public interface AbstractC03680oI {\n}", "public interface Hello {\n\n String hello();\n}", "public void hello(){\n\t\tSystem.out.println(\"hello Interface\\n\");\n\t}", "public interface Playable {\n public void play(String s); //默认是public\n}", "interface InterfaceA {\n\tint a = 5;\n\tvoid show();\n\tint display();\n}", "public static interface _cls9\n{\n\n public abstract void userCancelledSignIn();\n\n public abstract void userSuccessfullySignedIn();\n}", "public interface Exposable\n{\n}", "interface InterfaceForDisplaying {\n default void displayDefault() {\n System.out.println(\"I'm a default method defined in an interface\");\n }\n\n static void displayStatic() {\n System.out.println(\"I'm a static method defined in an interface\");\n }\n\n void displayAbstract();\n}", "public interface IPresenterTinTuc {\n void layDanhSachTinTuc(String duongDan);\n TrangTinTuc layDanhSachTinTucLoadMore(String duongDan);\n}", "public interface MyInterface {\n public void m1();\n public void m2();\n public void m3();\n public void m4();\n\n}", "@Override\n public void defaultMethod() {\n I4.super.defaultMethod();\n }", "public interface i {\n void D(String str);\n\n void H();\n\n void L(String str);\n\n void b0(Response response);\n\n void c(List<DomainExpired> list);\n\n void h(Map<String, List<ExtendedMail>> map);\n\n void p(ApiError apiError);\n}", "interface Hi {\n // MUST BE IMPLEMENTED IN IMPLEMENTING CLASS!!\n void Okay(String q);\n}", "public interface Tigari {\npublic void printDetalii();\n}", "default void helloDefault() {\n\t\tSystem.out.println(\"Hello from default method definitions from Java8 within interfaces\");\n\t}", "public interface IBaseLayerList {\n /**\n * 初始化SwipeRefresh\n */\n void initSwipeRefresh();\n\n /**\n * 初始化RecycleView\n */\n void initRecycleView();\n\n /**\n * 初始化Adapter\n */\n void initAdapter();\n}", "public interface test {\n void test();\n}", "public interface C11922a {\n void bvR();\n }", "public interface Implementor {\n // 实现抽象部分需要的某些具体功能\n void operationImpl();\n}", "public interface Pracujacy {\r\n void pracuj();\r\n}", "public interface Interface {\n void doSomething();\n void somethingElse(String arg);\n}", "default void printMyName(){ // interfaces can have only 1 method type with body and have default prefix as a keyword\n System.out.println(\"My name is bla bla\");\n }", "public interface ICamera {\r\n void takePhoto(); // abstract method\r\n void changeAperture();\r\n\r\n default void takeHdrPhoto() {\r\n System.out.println(\"take 3 photos with different exposures and combine them together\");\r\n }\r\n\r\n default void shootVideo() {\r\n System.out.println(\"shooting a video\");\r\n }\r\n}", "public interface A {\n void f();\n}", "public interface ITire {\n\n /**\n * 轮胎\n */\n void tire();\n}", "public interface b {\n void a();\n }", "public interface b {\n void a();\n }", "@Override\n\tpublic void sal() {\n\t\tSystem.out.println(\"This is implemnts from HomePackage Interface.\");\n\t\t\n\t}", "public interface FlyBehevour {\n void fly();\n}", "interface A {\n\t\tvoid displayA();\n\t}", "public interface C21597a {\n }", "Interface getInterface();", "Interface getInterface();", "interface A{\n void show();\n}", "public interface b {\n int a();\n }", "@Override\r\n\tpublic void interfaceMethod() {\n\t\tSystem.out.println(\"childClass - interfaceMethod\");\r\n\t\tSystem.out.println(\"Val of variable from interface: \" + DemoInterface.val );\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "public interface IChws_wdt extends IChws, IWdt{\n\n\tpublic IRI iri();\n\n}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "public interface GetTaskInterface extends publiceviewinterface {\n void gettaskdetails(MyTaskBean myTaskBean);\n void accepttask();\n void gettaskfall();\n}", "public interface Singer {\n\n void sing();\n\n}", "public interface AbstractC2502fH1 extends IInterface {\n}", "public interface a {\n }", "public interface Hello {\n String sayHello();\n}", "public interface SampleA {\n void operation1();\n void operation2();\n}", "public interface IFruit {\n\n void say();\n}", "public interface AbstractC3386kV0 {\n boolean b();\n\n void d();\n\n void dismiss();\n\n ListView f();\n}", "interface Iface {\n void usedIface();\n}", "public static void display2(){\n\t\tSystem.out.println(\"Static Method inside interface\");\n\t}" ]
[ "0.70434487", "0.7009584", "0.6977159", "0.6921664", "0.6911748", "0.68813384", "0.6868949", "0.6855911", "0.6849872", "0.68433595", "0.6826731", "0.6825129", "0.6813508", "0.67912346", "0.6772135", "0.6772135", "0.6771788", "0.6768666", "0.6765575", "0.67599165", "0.6750289", "0.6738045", "0.671429", "0.67011184", "0.6676702", "0.6670279", "0.6655774", "0.66428614", "0.6606838", "0.65870035", "0.65757996", "0.656599", "0.6546713", "0.65462744", "0.65457654", "0.6536142", "0.6533782", "0.6519367", "0.6517455", "0.65069216", "0.65019906", "0.6498002", "0.64904994", "0.64784765", "0.6473387", "0.6453311", "0.64500296", "0.64430344", "0.6436603", "0.6436515", "0.6434059", "0.6421729", "0.6416815", "0.6409988", "0.640795", "0.63936", "0.63928455", "0.6388233", "0.63801664", "0.63797206", "0.6376163", "0.63727105", "0.6368523", "0.63665617", "0.6363009", "0.63616693", "0.6359818", "0.6354029", "0.63464165", "0.63442004", "0.6343144", "0.6336575", "0.6335813", "0.6335499", "0.6335429", "0.6335164", "0.6331463", "0.6331463", "0.63296217", "0.63221335", "0.632114", "0.6318013", "0.63148373", "0.63148373", "0.6311683", "0.63112855", "0.631069", "0.6310164", "0.6305983", "0.6302026", "0.6301365", "0.629891", "0.6294883", "0.62858754", "0.62856776", "0.62823004", "0.62773466", "0.6276564", "0.62688285", "0.6266932", "0.62662363" ]
0.0
-1
interface cn not be private or protected
default void printMyName(){ // interfaces can have only 1 method type with body and have default prefix as a keyword System.out.println("My name is bla bla"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface c {\n}", "public interface C0136c {\n }", "public interface bzt extends cdm {\n}", "public interface C24717ak {\n}", "public interface C22486a {\n void bGQ();\n\n void cMy();\n }", "public interface C11910c {\n}", "interface C34503a {\n void bMl();\n }", "public interface C22379d {\n}", "public interface C19588a {\n }", "public interface C0385a {\n }", "public interface C21597a {\n }", "public interface AbstractC03680oI {\n}", "public interface C32115a {\n}", "public interface C0939c {\n }", "public interface C0425p {\n}", "public interface C46409a {\n}", "public interface i {\n}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "public interface C13719g {\n}", "interface C2578d {\n}", "public interface C0020b {\n void a(String str);\n }", "public Object _get_interface()\n {\n throw new NO_IMPLEMENT(reason);\n }", "public interface AbstractC1953c50 {\n}", "public interface AccessControlled {\r\n\r\n}", "public interface C22383h {\n}", "public interface C8843g {\n}", "public interface IChws_wdt extends IChws, IWdt{\n\n\tpublic IRI iri();\n\n}", "interface I {}", "public interface C0335c {\n }", "public interface IProvider extends BaseProvider{\n}", "public interface C0069a {\n void a();\n }", "@Override\n protected void prot() {\n }", "private void display3(){\n\t\tSystem.out.println(\"Private Method inside interface\");\n\t}", "public interface C3183a {\n}", "public interface AbstractC2502fH1 extends IInterface {\n}", "public interface C9222a {\n }", "public interface C11922a {\n void bvR();\n }", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "public interface C0333a {\n }", "public interface C3803p {\n void mo4312a(C3922o c3922o);\n}", "public interface Pasticcere {\r\n //No attributes\r\n public void accendiForno();\r\n}", "public interface C8482e {\n}", "public interface IMcuContract {\n interface IView extends ImpBaseView{\n void loginRes(Type type);\n }\n interface IPresenter extends ImpBasePresenter{\n IPresenter initURL(Context c, String ip, int port, boolean isSSL);\n void login(String account,String pwd);\n }\n}", "public interface C0938b {\n }", "@Override\n public boolean isInterface() { return false; }", "public interface SecurityMechanism extends EObject {\r\n}", "public interface C0389gj extends C0388gi {\n}", "public interface C43157d extends C1677a {\n}", "public interface C9223b {\n }", "public interface Comunicator {\n \n\n}", "public interface IBibliotheque {\n\t// Start of user code (user defined attributes for IBibliotheque)\n\n\t// End of user code\n\n\t/**\n\t * Description of the method listeDesEmpruntsEnCours.\n\t */\n\tpublic void listeDesEmpruntsEnCours();\n\n\t// Start of user code (user defined methods for IBibliotheque)\n\n\t// End of user code\n\n}", "@Override\n\tpublic void implements_(JDefinedClass cls) {\n\n\t}", "public interface c {\n String a(String str);\n}", "public interface IFaci {\n}", "private static interface Base {\n\n public void foo();\n }", "public interface a {\n }", "public interface C31889b {\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}", "public interface Zrada\n{\n void accuse();\n}", "public interface C1279b extends C1278a {\n}", "public interface IUserInfoScm {\n\n}", "public interface Understandability extends Usability {\n}", "public interface C1372b {\n}", "public interface C11859a {\n void bvs();\n }", "public interface IPresenterHienThiSanPhamTheoDanhMuc {\n void LayDanhSachSP_theoMaLoai(int masp,boolean kiemtra);\n}", "public interface C0764b {\n}", "public interface XModule extends ru.awk.spb.xonec.XOneC.XModule\r\n{\r\n}", "public interface RolUsuarioSessionService extends _RolUsuarioSessionService{\r\n\r\n}", "public interface TCNetworkManageInterface {\n\n public String serviceIdentifier();\n\n public String apiClassPath();\n\n public String apiMethodName();\n}", "public interface b {\n}", "public interface b {\n}", "public interface AbstractC0386gl {\n}", "public interface C3222n extends IInterface {\n /* renamed from: a */\n void mo13025a() throws RemoteException;\n\n /* renamed from: b */\n void mo13026b() throws RemoteException;\n}", "interface ccf {\n void a();\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public interface IEstado {\n\n /**\n * Modifica el estado del objeto publicacion\n *\n * @return String\n */\n String ejecutarAccion();\n}", "public interface LizaCow extends Cow {\n\n}", "public ItsNatImpl()\r\n {\r\n }", "public interface C1250dr extends IInterface {\n /* renamed from: a */\n void mo12504a(brw brw, C0719a aVar);\n}", "public interface MDataType extends MClassifier\r\n{\r\n}", "public interface AbstractC14990nD {\n void ACi(View view);\n\n void ACk(View view);\n\n void ACo(View view);\n}", "public interface a {\n void cp(boolean z);\n }", "public interface a {\n void a();\n }", "public interface a {\n void a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "public interface AbstractC0211Dj0 {\n void a(int i);\n}", "public interface AutenticacionIBS extends AuthenticationProvider {\r\n\r\n}", "public interface IConexion\n{\n public void conectar();\n public void desconectar();\n public String getDatos(); \n}", "public interface Igual extends ComplexInstruction\n{\n}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public interface SubjectProvider {\n\n /** Implementer for å gi tilgang til pålogget bruker. (dette variere fra container til container). */ \n public String getUserIdentity();\n \n}", "public interface Citizen {\n public abstract void sayHello();\n}", "public interface Cartmanagement extends UcFindCart, UcManageCart {\n\n}", "public interface C32231g {\n /* renamed from: a */\n void mo8280a(int i, int i2, C1207m c1207m);\n}", "interface InWriter { // In interface class, all methods are abstract. (You can't specify the body)\n // public abstract void write(); By default all methods are public and abstract\n void write();\n}", "public interface AbstractC61422t9 {\n void AJZ(C61072sS v);\n}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public interface C0984b extends C0983a {\n}", "interface ws$i extends ws$n {\n boolean b();\n\n String c();\n}", "public interface BInf {\n\n void hello();\n\n}" ]
[ "0.6614813", "0.6572396", "0.6551373", "0.6538282", "0.6520759", "0.65044075", "0.64880633", "0.6486194", "0.64219195", "0.64136946", "0.64013875", "0.6400863", "0.63810253", "0.6355512", "0.63403004", "0.63343346", "0.6323738", "0.6313451", "0.6297079", "0.6293896", "0.6266654", "0.62376314", "0.62098175", "0.6194348", "0.6164363", "0.6140403", "0.61368346", "0.6122247", "0.6114648", "0.6114446", "0.6110149", "0.6108124", "0.61046815", "0.60980344", "0.60905355", "0.60726273", "0.6052849", "0.604219", "0.60414314", "0.6031571", "0.60243124", "0.6013117", "0.59880704", "0.596878", "0.59443885", "0.59172094", "0.5904868", "0.5895472", "0.58887386", "0.5888195", "0.5883924", "0.5882122", "0.58814526", "0.5862961", "0.5861863", "0.5860545", "0.58586645", "0.5845405", "0.58280414", "0.5827651", "0.5823091", "0.58090943", "0.5795551", "0.5793155", "0.5776773", "0.57731164", "0.5772564", "0.57646817", "0.57630897", "0.5760446", "0.5752256", "0.5752256", "0.5751386", "0.57451195", "0.5740433", "0.5734789", "0.5714682", "0.571281", "0.5707496", "0.5705601", "0.57042587", "0.5701461", "0.56997925", "0.569868", "0.569868", "0.56973046", "0.56971085", "0.56950814", "0.5690073", "0.56880933", "0.5680932", "0.5680349", "0.5676791", "0.5675754", "0.56660306", "0.56575215", "0.56571496", "0.5657124", "0.56528723", "0.56524193", "0.5649147" ]
0.0
-1
Created by minga on 7/19/2018.
@Dao public interface RecipeDao { @Query ("SELECT * FROM recipes LIMIT 1") Recipe getAnyRecipe(); @Query ("SELECT * FROM recipes") List<Recipe> getAllRecipes(); @Query ("SELECT * FROM recipes") LiveData<List<Recipe>> loadAllRecipes(); @Query ("SELECT * FROM recipes WHERE id =:rid") LiveData<Recipe> findByRecipeID(Integer rid); @Insert void insertRecipe(Recipe recipe); @Update(onConflict = OnConflictStrategy.REPLACE) void updateRecipe(Recipe recipe); @Delete void deleteRecipe(Recipe recipe); /** * Select all cheeses. * * @return A {@link Cursor} of all the cheeses in the table. */ @Query("SELECT * FROM recipes" ) Cursor selectAll(); /** * Select a cheese by the ID. * * @param id The row ID. * @return A {@link Cursor} of the selected cheese. */ @Query("SELECT * FROM recipes WHERE id = :id") Cursor selectById(Integer id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "private void poetries() {\n\n\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public void memoria() {\n \n }", "@Override\n public void init() {\n }", "@Override\n void init() {\n }", "private void m50366E() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n public void init() {}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void gored() {\n\t\t\n\t}", "@Override\n protected void init() {\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\r\n\tpublic void init() {}", "protected boolean func_70814_o() { return true; }", "private TMCourse() {\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\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "public void mo6081a() {\n }", "private MetallicityUtils() {\n\t\t\n\t}", "private void init() {\n\n\t}", "Petunia() {\r\n\t\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "public Pitonyak_09_02() {\r\n }", "@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\n\t}", "private void kk12() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "public void mo12930a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public int getSize() {\n return 1;\n }", "@Override public int describeContents() { return 0; }", "protected void mo6255a() {\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "public final void mo91715d() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n public void initialize() {\n \n }", "@Override\n\tpublic void init() {\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n public void initialize() { \n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}" ]
[ "0.6002706", "0.5820593", "0.58045673", "0.5730664", "0.56544507", "0.56544507", "0.56361616", "0.562561", "0.561364", "0.55290776", "0.5523115", "0.55153686", "0.5493734", "0.5479701", "0.5476483", "0.5473278", "0.5451371", "0.5451045", "0.54413843", "0.5433876", "0.543174", "0.5429652", "0.541784", "0.5409347", "0.5403967", "0.5400314", "0.53988844", "0.5390774", "0.5390774", "0.5390774", "0.5390774", "0.5390774", "0.5390774", "0.5387943", "0.5382672", "0.53725445", "0.53682387", "0.5363677", "0.53516024", "0.53503144", "0.533609", "0.5320346", "0.5307186", "0.5304773", "0.5304773", "0.5304773", "0.5304773", "0.5304773", "0.53012353", "0.5295235", "0.5289048", "0.52846736", "0.52846104", "0.5275971", "0.5275971", "0.5275971", "0.5275971", "0.5275971", "0.5275971", "0.5275971", "0.52750754", "0.5270472", "0.52644753", "0.5263659", "0.5263659", "0.5253558", "0.5252013", "0.5252013", "0.5251898", "0.52477473", "0.5241345", "0.52240646", "0.5214649", "0.52132267", "0.52132267", "0.52132267", "0.52056843", "0.5202663", "0.5202663", "0.5202663", "0.5197503", "0.51964235", "0.51953727", "0.51953727", "0.51921946", "0.51904404", "0.51831657", "0.5178401", "0.5175413", "0.51737773", "0.5157071", "0.51467943", "0.51437885", "0.51419216", "0.51396555", "0.51382554", "0.5136573", "0.5136573", "0.5136573", "0.51354164", "0.513461" ]
0.0
-1
Metodo que retorna a quantidade desse item.
public int getQntd() { return this.qntd; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int quantity(final T item) {\n if (items.containsKey(item)) {\n return items.get(item);\n } else {\n return 0;\n }\n }", "int getQuantity();", "long getQuantity();", "long getQuantity();", "public int getQuantidade();", "public int getQuantity();", "public Integer getQuantity();", "public int getQuantidade() {\r\n\t\treturn quantidade;\r\n\t}", "public int getItemQty() {\n return itemQty;\n }", "@Override\n\tpublic int getQuantidade() {\n\t\treturn hamburguer.getQuantidade();\n\t}", "public int getQuantite() {\r\n return quantite;\r\n }", "int getQuantite();", "int getQuantite();", "public int getQuantidade() {\r\n return quantidade;\r\n }", "public int getQuantidade() {\r\n return quantidade;\r\n }", "@Override\r\n public int getItemQuantity() {\n return this.quantity;\r\n }", "Quantity getQuantity();", "int getBuyQuantity();", "long getQuantite();", "public int getQuantidade() {\n return quantidade;\n }", "int getSellQuantity();", "public int getQuantidade() {\r\n\r\n return produtos.size();\r\n }", "public NM getNumberOfItemsPerUnit() { \r\n\t\tNM retVal = this.getTypedField(14, 0);\r\n\t\treturn retVal;\r\n }", "private int checkItemQuantity() {\n\n int desiredQuantity = initialQuantity;\n MenusItem tempItem = null;\n tempItem = ItemCart.getInstance().checkItem(menusItem);\n\n if(tempItem != null){\n desiredQuantity = tempItem.getDesiredQuantity();\n }\n\n\n return desiredQuantity;\n }", "public int getQuantity() \n\t{\n\t\treturn quantity;\n\t}", "public int howManyAvailable(Item i){/*NOT IMPLEMENTED*/return 0;}", "@Override\n\tpublic int totalItem() {\n\t\treturn 0;\n\t}", "public int getQuantity() {\r\n return quantity;\r\n }", "public int getQuantity() {\r\n return quantity;\r\n }", "public float valorTotalItem()\r\n {\r\n float total = (produto.getValor() - (produto.getValor() * desconto)) * quantidade;\r\n return total;\r\n }", "public int getQuantity()\n {\n \treturn quantity;\n }", "public int getQuantity() {\r\n\t\treturn quantity;\r\n\t}", "public int getQty() {\n return qty;\n }", "@Override\n\tpublic int getTotalItem() {\n\t\treturn 0;\n\t}", "public int getQuantity()\n {\n return quantity;\n }", "public int getQuantity() {\r\n\t\treturn this.quantity;\r\n\t}", "public int getTotalQuantity() {\n\t\treturn totalQuantity;\n\t}", "public int getQuantity()\r\n {\r\n return _quantity;\r\n }", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity(){\n\t\treturn quantity;\n\t}", "public int getQty() {\n return (isReturn ? qty * -1 : qty);\n }", "public Integer getQuantidade() { return this.quantidade; }", "public Integer getQuantity() {\r\n return this.quantity;\r\n }", "BigDecimal getQuantity();", "public Integer getQuantity() {\n return quantity;\n }", "public Integer getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n\t\treturn quantity;\n\t}", "public int getQuantity() {\n\t\treturn quantity;\n\t}", "public int getQuantity() {\n\t\treturn quantity;\n\t}", "public int getQuantity() {\n\t\treturn quantity;\n\t}", "public int getQuantity() {\n\t\treturn quantity;\n\t}", "public int getQuantity() {\n return this.quantity;\n }", "public int getQuantity() {\r\n return quantity;\r\n }", "public Integer getQuantity() {\n return this.quantity;\n }", "public long getQuantity() {\n return quantity_;\n }", "public long getQuantity() {\n return quantity_;\n }", "public Integer getQuantity() {\n return this.quantity;\n }", "public int getTotalItems()\n {\n return totalItems;\n }", "public int inventorySize (TheGroceryStore g);", "public long getQuantity() {\n return quantity_;\n }", "public long getQuantity() {\n return quantity_;\n }", "MeasureType getQuantity();", "public int getQuantity(Product p){\n int count = 0;\n for (Product i : cartContents)\n {\n if (i.getProductID().equals(p.getProductID()))\n {\n count++;\n }\n }\n return count;\n }", "public double getQuantity() {\n return quantity;\n }", "int getItemsCount();", "int getItemsCount();", "public org.hl7.fhir.Integer getQuantity()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Integer target = null;\n target = (org.hl7.fhir.Integer)get_store().find_element_user(QUANTITY$10, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public float getQuantity() {\n return quantity;\n }", "public Long getQuantity() {\r\n return quantity;\r\n }", "@Override\n\tpublic Integer getItemCount() {\n\t\t\n\t\tInteger countRows = 0;\n\t\t\n\t\t/*\n\t\t * Count of items will be retrieved from MainQuery.xml\n\t\t */\n\t\ttry {\n\t\t\tconnection = DBConnectionUtil.getDBConnection();\n\t\t\tpreparedStatement = connection.prepareStatement(QueryUtil.queryByID(CommonConstants.QUERY_ID_GET_ITEM_COUNT));\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\t\n\t\t\twhile(resultSet.next()){\n\t\t\t\tcountRows = resultSet.getInt(1);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (SQLException | SAXException | IOException | ParserConfigurationException | ClassNotFoundException e) {\n\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t} finally {\n\t\t\t/*\n\t\t\t * Close prepared statement and database connectivity at the end of transaction\n\t\t\t */\n\t\t\ttry {\n\t\t\t\tif (preparedStatement != null) {\n\t\t\t\t\tpreparedStatement.close();\n\t\t\t\t}\n\t\t\t\tif (connection != null) {\n\t\t\t\t\tconnection.close();\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn countRows;\n\t}", "@Override\n\tpublic Integer getItemCount() {\n\t\t\n\t\tInteger countRows = 0;\n\t\t\n\t\t/*\n\t\t * Count of items will be retrieved from MainQuery.xml\n\t\t */\n\t\ttry {\n\t\t\tconnection = DBConnectionUtil.getDBConnection();\n\t\t\tpreparedStatement = connection.prepareStatement(QueryUtil.queryByID(CommonConstants.QUERY_ID_GET_ITEM_COUNT));\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\t\n\t\t\twhile(resultSet.next()){\n\t\t\t\tcountRows = resultSet.getInt(1);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (SQLException | SAXException | IOException | ParserConfigurationException | ClassNotFoundException e) {\n\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t} finally {\n\t\t\t/*\n\t\t\t * Close prepared statement and database connectivity at the end of transaction\n\t\t\t */\n\t\t\ttry {\n\t\t\t\tif (preparedStatement != null) {\n\t\t\t\t\tpreparedStatement.close();\n\t\t\t\t}\n\t\t\t\tif (connection != null) {\n\t\t\t\t\tconnection.close();\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn countRows;\n\t}", "@Override\n public int summarizeQuantity() {\n int sum = 0;\n\n for ( AbstractItem element : this.getComponents() ) {\n sum += element.summarizeQuantity();\n }\n\n return sum;\n }", "public int getQuantity() { \n return myOrderQuantity;\n }", "public Long getQuantity() {\n return quantity;\n }", "public double getQuantidade() {\n return quantidade;\n }", "protected abstract long getAmount(ItemVariant currentVariant);", "public synchronized int getNumberOfItems(){\n int totalItems=0;\n \n for(ShoppingCartItem item : getItems()){\n //we sum the quantity of products for each item\n totalItems += item.getQuantity();\n }\n \n return totalItems;\n }", "int getNumItems();", "public Number getQuantity() {\n return (Number) getAttributeInternal(QUANTITY);\n }", "public java.math.BigDecimal getQty() throws java.rmi.RemoteException;", "public abstract int getAmount(Fluid fluid);", "public Integer getInterestedInItemsCount();", "protected Double getQuantity() {\n return quantity;\n }", "public int size(){\n return numItems;\n }", "public NM getPsl14_NumberOfItemsPerUnit() { \r\n\t\tNM retVal = this.getTypedField(14, 0);\r\n\t\treturn retVal;\r\n }", "public java.math.BigDecimal getQuantity() {\r\n return quantity;\r\n }", "public int getpQuantity() {\n return pQuantity;\n }", "public Integer getTotalItemCount() {\n return totalItemCount;\n }", "public int size()\r\n {\r\n return nItems;\r\n }", "public java.math.BigDecimal getQuantity() {\n return quantity;\n }", "public Float getQuantity() {\n return quantity;\n }", "public Integer getpQuantity() {\n return pQuantity;\n }", "public long getNbTotalItems() {\n return nbTotalItems;\n }", "public CQ getProductServiceQuantity() { \r\n\t\tCQ retVal = this.getTypedField(12, 0);\r\n\t\treturn retVal;\r\n }", "protected Double getQuantity(FishingActivityEntity entity) {\n if (entity == null || entity.getFaCatchs() == null) {\n return new Double(0);\n }\n\n Double quantity = new Double(0);\n Set<FaCatchEntity> faCatchList = entity.getFaCatchs();\n\n for (FaCatchEntity faCatch : faCatchList) {\n if (faCatch.getCalculatedWeightMeasure() != null)\n quantity = quantity + faCatch.getCalculatedWeightMeasure();\n\n getQuantityFromAapProduct(faCatch, quantity);\n }\n\n return quantity;\n }", "@Schema(description = \"Number of units consumed\")\n public Long getQuantity() {\n return quantity;\n }" ]
[ "0.7464345", "0.7455958", "0.7443564", "0.7443564", "0.73641145", "0.7342081", "0.733396", "0.7316613", "0.72721803", "0.72365665", "0.7229034", "0.72256494", "0.72256494", "0.7210492", "0.7210492", "0.7189485", "0.7175978", "0.7149066", "0.7145512", "0.7124729", "0.7064533", "0.7060968", "0.70359474", "0.7004239", "0.69961274", "0.6984068", "0.69788516", "0.6967657", "0.69474983", "0.69361895", "0.69265836", "0.6918785", "0.69100153", "0.6902034", "0.6886473", "0.68727195", "0.6867258", "0.6867162", "0.68662405", "0.68662405", "0.68662405", "0.68662405", "0.68662405", "0.68662405", "0.6865906", "0.68588674", "0.685782", "0.68566257", "0.6847647", "0.6833913", "0.6833913", "0.68171173", "0.68171173", "0.68171173", "0.68171173", "0.68171173", "0.6816855", "0.6807478", "0.6801868", "0.6787874", "0.6787874", "0.6772695", "0.6771782", "0.6734901", "0.67049086", "0.67049086", "0.66849375", "0.6657798", "0.66523504", "0.66480064", "0.66480064", "0.66327214", "0.6622256", "0.66213804", "0.66131085", "0.66131085", "0.65957874", "0.6581772", "0.65745693", "0.6572933", "0.6544232", "0.6543831", "0.6541266", "0.65151936", "0.6513394", "0.6509459", "0.65094113", "0.65010506", "0.64742917", "0.64671355", "0.6437318", "0.6434828", "0.6434053", "0.6426377", "0.64231557", "0.6411455", "0.63926077", "0.6388093", "0.6380154", "0.6370794", "0.6364122" ]
0.0
-1
Metodo que retorna o item.
public Item getItem() { return this.item; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T getItem() {\r\n return item;\r\n }", "public T getItem() {\n return item;\n }", "public Item getItem() { \n return myItem;\n }", "public Item getItem ()\n\t{\n\t\treturn item;\n\t}", "public T getItem() {\n\t\treturn item;\n\t}", "public T getItem() {\n\t\treturn item;\n\t}", "public Object get(String itemName);", "Identifiable item();", "public Item get(int i);", "InventoryItem getInventoryItem();", "protected ResourceReference getItem()\n\t{\n\t\treturn ITEM;\n\t}", "@Override\n public Object getItem(int arg0) {\n return getItem(arg0);\n }", "public jkt.hms.masters.business.MasStoreItem getItem () {\n\t\treturn item;\n\t}", "public T item() throws IOException, NoSuchElementException;", "public Item getItemById(Integer itemId);", "CodeableConcept getItem();", "public RepositoryItem getItem() {\n\t\t\treturn item;\n\t\t}", "public int getITEM() {\r\n return item;\r\n }", "public Item getItem() {\n return Bootstrap.getInstance().getItemRepository().fetchAll().stream()\n .filter(i -> i.getId() == this.itemId)\n .findFirst().orElse(null);\n }", "io.opencannabis.schema.commerce.OrderItem.Item getItem(int index);", "ItemStack getItem();", "@Override\n public Item get(long idItem) throws EntityNotFound;", "public Item getItem() {\n\t\treturn this.item;\n\t}", "public Item getItem() {\n\t\treturn this.item;\n\t}", "public CPRIMITIVEALTERNATIVES getItem()\n {\n return item;\n }", "public static Item getItem( ) {\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n \n\tString query = \"select * from Item\";\n\ttry {\n ps = connection.prepareStatement(query);\n\t ResultSet rs = null;\n\t rs = ps.executeQuery();\n \n\t Item item = new Item();\n \n\t if (rs.next()) {\n\t\titem.setAttribute(rs.getString(1));\n\t\titem.setItemname(rs.getString(2));\n\t\titem.setDescription(rs.getString(3));\n\t\titem.setPrice(rs.getDouble(4));\n\t }\n\t rs.close();\n\t ps.close();\n\t return item;\n\t} catch (java.sql.SQLException sql) {\n\t sql.printStackTrace();\n\t return null;\n\t}\n }", "@Override\n public Item retrieveSingleItem(int itemNo) throws VendingMachinePersistenceException {\n loadItemFile();\n return itemMap.get(itemNo);\n }", "@Override\r\n\tpublic Object getItem(int arg0) {\n\t\treturn data.get(arg0);\r\n\t}", "@Override\n public Object getItem(int arg0) {\n return list.get(arg0);\n }", "@Override\n\t\tpublic Object getItem(int arg0) {\n\t\t\treturn arg0;\n\t\t}", "public Item getItem(final String pItem){return this.aItemsList.getItem(pItem);}", "public Item getItem() {\n\t\treturn item;\n\t}", "ICpItem getCpItem();", "public Item getItem() { return this; }", "@Override\n\t\tpublic Object getItem(int arg0) {\n\t\t\treturn books.get(arg0);\n\t\t}", "@Override\n public Object getItem(int arg0) {\n return arg0;\n }", "@Override\n public Object getItem(int arg0) {\n return arg0;\n }", "@Override\n public Object getItem(int arg0) {\n return arg0;\n }", "public Item getItem(long idItem) throws ItemNotFound;", "@Override\r\n\tpublic Object getItem(int arg0) {\n\t\treturn mData.get(arg0);\r\n\t}", "@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn arg0;\n\t}", "@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn arg0;\n\t}", "@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn arg0;\n\t}", "@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn arg0;\n\t}", "public Item getItem() {\n return item;\n }", "default V get() {\n V item = orElseNull();\n if ( item == null )\n throw new IllegalArgumentException(\"No item at the targeted position!\");\n return item;\n }", "@Override\r\n\t\tpublic Item getItem() {\n\t\t\treturn null;\r\n\t\t}", "@SuppressWarnings(\"unused\")\n public Item item(final QueryContext qc) throws QueryException, IOException {\n return super.item(qc, null);\n }", "int getItem(int index);", "@Override\n public T getItemVO() {\n return this.itemVO;\n }", "@Override\n\t\tpublic Object getItem(int p1)\n\t\t\t{\n\t\t\t\treturn is.get(p1);\n\t\t\t}", "@Override\n\t\tpublic Object getItem(int arg0) {\n\t\t\treturn mRecords.get(arg0);\n\t\t}", "@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn list.get(arg0);\n\t}", "@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn list.get(arg0);\n\t}", "@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn list.get(arg0);\n\t}", "@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn list.get(arg0);\n\t}", "@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn mData.get(arg0);\n\t}", "@Override\n public Object getItem(int arg0) {\n return arg0;\n }", "public Object get(int index)\n {\n return items[index];\n }", "public Item getItem() {\n return item;\n }", "public Object getItem(int arg0) {\n\t\t\treturn data.get(arg0);\n\t\t}", "public Item getData()\r\n\t{\r\n\t\treturn theItem;\r\n\t}", "@Override\n public Object getItem(int arg0) {\n return mData.get(arg0);\n }", "public Item getItem() {\n return mItem;\n }", "public String getItem() {\r\n return item;\r\n }", "public String getItem() {\r\n\t\treturn item;\r\n\t}", "public T getNextItem();", "public SpItem getItem() {\n return _spItem;\n }", "public Item get(int i) {\n return items[i];\n }", "@Override\n\tpublic Item getItemByID(String itemId) {\n\n\t\treturn actionOnItem(itemId).get(0);\n\t}", "@Override\n\tpublic Item getItemByID(String itemId) {\n\n\t\treturn actionOnItem(itemId).get(0);\n\t}", "public Object getItem(Node itemNode) throws XmlRecipeException;", "public Object getItem(String key);", "@Override\r\n\tpublic Object getItem(int posstion) {\n\t\treturn list.get(posstion);\r\n\t}", "public Item getItem(String name) {\r\n \t\treturn persistenceManager.getItem(name);\r\n \t}", "@Nullable String pickItem();", "private ClothingItem readItem() {\n System.out.println(\"Read item {id,name,designer,price}\");\n\n BufferedReader bufferRead = new BufferedReader(new InputStreamReader(System.in));\n try {\n Long id = Long.valueOf(bufferRead.readLine());\n String name = bufferRead.readLine();\n String designer = bufferRead.readLine();\n int price = Integer.parseInt(bufferRead.readLine());\n ClothingItem item = new ClothingItem(name, designer, price);\n item.setId(id);\n\n return item;\n\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n return null;\n }", "@Override\n\tpublic ThematicItem getItem(Long id) {\n\t\treturn repository.getItem(id);\n\t}", "public native String getItem(Number index);", "@Override\n public Object getItem(int index) {\n return internalList.get(index);\n }", "public ArrayOfItem getItem() {\r\n return localItem;\r\n }", "public Item getFirst();", "@Override\n\tpublic AbstractItem getObject() {\n\t\tif(item == null) {\n\t\t\titem = new HiTechItem();\n\t\t}\n\t\treturn item;\n\t}", "public Object getItem(int arg0) {\n\t\t\treturn dataList.get(arg0);\r\n\t\t}", "public ItemType getItem() {\n\t return this.item;\n\t}", "public ItemType getItem() {\n\t return this.item;\n\t}", "@Override\r\n\tpublic Object getItem(int arg0) {\n\t\treturn mList.get(arg0);\r\n\t}", "public Item getItem(int itemId) {\n\t\treturn (Item) hashOperations.get(KEY, itemId);\n\t}", "public BoxItem.Info getItem() {\n return this.item;\n }", "private BaseItem getItemById(int id) {\n\t\tfor (BaseItem item : mItems) {\n\t\t\tif (item.mId == id) {\n\t\t\t\treturn item;\n\t\t\t}\n\t\t}\n\t\treturn getDefault();\n\t}", "public TypeHere get(int i) {\n return items[i];\n }", "private PlantZoekItem getPlantzoekItem() {\n\t\tPlantZoekItem sesiePlantZoekItem = (PlantZoekItem) Session.get().getAttribute(Constanten.PLANTZOEKITEM);\n\t\tif (null != sesiePlantZoekItem) {\n\t\t\treturn sesiePlantZoekItem;\n\t\t}\n\t\treturn new PlantZoekItem();\n\t}", "@SideOnly(Side.CLIENT)\r\n public Item getItem(World p_149694_1_, int p_149694_2_, int p_149694_3_, int p_149694_4_)\r\n {\r\n return Item.getItemFromBlock(MainRegistry.blockCampfireUnlit);\r\n }", "@Override\n public Object getItem(int arg0) {\n Log.d(TAG, \"getItem: \"+fromName.get(arg0));\n return rooms.get(arg0);\n }", "Item getItem(int index) {\r\n return new Item(this, index);\r\n }", "@Override\n public Item getItemBySlot(Integer itemSlot) {\n return dao.getItemBySlot(itemSlot);\n }", "public Object getItem(int arg0) {\n\t\t\treturn null;\n\t\t}", "@Override\n\tpublic CollectionItem getItem() {\n\t\treturn manga;\n\t}", "public E get(int index) {\r\n return items.get(index);\r\n }", "public Objects getObject(String itemName)\n {\n return items.get(itemName);\n }" ]
[ "0.77505076", "0.7730997", "0.77216756", "0.76688325", "0.763826", "0.763826", "0.7602499", "0.7447074", "0.7428767", "0.74197245", "0.7337881", "0.7331603", "0.7325243", "0.7285215", "0.72780585", "0.72427225", "0.72336614", "0.7210624", "0.7205453", "0.71822286", "0.7117756", "0.7109436", "0.7104112", "0.7104112", "0.709396", "0.70927864", "0.7082355", "0.7039163", "0.70347524", "0.7033305", "0.70193315", "0.70140207", "0.69975734", "0.6989813", "0.69872856", "0.6985392", "0.6985392", "0.6985392", "0.6977525", "0.6950501", "0.69491965", "0.69491965", "0.69491965", "0.69491965", "0.69479", "0.69466424", "0.6946406", "0.6945932", "0.6940001", "0.6934227", "0.6933408", "0.6922833", "0.69131947", "0.69131947", "0.69131947", "0.69131947", "0.6912504", "0.6908227", "0.6902221", "0.69019884", "0.68989116", "0.6886108", "0.68767554", "0.6846548", "0.6845443", "0.6825378", "0.68243575", "0.6820746", "0.68173873", "0.68027854", "0.68027854", "0.67882484", "0.6760679", "0.6738054", "0.67347217", "0.6726221", "0.67144465", "0.6707982", "0.67049044", "0.6698416", "0.669258", "0.66848624", "0.66822493", "0.66810656", "0.66702956", "0.66702956", "0.66669774", "0.6649735", "0.6648574", "0.6648513", "0.6644382", "0.66442496", "0.6644131", "0.6643664", "0.66372186", "0.66330755", "0.6628313", "0.6622569", "0.6612401", "0.66057515" ]
0.7023625
30
Metodo que aumenta a quantidade do item.
public void aumentaQntdItem(int valorAdicionado) { this.qntd += valorAdicionado; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public int getItemQuantity() {\n return this.quantity;\r\n }", "public int getItemQty() {\n return itemQty;\n }", "Items(int quantidade,Produto produto){\n\t\tqntd = quantidade;\n\t\tthis.produto = produto;\n\t\t\n\t}", "long getQuantity();", "long getQuantity();", "int getQuantity();", "public int getQuantite() {\r\n return quantite;\r\n }", "public int quantity(final T item) {\n if (items.containsKey(item)) {\n return items.get(item);\n } else {\n return 0;\n }\n }", "@Override\r\n public void ItemQuantity(int quantity) {\n this.quantity = quantity;\r\n }", "public int getQuantity();", "public int getQuantity() \n\t{\n\t\treturn quantity;\n\t}", "public int getQuantity() {\r\n\t\treturn quantity;\r\n\t}", "public Integer getQuantity();", "public int getQuantidade() {\r\n\t\treturn quantidade;\r\n\t}", "public int getQuantity() {\r\n return quantity;\r\n }", "public int getQuantity() {\r\n return quantity;\r\n }", "public int getQuantity(){\n\t\treturn quantity;\n\t}", "public int getQuantity() {\n\t\treturn quantity;\n\t}", "public int getQuantity() {\n\t\treturn quantity;\n\t}", "public int getQuantity() {\n\t\treturn quantity;\n\t}", "public int getQuantity() {\n\t\treturn quantity;\n\t}", "public int getQuantity() {\n\t\treturn quantity;\n\t}", "public int getQty() {\n return qty;\n }", "public void setQuantidade(Integer quantidade) { this.quantidade = quantidade; }", "public int getQuantity()\n {\n \treturn quantity;\n }", "public int getQuantidade() {\r\n return quantidade;\r\n }", "public int getQuantidade() {\r\n return quantidade;\r\n }", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "public int getQuantidade() {\r\n\r\n return produtos.size();\r\n }", "public int getQuantity()\n {\n return quantity;\n }", "public int getQuantity() {\r\n return quantity;\r\n }", "@Override\n\tpublic int totalItem() {\n\t\treturn 0;\n\t}", "public long getQuantity() {\n return quantity_;\n }", "public long getQuantity() {\n return quantity_;\n }", "public int getQuantidade();", "public Integer getQuantity() {\n return quantity;\n }", "public Integer getQuantity() {\n return quantity;\n }", "int getQuantite();", "int getQuantite();", "public int getQuantity() {\r\n\t\treturn this.quantity;\r\n\t}", "public long getQuantity() {\n return quantity_;\n }", "public long getQuantity() {\n return quantity_;\n }", "@Override\n\tpublic int getTotalItem() {\n\t\treturn 0;\n\t}", "public int getQuantidade() {\n return quantidade;\n }", "Quantity getQuantity();", "public int getQuantity() {\n return this.quantity;\n }", "public Integer getQuantity() {\r\n return this.quantity;\r\n }", "long getQuantite();", "public Integer getQuantity() {\n return this.quantity;\n }", "@Override\n\tpublic int getQuantidade() {\n\t\treturn hamburguer.getQuantidade();\n\t}", "private int checkItemQuantity() {\n\n int desiredQuantity = initialQuantity;\n MenusItem tempItem = null;\n tempItem = ItemCart.getInstance().checkItem(menusItem);\n\n if(tempItem != null){\n desiredQuantity = tempItem.getDesiredQuantity();\n }\n\n\n return desiredQuantity;\n }", "public Long getQuantity() {\r\n return quantity;\r\n }", "public Integer getQuantity() {\n return this.quantity;\n }", "public float getQuantity() {\n return quantity;\n }", "public double getQuantity() {\n return quantity;\n }", "public int getQuantity()\r\n {\r\n return _quantity;\r\n }", "@Schema(description = \"Number of units consumed\")\n public Long getQuantity() {\n return quantity;\n }", "public int size(){\n return numItems;\n }", "public int howManyAvailable(Item i){/*NOT IMPLEMENTED*/return 0;}", "public Long getQuantity() {\n return quantity;\n }", "public void setQuantite(int quantite) {\r\n this.quantite = quantite;\r\n }", "@Override\n public int getSize() {\n return numItems;\n }", "public NM getNumberOfItemsPerUnit() { \r\n\t\tNM retVal = this.getTypedField(14, 0);\r\n\t\treturn retVal;\r\n }", "public String getQuantity() {\n return quantity;\n }", "public Integer getQuantidade() { return this.quantidade; }", "public void setQuantity(int value) {\n this.quantity = value;\n }", "public void setQuantity(int value) {\n this.quantity = value;\n }", "public void setQuantity(int value) {\n this.quantity = value;\n }", "@Override\n public int getSize() {\n return this.numItems;\n }", "MeasureType getQuantity();", "public int getTotalQuantity() {\n\t\treturn totalQuantity;\n\t}", "int getBuyQuantity();", "BigDecimal getQuantity();", "public void setQuantidade(int quantos);", "public int size()\r\n {\r\n return nItems;\r\n }", "@Override\n public int summarizeQuantity() {\n int sum = 0;\n\n for ( AbstractItem element : this.getComponents() ) {\n sum += element.summarizeQuantity();\n }\n\n return sum;\n }", "@Override\n public int getCount() {\n return jArrayQty.length();\n }", "Items(int quantidade,String nome,double preco){\n\t\tthis.qntd=quantidade;\n\t\tthis.produto = new Produto(nome,preco);\n\t}", "int getItemsCount();", "int getItemsCount();", "public InventoryItem(){\r\n this.itemName = \"TBD\";\r\n this.sku = 0;\r\n this.price = 0.0;\r\n this.quantity = 0;\r\n nItems++;\r\n }", "public void setItemsQuantity(Integer itemsQuantity) {\r\n this.itemsQuantity = itemsQuantity;\r\n }", "int getNumItems();", "public void setQuantity(int qty) {\r\n\t\tthis.quantity = qty;\r\n\t}", "int getSellQuantity();", "public int size() {\n return nItems;\n }", "public void addItemQty(int itemQty) {\n this.itemQty += itemQty;\n }", "public Float getQuantity() {\n return quantity;\n }", "public int getTotalItems()\n {\n return totalItems;\n }", "public int size() {\n return numItems;\n }", "public int size() {\n \treturn numItems;\n }", "public ItemQuantity(Item item, int quantity) {\n this.item = item;\n this.quantity = quantity;\n }", "protected Double getQuantity() {\n return quantity;\n }", "public void setQuantity(int quantity) {\r\n this.quantity = quantity;\r\n }", "public int inventorySize (TheGroceryStore g);" ]
[ "0.73426193", "0.71180224", "0.6977984", "0.6938537", "0.6938537", "0.69382274", "0.6920022", "0.6890777", "0.6886794", "0.6886212", "0.6876964", "0.6864707", "0.6863672", "0.68617797", "0.68426335", "0.68315136", "0.6780982", "0.67624295", "0.67624295", "0.67624295", "0.67624295", "0.67624295", "0.67573154", "0.6750314", "0.674591", "0.6731682", "0.6731682", "0.6728421", "0.6728421", "0.6728421", "0.6728421", "0.6728421", "0.6728421", "0.6716493", "0.6708248", "0.6700134", "0.669952", "0.66902274", "0.66902274", "0.6685242", "0.6676137", "0.6676137", "0.6672839", "0.6672839", "0.66658586", "0.6662261", "0.6662261", "0.6639229", "0.6629079", "0.66186446", "0.6606892", "0.6605919", "0.6590979", "0.6590363", "0.6571748", "0.65545917", "0.65539885", "0.6547784", "0.6538348", "0.6537811", "0.6528447", "0.650633", "0.65051717", "0.6504641", "0.6501189", "0.6501137", "0.6491804", "0.6443759", "0.6439561", "0.64380914", "0.6430838", "0.6430838", "0.6430838", "0.6429533", "0.64252764", "0.6413145", "0.64038265", "0.6368055", "0.63658106", "0.6359857", "0.6359381", "0.6357249", "0.6351696", "0.6351629", "0.6351629", "0.63474905", "0.6342645", "0.6319433", "0.6317212", "0.6313508", "0.63105", "0.6308836", "0.6301204", "0.6282516", "0.627191", "0.62524796", "0.62369245", "0.622736", "0.6223583", "0.62123364" ]
0.6219551
99
Metodo que diminui a quantidade do item.
public void diminuiQntdItem(int valorSubtraido) { this.qntd -= valorSubtraido; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public int getItemQuantity() {\n return this.quantity;\r\n }", "Items(int quantidade,Produto produto){\n\t\tqntd = quantidade;\n\t\tthis.produto = produto;\n\t\t\n\t}", "public int getItemQty() {\n return itemQty;\n }", "public int getQuantidade() {\r\n\t\treturn quantidade;\r\n\t}", "int getQuantity();", "public int getQuantite() {\r\n return quantite;\r\n }", "public int getQuantity();", "public Integer getQuantity();", "long getQuantity();", "long getQuantity();", "@Override\n\tpublic int totalItem() {\n\t\treturn 0;\n\t}", "public void setQuantidade(Integer quantidade) { this.quantidade = quantidade; }", "public int getQuantidade();", "public int getQuantidade() {\r\n return quantidade;\r\n }", "public int getQuantidade() {\r\n return quantidade;\r\n }", "int getQuantite();", "int getQuantite();", "@Override\n\tpublic int getTotalItem() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int getQuantidade() {\n\t\treturn hamburguer.getQuantidade();\n\t}", "MeasureType getQuantity();", "public int getQuantidade() {\n return quantidade;\n }", "public int getQuantidade() {\r\n\r\n return produtos.size();\r\n }", "Quantity getQuantity();", "@Override\r\n public void ItemQuantity(int quantity) {\n this.quantity = quantity;\r\n }", "public int getQuantity() {\r\n return quantity;\r\n }", "public Integer getQuantidade() { return this.quantidade; }", "public int getQuantity() {\r\n return quantity;\r\n }", "BigDecimal getQuantity();", "long getQuantite();", "public int getQuantity() \n\t{\n\t\treturn quantity;\n\t}", "public int getQuantity() {\r\n\t\treturn quantity;\r\n\t}", "Items(int quantidade,String nome,double preco){\n\t\tthis.qntd=quantidade;\n\t\tthis.produto = new Produto(nome,preco);\n\t}", "public int getQuantity() {\r\n return quantity;\r\n }", "public double getQuantity() {\n return quantity;\n }", "public int getQuantity(){\n\t\treturn quantity;\n\t}", "public int getQuantity()\n {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "public Integer getQuantity() {\n return quantity;\n }", "public Integer getQuantity() {\n return quantity;\n }", "public int getQuantity()\n {\n \treturn quantity;\n }", "public float valorTotalItem()\r\n {\r\n float total = (produto.getValor() - (produto.getValor() * desconto)) * quantidade;\r\n return total;\r\n }", "public float getQuantity() {\n return quantity;\n }", "public int getQty() {\n return qty;\n }", "private int checkItemQuantity() {\n\n int desiredQuantity = initialQuantity;\n MenusItem tempItem = null;\n tempItem = ItemCart.getInstance().checkItem(menusItem);\n\n if(tempItem != null){\n desiredQuantity = tempItem.getDesiredQuantity();\n }\n\n\n return desiredQuantity;\n }", "public double getQuantidade() {\n return quantidade;\n }", "public Integer getQuantity() {\r\n return this.quantity;\r\n }", "public int getQuantity() {\n\t\treturn quantity;\n\t}", "public int getQuantity() {\n\t\treturn quantity;\n\t}", "public int getQuantity() {\n\t\treturn quantity;\n\t}", "public int getQuantity() {\n\t\treturn quantity;\n\t}", "public int getQuantity() {\n\t\treturn quantity;\n\t}", "public Integer getQuantity() {\n return this.quantity;\n }", "public int getQuantity() {\n return this.quantity;\n }", "protected Double getQuantity() {\n return quantity;\n }", "public void setQuantite(int quantite) {\r\n this.quantite = quantite;\r\n }", "public int quantity(final T item) {\n if (items.containsKey(item)) {\n return items.get(item);\n } else {\n return 0;\n }\n }", "public int getQuantity()\r\n {\r\n return _quantity;\r\n }", "public int getQuantity() {\r\n\t\treturn this.quantity;\r\n\t}", "public long getQuantity() {\n return quantity_;\n }", "public long getQuantity() {\n return quantity_;\n }", "int getSellQuantity();", "public Integer getQuantity() {\n return this.quantity;\n }", "BigDecimal getDisplayQuantity();", "public long getQuantity() {\n return quantity_;\n }", "public long getQuantity() {\n return quantity_;\n }", "@Override\n public int getSize() {\n return numItems;\n }", "int getBuyQuantity();", "public int size(){\n return numItems;\n }", "public Long getQuantity() {\r\n return quantity;\r\n }", "public Float getQuantity() {\n return quantity;\n }", "public int howManyAvailable(Item i){/*NOT IMPLEMENTED*/return 0;}", "public Long getQuantity() {\n return quantity;\n }", "@Override\n public int getSize() {\n return this.numItems;\n }", "public void setQuantidade(int quantos);", "QuantityExtentType getQuantityExtent();", "public int inventorySize (TheGroceryStore g);", "@Override\n public int summarizeQuantity() {\n int sum = 0;\n\n for ( AbstractItem element : this.getComponents() ) {\n sum += element.summarizeQuantity();\n }\n\n return sum;\n }", "public int size()\r\n {\r\n return nItems;\r\n }", "public NM getNumberOfItemsPerUnit() { \r\n\t\tNM retVal = this.getTypedField(14, 0);\r\n\t\treturn retVal;\r\n }", "public void setQuantity(int value) {\n this.quantity = value;\n }", "public void setQuantity(int value) {\n this.quantity = value;\n }", "public void setQuantity(int value) {\n this.quantity = value;\n }", "static int noValueSize() {\r\n return itemSize(false) * 2;\r\n }", "public void setQuantidade(double quantidade) {\n this.quantidade = quantidade;\n }", "@Override\n public int getCount() {\n return jArrayQty.length();\n }", "@Schema(description = \"Number of units consumed\")\n public Long getQuantity() {\n return quantity;\n }", "int getNumItems();", "public int getQty() {\n return (isReturn ? qty * -1 : qty);\n }", "public java.math.BigDecimal getQuantity() {\r\n return quantity;\r\n }", "public int size() {\n return nItems;\n }", "public int getTotalQuantity() {\n\t\treturn totalQuantity;\n\t}", "public String getQuantity() {\n return quantity;\n }", "public int quantityDropped(Random par1Random)\n {\n return dropItemQty;\n }", "public java.math.BigDecimal getQty() throws java.rmi.RemoteException;", "public java.math.BigDecimal getQuantity() {\n return quantity;\n }" ]
[ "0.71445477", "0.68471634", "0.6843034", "0.68330175", "0.6806525", "0.67786837", "0.6764542", "0.6759489", "0.6757966", "0.6757966", "0.67559016", "0.6718491", "0.6709561", "0.6701968", "0.6701968", "0.66733277", "0.66733277", "0.66654783", "0.663591", "0.66219467", "0.66022485", "0.657869", "0.65644956", "0.65631324", "0.65288204", "0.6524165", "0.65138584", "0.6509228", "0.64909804", "0.64825726", "0.645917", "0.64590067", "0.64400655", "0.64366746", "0.64212376", "0.6418437", "0.6415322", "0.6415322", "0.6415322", "0.6415322", "0.6415322", "0.6415322", "0.6398523", "0.6398523", "0.63944924", "0.6391127", "0.638918", "0.6375886", "0.63717043", "0.6357602", "0.6345979", "0.6342457", "0.6342457", "0.6342457", "0.6342457", "0.6342457", "0.63284874", "0.6326565", "0.63250434", "0.6321345", "0.63210475", "0.6306353", "0.6305669", "0.63032216", "0.63032216", "0.6298786", "0.6289776", "0.6280318", "0.6270197", "0.6270197", "0.62561196", "0.6248915", "0.6241361", "0.6236768", "0.62359756", "0.620921", "0.619351", "0.61889344", "0.6165475", "0.6165254", "0.61556214", "0.6132601", "0.6111303", "0.6106143", "0.6100264", "0.6100264", "0.6100264", "0.60877144", "0.60760754", "0.60616696", "0.60576236", "0.6054158", "0.60517406", "0.6045718", "0.6044472", "0.60439754", "0.60435903", "0.6042507", "0.6036791", "0.60277635" ]
0.6311664
61
Metodo que retorna a representacao textual da compra.
@Override public String toString() { return this.item.exibirEmLista(this.qntd); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() { return kind() + \":\"+ text() ; }", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getToText();", "public String represent();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "public String text();", "@Override\n public abstract String asText();", "public String toString()\n {\n String textoADevolver = \"\";\n if (tareaCompletada)\n {\n textoADevolver += \"HECHA \";\n }\n textoADevolver += descripcion + \" (\" +prioridad+ \").\";\n return textoADevolver;\n }", "java.lang.String getAboutRaw();", "String getDescription1();", "@Override\r\n\tpublic String toString() {\r\n\t\treturn text.toString();\r\n\t}", "@Override\r\n public String toString() {\r\n return toSmartText().toString();\r\n }", "@Override\n\tpublic String toString() {\n\t\t\n\t\treturn this.getText();\n\t}", "String text();", "public String toString() {\n String s = \"\";\n\n if (FormEditor.compress) {\n if (domNode.getNodeName().equals(\"concept\")) {\n // s = \"ConceptName\";\n org.w3c.dom.Node name = domNode.getFirstChild();\n\n while ((name != null) && !name.getNodeName().equals(\"name\")) {\n name = name.getNextSibling();\n }\n\n if (name == null) {\n s += \"ConceptName\";\n } else {\n AdapterNode adpNode = new AdapterNode(name);\n s += adpNode.content();\n }\n } else if (domNode.getNodeName().equals(\"conceptList\")) {\n // s = \"ConceptName\";\n org.w3c.dom.Node name = domNode.getFirstChild();\n\n while ((name != null) && !name.getNodeName().equals(\"name\")) {\n name = name.getNextSibling();\n }\n\n if (name == null) {\n s += \"ConceptList\";\n } else {\n AdapterNode adpNode = new AdapterNode(name);\n s += adpNode.content();\n }\n } else if (domNode.getNodeName().equals(\"attribute\")) {\n org.w3c.dom.NamedNodeMap attributeList =\n domNode.getAttributes();\n org.w3c.dom.Node name = attributeList.getNamedItem(\"name\");\n s = name.getNodeValue();\n } else {\n String nodeName = domNode.getNodeName();\n\n if (!nodeName.startsWith(\"#\")) {\n s = nodeName;\n } else {\n s = typeName[domNode.getNodeType()];\n }\n }\n\n return s;\n }\n\n s = typeName[domNode.getNodeType()];\n\n String nodeName = domNode.getNodeName();\n\n if (!nodeName.startsWith(\"#\")) {\n s += (\": \" + nodeName);\n }\n\n if (domNode.getNodeValue() != null) {\n if (s.startsWith(\"ProcInstr\")) {\n s += \", \";\n } else {\n s += \": \";\n }\n\n // Trim the value to get rid of NL's at the front\n String t = domNode.getNodeValue().trim();\n int x = t.indexOf(\"\\n\");\n\n if (x >= 0) {\n t = t.substring(0, x);\n }\n\n s += t;\n }\n\n return s;\n }", "public String toString() {\n return getText();\n }", "public abstract String getContentString();", "public SmartText toSmartText() {\r\n return new SmartText().append(name).append(\" : \").append(formatTypeName()).append(formatComment(isFinal ? \" (final)\" : \"\"));\r\n }", "public abstract String text();", "public abstract String text();", "abstract public String asText(boolean pretty);", "public String getInfoText();", "@Override\n\tpublic String toString() {\n\t\treturn \"ContaCorrente Numero : \" + numero + \", Tipo : \" + tipo + \"\"\n\t\t\t\t+ \", Solde : R$ \" + solde + \"\\n\";\n\t}", "public String toString() {\n StringBuffer buf = new StringBuffer(30);\n buf.append(\"\\nFile: \" + ((file != null)?file.getAbsolutePath():\"null\")); //NOI18N\n buf.append(\"\\nRCS file: \" + repositoryFileName); //NOI18N\n buf.append(\"\\nRevision: \" + leftRevision); //NOI18N\n if (rightRevision != null) {\n buf.append(\"\\nRevision: \" + rightRevision); //NOI18N\n }\n buf.append(\"\\nParameters: \" + parameters); //NOI18N\n// buf.append(differences.toString());\n return buf.toString();\n }", "public String visualizzaCampo(){\n\t\tString info= new String(\"Nome: \"+ nome +\"\\n\" +\"Descrizione: \" + descrizione+ \"\\n\"+ \"Obbligatoria: \" + obbligatorio +\"\\n\");\n\t\treturn info;\n\t}", "@Override\n public String toString() {\n return text;\n }", "public String getRichContents() {\n/* 205 */ COSBase base = getCOSObject().getDictionaryObject(COSName.RC);\n/* 206 */ if (base instanceof COSString)\n/* */ {\n/* 208 */ return ((COSString)base).getString();\n/* */ }\n/* 210 */ if (base instanceof COSStream)\n/* */ {\n/* 212 */ return ((COSStream)base).toTextString();\n/* */ }\n/* */ \n/* */ \n/* 216 */ return null;\n/* */ }", "public String toString() {\n\t\tString result = Constants.EMPTY_STRING;\n\t\tresult = getDescription();\n\t\treturn result;\n\t}", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "String getDescripcion();", "String getDescripcion();", "public String toString() {\r\n\t\treturn getDescription();\r\n\t}", "public String toString() {\n\t\treturn tipo + \" : \" + descripcion;\n\t}", "public abstract String getFormattedContent();", "public String getDescription()\r\n/* 26: */ {\r\n/* 27: 81 */ return this.string;\r\n/* 28: */ }", "public String toString(){\n return \"+-----------------------+\\n\" +\n \"| Boleto para el metro |\\n\" +\n \"|derjere0ranfeore |\\n\" +\n \"+-----------------------+\\n\" ;\n }", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();", "public String getDescription();" ]
[ "0.70471716", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67813826", "0.67502534", "0.6737835", "0.66760874", "0.66760874", "0.66760874", "0.66760874", "0.66760874", "0.66760874", "0.66760874", "0.66760874", "0.66760874", "0.6668856", "0.6668856", "0.6668856", "0.6668856", "0.6668856", "0.6668856", "0.6668856", "0.6668856", "0.6668856", "0.6668856", "0.6668856", "0.6668856", "0.6662987", "0.6657118", "0.66489184", "0.65978956", "0.65611666", "0.6552367", "0.6549402", "0.6549298", "0.65371835", "0.65214014", "0.6507441", "0.6507372", "0.6472994", "0.6451293", "0.6451293", "0.64403385", "0.6440125", "0.64376765", "0.6434421", "0.6432781", "0.642918", "0.64226747", "0.6408337", "0.64002484", "0.63950753", "0.63950753", "0.6393308", "0.63882065", "0.63788754", "0.6364195", "0.63594675", "0.63403016", "0.63403016", "0.63403016", "0.63403016", "0.63403016", "0.63403016", "0.63403016", "0.63403016" ]
0.0
-1
Create contents of the window.
protected void createContents() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\r\n\t}", "void createWindow();", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), SWT.TITLE);\r\n\r\n\t\tgetParent().setEnabled(false);\r\n\r\n\t\tshell.addShellListener(new ShellAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void shellClosed(ShellEvent e) {\r\n\t\t\t\tgetParent().setEnabled(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tshell.setImage(SWTResourceManager.getImage(LoginInfo.class, \"/javax/swing/plaf/metal/icons/ocean/warning.png\"));\r\n\r\n\t\tsetMidden(397, 197);\r\n\r\n\t\tshell.setText(this.windows_name);\r\n\t\tshell.setLayout(null);\r\n\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 11, SWT.NORMAL));\r\n\t\tlabel.setBounds(79, 45, 226, 30);\r\n\t\tlabel.setAlignment(SWT.CENTER);\r\n\t\tlabel.setText(this.label_show);\r\n\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.setBounds(150, 107, 86, 30);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tshell.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setText(\"确定\");\r\n\r\n\t}", "protected void createContents() {\r\n\t\tsetText(\"SWT Application\");\r\n\t\tsetSize(450, 300);\r\n\r\n\t}", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(656, 296);\n\n\t}", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(838, 649);\n\n\t}", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(437, 529);\n\n\t}", "protected void createContents() {\n\t\tsetText(\"Muokkaa asiakastietoja\");\n\t\tsetSize(800, 550);\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(41, 226, 75, 25);\n\t\tbtnNewButton.setText(\"Limpiar\");\n\t\t\n\t\tButton btnGuardar = new Button(shell, SWT.NONE);\n\t\tbtnGuardar.setBounds(257, 226, 75, 25);\n\t\tbtnGuardar.setText(\"Guardar\");\n\t\t\n\t\ttext = new Text(shell, SWT.BORDER);\n\t\ttext.setBounds(25, 181, 130, 21);\n\t\t\n\t\ttext_1 = new Text(shell, SWT.BORDER);\n\t\ttext_1.setBounds(230, 181, 130, 21);\n\t\t\n\t\ttext_2 = new Text(shell, SWT.BORDER);\n\t\ttext_2.setBounds(25, 134, 130, 21);\n\t\t\n\t\ttext_3 = new Text(shell, SWT.BORDER);\n\t\ttext_3.setBounds(25, 86, 130, 21);\n\t\t\n\t\ttext_4 = new Text(shell, SWT.BORDER);\n\t\ttext_4.setBounds(25, 42, 130, 21);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(227, 130, 75, 25);\n\t\tbtnNewButton_1.setText(\"Buscar\");\n\t\t\n\t\tLabel label = new Label(shell, SWT.NONE);\n\t\tlabel.setBounds(25, 21, 55, 15);\n\t\tlabel.setText(\"#\");\n\t\t\n\t\tLabel lblFechaYHora = new Label(shell, SWT.NONE);\n\t\tlblFechaYHora.setBounds(25, 69, 75, 15);\n\t\tlblFechaYHora.setText(\"Fecha y Hora\");\n\t\t\n\t\tLabel lblPlaca = new Label(shell, SWT.NONE);\n\t\tlblPlaca.setBounds(25, 113, 55, 15);\n\t\tlblPlaca.setText(\"Placa\");\n\t\t\n\t\tLabel lblMarca = new Label(shell, SWT.NONE);\n\t\tlblMarca.setBounds(25, 161, 55, 15);\n\t\tlblMarca.setText(\"Marca\");\n\t\t\n\t\tLabel lblColor = new Label(shell, SWT.NONE);\n\t\tlblColor.setBounds(230, 161, 55, 15);\n\t\tlblColor.setText(\"Color\");\n\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setLayout(new GridLayout(1, false));\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t{\r\n\t\t\tfinal Button btnShowTheFake = new Button(shell, SWT.TOGGLE);\r\n\t\t\tbtnShowTheFake.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\r\n\t\t\t\t\tif (btnShowTheFake.getSelection()) {\r\n\t\t\t\t\t\tRectangle bounds = btnShowTheFake.getBounds();\r\n\t\t\t\t\t\tPoint pos = shell.toDisplay(bounds.x + 5, bounds.y + bounds.height);\r\n\t\t\t\t\t\ttooltip = showTooltip(shell, pos.x, pos.y);\r\n\t\t\t\t\t\tbtnShowTheFake.setText(\"Hide it\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (tooltip != null && !tooltip.isDisposed())\r\n\t\t\t\t\t\t\ttooltip.dispose();\r\n\t\t\t\t\t\tbtnShowTheFake.setText(\"Show The Fake Tooltip\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tbtnShowTheFake.setText(\"Show The Fake Tooltip\");\r\n\t\t}\r\n\t}", "protected void createContents() {\n\t\tMonitor primary = this.getDisplay().getPrimaryMonitor();\n\t\tRectangle bounds = primary.getBounds();\n\t\tRectangle rect = getBounds();\n\t\tint x = bounds.x + (bounds.width - rect.width) / 2;\n\t\tint y = bounds.y + (bounds.height - rect.height) / 2;\n\t\tsetLocation(x, y);\n\t}", "private void createWindow() {\r\n\t\t// Create the picture frame and initializes it.\r\n\t\tthis.createAndInitPictureFrame();\r\n\r\n\t\t// Set up the menu bar.\r\n\t\tthis.setUpMenuBar();\r\n\r\n\t\t// Create the information panel.\r\n\t\t//this.createInfoPanel();\r\n\r\n\t\t// Create the scrollpane for the picture.\r\n\t\tthis.createAndInitScrollingImage();\r\n\r\n\t\t// Show the picture in the frame at the size it needs to be.\r\n\t\tthis.pictureFrame.pack();\r\n\t\tthis.pictureFrame.setVisible(true);\r\n\t\tpictureFrame.setSize(728,560);\r\n\t}", "protected void createContents() {\r\n\t\tsetText(Messages.getString(\"HMS.PatientManagementShell.title\"));\r\n\t\tsetSize(900, 700);\r\n\r\n\t}", "private void createContents() {\r\n\t\tshlOProgramie = new Shell(getParent().getDisplay(), SWT.DIALOG_TRIM\r\n\t\t\t\t| SWT.RESIZE);\r\n\t\tshlOProgramie.setBackground(SWTResourceManager.getColor(255, 255, 255));\r\n\t\tshlOProgramie.setText(\"O programie\");\r\n\t\tshlOProgramie.setSize(386, 221);\r\n\t\tint x = 386;\r\n\t\tint y = 221;\r\n\t\t// Get the resolution\r\n\t\tRectangle pDisplayBounds = shlOProgramie.getDisplay().getBounds();\r\n\r\n\t\t// This formulae calculate the shell's Left ant Top\r\n\t\tint nLeft = (pDisplayBounds.width - x) / 2;\r\n\t\tint nTop = (pDisplayBounds.height - y) / 2;\r\n\r\n\t\t// Set shell bounds,\r\n\t\tshlOProgramie.setBounds(nLeft, nTop, x, y);\r\n\t\tsetText(\"O programie\");\r\n\r\n\t\tbtnZamknij = new Button(shlOProgramie, SWT.PUSH | SWT.BORDER_SOLID);\r\n\t\tbtnZamknij.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\tshlOProgramie.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnZamknij.setBounds(298, 164, 68, 23);\r\n\t\tbtnZamknij.setText(\"Zamknij\");\r\n\r\n\t\tText link = new Text(shlOProgramie, SWT.READ_ONLY);\r\n\t\tlink.setBackground(SWTResourceManager.getColor(230, 230, 250));\r\n\t\tlink.setBounds(121, 127, 178, 13);\r\n\t\tlink.setText(\"Kontakt: [email protected]\");\r\n\r\n\t\tCLabel lblNewLabel = new CLabel(shlOProgramie, SWT.BORDER\r\n\t\t\t\t| SWT.SHADOW_IN | SWT.SHADOW_OUT | SWT.SHADOW_NONE);\r\n\t\tlblNewLabel.setBackground(SWTResourceManager.getColor(230, 230, 250));\r\n\t\tlblNewLabel.setBounds(118, 20, 248, 138);\r\n\t\tlblNewLabel\r\n\t\t\t\t.setText(\" Kalkulator walut ver 0.0.2 \\r\\n -------------------------------\\r\\n Program umo\\u017Cliwiaj\\u0105cy pobieranie\\r\\n aktualnych kurs\\u00F3w walut ze strony nbp.pl\\r\\n\\r\\n Copyright by Wojciech Trocki.\\r\\n\");\r\n\r\n\t\tLabel lblNewLabel_1 = new Label(shlOProgramie, SWT.NONE);\r\n\t\tlblNewLabel_1.setBackground(SWTResourceManager.getColor(255, 255, 255));\r\n\t\tlblNewLabel_1.setImage(SWTResourceManager.getImage(\"images/about.gif\"));\r\n\t\tlblNewLabel_1.setBounds(10, 20, 100, 138);\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell(SWT.CLOSE | SWT.MIN);// 取消最大化与拖拽放大功能\n\t\tshell.setImage(SWTResourceManager.getImage(WelcomPart.class, \"/images/MC.ico\"));\n\t\tshell.setBackgroundImage(SWTResourceManager.getImage(WelcomPart.class, \"/images/back.jpg\"));\n\t\tshell.setBackgroundMode(SWT.INHERIT_DEFAULT);\n\t\tshell.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tshell.setSize(1157, 720);\n\t\tshell.setText(\"\\u56FE\\u4E66\\u67E5\\u8BE2\");\n\t\tshell.setLocation(Display.getCurrent().getClientArea().width / 2 - shell.getShell().getSize().x / 2,\n\t\t\t\tDisplay.getCurrent().getClientArea().height / 2 - shell.getSize().y / 2);\n\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/base.png\"));\n\t\tmenuItem.setText(\"\\u7A0B\\u5E8F\");\n\n\t\tMenu menu_1 = new Menu(menuItem);\n\t\tmenuItem.setMenu(menu_1);\n\n\t\tMenuItem menuI_main = new MenuItem(menu_1, SWT.NONE);\n\t\tmenuI_main.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/about.png\"));\n\t\tmenuI_main.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_BookShow window = new Admin_BookShow();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenuI_main.setText(\"\\u4E3B\\u9875\");\n\n\t\tMenuItem menu_exit = new MenuItem(menu_1, SWT.NONE);\n\t\tmenu_exit.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/reset.png\"));\n\t\tmenu_exit.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tWelcomPart window = new WelcomPart();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu_exit.setText(\"\\u9000\\u51FA\");\n\n\t\tMenuItem menubook = new MenuItem(menu, SWT.CASCADE);\n\t\tmenubook.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/bookTypeManager.png\"));\n\t\tmenubook.setText(\"\\u56FE\\u4E66\\u7BA1\\u7406\");\n\n\t\tMenu menu_2 = new Menu(menubook);\n\t\tmenubook.setMenu(menu_2);\n\n\t\tMenuItem menu1_add = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_add.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/add.png\"));\n\t\tmenu1_add.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_add window = new Book_add();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_add.setText(\"\\u6DFB\\u52A0\\u56FE\\u4E66\");\n\n\t\tMenuItem menu1_select = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_select.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/search.png\"));\n\t\tmenu1_select.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t// 图书查询\n\t\t\t\tshell.close();\n\t\t\t\tBook_select window = new Book_select();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_select.setText(\"\\u67E5\\u8BE2\\u56FE\\u4E66\");\n\n\t\tMenuItem menu1_alter = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_alter.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/modify.png\"));\n\t\tmenu1_alter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_alter window = new Book_alter();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_alter.setText(\"\\u4FEE\\u6539\\u56FE\\u4E66\");\n\n\t\tMenuItem menuI1_delete = new MenuItem(menu_2, SWT.NONE);\n\t\tmenuI1_delete.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/exit.png\"));\n\t\tmenuI1_delete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_del window = new Book_del();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenuI1_delete.setText(\"\\u5220\\u9664\\u56FE\\u4E66\");\n\n\t\tMenuItem menutype = new MenuItem(menu, SWT.CASCADE);\n\t\tmenutype.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/bookManager.png\"));\n\t\tmenutype.setText(\"\\u4E66\\u7C7B\\u7BA1\\u7406\");\n\n\t\tMenu menu_3 = new Menu(menutype);\n\t\tmenutype.setMenu(menu_3);\n\n\t\tMenuItem menu2_add = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_add.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/add.png\"));\n\t\tmenu2_add.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_add window = new Booktype_add();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_add.setText(\"\\u6DFB\\u52A0\\u4E66\\u7C7B\");\n\n\t\tMenuItem menu2_alter = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_alter.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/modify.png\"));\n\t\tmenu2_alter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_alter window = new Booktype_alter();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_alter.setText(\"\\u4FEE\\u6539\\u4E66\\u7C7B\");\n\n\t\tMenuItem menu2_delete = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_delete.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/exit.png\"));\n\t\tmenu2_delete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_delete window = new Booktype_delete();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_delete.setText(\"\\u5220\\u9664\\u4E66\\u7C7B\");\n\n\t\tMenuItem menumark = new MenuItem(menu, SWT.CASCADE);\n\t\tmenumark.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/student.png\"));\n\t\tmenumark.setText(\"\\u501F\\u8FD8\\u8BB0\\u5F55\");\n\n\t\tMenu menu_4 = new Menu(menumark);\n\t\tmenumark.setMenu(menu_4);\n\n\t\tMenuItem menu3_borrow = new MenuItem(menu_4, SWT.NONE);\n\t\tmenu3_borrow.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/edit.png\"));\n\t\tmenu3_borrow.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_borrowmark window = new Admin_borrowmark();\n\t\t\t\twindow.open();// 借书记录\n\t\t\t}\n\t\t});\n\t\tmenu3_borrow.setText(\"\\u501F\\u4E66\\u8BB0\\u5F55\");\n\n\t\tMenuItem menu3_return = new MenuItem(menu_4, SWT.NONE);\n\t\tmenu3_return.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/search.png\"));\n\t\tmenu3_return.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_returnmark window = new Admin_returnmark();\n\t\t\t\twindow.open();// 还书记录\n\t\t\t}\n\t\t});\n\t\tmenu3_return.setText(\"\\u8FD8\\u4E66\\u8BB0\\u5F55\");\n\n\t\tMenuItem mntmhelp = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmhelp.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/about.png\"));\n\t\tmntmhelp.setText(\"\\u5173\\u4E8E\");\n\n\t\tMenu menu_5 = new Menu(mntmhelp);\n\t\tmntmhelp.setMenu(menu_5);\n\n\t\tMenuItem menu4_Info = new MenuItem(menu_5, SWT.NONE);\n\t\tmenu4_Info.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/me.png\"));\n\t\tmenu4_Info.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_Info window = new Admin_Info();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu4_Info.setText(\"\\u8F6F\\u4EF6\\u4FE1\\u606F\");\n\n\t\ttable = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttable.setFont(SWTResourceManager.getFont(\"黑体\", 10, SWT.NORMAL));\n\t\ttable.setLinesVisible(true);\n\t\ttable.setHeaderVisible(true);\n\t\ttable.setBounds(10, 191, 1119, 447);\n\n\t\tTableColumn tableColumn = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn.setWidth(29);\n\n\t\tTableColumn tableColumn_id = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_id.setWidth(110);\n\t\ttableColumn_id.setText(\"\\u56FE\\u4E66\\u7F16\\u53F7\");\n\n\t\tTableColumn tableColumn_name = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_name.setWidth(216);\n\t\ttableColumn_name.setText(\"\\u56FE\\u4E66\\u540D\\u79F0\");\n\n\t\tTableColumn tableColumn_author = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_author.setWidth(117);\n\t\ttableColumn_author.setText(\"\\u56FE\\u4E66\\u79CD\\u7C7B\");\n\n\t\tTableColumn tableColumn_pub = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_pub.setWidth(148);\n\t\ttableColumn_pub.setText(\"\\u4F5C\\u8005\");\n\n\t\tTableColumn tableColumn_stock = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_stock.setWidth(167);\n\t\ttableColumn_stock.setText(\"\\u51FA\\u7248\\u793E\");\n\n\t\tTableColumn tableColumn_sortid = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_sortid.setWidth(79);\n\t\ttableColumn_sortid.setText(\"\\u5E93\\u5B58\");\n\n\t\tTableColumn tableColumn_record = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_record.setWidth(247);\n\t\ttableColumn_record.setText(\"\\u767B\\u8BB0\\u65F6\\u95F4\");\n\n\t\tCombo combo_way = new Combo(shell, SWT.NONE);\n\t\tcombo_way.add(\"图书编号\");\n\t\tcombo_way.add(\"图书名称\");\n\t\tcombo_way.add(\"图书作者\");\n\t\tcombo_way.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tcombo_way.setBounds(314, 157, 131, 28);\n\n\t\t// 遍历查询book表\n\t\tButton btnButton_select = new Button(shell, SWT.NONE);\n\t\tbtnButton_select.setImage(SWTResourceManager.getImage(Book_select.class, \"/images/search.png\"));\n\t\tbtnButton_select.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tbtnButton_select.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tBook book = new Book();\n\t\t\t\tSelectbook selectbook = new Selectbook();\n\t\t\t\ttable.removeAll();\n\t\t\t\tif (combo_way.getText().equals(\"图书编号\")) {\n\t\t\t\t\tbook.setBook_id(text_select.getText().trim());\n\t\t\t\t\tString str[][] = selectbook.ShowAidBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().equals(\"图书名称\")) {\n\t\t\t\t\tbook.setBook_name(\"%\" + text_select.getText().trim() + \"%\");\n\t\t\t\t\tString str[][] = selectbook.ShowAnameBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().equals(\"图书作者\")) {\n\t\t\t\t\tbook.setBook_author(\"%\" + text_select.getText().trim() + \"%\");\n\t\t\t\t\tString str[][] = selectbook.ShowAauthorBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().length() == 0) {\n\t\t\t\t\tString str[][] = selectbook.ShowAllBook();\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnButton_select.setBounds(664, 155, 98, 30);\n\t\tbtnButton_select.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tbtnButton_select.setText(\"查询\");\n\n\t\ttext_select = new Text(shell, SWT.BORDER);\n\t\ttext_select.setBounds(472, 155, 186, 30);\n\n\t\tLabel lblNewLabel_way = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_way.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tlblNewLabel_way.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tlblNewLabel_way.setBounds(314, 128, 107, 30);\n\t\tlblNewLabel_way.setText(\"\\u67E5\\u8BE2\\u65B9\\u5F0F\\uFF1A\");\n\n\t\tLabel lblNewLabel_1 = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_1.setText(\"\\u56FE\\u4E66\\u67E5\\u8BE2\");\n\t\tlblNewLabel_1.setForeground(SWTResourceManager.getColor(255, 255, 255));\n\t\tlblNewLabel_1.setFont(SWTResourceManager.getFont(\"黑体\", 25, SWT.BOLD));\n\t\tlblNewLabel_1.setAlignment(SWT.CENTER);\n\t\tlblNewLabel_1.setBounds(392, 54, 266, 48);\n\n\t\tLabel lblNewLabel = new Label(shell, SWT.NONE);\n\t\tlblNewLabel.setText(\"\\u8F93\\u5165\\uFF1A\");\n\t\tlblNewLabel.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tlblNewLabel.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tlblNewLabel.setBounds(472, 129, 76, 20);\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tnum1 = new Text(shell, SWT.BORDER);\n\t\tnum1.setBounds(32, 51, 112, 19);\n\t\t\n\t\tnum2 = new Text(shell, SWT.BORDER);\n\t\tnum2.setBounds(32, 120, 112, 19);\n\t\t\n\t\tLabel lblNewLabel = new Label(shell, SWT.NONE);\n\t\tlblNewLabel.setBounds(32, 31, 92, 14);\n\t\tlblNewLabel.setText(\"First Number:\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_1.setBounds(32, 100, 112, 14);\n\t\tlblNewLabel_1.setText(\"Second Number: \");\n\t\t\n\t\tfinal Label answer = new Label(shell, SWT.NONE);\n\t\tanswer.setBounds(35, 204, 60, 14);\n\t\tanswer.setText(\"Answer:\");\n\t\t\n\t\tButton plusButton = new Button(shell, SWT.NONE);\n\t\tplusButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tint number1, number2;\n\t\t\t\ttry {\n\t\t\t\t\tnumber1 = Integer.parseInt(num1.getText());\n\t\t\t\t}\n\t\t\t\tcatch (Exception exc) {\n\t\t\t\t\tMessageDialog.openError(shell, \"Error\", \"Bad number\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tnumber2 = Integer.parseInt(num2.getText());\n\t\t\t\t}\n\t\t\t\tcatch (Exception exc) {\n\t\t\t\t\tMessageDialog.openError(shell, \"Error\", \"Bad number\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tint ans = number1 + number2;\n\t\t\t\tanswer.setText(\"Answer: \" + ans);\n\t\t\t}\n\t\t});\n\t\tplusButton.setBounds(29, 158, 56, 28);\n\t\tplusButton.setText(\"+\");\n\t\t\n\t\t\n\n\t}", "private void createContents() {\r\n\t\tshlEventBlocker = new Shell(getParent(), getStyle());\r\n\t\tshlEventBlocker.setSize(167, 135);\r\n\t\tshlEventBlocker.setText(\"Event Blocker\");\r\n\t\t\r\n\t\tLabel lblRunningEvent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblRunningEvent.setBounds(10, 10, 100, 15);\r\n\t\tlblRunningEvent.setText(\"Running Event:\");\r\n\t\t\r\n\t\tLabel lblevent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblevent.setFont(SWTResourceManager.getFont(\"Segoe UI\", 15, SWT.BOLD));\r\n\t\tlblevent.setBounds(20, 31, 129, 35);\r\n\t\tlblevent.setText(eventName);\r\n\t\t\r\n\t\tButton btnFinish = new Button(shlEventBlocker, SWT.NONE);\r\n\t\tbtnFinish.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\tshlEventBlocker.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFinish.setBounds(10, 72, 75, 25);\r\n\t\tbtnFinish.setText(\"Finish\");\r\n\r\n\t}", "private void createContents() {\n\t\tshlEditionRussie = new Shell(getParent(), getStyle());\n\t\tshlEditionRussie.setSize(470, 262);\n\t\tshlEditionRussie.setText(\"Edition r\\u00E9ussie\");\n\t\t\n\t\tLabel lblLeFilm = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblLeFilm.setBounds(153, 68, 36, 15);\n\t\tlblLeFilm.setText(\"Le film\");\n\t\t\n\t\tLabel lblXx = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblXx.setBounds(195, 68, 21, 15);\n\t\tlblXx.setText(\"\" + getViewModel());\n\t\t\n\t\tLabel lblABient = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblABient.setText(\"a bien \\u00E9t\\u00E9 modifi\\u00E9\");\n\t\tlblABient.setBounds(222, 68, 100, 15);\n\t\t\n\t\tButton btnRevenirLa = new Button(shlEditionRussie, SWT.NONE);\n\t\tbtnRevenirLa.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tm_Infrastructure.runController(shlEditionRussie, ListMoviesController.class);\n\t\t\t}\n\t\t});\n\t\tbtnRevenirLa.setBounds(153, 105, 149, 25);\n\t\tbtnRevenirLa.setText(\"Revenir \\u00E0 la liste des films\");\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tGroup group_1 = new Group(shell, SWT.NONE);\n\t\tgroup_1.setText(\"\\u65B0\\u4FE1\\u606F\\u586B\\u5199\");\n\t\tgroup_1.setBounds(0, 120, 434, 102);\n\t\t\n\t\tLabel label_4 = new Label(group_1, SWT.NONE);\n\t\tlabel_4.setBounds(10, 21, 61, 17);\n\t\tlabel_4.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel label_5 = new Label(group_1, SWT.NONE);\n\t\tlabel_5.setText(\"\\u7528\\u6237\\u7535\\u8BDD\");\n\t\tlabel_5.setBounds(10, 46, 61, 17);\n\t\t\n\t\tLabel label_6 = new Label(group_1, SWT.NONE);\n\t\tlabel_6.setText(\"\\u5BC6\\u7801\");\n\t\tlabel_6.setBounds(10, 75, 61, 17);\n\t\t\n\t\ttext = new Text(group_1, SWT.BORDER);\n\t\ttext.setBounds(121, 21, 140, 17);\n\t\t\n\t\ttext_1 = new Text(group_1, SWT.BORDER);\n\t\ttext_1.setBounds(121, 46, 140, 17);\n\t\t\n\t\ttext_2 = new Text(group_1, SWT.BORDER);\n\t\ttext_2.setBounds(121, 75, 140, 17);\n\t\t\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.setBounds(31, 228, 80, 27);\n\t\tbtnNewButton.setText(\"\\u63D0\\u4EA4\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(288, 228, 80, 27);\n\t\tbtnNewButton_1.setText(\"\\u91CD\\u586B\");\n\t\t\n\t\tGroup group = new Group(shell, SWT.NONE);\n\t\tgroup.setText(\"\\u539F\\u5148\\u4FE1\\u606F\");\n\t\tgroup.setBounds(0, 10, 320, 102);\n\t\t\n\t\tLabel label = new Label(group, SWT.NONE);\n\t\tlabel.setBounds(10, 20, 61, 17);\n\t\tlabel.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel lblNewLabel = new Label(group, SWT.NONE);\n\t\tlblNewLabel.setBounds(113, 20, 61, 17);\n\t\t\n\t\tLabel label_1 = new Label(group, SWT.NONE);\n\t\tlabel_1.setBounds(10, 43, 61, 17);\n\t\tlabel_1.setText(\"\\u6027\\u522B\");\n\t\t\n\t\tButton btnRadioButton = new Button(group, SWT.RADIO);\n\t\t\n\t\tbtnRadioButton.setBounds(90, 43, 97, 17);\n\t\tbtnRadioButton.setText(\"\\u7537\");\n\t\tButton btnRadioButton_1 = new Button(group, SWT.RADIO);\n\t\tbtnRadioButton_1.setBounds(208, 43, 97, 17);\n\t\tbtnRadioButton_1.setText(\"\\u5973\");\n\t\t\n\t\tLabel label_2 = new Label(group, SWT.NONE);\n\t\tlabel_2.setBounds(10, 66, 61, 17);\n\t\tlabel_2.setText(\"\\u7528\\u6237\\u7535\\u8BDD\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(group, SWT.NONE);\n\t\tlblNewLabel_1.setBounds(113, 66, 61, 17);\n\t\t\n\t\tLabel label_3 = new Label(group, SWT.NONE);\n\t\tlabel_3.setBounds(10, 89, 61, 17);\n\t\tlabel_3.setText(\"\\u5BC6\\u7801\");\n\t\tLabel lblNewLabel_2 = new Label(group, SWT.NONE);\n\t\tlblNewLabel_2.setBounds(113, 89, 61, 17);\n\t\t\n\t\ttry {\n\t\t\tUserDao userDao=new UserDao();\n\t\t\tlblNewLabel_2.setText(User.getPassword());\n\t\t\tlblNewLabel.setText(User.getUserName());\n\t\t\n\t\t\t\n\n\t\t\n\t\t\ttry {\n\t\t\t\tList<User> userList=userDao.query();\n\t\t\t\tString results[][]=new String[userList.size()][5];\n\t\t\t\tlblNewLabel.setText(User.getUserName());\n\t\t\t\tlblNewLabel_1.setText(User.getSex());\n\t\t\t\tlblNewLabel_2.setText(User.getUserPhone());\n\t\t\t\tButton button = new Button(shell, SWT.NONE);\n\t\t\t\tbutton.setBounds(354, 0, 80, 27);\n\t\t\t\tbutton.setText(\"\\u8FD4\\u56DE\");\n\t\t\t\tbutton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\t\t\tshell.dispose();\n\t\t\t\t\t\tbook book=new book();\n\t\t\t\t\t\tbook.open();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(int i = 0; i < userList.size(); i++) {\n\t\t\t\t\t\tUser user1 = (User)userList.get(i);\t\n\t\t\t\t\tresults[i][0] = user1.getUserName();\n\t\t\t\t\tresults[i][1] = user1.getSex();\t\n\t\t\t\t\tresults[i][2] = user1.getPassword();\t\n\t\n\t\t\t\t\tif(user1.getSex().equals(\"男\"))\n\t\t\t\t\t\tbtnRadioButton.setSelection(true);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbtnRadioButton_1.setSelection(true);\n\t\t\t\t\tlblNewLabel_1.setText(user1.getUserPhone());\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tif(!text_1.getText().equals(\"\")&&!text.getText().equals(\"\")&&!text_2.getText().equals(\"\"))\n\t\t\tuserDao.updateUser(text_1.getText(), text.getText(), text_2.getText());\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\n\t\t\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tuserDao.updateUser(text_1.getText(), text.getText(), text_2.getText());\n\t\t\t\t\tif(!text_1.getText().equals(\"\")&&!text_2.getText().equals(\"\")&&!text.getText().equals(\"\"))\n\t\t\t\t\t{shell.dispose();\n\t\t\t\t\tbook book=new book();\n\t\t\t\t\tbook.open();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{JOptionPane.showMessageDialog(null,\"用户名或密码不能为空\",\"错误\",JOptionPane.PLAIN_MESSAGE);}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t});\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\t\ttext.setText(\"\");\n\t\t\t\t\ttext_1.setText(\"\");\n\t\t\t\t\ttext_2.setText(\"\");\n\t\t\t\n\t\t\t}\n\t\t});\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(764, 551);\n\t\tshell.setText(\"SWT Application\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmFile = new MenuItem(menu, SWT.NONE);\n\t\tmntmFile.setText(\"File...\");\n\t\t\n\t\tMenuItem mntmEdit = new MenuItem(menu, SWT.NONE);\n\t\tmntmEdit.setText(\"Edit\");\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setLayoutData(BorderLayout.CENTER);\n\t\tcomposite.setLayout(null);\n\t\t\n\t\tGroup grpDirectorio = new Group(composite, SWT.NONE);\n\t\tgrpDirectorio.setText(\"Directorio\");\n\t\tgrpDirectorio.setBounds(10, 86, 261, 387);\n\t\t\n\t\tGroup grpListadoDeAccesos = new Group(composite, SWT.NONE);\n\t\tgrpListadoDeAccesos.setText(\"Listado de Accesos\");\n\t\tgrpListadoDeAccesos.setBounds(277, 86, 477, 387);\n\t\t\n\t\tLabel label = new Label(composite, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabel.setBounds(10, 479, 744, 2);\n\t\t\n\t\tButton btnNewButton = new Button(composite, SWT.NONE);\n\t\tbtnNewButton.setBounds(638, 491, 94, 28);\n\t\tbtnNewButton.setText(\"New Button\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(composite, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(538, 491, 94, 28);\n\t\tbtnNewButton_1.setText(\"New Button\");\n\t\t\n\t\tToolBar toolBar = new ToolBar(composite, SWT.FLAT | SWT.RIGHT);\n\t\ttoolBar.setBounds(10, 10, 744, 20);\n\t\t\n\t\tToolItem tltmAccion = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmAccion.setText(\"Accion 1\");\n\t\t\n\t\tToolItem tltmAccion_1 = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmAccion_1.setText(\"Accion 2\");\n\t\t\n\t\tToolItem tltmRadio = new ToolItem(toolBar, SWT.RADIO);\n\t\ttltmRadio.setText(\"Radio\");\n\t\t\n\t\tToolItem tltmItemDrop = new ToolItem(toolBar, SWT.DROP_DOWN);\n\t\ttltmItemDrop.setText(\"Item drop\");\n\t\t\n\t\tToolItem tltmCheckItem = new ToolItem(toolBar, SWT.CHECK);\n\t\ttltmCheckItem.setText(\"Check item\");\n\t\t\n\t\tCoolBar coolBar = new CoolBar(composite, SWT.FLAT);\n\t\tcoolBar.setBounds(10, 39, 744, 30);\n\t\t\n\t\tCoolItem coolItem_1 = new CoolItem(coolBar, SWT.NONE);\n\t\tcoolItem_1.setText(\"Accion 1\");\n\t\t\n\t\tCoolItem coolItem = new CoolItem(coolBar, SWT.NONE);\n\n\t}", "@Override\n\tpublic void create() {\n\t\twithdrawFrame = new JFrame();\n\t\tthis.constructContent();\n\t\twithdrawFrame.setSize(800,500);\n\t\twithdrawFrame.show();\n\t\twithdrawFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t}", "void buildWindow()\n { main.gui.gralMng.selectPanel(\"primaryWindow\");\n main.gui.gralMng.setPosition(-30, 0, -47, 0, 'r'); //right buttom, about half less display width and hight.\n int windProps = GralWindow.windConcurrently;\n GralWindow window = main.gui.gralMng.createWindow(\"windStatus\", \"Status - The.file.Commander\", windProps);\n windStatus = window; \n main.gui.gralMng.setPosition(3.5f, GralPos.size -3, 1, GralPos.size +5, 'd');\n widgCopy = main.gui.gralMng.addButton(\"sCopy\", main.copyCmd.actionConfirmCopy, \"copy\");\n widgEsc = main.gui.gralMng.addButton(\"dirBytes\", actionButton, \"esc\");\n }", "protected void createContents() {\n\t\tshlMenu = new Shell();\n\t\tshlMenu.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/File-delete-icon.png\"));\n\t\tshlMenu.setBackground(SWTResourceManager.getColor(255, 102, 0));\n\t\tshlMenu.setSize(899, 578);\n\t\tshlMenu.setText(\"MENU\");\n\t\t\n\t\tMenu menu = new Menu(shlMenu, SWT.BAR);\n\t\tshlMenu.setMenuBar(menu);\n\t\t\n\t\tMenuItem mnętmBookLists = new MenuItem(menu, SWT.NONE);\n\t\tmnętmBookLists.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booklist frame \n\t\t\t\tBookListFrame window = new BookListFrame();\n\t\t\t\twindow.open();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmnętmBookLists.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Todo-List-icon.png\"));\n\t\tmnętmBookLists.setText(\"Book Lists\");\n\t\t\n\t\tMenuItem mnętmMemberList = new MenuItem(menu, SWT.NONE);\n\t\tmnętmMemberList.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call memberlistframe\n\t\t\t\tMemberListFrame window = new MemberListFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmnętmMemberList.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Misc-User-icon.png\"));\n\t\tmnętmMemberList.setText(\"Member List\");\n\t\t\n\t\tMenuItem mnętmNewItem = new MenuItem(menu, SWT.NONE);\n\t\tmnętmNewItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call rent list\n\t\t\t\tRentListFrame rlf=new RentListFrame();\n\t\t\t\trlf.open();\n\t\t\t}\n\t\t});\n\t\tmnętmNewItem.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Time-And-Date-Calendar-icon.png\"));\n\t\tmnętmNewItem.setText(\"Rent List\");\n\t\t\n\t\tButton btnNewButton = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booksettingsframe\n\t\t\t\tBookSettingsFrame window = new BookSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Printing-Books-icon.png\"));\n\t\tbtnNewButton.setBounds(160, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call membersettingsframe\n\t\t\t\tMemberSettingsFrame window = new MemberSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_1.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Add-User-icon.png\"));\n\t\tbtnNewButton_1.setBounds(367, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_2 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tRentingFrame rf=new RentingFrame();\n\t\t\t\trf.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_2.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_2.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Statistics-icon.png\"));\n\t\tbtnNewButton_2.setBounds(567, 176, 114, 112);\n\n\t}", "private void createContents() {\n\t\tshell = new Shell(getParent(), getStyle());\n\n\t\tshell.setSize(379, 234);\n\t\tshell.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tLabel dialogAccountHeader = new Label(shell, SWT.NONE);\n\t\tdialogAccountHeader.setAlignment(SWT.CENTER);\n\t\tdialogAccountHeader.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tdialogAccountHeader.setLayoutData(BorderLayout.NORTH);\n\t\tif(!this.isNeedAdd)\n\t\t{\n\t\t\tdialogAccountHeader.setText(\"\\u0420\\u0435\\u0434\\u0430\\u043A\\u0442\\u0438\\u0440\\u043E\\u0432\\u0430\\u043D\\u0438\\u0435 \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u0430\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdialogAccountHeader.setText(\"\\u0414\\u043E\\u0431\\u0430\\u0432\\u043B\\u0435\\u043D\\u0438\\u0435 \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u0430\");\n\t\t}\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\n\t\tcomposite.setLayoutData(BorderLayout.CENTER);\n\t\t\n\t\tLabel label = new Label(composite, SWT.NONE);\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel.setBounds(10, 16, 106, 21);\n\t\tlabel.setText(\"\\u0418\\u043C\\u044F \\u0441\\u0435\\u0440\\u0432\\u0435\\u0440\\u0430\");\n\t\t\n\t\ttextServer = new Text(composite, SWT.BORDER);\n\t\ttextServer.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextServer.setBounds(122, 13, 241, 32);\n\t\t\n\t\n\t\tLabel label_1 = new Label(composite, SWT.NONE);\n\t\tlabel_1.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel_1.setText(\"\\u041B\\u043E\\u0433\\u0438\\u043D\");\n\t\tlabel_1.setBounds(10, 58, 55, 21);\n\t\t\n\t\ttextLogin = new Text(composite, SWT.BORDER);\n\t\ttextLogin.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextLogin.setBounds(122, 55, 241, 32);\n\t\ttextLogin.setFocus();\n\t\t\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel_2.setText(\"\\u041F\\u0430\\u0440\\u043E\\u043B\\u044C\");\n\t\tlabel_2.setBounds(10, 106, 55, 21);\n\t\t\n\t\ttextPass = new Text(composite, SWT.PASSWORD | SWT.BORDER);\n\t\ttextPass.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextPass.setBounds(122, 103, 241, 32);\n\t\t\n\t\tif(isNeedAdd){\n\t\t\ttextServer.setText(\"imap.mail.ru\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttextServer.setText(this.account.getServer());\n\t\t\ttextLogin.setText(account.getLogin());\n\t\t\ttextPass.setText(account.getPass());\n\t\t}\n\t\t\n\t\tComposite composite_1 = new Composite(shell, SWT.NONE);\n\t\tcomposite_1.setLayoutData(BorderLayout.SOUTH);\n\t\t\n\t\tButton btnSaveAccount = new Button(composite_1, SWT.NONE);\n\t\tbtnSaveAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tString login = textLogin.getText();\n\t\t\t\tif(textServer.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле имя сервера не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(textLogin.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле логин не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if (!login.matches(\"^([_A-Za-z0-9-]+)@([A-Za-z0-9]+)\\\\.([A-Za-z]{2,})$\"))\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле логин введен некорректно!\");\n\t\t\t\t\treturn;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if(Setting.Instance().AnyAccounts(textLogin.getText(), isNeedAdd))\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"такой логин уже существует!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(textPass.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле пароль не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(isNeedAdd)\n\t\t\t\t{\n\t\t\t\t\tservice.AddAccount(textServer.getText(), textLogin.getText(), textPass.getText());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\taccount.setLogin(textLogin.getText());\n\t\t\t\t\taccount.setPass(textPass.getText());\n\t\t\t\t\taccount.setServer(textServer.getText());\t\n\t\t\t\t\tservice.EditAccount(account);\n\t\t\t\t}\n\t\t\t\tservice.RepaintAccount(table);\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\tbtnSaveAccount.setLocation(154, 0);\n\t\tbtnSaveAccount.setSize(96, 32);\n\t\tbtnSaveAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tbtnSaveAccount.setText(\"\\u0421\\u043E\\u0445\\u0440\\u0430\\u043D\\u0438\\u0442\\u044C\");\n\t\t\n\t\tButton btnCancel = new Button(composite_1, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setLocation(267, 0);\n\t\tbtnCancel.setSize(96, 32);\n\t\tbtnCancel.setText(\"\\u041E\\u0442\\u043C\\u0435\\u043D\\u0430\");\n\t\tbtnCancel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setBounds(44, 47, 90, 24);\r\n\t\tlabel.setText(\"充值金额:\");\r\n\t\t\r\n\t\ttext_balance = new Text(shell, SWT.BORDER);\r\n\t\ttext_balance.setBounds(156, 47, 198, 30);\r\n\t\t\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\t//确认充值\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tString balance=text_balance.getText().trim();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tint i=dao.add(balance);\r\n\t\t\t\t\tif(i>0){\r\n\t\t\t\t\t\tswtUtil.showMessage(shell, \"成功提示\", \"充值成功\");\r\n\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tswtUtil.showMessage(shell, \"错误提示\", \"所充值不能为零\");\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setBounds(140, 131, 114, 34);\r\n\t\tbutton.setText(\"确认充值\");\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.addShellListener(new ShellAdapter() {\n\t\t\t@Override\n\t\t\tpublic void shellActivated(ShellEvent e) {\n\t\t\t\tloadSettings();\n\t\t\t}\n\t\t});\n\t\tshell.setSize(450, 160);\n\t\tshell.setText(\"Settings\");\n\t\t\n\t\ttextUsername = new Text(shell, SWT.BORDER);\n\t\ttextUsername.setBounds(118, 10, 306, 21);\n\t\t\n\t\ttextPassword = new Text(shell, SWT.BORDER | SWT.PASSWORD);\n\t\ttextPassword.setBounds(118, 38, 306, 21);\n\t\t\n\t\tCLabel lblLogin = new CLabel(shell, SWT.NONE);\n\t\tlblLogin.setBounds(10, 10, 61, 21);\n\t\tlblLogin.setText(\"Login\");\n\t\t\n\t\tCLabel lblPassword = new CLabel(shell, SWT.NONE);\n\t\tlblPassword.setText(\"Password\");\n\t\tlblPassword.setBounds(10, 38, 61, 21);\n\t\t\n\t\tButton btnSave = new Button(shell, SWT.NONE);\n\t\tbtnSave.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tApplicationSettings as = new ApplicationSettings();\n\t\t as.savePassword(textPassword.getText());\n\t\t as.saveUsername(textUsername.getText());\n\t\t \n\t\t connectionOK = WSHandler.setAutoFillDailyReports(btnAutomaticDailyReport.getSelection());\n\t\t \n\t\t shell.close();\n\t\t if (!(parentDialog == null)) {\n\t\t \tparentDialog.reloadTable();\n\t\t }\n\t\t\t}\n\t\t});\n\t\tbtnSave.setBounds(10, 87, 414, 25);\n\t\tbtnSave.setText(\"Save\");\n\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 395);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t\r\n\t\tnachname = new Text(shell, SWT.BORDER);\r\n\t\tnachname.setBounds(32, 27, 76, 21);\r\n\t\t\r\n\t\tvorname = new Text(shell, SWT.BORDER);\r\n\t\tvorname.setBounds(32, 66, 76, 21);\r\n\t\t\r\n\t\tLabel lblNachname = new Label(shell, SWT.NONE);\r\n\t\tlblNachname.setBounds(135, 33, 55, 15);\r\n\t\tlblNachname.setText(\"Nachname\");\r\n\t\t\r\n\t\tLabel lblVorname = new Label(shell, SWT.NONE);\r\n\t\tlblVorname.setBounds(135, 66, 55, 15);\r\n\t\tlblVorname.setText(\"Vorname\");\r\n\t\t\r\n\t\tButton btnFgeListeHinzu = new Button(shell, SWT.NONE);\r\n\t\tbtnFgeListeHinzu.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t//\r\n\t\t\t\tPerson p = new Person();\r\n\t\t\t\tp.setNachname(getNachname().getText());\r\n\t\t\t\tp.setVorname(getVorname().getText());\r\n\t\t\t\t//\r\n\t\t\t\tPerson.getPersonenListe().add(p);\r\n\t\t\t\tgetGuiListe().add(p.toString());\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFgeListeHinzu.setBounds(43, 127, 147, 25);\r\n\t\tbtnFgeListeHinzu.setText(\"f\\u00FCge liste hinzu\");\r\n\t\t\r\n\t\tButton btnWriteJson = new Button(shell, SWT.NONE);\r\n\t\tbtnWriteJson.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tPerson.write2JSON();\r\n\t\t\t\t\t//\r\n\t\t\t\t\tMessageBox mb = new MessageBox(shell, SWT.ICON_INFORMATION | SWT.OK);\r\n\t\t\t\t\tmb.setText(\"JSON geschrieben\");\r\n\t\t\t\t\tmb.setMessage(Person.getPersonenListe().size() + \" Einträge erfolgreich geschrieben\");\r\n\t\t\t\t\tmb.open();\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\tMessageBox mb = new MessageBox(shell, SWT.ICON_ERROR | SWT.OK);\r\n\t\t\t\t\tmb.setText(\"Fehler bei JSON\");\r\n\t\t\t\t\tmb.setMessage(e1.getMessage());\r\n\t\t\t\t\tmb.open();\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnWriteJson.setBounds(54, 171, 75, 25);\r\n\t\tbtnWriteJson.setText(\"write 2 json\");\r\n\t\t\r\n\t\tguiListe = new List(shell, SWT.BORDER);\r\n\t\tguiListe.setBounds(43, 221, 261, 125);\r\n\r\n\t}", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), getStyle());\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(getText());\r\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tComposite composite = new Composite(shell, SWT.NONE);\r\n\t\tcomposite.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tComposite composite_1 = new Composite(composite, SWT.NONE);\r\n\t\tRowLayout rl_composite_1 = new RowLayout(SWT.VERTICAL);\r\n\t\trl_composite_1.center = true;\r\n\t\trl_composite_1.fill = true;\r\n\t\tcomposite_1.setLayout(rl_composite_1);\r\n\t\t\r\n\t\tComposite composite_2 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_2.setLayout(new FillLayout(SWT.VERTICAL));\r\n\t\t\r\n\t\tButton btnNewButton = new Button(composite_2, SWT.NONE);\r\n\t\tbtnNewButton.setText(\"New Button\");\r\n\t\t\r\n\t\tButton btnRadioButton = new Button(composite_2, SWT.RADIO);\r\n\t\tbtnRadioButton.setText(\"Radio Button\");\r\n\t\t\r\n\t\tButton btnCheckButton = new Button(composite_2, SWT.CHECK);\r\n\t\tbtnCheckButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCheckButton.setText(\"Check Button\");\r\n\r\n\t}", "private void buildWindow(){\r\n\t\tthis.setSize(new Dimension(600, 400));\r\n\t\tFunctions.setDebug(true);\r\n\t\tbackendConnector = new BackendConnector(this);\r\n\t\tguiManager = new GUIManager(this);\r\n\t\tmainCanvas = new MainCanvas(this);\r\n\t\tadd(mainCanvas);\r\n\t}", "public void createWindow(){\n JFrame frame = new JFrame(\"Baser Aps sick leave prototype\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setSize(screenSize.width,screenSize.height);\n frame.setExtendedState(JFrame.MAXIMIZED_BOTH);\n\n /**\n * Setting up the main layout\n */\n Container allContent = frame.getContentPane();\n allContent.setLayout(new BorderLayout()); //main layout is BorderLayout\n\n /**\n * Stuff in the content pane\n */\n JButton button = new JButton(\"Press\");\n JTextPane text = new JTextPane();\n text.setText(\"POTATO TEST\");\n text.setEditable(false);\n JMenuBar menuBar = new JMenuBar();\n JMenu file = new JMenu(\"File\");\n JMenu help = new JMenu(\"Help\");\n JMenuItem open = new JMenuItem(\"Open...\");\n JMenuItem saveAs = new JMenuItem(\"Save as\");\n open.addMouseListener(new MouseListener() {\n @Override\n public void mouseClicked(MouseEvent e) {\n fileChooser.showOpenDialog(frame);\n }\n\n @Override\n public void mousePressed(MouseEvent e) {\n\n }\n\n @Override\n public void mouseReleased(MouseEvent e) {\n\n }\n\n @Override\n public void mouseEntered(MouseEvent e) {\n\n }\n\n @Override\n public void mouseExited(MouseEvent e) {\n\n }\n });\n file.add(open);\n file.add(saveAs);\n menuBar.add(file);\n menuBar.add(help);\n\n allContent.add(button, LINE_START); // Adds Button to content pane of frame at position LINE_START\n allContent.add(text, LINE_END); // Adds the text to the frame, at position LINE_END\n allContent.add(menuBar, PAGE_START);\n\n\n\n frame.setVisible(true);\n }", "protected void createContents() {\n\t\tshell = new Shell(SWT.TITLE | SWT.CLOSE | SWT.BORDER);\n\t\tshell.setSize(713, 226);\n\t\tshell.setText(\"ALT Planner\");\n\t\t\n\t\tCalendarPop calendarComp = new CalendarPop(shell, SWT.NONE);\n\t\tcalendarComp.setBounds(5, 5, 139, 148);\n\t\t\n\t\tComposite composite = new PlannerInterface(shell, SWT.NONE, calendarComp);\n\t\tcomposite.setBounds(0, 0, 713, 200);\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmFile = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmFile.setText(\"File\");\n\t\t\n\t\tMenu menu_1 = new Menu(mntmFile);\n\t\tmntmFile.setMenu(menu_1);\n\t\t\n\t\tMenuItem mntmSettings = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmSettings.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSettings settings = new Settings(Display.getDefault());\n\t\t\t\tsettings.open();\n\t\t\t}\n\t\t});\n\t\tmntmSettings.setText(\"Settings\");\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setImage(SWTResourceManager.getImage(mainFrame.class, \"/imgCompand/main/logo.png\"));\r\n\t\tshell.setSize(935, 650);\r\n\t\tshell.setMinimumSize(920, 650);\r\n\t\tcenter(shell);\r\n\t\tshell.setText(\"三合一\");\r\n\t\tshell.setLayout(new GridLayout(8, false));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setText(\"面单图片:\");\r\n\t\t\r\n\t\ttext_mdtp = new Text(shell, SWT.BORDER);\r\n\t\ttext_mdtp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\r\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setMessage(\"setMessage\"); \r\n\t\t\t\tdd.setText(\"选择保存面单图片的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString mdtp=dd.open();\r\n\t\t\t\tif(mdtp!=null){\r\n\t\t\t\t\ttext_mdtp.setText(mdtp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnNewButton = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);\r\n\t\tgd_btnNewButton.widthHint = 95;\r\n\t\tbtnNewButton.setLayoutData(gd_btnNewButton);\r\n\t\tbtnNewButton.setText(\"浏览\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlblNewLabel = new Label(shell, SWT.NONE);\r\n\t\tGridData gd_lblNewLabel = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblNewLabel.widthHint = 87;\r\n\t\tlblNewLabel.setLayoutData(gd_lblNewLabel);\r\n\t\tlblNewLabel.setText(\"身份证图片:\");\r\n\t\t\r\n\t\ttext_sfztp = new Text(shell, SWT.BORDER);\r\n\t\ttext_sfztp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtnNewButton_1 = new Button(shell, SWT.NONE);\r\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setMessage(\"setMessage\"); \r\n\t\t\t\tdd.setText(\"选择保存身份证图片的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString sfztp=dd.open();\r\n\t\t\t\tif(sfztp!=null){\r\n\t\t\t\t\ttext_sfztp.setText(sfztp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnNewButton_1 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);\r\n\t\tgd_btnNewButton_1.widthHint = 95;\r\n\t\tbtnNewButton_1.setLayoutData(gd_btnNewButton_1);\r\n\t\tbtnNewButton_1.setText(\"浏览\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_1 = new Label(shell, SWT.NONE);\r\n\t\tlabel_1.setText(\"小票图片:\");\r\n\t\t\r\n\t\ttext_xptp = new Text(shell, SWT.BORDER);\r\n\t\ttext_xptp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbutton = new Button(shell, SWT.NONE);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setText(\"选择保存小票图片的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString xptp=dd.open();\r\n\t\t\t\tif(xptp!=null){\r\n\t\t\t\t\ttext_xptp.setText(xptp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_button = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);\r\n\t\tgd_button.widthHint = 95;\r\n\t\tbutton.setLayoutData(gd_button);\r\n\t\tbutton.setText(\"浏览\");\r\n\t\t\r\n\t\tlabel_2 = new Label(shell, SWT.NONE);\r\n\t\tlabel_2.setText(\" \");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlblNewLabel_1 = new Label(shell, SWT.NONE);\r\n\t\tlblNewLabel_1.setText(\" \");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_5 = new Label(shell, SWT.NONE);\r\n\t\tlabel_5.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlabel_5.setText(\"三合一导入模板下载,请点击........\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbutton_1 = new Button(shell, SWT.NONE);\r\n\t\tGridData gd_button_1 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_button_1.widthHint = 95;\r\n\t\tbutton_1.setLayoutData(gd_button_1);\r\n\t\tbutton_1.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\ttry{\r\n\t\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\t\tdd.setText(\"请选择文件保存的位置\"); \r\n\t\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\t\tString saveFile=dd.open(); \r\n\t\t\t\t\tif(saveFile!=null){\r\n\t\t\t\t\t\tboolean flg = FileUtil.downloadLocal(saveFile, \"/template.xls\", \"三合一导入模板.xls\");\r\n\t\t\t\t\t\tif(flg){\r\n\t\t\t\t\t\t\tMessageDialog.openInformation(shell, \"系统提示\", \"模板下载成功!保存路径为:\"+saveFile+\"/三合一导入模板.xls\");\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tMessageDialog.openError(shell, \"系统提示\", \"模板下载失败!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t }catch(Exception ex){\r\n\t\t\t\t\t System.out.print(\"创建失败\");\r\n\t\t\t\t } \r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton_1.setText(\"导入模板\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_4 = new Label(shell, SWT.NONE);\r\n\t\tlabel_4.setText(\"合成信息:\");\r\n\t\t\r\n\t\ttext = new Text(shell, SWT.BORDER);\r\n\t\ttext.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtnexecl = new Button(shell, SWT.NONE);\r\n\t\tbtnexecl.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tFileDialog filedia = new FileDialog(shell, SWT.SINGLE);\r\n\t\t\t\tString filepath = filedia.open()+\"\";\r\n\t\t\t\ttext.setText(filepath.replace(\"null\",\"\"));\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnexecl = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btnexecl.widthHint = 95;\r\n\t\tbtnexecl.setLayoutData(gd_btnexecl);\r\n\t\tbtnexecl.setText(\"导入execl\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_3 = new Label(shell, SWT.NONE);\r\n\t\tlabel_3.setText(\"合成图片:\");\r\n\t\t\r\n\t\ttext_hctp = new Text(shell, SWT.BORDER);\r\n\t\ttext_hctp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtnNewButton_2 = new Button(shell, SWT.NONE);\r\n\t\tbtnNewButton_2.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setText(\"选择合成图片将要保存的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString hctp=dd.open();\r\n\t\t\t\tif(hctp!=null){\r\n\t\t\t\t\ttext_hctp.setText(hctp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnNewButton_2 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btnNewButton_2.widthHint = 95;\r\n\t\tbtnNewButton_2.setLayoutData(gd_btnNewButton_2);\r\n\t\tbtnNewButton_2.setText(\"保存位置\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_6 = new Label(shell, SWT.NONE);\r\n\t\tlabel_6.setText(\"进度:\");\r\n\t\t\r\n\t\tprogressBar = new ProgressBar(shell, SWT.NONE);\r\n\t\tGridData gd_progressBar = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_progressBar.widthHint = 524;\r\n\t\tprogressBar.setMinimum(0);\r\n\t\tprogressBar.setMaximum(100);\r\n\t\tprogressBar.setLayoutData(gd_progressBar);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtn_doCompImg = new Button(shell, SWT.NONE);\r\n\t\tbtn_doCompImg.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t//导入信息\r\n\t\t\t\tdrxx = text.getText();\r\n\t\t\t\t//保存路径\r\n\t\t\t\thctp = text_hctp.getText();\r\n\t\t\t\t//面单图片路径\r\n\t\t\t\tmdtp = text_mdtp.getText();\r\n\t\t\t\t//身份证图片路径\r\n\t\t\t\tsfztp = text_sfztp.getText();\r\n\t\t\t\t//小票图片路径\r\n\t\t\t\txptp = text_xptp.getText();\r\n\t\t\t\t//清空信息框\r\n\t\t\t\ttext_info.setText(\"\");\r\n\t\t\t\tif(!drxx.equals(\"\")&&!hctp.equals(\"\")&&!mdtp.equals(\"\")&&!sfztp.equals(\"\")&&!xptp.equals(\"\")){\r\n\t\t\t\t\t(new IncresingOperator()).start();\r\n\t\t\t\t}else{\r\n\t\t\t\t\tMessageDialog.openWarning(shell, \"系统提示\",\"各路径选项不能为空!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btn_doCompImg = new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btn_doCompImg.widthHint = 95;\r\n\t\tbtn_doCompImg.setLayoutData(gd_btn_doCompImg);\r\n\t\tbtn_doCompImg.setText(\"立即合成\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\ttext_info = new Text(shell, SWT.BORDER | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tGridData gd_text_info = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n\t\tgd_text_info.heightHint = 217;\r\n\t\ttext_info.setLayoutData(gd_text_info);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\r\n\t}", "private void createContents() {\n\t\tshell = new Shell(getParent(), SWT.MIN |SWT.APPLICATION_MODAL);\n\t\tshell.setImage(SWTResourceManager.getImage(WordWatermarkDialog.class, \"/com/yc/ui/1.jpg\"));\n\t\tshell.setSize(436, 321);\n\t\tshell.setText(\"设置文字水印\");\n\t\t\n\t\tLabel label_font = new Label(shell, SWT.NONE);\n\t\tlabel_font.setBounds(38, 80, 61, 17);\n\t\tlabel_font.setText(\"字体名称:\");\n\t\t\n\t\tLabel label_style = new Label(shell, SWT.NONE);\n\t\tlabel_style.setBounds(232, 77, 61, 17);\n\t\tlabel_style.setText(\"字体样式:\");\n\t\t\n\t\tLabel label_size = new Label(shell, SWT.NONE);\n\t\tlabel_size.setBounds(38, 120, 68, 17);\n\t\tlabel_size.setText(\"字体大小:\");\n\t\t\n\t\tLabel label_color = new Label(shell, SWT.NONE);\n\t\tlabel_color.setBounds(232, 120, 68, 17);\n\t\tlabel_color.setText(\"字体颜色:\");\n\t\t\n\t\tLabel label_word = new Label(shell, SWT.NONE);\n\t\tlabel_word.setBounds(38, 38, 61, 17);\n\t\tlabel_word.setText(\"水印文字:\");\n\t\t\n\t\ttext = new Text(shell, SWT.BORDER);\n\t\ttext.setBounds(115, 35, 278, 23);\n\t\t\n\t\tButton button_confirm = new Button(shell, SWT.NONE);\n\t\t\n\t\tbutton_confirm.setBounds(313, 256, 80, 27);\n\t\tbutton_confirm.setText(\"确定\");\n\t\t\n\t\tCombo combo = new Combo(shell, SWT.NONE);\n\t\tcombo.setItems(new String[] {\"宋体\", \"黑体\", \"楷体\", \"微软雅黑\", \"仿宋\"});\n\t\tcombo.setBounds(115, 77, 93, 25);\n\t\tcombo.setText(\"黑体\");\n\t\t\n\t\tCombo combo_1 = new Combo(shell, SWT.NONE);\n\t\tcombo_1.setItems(new String[] {\"粗体\", \"斜体\"});\n\t\tcombo_1.setBounds(300, 74, 93, 25);\n\t\tcombo_1.setText(\"粗体\");\n\t\t\n\t\tCombo combo_2 = new Combo(shell, SWT.NONE);\n\t\tcombo_2.setItems(new String[] {\"1\", \"3\", \"5\", \"8\", \"10\", \"12\", \"16\", \"18\", \"20\", \"24\", \"30\", \"36\", \"48\", \"56\", \"66\", \"72\"});\n\t\tcombo_2.setBounds(115, 117, 93, 25);\n\t\tcombo_2.setText(\"24\");\n\t\t\n\t\tCombo combo_3 = new Combo(shell, SWT.NONE);\n\t\tcombo_3.setItems(new String[] {\"红色\", \"绿色\", \"蓝色\"});\n\t\tcombo_3.setBounds(300, 117, 93, 25);\n\t\tcombo_3.setText(\"红色\");\n\t\t\n\t\tButton button_cancle = new Button(shell, SWT.NONE);\n\t\t\n\t\tbutton_cancle.setBounds(182, 256, 80, 27);\n\t\tbutton_cancle.setText(\"取消\");\n\t\t\n\t\tLabel label_X = new Label(shell, SWT.NONE);\n\t\tlabel_X.setBounds(31, 161, 68, 17);\n\t\tlabel_X.setText(\"X轴偏移值:\");\n\t\t\n\t\tCombo combo_4 = new Combo(shell, SWT.NONE);\n\t\tcombo_4.setItems(new String[] {\"10\", \"20\", \"30\", \"40\", \"50\", \"80\", \"100\", \"160\", \"320\", \"640\"});\n\t\tcombo_4.setBounds(115, 158, 93, 25);\n\t\tcombo_4.setText(\"50\");\n\t\t\n\t\tLabel label_Y = new Label(shell, SWT.NONE);\n\t\tlabel_Y.setText(\"Y轴偏移值:\");\n\t\tlabel_Y.setBounds(225, 161, 68, 17);\n\t\t\n\t\tCombo combo_5 = new Combo(shell, SWT.NONE);\n\t\tcombo_5.setItems(new String[] {\"10\", \"20\", \"30\", \"40\", \"50\", \"80\", \"100\", \"160\", \"320\", \"640\"});\n\t\tcombo_5.setBounds(300, 158, 93, 25);\n\t\tcombo_5.setText(\"50\");\n\t\t\n\t\tLabel label_alpha = new Label(shell, SWT.NONE);\n\t\tlabel_alpha.setBounds(46, 204, 53, 17);\n\t\tlabel_alpha.setText(\"透明度:\");\n\t\t\n\t\tCombo combo_6 = new Combo(shell, SWT.NONE);\n\t\tcombo_6.setItems(new String[] {\"0\", \"0.1\", \"0.2\", \"0.3\", \"0.4\", \"0.5\", \"0.6\", \"0.7\", \"0.8\", \"0.9\", \"1.0\"});\n\t\tcombo_6.setBounds(115, 201, 93, 25);\n\t\tcombo_6.setText(\"0.8\");\n\t\t\n\t\t//取消按钮\n\t\tbutton_cancle.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tWordWatermarkDialog.this.shell.dispose();\n\t\t\t}\n\t\t});\n\t\t\n\t\t//确认按钮\n\t\tbutton_confirm.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\tif(text.getText().trim()==null || \"\".equals(text.getText().trim())\n\t\t\t\t\t\t||combo.getText().trim()==null || \"\".equals(combo.getText().trim()) \n\t\t\t\t\t\t\t||combo_1.getText().trim()==null || \"\".equals(combo_1.getText().trim())\n\t\t\t\t\t\t\t\t|| combo_2.getText().trim()==null || \"\".equals(combo_2.getText().trim())\n\t\t\t\t\t\t\t\t\t|| combo_3.getText().trim()==null || \"\".equals(combo_3.getText().trim())\n\t\t\t\t\t\t\t\t\t\t||combo_4.getText().trim()==null || \"\".equals(combo_4.getText().trim())\n\t\t\t\t\t\t\t\t\t\t\t||combo_5.getText().trim()==null || \"\".equals(combo_5.getText().trim())\n\t\t\t\t\t\t\t\t\t\t\t\t||combo_6.getText().trim()==null || \"\".equals(combo_6.getText().trim())){\n\t\t\t\t\tMessageDialog.openError(shell, \"错误\", \"输入框不能为空或输入空值,请确认后重新输入!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString word=text.getText().trim();\n\t\t\t\tString wordName=getFontName(combo.getText().trim());\n\t\t\t\tint wordStyle=getFonStyle(combo_1.getText().trim());\n\t\t\t\tint wordSize=Integer.parseInt(combo_2.getText().trim());\n\t\t\t\tColor wordColor=getFontColor(combo_3.getText().trim());\n\t\t\t\tint word_X=Integer.parseInt(combo_4.getText().trim());\n\t\t\t\tint word_Y=Integer.parseInt(combo_5.getText().trim());\n\t\t\t\tfloat word_Alpha=Float.parseFloat(combo_6.getText().trim());\n\t\t\t\t\n\t\t\t\tis=MeituUtils.waterMarkWord(EditorUi.filePath,word, wordName, wordStyle, wordSize, wordColor, word_X, word_Y,word_Alpha);\n\t\t\t\tCommon.image=new Image(display,is);\n\t\t\t\tWordWatermarkDialog.this.shell.dispose();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tcombo.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[^0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\n\t\tcombo_1.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[^0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_2.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[0-9]\\\\d*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_3.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[^0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\t\n\t\t\n\t\tcombo_4.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[0-9]\\\\d*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_5.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[0-9]\\\\d*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_6.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\".[0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\n\t}", "private void createWindow() throws Exception {\r\n Display.setFullscreen(false);\r\n Display.setDisplayMode(new DisplayMode(WIDTH, HEIGHT));\r\n Display.setTitle(\"Program 2\");\r\n Display.create();\r\n }", "public void createContents()\n\t{\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"TTS - Task Tracker System\");\n\t\t\n\t\tbtnLogIn = new Button(shell, SWT.NONE);\n\t\tbtnLogIn.setBounds(349, 84, 75, 25);\n\t\tbtnLogIn.setText(\"Log In\");\n\t\tbtnLogIn.addSelectionListener(new SelectionAdapter()\n\t\t{\n\t\t\tpublic void widgetSelected(SelectionEvent arg0)\n\t\t\t{\n\t\t\t\tif (cboxUserDropDown.getText() != \"\"\n\t\t\t\t\t\t&& cboxUserDropDown.getSelectionIndex() >= 0)\n\t\t\t\t{\n\t\t\t\t\tString selectedUserName = cboxUserDropDown.getText();\n\t\t\t\t\tusers.setLoggedInUser(selectedUserName);\n\t\t\t\t\tshell.setVisible(false);\n\t\t\t\t\tdisplay.sleep();\n\t\t\t\t\tnew TaskMainViewWindow(AccessUsers.getLoggedInUser());\n\t\t\t\t\tdisplay.wake();\n\t\t\t\t\tshell.setVisible(true);\n\t\t\t\t\tshell.forceFocus();\n\t\t\t\t\tshell.setActive();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnQuit = new Button(shell, SWT.CENTER);\n\t\tbtnQuit.setBounds(349, 227, 75, 25);\n\t\tbtnQuit.setText(\"Quit\");\n\t\tbtnQuit.addSelectionListener(new SelectionAdapter()\n\t\t{\n\t\t\tpublic void widgetSelected(SelectionEvent arg0)\n\t\t\t{\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\t\n\t\tcboxUserDropDown = new Combo(shell, SWT.READ_ONLY);\n\t\tcboxUserDropDown.setBounds(146, 86, 195, 23);\n\t\t\n\t\tinitUserDropDown();\n\t\t\n\t\tlblNewLabel = new Label(shell, SWT.CENTER);\n\t\tlblNewLabel.setBounds(197, 21, 183, 25);\n\t\tlblNewLabel.setFont(new Font(display, \"Times\", 14, SWT.BOLD));\n\t\tlblNewLabel.setForeground(new Color(display, 200, 0, 0));\n\t\tlblNewLabel.setText(\"Task Tracker System\");\n\t\t\n\t\ticon = new Label(shell, SWT.BORDER);\n\t\ticon.setLocation(0, 0);\n\t\ticon.setSize(140, 111);\n\t\ticon.setImage(new Image(null, \"images/task.png\"));\n\t\t\n\t\tbtnCreateUser = new Button(shell, SWT.NONE);\n\t\tbtnCreateUser.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tshell.setEnabled(false);\n\t\t\t\tnew CreateUserWindow(users);\n\t\t\t\tshell.setEnabled(true);\n\t\t\t\tinitUserDropDown();\n\t\t\t\tshell.forceFocus();\n\t\t\t\tshell.setActive();\n\t\t\t}\n\t\t});\n\t\tbtnCreateUser.setBounds(349, 115, 75, 25);\n\t\tbtnCreateUser.setText(\"Create User\");\n\t\t\n\t}", "private void createContents() {\n\t\tshlAbout = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.RESIZE);\n\t\tshlAbout.setMinimumSize(new Point(800, 600));\n\t\tshlAbout.setSize(800, 688);\n\t\tshlAbout.setText(\"About\");\n\t\t\n\t\tLabel lblKelimetrikAPsycholinguistic = new Label(shlAbout, SWT.CENTER);\n\t\tlblKelimetrikAPsycholinguistic.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tlblKelimetrikAPsycholinguistic.setBounds(0, 10, 784, 21);\n\t\tlblKelimetrikAPsycholinguistic.setText(\"KelimetriK: A psycholinguistic tool of Turkish\");\n\t\t\n\t\tScrolledComposite scrolledComposite = new ScrolledComposite(shlAbout, SWT.BORDER | SWT.V_SCROLL);\n\t\tscrolledComposite.setBounds(0, 37, 774, 602);\n\t\tscrolledComposite.setExpandHorizontal(true);\n\t\tscrolledComposite.setExpandVertical(true);\n\t\t\n\t\tComposite composite = new Composite(scrolledComposite, SWT.NONE);\n\t\t\n\t\tLabel label = new Label(composite, SWT.NONE);\n\t\tlabel.setSize(107, 21);\n\t\tlabel.setText(\"Introduction\");\n\t\tlabel.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\n\t\tLabel label_1 = new Label(composite, SWT.WRAP);\n\t\tlabel_1.setLocation(0, 27);\n\t\tlabel_1.setSize(753, 157);\n\t\tlabel_1.setText(\"Selection of appropriate words for a fully controlled word stimuli set is an essential component for conducting an effective psycholinguistic studies (Perea, & Polatsek, 1998; Bowers, Davis, & Hanley, 2004). For example, if the word stimuli set of a visual word recognition study is full of high frequency words, this may create a bias on the behavioral scores and would lead to incorrect inferences about the hypothesis. Thus, experimenters who are intended to work with any kind of verbal stimuli should consider such linguistic variables to obtain reliable results.\\r\\n\\r\\nKelimetriK is a query-based software program designed to demonstrate several lexical variables and orthographic statistics of words. As shown in Figure X, the user-friendly interface of KelimetriK is an easy-to-use software developed to be a helpful source experimenters who are preparing verbal stimuli sets for psycholinguistic studies. KelimetriK provides information about several lexical properties of word-frequency, neighborhood size, orthographic similarity and relatedness. KelimetriK\\u2019s counterparts in other language are N-watch in English (Davis, 2005) and BuscaPalabras in Spanish (Davis, & Perea, 2005).\");\n\t\t\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setLocation(0, 190);\n\t\tlabel_2.setSize(753, 21);\n\t\tlabel_2.setText(\"The lexical variables in KelimetriK Software\");\n\t\tlabel_2.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\n\t\tLabel label_3 = new Label(composite, SWT.WRAP);\n\t\tlabel_3.setBounds(0, 228, 753, 546);\n\t\tlabel_3.setText(\"Output lexical variables (and orthographic statistics) in KelimetriK are word-frequency, bigram and tri-gram frequency and average frequency values, orthographic neighborhood size (Coltheart\\u2019s N), orthographic Levensthein distance 20 (OLD20) and transposed letter and subset/superset similarity.\\r\\n\\r\\nWord frequency is a value that describes of how many times a word occurred in a given text. Research shows that there is a consistent logarithmic relationship between reaction time and word\\u2019s frequency score; the impact of effect is higher for smaller frequencies words that the effect gets smaller on higher frequency scores (Davis, 2005).\\r\\n\\r\\nBi-grams and tri-grams are are obtained by decomposing a word (string of tokens) into sequences of two and three number of neighboring elements (Manning, & Sch\\u00FCtze, 1999). For example, the Turkish word \\u201Ckule\\u201D (tower in English) can be decomposed into three different bigram sets (\\u201Cku\\u201D, \\u201Cul\\u201D, \\u201Cle\\u201D). Bigram/trigram frequency values are obtained by counting how many same letter (four in this case) words will start with first bigram set (e.g. \\u201Cku\\u201D), how many words have second bigram set in the middle (e.g. \\u201Cul\\u201D) in the middle, and how many words will end with last bigram set (\\u201Cle\\u201D) in a given lexical word database. The trigrams for the word \\u201Ckule\\u201D are \\u201Ckul\\u201D and \\u201Cule\\u201D. Average bi-gram/tri-gram frequency is obtained by adding a word\\u2019s entire bi-gram/ tri-gram frequencies and then dividing it by number of bigrams (\\u201Ckule\\u201D consist of three bigrams).\\r\\n\\r\\nOrthographic neighborhood size (Coltheart\\u2019s N) refers to number of words that can be obtained from a given lexical database word list by substituting a single letter of a word (Coltheart et al, 1977). For example, orthographic neighborhood size of the word \\u201Ckule\\u201D is 9 if searched on KelimetriK (\\u201C\\u015Fule\\u201D, \\u201Ckula\\u201D, \\u201Ckulp\\u201D, \\u201Cfule\\u201D, \\u201Ckale\\u201D, \\u201Ck\\u00F6le\\u201D, \\u201Ckele\\u201D, \\u201Ckile\\u201D, \\u201Cku\\u015Fe\\u201D). A word\\u2019s orthographic neighborhood size could influence behavioral performance in visual word recognition tasks of lexical decision, naming, perceptual identification, and semantic categorization (Perea, & Polatsek, 1998).\\r\\n\\r\\nOrthographic Levensthein distance 20 (OLD20) of a word is the average of 20 most close words in the unit of Levensthein distance (Yarkoni, Balota, & Yap, 2008). Levensthein distance between the two strings of letters is obtained by counting the minimum number of operations (substitution, deletion or insertion) required while passing from one letter string to the other (Levenshthein, 1966). Behavioral studies show that, OLD20 is negatively correlated with orthographic neighborhood size (r=-561) and positively correlated with word-length (r=868) for English words (Yarkoni, Balota, & Yap, 2008). Moreover, OLD20 explains more variance on visual word recognition scores than orthographic neighborhood size and word length (Yarkoni, Balota, & Yap, 2008).\\r\\n\\r\\nOrthographic similarity between two words means they are the neighbors of each other like the words \\u201Cal\\u0131n\\u201D (forehead in English) and \\u201Calan\\u201D (area in English). Transposed letter (TL) and subset/superset are the two most common similarities in the existing literature (Davis, 2005). TL similiarity is the case when the two letters differ from each other based on a single pair of adjacent letters as in the Turkish words of \\u201Cesen\\u201D (blustery) and \\u201Cesne\\u201D (yawn). Studies have shown that TL similarity may facilitate detection performance on naming and lexical decision task (Andrews, 1996). Subset/Superset similarity occurs when there is an embedded word in a given input word such as \\u201Cs\\u00FCt\\u201D (subset: milk in Turkish) \\u201Cs\\u00FCtun\\u201D (superset: pillar in Turkish). Presence of a subset in a word in a stimuli set may influence the subject\\u2019s reading performance, hence may create a confounding factor on the behavioral results (Bowers, Davis, & Hanley, 2005).\");\n\t\t\n\t\tLabel lblAndrewsLexical = new Label(composite, SWT.NONE);\n\t\tlblAndrewsLexical.setLocation(0, 798);\n\t\tlblAndrewsLexical.setSize(753, 296);\n\t\tlblAndrewsLexical.setText(\"Andrews (1996). Lexical retrieval and selection processes: Effects of transposed-letter confusability, Journal of Memory and Language 35, 775\\u2013800\\r\\n\\r\\nBowers, J. S., Davis, C. J., & Hanley, D. A. (2005). References automatic semantic activation of embedded words: Is there a \\u2018\\u2018hat\\u2019\\u2019 in \\u2018\\u2018that\\u2019\\u2019? Journal of Memory and Language, 52, 131-143.\\r\\n\\r\\nColtheart, M., Davelaar, E., Jonasson, J. T., & Besner, D. (1977). Access to the internal lexicon. Attention and Performance, 6, 535-555.\\r\\n\\r\\nDavis, C. J. (2005). N-Watch: A program for deriving neighborhood size and other psycholinguistic statistics. Behavior Research Methods, 37, 65-70.\\r\\n\\r\\nDavis, C. J., & Parea, M. (2005). BuscaPalabras: A program for deriving orthographic and phonological neighborhood statistics and other psycholinguistic indices in Spanish. Behavior Research Methods, 37, 665-671.\\r\\n\\r\\nLevenshtein, V. I. (1966, February). Binary codes capable of correcting deletions, insertions and reversals. In Soviet physics doklady (Vol. 10, p. 707).\\r\\n\\r\\nManning, C. D., & Sch\\u00FCtze, H. (1999). Foundations of statistical natural language processing. MIT press.\\r\\n\\r\\nPerea, M., & Pollatsek, A. (1998). The effects of neighborhood frequency in reading and lexical decision. Journal of Experimental Psychology, 24, 767-779.\\r\\n\\r\\nYarkoni, T., Balota, D., & Yap, M. (2008). Moving beyond Coltheart\\u2019s N: A new measure of orthographic similarity. Psychonomic Bulletin & Review, 15(5), 971-979.\\r\\n\");\n\t\t\n\t\tLabel label_4 = new Label(composite, SWT.NONE);\n\t\tlabel_4.setBounds(0, 771, 753, 21);\n\t\tlabel_4.setText(\"References\");\n\t\tlabel_4.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_4.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tscrolledComposite.setContent(composite);\n\t\tscrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n\n\t}", "protected void createContents() {\n\t\tshlCarbAndRemainder = new Shell(Display.getDefault(), SWT.TITLE|SWT.CLOSE|SWT.BORDER);\n\t\tshlCarbAndRemainder.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tshlCarbAndRemainder.setSize(323, 262);\n\t\tshlCarbAndRemainder.setText(\"CARB and Remainder\");\n\t\t\n\t\tGroup grpCarbSetting = new Group(shlCarbAndRemainder, SWT.NONE);\n\t\tgrpCarbSetting.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tgrpCarbSetting.setFont(SWTResourceManager.getFont(\"Calibri\", 12, SWT.BOLD));\n\t\tgrpCarbSetting.setText(\"CARB Setting\");\n\t\t\n\t\tgrpCarbSetting.setBounds(10, 0, 295, 106);\n\t\t\n\t\tLabel lblCARBValue = new Label(grpCarbSetting, SWT.NONE);\n\t\tlblCARBValue.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlblCARBValue.setBounds(10, 32, 149, 22);\n\t\tlblCARBValue.setText(\"CARB Value\");\n\t\t\n\t\tLabel lblAuthenticationPIN = new Label(grpCarbSetting, SWT.NONE);\n\t\tlblAuthenticationPIN.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlblAuthenticationPIN.setBounds(10, 68, 149, 22);\n\t\tlblAuthenticationPIN.setText(\"Authentication PIN\");\n\t\t\n\t\tSpinner spinnerCARBValue = new Spinner(grpCarbSetting, SWT.BORDER);\n\t\tspinnerCARBValue.setBounds(206, 29, 72, 22);\n\t\t\n\t\ttextAuthenticationPIN = new Text(grpCarbSetting, SWT.BORDER|SWT.PASSWORD);\n\t\ttextAuthenticationPIN.setBounds(206, 65, 72, 21);\n\t\t\t\t\n\t\tGroup grpRemainder = new Group(shlCarbAndRemainder, SWT.NONE);\n\t\tgrpRemainder.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tgrpRemainder.setFont(SWTResourceManager.getFont(\"Calibri\", 12, SWT.BOLD));\n\t\tgrpRemainder.setText(\"Remainder\");\n\t\tgrpRemainder.setBounds(10, 112, 296, 106);\n\t\t\n\t\tButton btnInjectBolus = new Button(grpRemainder, SWT.NONE);\n\t\tbtnInjectBolus.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tbtnInjectBolus.setBounds(183, 38, 103, 41);\n\t\tbtnInjectBolus.setText(\"INJECT BOLUS\");\n\t\t\n\t\tButton btnCancel = new Button(grpRemainder, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshlCarbAndRemainder.close();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setBounds(10, 38, 80, 41);\n\t\tbtnCancel.setText(\"Cancel\");\n\t\t\n\t\tButton btnSnooze = new Button(grpRemainder, SWT.NONE);\n\t\tbtnSnooze.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnSnooze.setBounds(96, 38, 81, 41);\n\t\tbtnSnooze.setText(\"Snooze\");\n\n\t}", "protected void createContents() {\n\t\tsetText(\"Account Settings\");\n\t\tsetSize(450, 225);\n\n\t}", "private static void createAndShowGUI() {\n\t\tJFrame window = MainWindow.newInstance();\n\t\t\n //Display the window.\n window.pack();\n window.setVisible(true);\n \n }", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tLabel lblUsername = new Label(shell, SWT.NONE);\n\t\tlblUsername.setBounds(73, 30, 55, 15);\n\t\tlblUsername.setText(\"Username\");\n\t\t\n\t\tLabel lblPassword = new Label(shell, SWT.NONE);\n\t\tlblPassword.setText(\"Password\");\n\t\tlblPassword.setBounds(73, 78, 55, 15);\n\t\t\n\t\ttxtUsername = new Text(shell, SWT.BORDER);\n\t\ttxtUsername.setText(\"lisa\");\n\t\ttxtUsername.setBounds(139, 24, 209, 21);\n\t\t\n\t\ttxtPassword = new Text(shell, SWT.BORDER);\n\t\ttxtPassword.setText(\"password1\");\n\t\ttxtPassword.setBounds(139, 72, 209, 21);\n\t\t\n\t\tButton btnLogin = new Button(shell, SWT.NONE);\n\t\tbtnLogin.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnLogin.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\t\t\t\tString usrname = txtUsername.getText();\n\t\t\t\tString usrpass = txtPassword.getText();\n\t\t\t\t\n\t\t\t\t// Call authenticate user credentials through authentication RMI server\n\t\t\t\tLoginInterface login;\n\t\t\t\ttry{\n\t\t\t\t\tlogin = (LoginInterface)Naming.lookup(\"rmi://localhost/login\");\n\t\t\t\t\t\n\t\t\t\t\tboolean authenticated = login.authenticate(usrname, usrpass);\n\t\t\t\t\tif(authenticated){\n\t\t\t\t\t\tSystem.out.println(\"User authenticated.\");\n\t\t\t\t\t\tclose();\n\n\t\t\t\t\t\tevaluator.EvaluatorClient.main(null);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"Username or password was incorrect. Please try again.\");\n\t\t\t\t\t\tlblMsgOut.setText(\"Username or password was incorrect. Please try again.\");\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}catch(Exception e2){\n\t\t\t\t\tSystem.out.println(\"LoginClient authentication exception: \" + e2);\n\t\t\t\t\tlblMsgOut.setText(\"LoginClient authentication exception: \" + e2);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLogin.setBounds(272, 118, 75, 25);\n\t\tbtnLogin.setText(\"Login\");\n\t\t\n\t\tlblMsgOut = new Label(shell, SWT.BORDER | SWT.WRAP);\n\t\tlblMsgOut.setBounds(10, 174, 414, 77);\n\t\tlblMsgOut.setText(\"Output:\");\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(1200, 1100);\n\t\tshell.setText(\"Zagreb Montaža d.o.o\");\n\n\t\tfinal Composite cmpMenu = new Composite(shell, SWT.NONE);\n\t\tcmpMenu.setBackground(SWTResourceManager.getColor(119, 136, 153));\n\t\tcmpMenu.setBounds(0, 0, 359, 1061);\n\t\t\n\t\tFormToolkit formToolkit = new FormToolkit(Display.getDefault());\n\t\tfinal Section sctnCalculator = formToolkit.createSection(cmpMenu, Section.TWISTIE | Section.TITLE_BAR);\n\t\tsctnCalculator.setExpanded(false);\n\t\tsctnCalculator.setBounds(10, 160, 339, 23);\n\t\tformToolkit.paintBordersFor(sctnCalculator);\n\t\tsctnCalculator.setText(\"Kalkulator temperature preddgrijavanja\");\n\n\t\tfinal Section sctn10112ce = formToolkit.createSection(cmpMenu, Section.TREE_NODE | Section.TITLE_BAR);\n\t\tsctn10112ce.setBounds(45, 189, 304, 23);\n\t\tformToolkit.paintBordersFor(sctn10112ce);\n\t\tsctn10112ce.setText(\"1011-2 CE\");\n\t\tsctn10112ce.setVisible(false);\n\n\t\tfinal Section sctn10112cet = formToolkit.createSection(cmpMenu, Section.TREE_NODE | Section.TITLE_BAR);\n\t\tsctn10112cet.setBounds(45, 218, 304, 23);\n\t\tformToolkit.paintBordersFor(sctn10112cet);\n\t\tsctn10112cet.setText(\"1011-2 CET\");\n\t\tsctn10112cet.setVisible(false);\n\n\t\tfinal Section sctnAws = formToolkit.createSection(cmpMenu, Section.TREE_NODE | Section.TITLE_BAR);\n\t\tsctnAws.setBounds(45, 247, 304, 23);\n\t\tformToolkit.paintBordersFor(sctnAws);\n\t\tsctnAws.setText(\"AWS\");\n\t\tsctnAws.setVisible(false);\n\t\t\n\t\tfinal Composite composite10112ce = new Composite(shell, SWT.COLOR_DARK_GRAY);\n\t\t//composite10112ce.setBackground(SWTResourceManager.getColor(255, 255, 255));\n\t\tcomposite10112ce.setBounds(365, 0, 829, 1061);\n\t\tcomposite10112ce.setVisible(false);\n\t\t\n\t\tfinal Composite composite10112cet = new Composite(shell, SWT.COLOR_DARK_GRAY);\n\t\t//composite10112ce.setBackground(SWTResourceManager.getColor(255, 255, 255));\n\t\tcomposite10112cet.setBounds(365, 0, 829, 1061);\n\t\tcomposite10112cet.setVisible(false);\n\t\t\n\t\tfinal Composite compositeAws = new Composite(shell, SWT.COLOR_DARK_GRAY);\n\t\t//composite10112ce.setBackground(SWTResourceManager.getColor(255, 255, 255));\n\t\tcompositeAws.setBounds(365, 0, 829, 1061);\n\t\tcompositeAws.setVisible(false);\n\t\t\n\t\tsctnCalculator.addExpansionListener(new IExpansionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\n\t\t\t\tif (sctnCalculator.isExpanded() == false) {\n\t\t\t\t\tsctn10112ce.setVisible(true);\n\t\t\t\t\tsctn10112cet.setVisible(true);\n\t\t\t\t\tsctnAws.setVisible(true);\n\n\t\t\t\t} else {\n\t\t\t\t\tsctn10112ce.setVisible(false);\n\t\t\t\t\tsctn10112cet.setVisible(false);\n\t\t\t\t\tsctnAws.setVisible(false);\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t});\n\n\t\tsctn10112ce.addExpansionListener(new IExpansionListener() {\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\tif (sctn10112ce.isExpanded() == true) {\n\t\t\t\t\tsctn10112cet.setVisible(false);\n\t\t\t\t\tcompositeAws.setVisible(false);\n\t\t\t\t\tnew F10112ce(composite10112ce, cmpMenu.getStyle());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcomposite10112ce.setVisible(false);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tsctn10112cet.addExpansionListener(new IExpansionListener() {\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\tif (sctn10112cet.isExpanded() == true) {\n\t\t\t\t\tsctn10112ce.setVisible(false);\n\t\t\t\t\tcompositeAws.setVisible(false);\n\t\t\t\t\tnew F10112cet(composite10112cet, cmpMenu.getStyle());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcomposite10112ce.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tsctnAws.addExpansionListener(new IExpansionListener() {\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\tif (sctnAws.isExpanded() == true) {\n\t\t\t\t\tsctn10112ce.setVisible(false);\n\t\t\t\t\tsctn10112cet.setVisible(false);\n\t\t\t\t\tnew FAws(compositeAws, cmpMenu.getStyle());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcompositeAws.setVisible(false);\n\t\t\t}\n\t\t});\n\t}", "public Container createContentPane()\r\n\t{\r\n\t\t//add items to lvl choice\r\n\t\tfor(int g=1; g<21; g++)\r\n\t\t{\r\n\t\t\tcharLvlChoice.addItem(String.valueOf(g));\r\n\t\t}\r\n\r\n\t\t//add stuff to panels\r\n\t\tinputsPanel.setLayout(new GridLayout(2,2,3,3));\r\n\t\tdisplayPanel.setLayout(new GridLayout(1,1,8,8));\r\n\t\tinputsPanel.add(runButton);\r\n\t\tinputsPanel.add(clearButton);\r\n\t\t\ttimesPanel.add(timesLabel);\r\n\t\t\ttimesPanel.add(runTimesField);\r\n\t\tinputsPanel.add(timesPanel);\r\n\t\t\tlevelPanel.add(levelLabel);\r\n\t\t\tlevelPanel.add(charLvlChoice);\r\n\t\tinputsPanel.add(levelPanel);\r\n\t\t\trunTimesField.setText(\"1\");\r\n\t\tdisplay.setEditable(false);\r\n\r\n\t\trunButton.addActionListener(this);\r\n\t\tclearButton.addActionListener(this);\r\n\r\n\t\tdisplay.setBackground(Color.black);\r\n\t\tdisplay.setForeground(Color.white);\r\n\r\n\t\tsetTabsAndStyles(display);\r\n\t\tdisplay = addTextToTextPane();\r\n\t\t\tJScrollPane scrollPane = new JScrollPane(display);\r\n\t\t\t\tscrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\r\n\t\t\t\tscrollPane.setPreferredSize(new Dimension(500, 200));\r\n\t\tdisplayPanel.add(scrollPane);\r\n\r\n\t\t//create Container and set attributes\r\n\t\tContainer c = getContentPane();\r\n\t\t\tc.setLayout(new BorderLayout());\r\n\t\t\tc.add(inputsPanel, BorderLayout.NORTH);\r\n\t\t\tc.add(displayPanel, BorderLayout.CENTER);\r\n\r\n\t\treturn c;\r\n\t}", "public void makeWindow(Container pane)\r\n\t{\r\n\t\tboard.display(pane, fieldArray);\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell(shell,SWT.SHELL_TRIM|SWT.APPLICATION_MODAL);\n\t\tshell.setImage(SWTResourceManager.getImage(\"C:\\\\Users\\\\Administrator\\\\Desktop\\\\GupiaoNo4\\\\Project\\\\GupiaoNo4\\\\data\\\\chaogushenqi.png\"));\n\t\tshell.setSize(467, 398);\n\t\tshell.setText(\"\\u5356\\u7A7A\");\n\t\t\n\t\ttext_code = new Text(shell, SWT.BORDER);\n\t\ttext_code.setBounds(225, 88, 73, 23);\n\t\t\n\t\ttext_uprice = new Text(shell, SWT.BORDER | SWT.READ_ONLY);\n\t\ttext_uprice.setBounds(225, 117, 73, 23);\n\t\t\n\t\ttext_downprice = new Text(shell, SWT.BORDER | SWT.READ_ONLY);\n\t\ttext_downprice.setBounds(225, 146, 73, 23);\n\t\t\n\t\ttext_price = new Text(shell, SWT.BORDER);\n\t\ttext_price.setBounds(225, 178, 73, 23);\n\t\t\n\t\ttext_num = new Text(shell, SWT.BORDER);\n\t\ttext_num.setBounds(225, 207, 73, 23);\n\t\t\n\t\t//下单,取消按钮\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tpaceoder();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(116, 284, 58, 27);\n\t\tbtnNewButton.setText(\"\\u4E0B\\u5355\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setBounds(225, 284, 58, 27);\n\t\tbtnNewButton_1.setText(\"\\u53D6\\u6D88\");\n\t\t\n\t\tLabel lbl_code = new Label(shell, SWT.NONE);\n\t\tlbl_code.setBounds(116, 91, 60, 17);\n\t\tlbl_code.setText(\"股票代码:\");\n\t\t\n\t\tLabel lbl_upprice = new Label(shell, SWT.NONE);\n\t\tlbl_upprice.setBounds(116, 120, 60, 17);\n\t\tlbl_upprice.setText(\"涨停价格:\");\n\t\t\n\t\tLabel lbl_downprice = new Label(shell, SWT.NONE);\n\t\tlbl_downprice.setBounds(116, 152, 60, 17);\n\t\tlbl_downprice.setText(\"跌停价格:\");\n\t\t\n\t\tLabel lbl_price = new Label(shell, SWT.NONE);\n\t\tlbl_price.setBounds(116, 181, 60, 17);\n\t\tlbl_price.setText(\"委托价格:\");\n\t\t\n\t\tLabel lbl_num = new Label(shell, SWT.NONE);\n\t\tlbl_num.setBounds(116, 210, 60, 17);\n\t\tlbl_num.setText(\"委托数量:\");\n\t\t\n\t\tLabel lbl_date = new Label(shell, SWT.NONE);\n\t\tlbl_date.setBounds(116, 243, 61, 17);\n\t\tlbl_date.setText(\"日 期:\");\n\t\t\n\t\ttext_dateTime = new DateTime(shell, SWT.BORDER);\n\t\ttext_dateTime.setBounds(225, 237, 88, 24);\n\t\t\n\t\tlbl_notice = new Label(shell, SWT.BORDER);\n\t\tlbl_notice.setBounds(316, 333, 125, 17);\n\t\t\n\t\tif (information == null) {\n\n\t\t\tfinal Label lbl_search = new Label(shell, SWT.NONE);\n\t\t\tlbl_search.addMouseListener(new MouseAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseDown(MouseEvent e) {\n\n\t\t\t\t\tlbl_searchEvent();\n\t\t\t\t}\n\t\t\t});\n\t\t\tlbl_search.addMouseTrackListener(new MouseTrackAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseEnter(MouseEvent e) {\n\t\t\t\t\tlbl_search.setBackground(Display.getCurrent()\n\t\t\t\t\t\t\t.getSystemColor(SWT.COLOR_GREEN));\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseExit(MouseEvent e) {\n\t\t\t\t\tlbl_search\n\t\t\t\t\t\t\t.setBackground(Display\n\t\t\t\t\t\t\t\t\t.getCurrent()\n\t\t\t\t\t\t\t\t\t.getSystemColor(\n\t\t\t\t\t\t\t\t\t\t\tSWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT));\n\t\t\t\t}\n\t\t\t});\n\t\t\tlbl_search\n\t\t\t\t\t.setImage(SWTResourceManager\n\t\t\t\t\t\t\t.getImage(\"C:\\\\Users\\\\Administrator\\\\Desktop\\\\GupiaoNo4\\\\Project\\\\GupiaoNo4\\\\data\\\\检查.png\"));\n\t\t\tlbl_search.setBounds(354, 91, 18, 18);\n\n\t\t\ttext_place = new Text(shell, SWT.BORDER);\n\t\t\ttext_place.setBounds(304, 88, 32, 23);\n\n\t\t} else {\n\t\t\ttrade_shortsell();// 显示文本框内容\n\t\t}\n\t\t\n\t}", "private void createContents() {\r\n\t\tshlAboutGoko = new Shell(getParent(), getStyle());\r\n\t\tshlAboutGoko.setSize(376, 248);\r\n\t\tshlAboutGoko.setText(\"About Goko\");\r\n\t\tshlAboutGoko.setLayout(new GridLayout(1, false));\r\n\r\n\t\tComposite composite_1 = new Composite(shlAboutGoko, SWT.NONE);\r\n\t\tcomposite_1.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\r\n\t\tcomposite_1.setLayout(new GridLayout(1, false));\r\n\r\n\t\tLabel lblGokoIsA = new Label(composite_1, SWT.WRAP);\r\n\t\tGridData gd_lblGokoIsA = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblGokoIsA.widthHint = 350;\r\n\t\tlblGokoIsA.setLayoutData(gd_lblGokoIsA);\r\n\t\tlblGokoIsA.setText(\"Goko is an open source desktop application for CNC control and operation\");\r\n\r\n\t\tComposite composite_2 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\r\n\t\tcomposite_2.setLayout(new GridLayout(2, false));\r\n\r\n\t\tLabel lblAlphaVersion = new Label(composite_2, SWT.NONE);\r\n\t\tlblAlphaVersion.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlblAlphaVersion.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.ITALIC));\r\n\t\tlblAlphaVersion.setText(\"Version\");\r\n\r\n\t\tLabel lblVersion = new Label(composite_2, SWT.NONE);\r\n\t\tlblVersion.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(composite_1, SWT.NONE);\r\n\r\n\t\tLabel lblDate = new Label(composite_2, SWT.NONE);\r\n\t\tlblDate.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlblDate.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.ITALIC));\r\n\t\tlblDate.setText(\"Build\");\r\n\t\t\r\n\t\tLabel lblBuild = new Label(composite_2, SWT.NONE);\r\n\t\tlblBuild.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\r\n\t\t\t\t\r\n\t\tProperties prop = new Properties();\r\n\t\tClassLoader loader = Thread.currentThread().getContextClassLoader(); \r\n\t\tInputStream stream = loader.getResourceAsStream(\"/version.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(stream);\r\n\t\t\tString version = prop.getProperty(\"goko.version\");\r\n\t\t\tString build = prop.getProperty(\"goko.build.timestamp\");\r\n\t\t\tlblVersion.setText(version);\r\n\t\t\tlblBuild.setText(build);\t\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\tLOG.error(e);\r\n\t\t}\r\n\t\t\r\n\t\tComposite composite = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite.setLayout(new GridLayout(2, false));\r\n\r\n\t\tLabel lblMoreInformationOn = new Label(composite, SWT.NONE);\r\n\t\tGridData gd_lblMoreInformationOn = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblMoreInformationOn.widthHint = 60;\r\n\t\tlblMoreInformationOn.setLayoutData(gd_lblMoreInformationOn);\r\n\t\tlblMoreInformationOn.setText(\"Website :\");\r\n\r\n\t\tLink link = new Link(composite, SWT.NONE);\r\n\t\tlink.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent event) {\r\n\t\t\t\tif (event.button == 1) { // Left button pressed & released\r\n\t\t Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\r\n\t\t if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {\r\n\t\t try {\r\n\t\t desktop.browse(URI.create(\"http://www.goko.fr\"));\r\n\t\t } catch (Exception e) {\r\n\t\t LOG.error(e);\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t\t}\r\n\t\t});\r\n\t\tlink.setText(\"<a>http://www.goko.fr</a>\");\r\n\t\t\r\n\t\tComposite composite_3 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_3.setLayout(new GridLayout(2, false));\r\n\t\t\r\n\t\tLabel lblForum = new Label(composite_3, SWT.NONE);\r\n\t\tGridData gd_lblForum = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblForum.widthHint = 60;\r\n\t\tlblForum.setLayoutData(gd_lblForum);\r\n\t\tlblForum.setText(\"Forum :\");\r\n\t\t\r\n\t\tLink link_1 = new Link(composite_3, 0);\r\n\t\tlink_1.setText(\"<a>http://discuss.goko.fr</a>\");\r\n\t\tlink_1.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent event) {\r\n\t\t\t\tif (event.button == 1) { // Left button pressed & released\r\n\t\t Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\r\n\t\t if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {\r\n\t\t try {\r\n\t\t desktop.browse(URI.create(\"http://discuss.goko.fr\"));\r\n\t\t } catch (Exception e) {\r\n\t\t LOG.error(e);\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tComposite composite_4 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_4.setLayout(new GridLayout(2, false));\r\n\t\t\r\n\t\tLabel lblContact = new Label(composite_4, SWT.NONE);\r\n\t\tGridData gd_lblContact = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblContact.widthHint = 60;\r\n\t\tlblContact.setLayoutData(gd_lblContact);\r\n\t\tlblContact.setText(\"Contact :\");\r\n\t\t\t \r\n\t\tLink link_2 = new Link(composite_4, 0);\r\n\t\tlink_2.setText(\"<a>\"+toAscii(\"636f6e7461637440676f6b6f2e6672\")+\"</a>\");\r\n\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(340, 217);\n\t\tshell.setText(\"Benvenuto\");\n\t\tshell.setLayout(new FormLayout());\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tFormData fd_composite = new FormData();\n\t\tfd_composite.bottom = new FormAttachment(100, -10);\n\t\tfd_composite.top = new FormAttachment(0, 10);\n\t\tfd_composite.right = new FormAttachment(100, -10);\n\t\tfd_composite.left = new FormAttachment(0, 10);\n\t\tcomposite.setLayoutData(fd_composite);\n\t\tcomposite.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel lblUsername = new Label(composite, SWT.NONE);\n\t\tlblUsername.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblUsername.setText(\"Username\");\n\t\t\n\t\ttxtUsername = new Text(composite, SWT.BORDER);\n\t\ttxtUsername.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\t\tfinal String username = txtUsername.getText();\n\t\tSystem.out.println(username);\n\t\t\n\t\tLabel lblPeriodo = new Label(composite, SWT.NONE);\n\t\tlblPeriodo.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblPeriodo.setText(\"Periodo\");\n\t\t\n\t\tfinal CCombo combo_1 = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo_1.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo_1.setVisibleItemCount(6);\n\t\tcombo_1.setItems(new String[] {\"1 settimana\", \"1 mese\", \"3 mesi\", \"6 mesi\", \"1 anno\", \"Overall\"});\n\t\t\n\t\tLabel lblNumeroCanzoni = new Label(composite, SWT.NONE);\n\t\tlblNumeroCanzoni.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblNumeroCanzoni.setText(\"Numero canzoni da analizzare\");\n\t\t\n\t\tfinal CCombo combo = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo.setItems(new String[] {\"25\", \"50\"});\n\t\tcombo.setVisibleItemCount(2);\n\t\tcombo.setToolTipText(\"Numero canzoni da analizzare\");\n\t\t\n\t\tLabel lblNumeroCanzoniDa = new Label(composite, SWT.NONE);\n\t\tlblNumeroCanzoniDa.setText(\"Numero canzoni da consigliare\");\n\t\t\n\t\tfinal CCombo combo_2 = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo_2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo_2.setVisibleItemCount(3);\n\t\tcombo_2.setToolTipText(\"Numero canzoni da consigliare\");\n\t\tcombo_2.setItems(new String[] {\"5\", \"10\", \"20\"});\n\t\t\n\t\tButton btnAvviaRicerca = new Button(composite, SWT.NONE);\n\t\tbtnAvviaRicerca.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tfinal String username = txtUsername.getText();\n\t\t\t\tfinal String numSong = combo.getText();\n\t\t\t\tfinal String period = combo_1.getText();\n\t\t\t\tfinal String numConsigli = combo_2.getText();\n\t\t\t\tif(username.isEmpty() || numSong.isEmpty() || period.isEmpty() || numConsigli.isEmpty()){\n\t\t\t\t\tSystem.out.println(\"si prega di compilare tutti i campi\");\n\t\t\t\t}\n\t\t\t\tif(!username.isEmpty() && !numSong.isEmpty() && !period.isEmpty() && !numConsigli.isEmpty()){\n\t\t\t\t\tSystem.out.println(\"tutto ok\");\n\t\t\t\t\t\n\t\t\t\t\tFileOutputStream out;\n\t\t\t\t\tPrintStream ps;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tout = new FileOutputStream(\"datiutente.txt\");\n\t\t\t\t\t\tps = new PrintStream(out);\n\t\t\t\t\t\tps.println(username);\n\t\t\t\t\t\tps.println(numSong);\n\t\t\t\t\t\tps.println(period);\n\t\t\t\t\t\tps.println(numConsigli);\n\t\t\t\t\t\tps.close();\n\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\tSystem.err.println(\"Errore nella scrittura del file\");\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tPrincipaleParteA.main();\n\t\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t }\n\t\t\t\n\t\t});\n\t\tGridData gd_btnAvviaRicerca = new GridData(SWT.FILL, SWT.CENTER, false, false, 2, 1);\n\t\tgd_btnAvviaRicerca.heightHint = 31;\n\t\tbtnAvviaRicerca.setLayoutData(gd_btnAvviaRicerca);\n\t\tbtnAvviaRicerca.setText(\"Avvia Ricerca\");\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(new Point(500, 360));\n\t\tshell.setMinimumSize(new Point(500, 360));\n\t\tshell.setText(\"SWT Application\");\n\t\tshell.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel label = new Label(shell, SWT.NONE);\n\t\tlabel.setText(\"欢迎 \"+user.getName()+\" 同学使用学生成绩管理系统\");\n\t\tnew Label(shell, SWT.NONE);\n\t\t\n\t\tComposite compositeStdData = new Composite(shell, SWT.NONE);\n\t\tcompositeStdData.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\t\tGridLayout gl_compositeStdData = new GridLayout(2, false);\n\t\tgl_compositeStdData.verticalSpacing = 15;\n\t\tcompositeStdData.setLayout(gl_compositeStdData);\n\t\t\n\t\tLabel labelStdData = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdData.setAlignment(SWT.CENTER);\n\t\tlabelStdData.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 2, 1));\n\t\tlabelStdData.setText(\"成绩数据\");\n\t\t\n\t\tLabel labelStdDataNum = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdDataNum.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelStdDataNum.setText(\"学号:\");\n\t\t\n\t\ttextStdDataNum = new Text(compositeStdData, SWT.BORDER);\n\t\ttextStdDataNum.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\n\t\t\n\t\tLabel labelStdDataName = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdDataName.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelStdDataName.setText(\"姓名:\");\n\t\t\n\t\ttextStdDataName = new Text(compositeStdData, SWT.BORDER);\n\t\ttextStdDataName.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\n\t\t\n\t\tLabel labelStdDataLine = new Label(compositeStdData, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabelStdDataLine.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 2, 1));\n\t\tlabelStdDataLine.setText(\"New Label\");\n\t\t\n\t\tLabel labelCourseName = new Label(compositeStdData, SWT.NONE);\n\t\tlabelCourseName.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelCourseName.setText(\"课程名\");\n\t\t\n\t\tLabel labelScore = new Label(compositeStdData, SWT.NONE);\n\t\tlabelScore.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelScore.setText(\"成绩\");\n\t\t\n\t\ttextCourseName = new Text(compositeStdData, SWT.BORDER);\n\t\ttextCourseName.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\t\n\t\ttextScore = new Text(compositeStdData, SWT.BORDER);\n\t\ttextScore.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\t\n\t\tLabel labelStdDataFill = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdDataFill.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, true, 1, 1));\n\t\tnew Label(compositeStdData, SWT.NONE);\n\t\t\n\t\tComposite compositeStdOp = new Composite(shell, SWT.NONE);\n\t\tcompositeStdOp.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, true, 1, 1));\n\t\tGridLayout gl_compositeStdOp = new GridLayout(1, false);\n\t\tgl_compositeStdOp.verticalSpacing = 15;\n\t\tcompositeStdOp.setLayout(gl_compositeStdOp);\n\t\t\n\t\tLabel labelStdOP = new Label(compositeStdOp, SWT.NONE);\n\t\tlabelStdOP.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 1, 1));\n\t\tlabelStdOP.setAlignment(SWT.CENTER);\n\t\tlabelStdOP.setText(\"操作菜单\");\n\t\t\n\t\tButton buttonStdOPFirst = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPFirst.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPFirst.setText(\"第一门课程\");\n\t\t\n\t\tButton buttonStdOPNext = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPNext.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPNext.setText(\"下一门课程\");\n\t\t\n\t\tButton buttonStdOPPrev = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPPrev.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPPrev.setText(\"上一门课程\");\n\t\t\n\t\tButton buttonStdOPLast = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPLast.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPLast.setText(\"最后一门课程\");\n\t\t\n\t\tCombo comboStdOPSele = new Combo(compositeStdOp, SWT.NONE);\n\t\tcomboStdOPSele.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1));\n\t\tcomboStdOPSele.setText(\"课程名?\");\n\t\t\n\t\tLabel labelStdOPFill = new Label(compositeStdOp, SWT.NONE);\n\t\tlabelStdOPFill.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\n\t}", "public void createPopupWindow() {\r\n \t//\r\n }", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(538, 450);\n\t\tshell.setText(\"SWT Application\");\n\n\t\tfinal DateTime dateTime = new DateTime(shell, SWT.BORDER | SWT.CALENDAR);\n\t\tdateTime.setBounds(10, 10, 514, 290);\n\n\t\tfinal DateTime dateTime_1 = new DateTime(shell, SWT.BORDER | SWT.TIME);\n\t\tdateTime_1.setBounds(10, 306, 135, 29);\n\t\tvideoPath = new Text(shell, SWT.BORDER);\n\t\tvideoPath.setBounds(220, 306, 207, 27);\n\n\t\tButton btnBrowseVideo = new Button(shell, SWT.NONE);\n\t\tbtnBrowseVideo.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFileDialog fileDialog = new FileDialog(shell, SWT.MULTI);\n\t\t\t\tString fileFilterPath = \"\";\n\t\t\t\tfileDialog.setFilterPath(fileFilterPath);\n\t\t\t\tfileDialog.setFilterExtensions(new String[] { \"*.*\" });\n\t\t\t\tfileDialog.setFilterNames(new String[] { \"Any\" });\n\t\t\t\tString firstFile = fileDialog.open();\n\t\t\t\tif (firstFile != null) {\n\t\t\t\t\tvideoPath.setText(firstFile);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnBrowseVideo.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t}\n\t\t});\n\t\tbtnBrowseVideo.setBounds(433, 306, 91, 29);\n\t\tbtnBrowseVideo.setText(\"browse\");\n\t\ttorrentPath = new Text(shell, SWT.BORDER);\n\t\ttorrentPath.setBounds(220, 341, 207, 27);\n\t\tButton btnBrowseTorrent = new Button(shell, SWT.NONE);\n\t\tbtnBrowseTorrent.setText(\"browse\");\n\t\tbtnBrowseTorrent.setBounds(433, 339, 91, 29);\n\t\tbtnBrowseTorrent.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFileDialog fileDialog = new FileDialog(shell, SWT.MULTI);\n\t\t\t\tString fileFilterPath = \"\";\n\t\t\t\tfileDialog.setFilterPath(fileFilterPath);\n\t\t\t\tfileDialog.setFilterExtensions(new String[] { \"*.*\" });\n\t\t\t\tfileDialog.setFilterNames(new String[] { \"Any\" });\n\t\t\t\tString firstFile = fileDialog.open();\n\t\t\t\tif (firstFile != null) {\n\t\t\t\t\ttorrentPath.setText(firstFile);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tButton btnGenerateTorrent = new Button(shell, SWT.NONE);\n\t\tbtnGenerateTorrent.setBounds(10, 374, 516, 29);\n\t\tbtnGenerateTorrent.setText(\"Generate Torrent\");\n\n\t\tvideoLength = new Text(shell, SWT.BORDER);\n\t\tvideoLength.setBounds(10, 341, 135, 27);\n\t\t\n\t\tLabel lblNewLabel = new Label(shell, SWT.RIGHT);\n\t\tlblNewLabel.setAlignment(SWT.LEFT);\n\t\tlblNewLabel.setBounds(157, 315, 48, 18);\n\t\tlblNewLabel.setText(\"Video\");\n\t\t\n\t\tLabel lblTorrent = new Label(shell, SWT.RIGHT);\n\t\tlblTorrent.setText(\"Torrent\");\n\t\tlblTorrent.setBounds(157, 341, 48, 18);\n\t\tbtnGenerateTorrent.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFile video = new File(videoPath.getText());\n\t\t\t\ttry {\n\t\t\t\t\tif (video.exists() && torrentPath.getText() != \"\") {\n\t\t\t\t\t\tMap parameters = new HashMap();\n\t\t\t\t\t\tparameters.put(\"start\", dateTime.getYear() + \"/\" + (dateTime.getMonth()+1) + \"/\" + dateTime.getDay() + \"-\" + dateTime_1.getHours() + \":\" + dateTime_1.getMinutes() + \":\" + dateTime_1.getSeconds());\n\t\t\t\t\t\tparameters.put(\"target\", torrentPath.getText());\n\t\t\t\t\t\tparameters.put(\"length\", videoLength.getText());\n\t\t\t\t\t\tSystem.out.println(\"start generating \"+parameters.get(\"length\"));\n\t\t\t\t\t\tnew MakeTorrent(videoPath.getText(), new URL(\"https://jomican.csie.org/~jimmy/tracker/announce.php\"), parameters);\n\t\t\t\t\t\tSystem.out.println(\"end generating\");\n\t\t\t\t\t\tFile var = new File(\"var.js\");\n\t\t\t\t\t\tPrintStream stream=new PrintStream(new FileOutputStream(var,false));\n\t\t\t\t\t\tstream.println(\"start_time = \"+(new SimpleDateFormat(\"yyyy/MM/dd-HH:mm:ss\").parse(dateTime.getYear() + \"/\" + (dateTime.getMonth()+1) + \"/\" + dateTime.getDay() + \"-\" + dateTime_1.getHours() + \":\" + dateTime_1.getMinutes() + \":\" + dateTime_1.getSeconds()).getTime() / 1000)+\";\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"jizz\");\n\t\t\t\t\t}\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tshell.setSize(599, 779);\r\n\t\tshell.setText(\"إضافة كتاب جديد\");\r\n\r\n\t\tButton logoBtn = new Button(shell, SWT.NONE);\r\n\t\tlogoBtn.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tMainMenuKaff mm = new MainMenuKaff();\r\n\t\t\t\tshell.close();\r\n\t\t\t\tmm.open();\r\n\t\t\t}\r\n\t\t});\r\n\t\tlogoBtn.setImage(SWTResourceManager\r\n\t\t\t\t.getImage(\"C:\\\\Users\\\\al5an\\\\git\\\\KaffPlatform\\\\KaffPlatformProject\\\\img\\\\logo for header button.png\"));\r\n\t\tlogoBtn.setBounds(497, 0, 64, 50);\r\n\r\n\t\tLabel headerLabel = new Label(shell, SWT.NONE);\r\n\t\theaderLabel.setImage(SWTResourceManager\r\n\t\t\t\t.getImage(\"C:\\\\Users\\\\al5an\\\\git\\\\KaffPlatform\\\\KaffPlatformProject\\\\img\\\\KaffPlatformheader.jpg\"));\r\n\t\theaderLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\theaderLabel.setBounds(0, 0, 607, 50);\r\n\r\n\t\tLabel bookInfoLabel = new Label(shell, SWT.NONE);\r\n\t\tbookInfoLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tbookInfoLabel.setForeground(SWTResourceManager.getColor(210, 105, 30));\r\n\t\tbookInfoLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.BOLD));\r\n\t\tbookInfoLabel.setAlignment(SWT.CENTER);\r\n\t\tbookInfoLabel.setBounds(177, 130, 192, 28);\r\n\t\tbookInfoLabel.setText(\"معلومات الكتاب\");\r\n\r\n\t\tLabel bookTitleLabel = new Label(shell, SWT.NONE);\r\n\t\tbookTitleLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tbookTitleLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbookTitleLabel.setBounds(415, 203, 119, 28);\r\n\t\tbookTitleLabel.setText(\"عنوان الكتاب\");\r\n\r\n\t\tBookTitleTxt = new Text(shell, SWT.BORDER);\r\n\t\tBookTitleTxt.setBounds(56, 206, 334, 24);\r\n\r\n\t\tLabel bookIDLabel = new Label(shell, SWT.NONE);\r\n\t\tbookIDLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tbookIDLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbookIDLabel.setBounds(415, 170, 119, 32);\r\n\t\tbookIDLabel.setText(\"رمز الكتاب\");\r\n\r\n\t\tLabel editionLabel = new Label(shell, SWT.NONE);\r\n\t\teditionLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\teditionLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\teditionLabel.setBounds(415, 235, 119, 28);\r\n\t\teditionLabel.setText(\"إصدار الكتاب\");\r\n\r\n\t\teditionTxt = new Text(shell, SWT.BORDER);\r\n\t\teditionTxt.setBounds(271, 240, 119, 24);\r\n\r\n\t\tLabel lvlLabel = new Label(shell, SWT.NONE);\r\n\t\tlvlLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tlvlLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tlvlLabel.setText(\"المستوى\");\r\n\t\tlvlLabel.setBounds(415, 269, 119, 27);\r\n\r\n\t\tCombo lvlBookCombo = new Combo(shell, SWT.NONE);\r\n\t\tlvlBookCombo.setItems(new String[] { \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\" });\r\n\t\tlvlBookCombo.setBounds(326, 272, 64, 25);\r\n\t\tlvlBookCombo.select(0);\r\n\r\n\t\tLabel priceLabel = new Label(shell, SWT.NONE);\r\n\t\tpriceLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tpriceLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tpriceLabel.setText(\"السعر\");\r\n\t\tpriceLabel.setBounds(415, 351, 119, 28);\r\n\r\n\t\tGroup groupType = new Group(shell, SWT.NONE);\r\n\t\tgroupType.setBounds(56, 320, 334, 24);\r\n\r\n\t\tButton button = new Button(groupType, SWT.RADIO);\r\n\t\tbutton.setSelection(true);\r\n\t\tbutton.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbutton.setBounds(21, 0, 73, 21);\r\n\t\tbutton.setText(\"مجاناً\");\r\n\r\n\t\tButton button_1 = new Button(groupType, SWT.RADIO);\r\n\t\tbutton_1.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbutton_1.setBounds(130, 0, 73, 21);\r\n\t\tbutton_1.setText(\"إعارة\");\r\n\r\n\t\tButton button_2 = new Button(groupType, SWT.RADIO);\r\n\t\tbutton_2.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbutton_2.setBounds(233, 0, 80, 21);\r\n\t\tbutton_2.setText(\"للبيع\");\r\n\r\n\t\tpriceTxtValue = new Text(shell, SWT.BORDER);\r\n\t\tpriceTxtValue.setBounds(326, 355, 64, 24);\r\n\r\n\t\tLabel ownerInfoLabel = new Label(shell, SWT.NONE);\r\n\t\townerInfoLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\townerInfoLabel.setForeground(SWTResourceManager.getColor(210, 105, 30));\r\n\t\townerInfoLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.BOLD));\r\n\t\townerInfoLabel.setText(\"معلومات صاحبة الكتاب\");\r\n\t\townerInfoLabel.setAlignment(SWT.CENTER);\r\n\t\townerInfoLabel.setBounds(147, 400, 242, 28);\r\n\r\n\t\tLabel ownerIDLabel = new Label(shell, SWT.NONE);\r\n\t\townerIDLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\townerIDLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\townerIDLabel.setBounds(415, 441, 119, 34);\r\n\t\townerIDLabel.setText(\"الرقم الأكاديمي\");\r\n\r\n\t\townerIDValue = new Text(shell, SWT.BORDER);\r\n\t\townerIDValue.setBounds(204, 444, 186, 24);\r\n\t\t// need to check if the owner is already in the database...\r\n\r\n\t\tLabel nameLabel = new Label(shell, SWT.NONE);\r\n\t\tnameLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tnameLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tnameLabel.setBounds(415, 481, 119, 28);\r\n\t\tnameLabel.setText(\"الاسم الثلاثي\");\r\n\r\n\t\tnameTxt = new Text(shell, SWT.BORDER);\r\n\t\tnameTxt.setBounds(56, 485, 334, 24);\r\n\r\n\t\tLabel phoneLabel = new Label(shell, SWT.NONE);\r\n\t\tphoneLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tphoneLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tphoneLabel.setText(\"رقم الجوال\");\r\n\t\tphoneLabel.setBounds(415, 515, 119, 27);\r\n\r\n\t\tphoneTxt = new Text(shell, SWT.BORDER);\r\n\t\tphoneTxt.setBounds(204, 521, 186, 24);\r\n\r\n\t\tLabel ownerLvlLabel = new Label(shell, SWT.NONE);\r\n\t\townerLvlLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\townerLvlLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\townerLvlLabel.setBounds(415, 548, 119, 31);\r\n\t\townerLvlLabel.setText(\"المستوى\");\r\n\r\n\t\tCombo owneLvlCombo = new Combo(shell, SWT.NONE);\r\n\t\towneLvlCombo.setItems(new String[] { \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\" });\r\n\t\towneLvlCombo.setBounds(326, 554, 64, 25);\r\n\t\towneLvlCombo.select(0);\r\n\r\n\t\tLabel emailLabel = new Label(shell, SWT.NONE);\r\n\t\temailLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\temailLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\temailLabel.setBounds(415, 583, 119, 38);\r\n\t\temailLabel.setText(\"البريد الإلكتروني\");\r\n\r\n\t\temailTxt = new Text(shell, SWT.BORDER);\r\n\t\temailTxt.setBounds(56, 586, 334, 24);\r\n\r\n\t\tButton addButton = new Button(shell, SWT.NONE);\r\n\t\taddButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tString bookQuery = \"INSERT INTO kaff.BOOK(bookID, bookTitle, price, level,available, type) VALUES (?, ?, ?, ?, ?, ?, ?)\";\r\n\t\t\t\t\tString bookEdition = \"INSERT INTO kaff.bookEdition(bookID, edition, year) VALUES (?, ?, ?)\";\r\n\t\t\t\t\tString ownerQuery = \"INSERT INTO kaff.user(userID, fname, mname, lastname, phone, level, personalEmail, email) VALUES (?, ?, ?, ?, ?, ?, ?, ?)\";\r\n\r\n\t\t\t\t\tString bookID = bookIDTxt.getText();\r\n\t\t\t\t\tString bookTitle = BookTitleTxt.getText();\r\n\t\t\t\t\tint bookLevel = lvlBookCombo.getSelectionIndex();\r\n\t\t\t\t\tString type = groupType.getText();\r\n\t\t\t\t\tdouble price = Double.parseDouble(priceTxtValue.getText());\r\n\t\t\t\t\tboolean available = true;\r\n\r\n\t\t\t\t\t// must error handle\r\n\t\t\t\t\tString[] ed = editionTxt.getText().split(\" \");\r\n\t\t\t\t\tString edition = ed[0];\r\n\t\t\t\t\tString year = ed[1];\r\n\r\n\t\t\t\t\tString ownerID = ownerIDValue.getText();\r\n\r\n\t\t\t\t\t// error handle if the user enters two names or just first name\r\n\t\t\t\t\tString[] name = nameTxt.getText().split(\" \");\r\n\t\t\t\t\tString fname = \"\", mname = \"\", lname = \"\";\r\n\t\t\t\t\tSystem.out.println(\"name array\" + name);\r\n\t\t\t\t\tif (name.length > 2) {\r\n\t\t\t\t\t\tfname = name[0];\r\n\t\t\t\t\t\tmname = name[1];\r\n\t\t\t\t\t\tlname = name[2];\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString phone = phoneTxt.getText();\r\n\t\t\t\t\tint userLevel = owneLvlCombo.getSelectionIndex();\r\n\t\t\t\t\tString email = emailTxt.getText();\r\n\r\n\t\t\t\t\tDatabase.openConnection();\r\n\t\t\t\t\tPreparedStatement bookStatement = Database.getConnection().prepareStatement(bookQuery);\r\n\r\n\t\t\t\t\tbookStatement.setString(1, bookID);\r\n\t\t\t\t\tbookStatement.setString(2, bookTitle);\r\n\t\t\t\t\tbookStatement.setInt(3, bookLevel);\r\n\t\t\t\t\tbookStatement.setString(4, type);\r\n\t\t\t\t\tbookStatement.setDouble(5, price);\r\n\t\t\t\t\tbookStatement.setBoolean(6, available);\r\n\r\n\t\t\t\t\tint bookre = bookStatement.executeUpdate();\r\n\r\n\t\t\t\t\tbookStatement = Database.getConnection().prepareStatement(bookEdition);\r\n\t\t\t\t\tbookStatement.setString(1, bookID);\r\n\t\t\t\t\tbookStatement.setString(2, edition);\r\n\t\t\t\t\tbookStatement.setString(3, year);\r\n\r\n\t\t\t\t\tint edResult = bookStatement.executeUpdate();\r\n\r\n\t\t\t\t\tPreparedStatement ownerStatement = Database.getConnection().prepareStatement(ownerQuery);\r\n\t\t\t\t\townerStatement.setString(1, ownerID);\r\n\t\t\t\t\townerStatement.setString(2, fname);\r\n\t\t\t\t\townerStatement.setString(3, mname);\r\n\t\t\t\t\townerStatement.setString(4, lname);\r\n\t\t\t\t\townerStatement.setString(5, phone);\r\n\t\t\t\t\townerStatement.setInt(6, userLevel);\r\n\t\t\t\t\townerStatement.setString(7, ownerID + \"iau.edu.sa\");\r\n\t\t\t\t\townerStatement.setString(8, email);\r\n\t\t\t\t\tint ownRes = ownerStatement.executeUpdate();\r\n\r\n\t\t\t\t\tSystem.out.println(\"results: \" + ownRes + \" \" + edResult + \" bookre\");\r\n\t\t\t\t\t// test result of excute Update\r\n\t\t\t\t\tif (ownRes != 0 && edResult != 0 && bookre != 0) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Data is updated\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Data is not updated\");\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tDatabase.closeConnection();\r\n\t\t\t\t} catch (SQLException sql) {\r\n\t\t\t\t\tSystem.out.println(sql);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\taddButton.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\taddButton.setBounds(54, 666, 85, 26);\r\n\t\taddButton.setText(\"إضافة\");\r\n\r\n\t\tButton backButton = new Button(shell, SWT.NONE);\r\n\t\tbackButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tAdminMenu am = new AdminMenu();\r\n\t\t\t\tshell.close();\r\n\t\t\t\tam.open();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbackButton.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbackButton.setBounds(150, 666, 85, 26);\r\n\t\tbackButton.setText(\"رجوع\");\r\n\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setBounds(177, 72, 192, 21);\r\n\t\tlabel.setText(\"إضافة كتاب جديد\");\r\n\r\n\t\tLabel label_1 = new Label(shell, SWT.NONE);\r\n\t\tlabel_1.setBounds(22, 103, 167, 21);\r\n\t\t// get user name here to display\r\n\t\tString name = getUserName();\r\n\t\tlabel_1.setText(\"مرحباً ...\" + name);\r\n\r\n\t\tbookIDTxt = new Text(shell, SWT.BORDER);\r\n\t\tbookIDTxt.setBounds(271, 170, 119, 24);\r\n\r\n\t}", "public void createWindow() throws IOException {\n\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"adminEditorWindow.fxml\"));\n AnchorPane root = (AnchorPane) loader.load();\n Scene scene = new Scene(root);\n Stage stage = new Stage();\n stage.setResizable(false);\n stage.setScene(scene);\n stage.setTitle(\"Administrative Password Editor\");\n stage.getIcons().add(new Image(\"resources/usm seal icon.png\"));\n stage.show();\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tfinal TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\r\n\t\ttabFolder.setToolTipText(\"\");\r\n\t\t\r\n\t\tTabItem tabItem = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem.setText(\"欢迎使用\");\r\n\t\t\r\n\t\tTabItem tabItem_1 = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem_1.setText(\"员工查询\");\r\n\t\t\r\n\t\tMenu menu = new Menu(shell, SWT.BAR);\r\n\t\tshell.setMenuBar(menu);\r\n\t\t\r\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.NONE);\r\n\t\tmenuItem.setText(\"系统管理\");\r\n\t\t\r\n\t\tMenuItem menuItem_1 = new MenuItem(menu, SWT.CASCADE);\r\n\t\tmenuItem_1.setText(\"员工管理\");\r\n\t\t\r\n\t\tMenu menu_1 = new Menu(menuItem_1);\r\n\t\tmenuItem_1.setMenu(menu_1);\r\n\t\t\r\n\t\tMenuItem menuItem_2 = new MenuItem(menu_1, SWT.NONE);\r\n\t\tmenuItem_2.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tTabItem tbtmNewItem = new TabItem(tabFolder,SWT.NONE);\r\n\t\t\t\ttbtmNewItem.setText(\"员工查询\");\r\n\t\t\t\t//创建自定义组件\r\n\t\t\t\tEmpQueryCmp eqc = new EmpQueryCmp(tabFolder, SWT.NONE);\r\n\t\t\t\t//设置标签显示的自定义组件\r\n\t\t\t\ttbtmNewItem.setControl(eqc);\r\n\t\t\t\t\r\n\t\t\t\t//选中当前标签页\r\n\t\t\t\ttabFolder.setSelection(tbtmNewItem);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\tmenuItem_2.setText(\"员工查询\");\r\n\r\n\t}", "public void createWindow(int x, int y, int width, int height, int bgColor, String title, String displayText) {\r\n\t\tWindow winnie = new Window(x, y, width, height, bgColor, title);\r\n\t\twinnie.add(displayText);\r\n\t\twindows.add(winnie);\r\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(550, 400);\n\t\tshell.setText(\"Source A Antenna 1 Data\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnNewButton_1.setBounds(116, 10, 98, 30);\n\t\tbtnNewButton_1.setText(\"pol 1\");\n\t\t\n\t\tButton btnPol = new Button(shell, SWT.NONE);\n\t\tbtnPol.setText(\"pol 2\");\n\t\tbtnPol.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol.setBounds(220, 10, 98, 30);\n\t\t\n\t\tButton btnPol_1 = new Button(shell, SWT.NONE);\n\t\tbtnPol_1.setText(\"pol 3\");\n\t\tbtnPol_1.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol_1.setBounds(324, 10, 98, 30);\n\t\t\n\t\tButton btnPol_2 = new Button(shell, SWT.NONE);\n\t\tbtnPol_2.setText(\"pol 4\");\n\t\tbtnPol_2.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol_2.setBounds(428, 10, 98, 30);\n\t\t\n\t\tButton button_3 = new Button(shell, SWT.NONE);\n\t\tbutton_3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tPlot_graph nw = new Plot_graph();\n\t\t\t\tnw.GraphScreen();\n\t\t\t}\n\t\t});\n\t\tbutton_3.setBounds(116, 46, 98, 30);\n\t\t\n\t\tButton button_4 = new Button(shell, SWT.NONE);\n\t\tbutton_4.setBounds(116, 83, 98, 30);\n\t\t\n\t\tButton button_5 = new Button(shell, SWT.NONE);\n\t\tbutton_5.setBounds(116, 119, 98, 30);\n\t\t\n\t\tButton button_6 = new Button(shell, SWT.NONE);\n\t\tbutton_6.setBounds(116, 155, 98, 30);\n\t\t\n\t\tButton button_7 = new Button(shell, SWT.NONE);\n\t\tbutton_7.setBounds(220, 155, 98, 30);\n\t\t\n\t\tButton button_8 = new Button(shell, SWT.NONE);\n\t\tbutton_8.setBounds(220, 119, 98, 30);\n\t\t\n\t\tButton button_9 = new Button(shell, SWT.NONE);\n\t\tbutton_9.setBounds(220, 83, 98, 30);\n\t\t\n\t\tButton button_10 = new Button(shell, SWT.NONE);\n\t\tbutton_10.setBounds(220, 46, 98, 30);\n\t\t\n\t\tButton button_11 = new Button(shell, SWT.NONE);\n\t\tbutton_11.setBounds(428, 155, 98, 30);\n\t\t\n\t\tButton button_12 = new Button(shell, SWT.NONE);\n\t\tbutton_12.setBounds(428, 119, 98, 30);\n\t\t\n\t\tButton button_13 = new Button(shell, SWT.NONE);\n\t\tbutton_13.setBounds(428, 83, 98, 30);\n\t\t\n\t\tButton button_14 = new Button(shell, SWT.NONE);\n\t\tbutton_14.setBounds(428, 46, 98, 30);\n\t\t\n\t\tButton button_15 = new Button(shell, SWT.NONE);\n\t\tbutton_15.setBounds(324, 46, 98, 30);\n\t\t\n\t\tButton button_16 = new Button(shell, SWT.NONE);\n\t\tbutton_16.setBounds(324, 83, 98, 30);\n\t\t\n\t\tButton button_17 = new Button(shell, SWT.NONE);\n\t\tbutton_17.setBounds(324, 119, 98, 30);\n\t\t\n\t\tButton button_18 = new Button(shell, SWT.NONE);\n\t\tbutton_18.setBounds(324, 155, 98, 30);\n\n\t}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setModified(true);\n\t\tshell.setSize(512, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\tshell.setLayout(null);\n\n\t\tLabel label = new Label(shell, SWT.SEPARATOR | SWT.VERTICAL);\n\t\tlabel.setBounds(253, 26, 2, 225);\n\n\t\tcomboCarBrandBuy = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarBrandBuy.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tlabel_1.setText(\"Selected\");\n\t\t\t}\n\t\t});\n\t\tcomboCarBrandBuy.setItems(new String[] {\"Maruti\", \"Fiat\", \"Tata\", \"Ford\", \"Honda\", \"Hyundai\"});\n\t\tcomboCarBrandBuy.setBounds(87, 33, 123, 23);\n\t\tcomboCarBrandBuy.setText(\"--select--\");\n\n\t\tLabel lblCarBrand = new Label(shell, SWT.NONE);\n\t\tlblCarBrand.setAlignment(SWT.RIGHT);\n\t\tlblCarBrand.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlblCarBrand.setBounds(12, 38, 71, 15);\n\t\tlblCarBrand.setText(\"Car Brand :\");\n\n\t\ttextCarNameBuy = new Text(shell, SWT.BORDER);\n\t\ttextCarNameBuy.setBounds(87, 67, 123, 21);\n\n\t\tLabel lblCarName = new Label(shell, SWT.NONE);\n\t\tlblCarName.setAlignment(SWT.RIGHT);\n\t\tlblCarName.setText(\"Car Name :\");\n\t\tlblCarName.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlblCarName.setBounds(12, 70, 71, 15);\n\n\t\tcomboCarModelBuy = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarModelBuy.setItems(new String[] {\"2015\", \"2014\", \"2013\", \"2012\", \"2011\", \"2010\", \"2009\", \"2008\", \"2007\", \"2006\", \"2005\", \"2004\", \"2003\", \"2002\", \"2001\", \"2000\"});\n\t\tcomboCarModelBuy.setBounds(87, 99, 91, 23);\n\t\tcomboCarModelBuy.setText(\"--select--\");\n\n\t\tLabel lblModelYear = new Label(shell, SWT.NONE);\n\t\tlblModelYear.setAlignment(SWT.RIGHT);\n\t\tlblModelYear.setText(\"Model :\");\n\t\tlblModelYear.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlblModelYear.setBounds(12, 105, 71, 15);\n\n\t\tButton buttonBuy = new Button(shell, SWT.NONE);\n\t\tbuttonBuy.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\n\t\t\t\tString carName = textCarNameBuy.getText();\n\t\t\t\tString carModel = comboCarModelBuy.getText();\n\n\t\t\t\tif(comboCarBrandBuy.getText().equalsIgnoreCase(\"maruti\")){\n\t\t\t\t\tmarutiMap.put(carName, carModel);\n\t\t\t\t}\n\n\t\t\t\tlabel_1.setText(\"Added to Inventory\");\n\t\t\t\tSystem.out.println(marutiMap);\n\t\t\t}\n\t\t});\n\t\tbuttonBuy.setBounds(87, 138, 63, 25);\n\t\tbuttonBuy.setText(\"BUY\");\n\n\t\tlabel_1 = new Label(shell, SWT.BORDER | SWT.HORIZONTAL | SWT.CENTER);\n\t\tlabel_1.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_1.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\tlabel_1.setBounds(73, 198, 137, 19);\n\n\t\tLabel lblStatus = new Label(shell, SWT.NONE);\n\t\tlblStatus.setBounds(22, 198, 45, 15);\n\t\tlblStatus.setText(\"Status :\");\n\n\t\tLabel label_2 = new Label(shell, SWT.NONE);\n\t\tlabel_2.setText(\"Car Brand :\");\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlabel_2.setAlignment(SWT.RIGHT);\n\t\tlabel_2.setBounds(280, 38, 71, 15);\n\n\t\tcomboCarBrandSell = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarBrandSell.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\n\t\t\t\tString carBrand = comboCarBrandSell.getText();\n\t\t\t\tcomboCarNameSell.clearSelection();\n\t\t\t\t\n\t\t\t\tif(carBrand.equalsIgnoreCase(\"maruti\")){\n\t\t\t\t\tSet<String> keyList = marutiMap.keySet();\n\t\t\t\t\tint i=0;\n\t\t\t\t\tfor(String key : keyList){\n\t\t\t\t\t\tcarNames.add(key);\n\t\t\t\t\t\t//comboCarNameSell.setItem(i, key);\n\t\t\t\t\t\t//i++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tString[] strArray = (String[]) carNames.toArray(new String[0]);\n\t\t\t\tSystem.out.println();\n\t\t\t\tcomboCarNameSell.setItems(strArray);\n\n\t\t\t}\n\t\t});\n\t\tcomboCarBrandSell.setItems(new String[] {\"Maruti\", \"Fiat\", \"Tata\", \"Ford\", \"Honda\", \"Hyundai\"});\n\t\tcomboCarBrandSell.setBounds(355, 33, 123, 23);\n\t\tcomboCarBrandSell.setText(\"--select--\");\n\n\t\tLabel label_3 = new Label(shell, SWT.NONE);\n\t\tlabel_3.setText(\"Car Name :\");\n\t\tlabel_3.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlabel_3.setAlignment(SWT.RIGHT);\n\t\tlabel_3.setBounds(280, 70, 71, 15);\n\n\t\tLabel label_4 = new Label(shell, SWT.NONE);\n\t\tlabel_4.setText(\"Model :\");\n\t\tlabel_4.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlabel_4.setAlignment(SWT.RIGHT);\n\t\tlabel_4.setBounds(280, 105, 71, 15);\n\n\t\tCombo comboCarModelSell = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarModelSell.setItems(new String[] {\"2015\", \"2014\", \"2013\", \"2012\", \"2011\", \"2010\", \"2009\", \"2008\", \"2007\", \"2006\", \"2005\", \"2004\", \"2003\", \"2002\", \"2001\", \"2000\"});\n\t\tcomboCarModelSell.setBounds(355, 99, 91, 23);\n\t\tcomboCarModelSell.setText(\"--select--\");\n\n\t\tButton buttonSell = new Button(shell, SWT.NONE);\n\t\tbuttonSell.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tlabel_5.setText(\"Sold Successfully\");\n\t\t\t}\n\t\t});\n\t\tbuttonSell.setText(\"SELL\");\n\t\tbuttonSell.setBounds(355, 138, 63, 25);\n\n\t\tlabel_5 = new Label(shell, SWT.BORDER | SWT.HORIZONTAL | SWT.CENTER);\n\t\tlabel_5.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_5.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\tlabel_5.setBounds(341, 198, 137, 19);\n\n\t\tLabel label_6 = new Label(shell, SWT.NONE);\n\t\tlabel_6.setText(\"Status :\");\n\t\tlabel_6.setBounds(290, 198, 45, 15);\n\n\t\tcomboCarNameSell = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarNameSell.setItems(new String[] {});\n\t\tcomboCarNameSell.setBounds(355, 65, 123, 23);\n\t\tcomboCarNameSell.setText(\"--select--\");\n\n\t}", "protected void createContents() {\n\t\tsetText(\"Termination\");\n\t\tsetSize(340, 101);\n\n\t}", "private JFrame buildWindow() {\n frame = WindowFactory.mainFrame()\n .title(\"VISNode\")\n .menu(VISNode.get().getActions().buildMenuBar())\n .size(1024, 768)\n .maximized()\n .interceptClose(() -> {\n new UserPreferencesPersistor().persist(model.getUserPreferences());\n int result = JOptionPane.showConfirmDialog(panel, Messages.get().singleMessage(\"app.closing\"), null, JOptionPane.YES_NO_OPTION);\n return result == JOptionPane.YES_OPTION;\n })\n .create((container) -> {\n panel = new MainPanel(model);\n container.add(panel);\n });\n return frame;\n }", "public static void render()\n {\n JWindow win = new JWindow(); //NOTE is this focusable?\n //sets the layout to add things from top to bottom\n win.getContentPane().setLayout(new BoxLayout(win.getContentPane(), BoxLayout.Y_AXIS));\n win.getContentPane().add(new JScrollPane(aboutApp.editorPane())); //adds HTML text\n JButton close = new JButton(\"Close\"); //creates the close button\n win.getContentPane().add(close);\n close.addActionListener(new ActionListener() //listens for close\n {\n public void actionPerformed(ActionEvent e) //when button is clicked\n {\n win.dispose(); //close window\n }\n });\n win.setSize(new Dimension(500, 500));\n win.setFocusableWindowState(true); //allowa the window to be focused on\n win.setVisible(true); //makes window visible\n }", "protected void createContents() throws UnknownHostException, IOException, InterruptedException {\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tshlUser = new Shell();\r\n\t\tshlUser.setSize(450, 464);\r\n\t\tshlUser.setText(\"QQ聊天室\\r\\n\");\r\n\t\t\r\n\t\ttext = new Text(shlUser, SWT.BORDER);\r\n\t\ttext.setEnabled(false);\r\n\t\ttext.setBounds(0, 52, 424, 187);\r\n\t\t\r\n\t\t\r\n\t\ttext_1 = new Text(shlUser, SWT.BORDER);\t\t\r\n\t\ttext_1.setBounds(23, 263, 274, 23);\r\n\t\t\r\n\t\tButton button = new Button(shlUser, SWT.CENTER);\r\n\t\tbutton.setText(\"发送\");\r\n\t\tbutton.setBounds(321, 257, 80, 27);\r\n\t\t\r\n\t\ttext_2 = new Text(shlUser, SWT.BORDER);\r\n\t\ttext_2.setText(\"abc\");\r\n\t\ttext_2.setBounds(61, 7, 91, 23);\r\n\t\t\r\n\t\tLabel lblNewLabel = new Label(shlUser, SWT.NONE);\r\n\t\tlblNewLabel.setBounds(0, 10, 51, 17);\r\n\t\tlblNewLabel.setText(\"昵称:\");\r\n\t\t\r\n\t\tButton btnNewButton = new Button(shlUser, SWT.NONE);\r\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tnew Thread() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t// 连接服务器\r\n\t\t\t\t\t\t\t\tsocket = new Socket(\"127.0.0.1\", 8888);\r\n\t\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t\t// 如果连不上服务器,说明服务器未启动,则启动服务器\r\n\t\t\t\t\t\t\t\tserver = new ServerSocket(8888);\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"服务器启动完成,监听端口:8888\");\r\n\t\t\t\t\t\t\t\tsocket = server.accept();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t/**\r\n\t\t\t\t\t\t\t * 注意:所有在自定义线程中修改图形控件属性,\r\n\t\t\t\t\t\t\t * 都必须使用 shell.getDisplay().asyncExec() 方法\r\n\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\tshlUser.getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\tMessageBox mb = new MessageBox(shlUser,SWT.OK);\r\n\t\t\t\t\t\t\t\t\tmb.setText(\"系统提示\");\r\n\t\t\t\t\t\t\t\t\tmb.setMessage(\"连接成功!现在你可以开始聊天了!\");\r\n\t\t\t\t\t\t\t\t\tmb.open();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\ttalker = new Talker(socket, new MsgListener() {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void onMessage(String msg) {\r\n\t\t\t\t\t\t\t\t\t// 收到消息时,将消息更新到多行文本框\r\n\t\t\t\t\t\t\t\t\tshlUser.getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\ttext.setText(text.getText() + msg + \"\\r\\n\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void onConnect(InetAddress addr) {\r\n\t\t\t\t\t\t\t\t\t// 连接成功时,显示对方IP\r\n\t\t\t\t\t\t\t\t\tshlUser.getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\tlblNewLabel.setText(\"好友IP:\" + addr.getHostAddress());\r\n\t\t\t\t\t\t\t\t\t\t\ttext.setEnabled(true);\r\n\t\t\t\t\t\t\t\t\t\t\tbutton.setEnabled(true);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t});\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\t} catch (IOException e) {\r\n\t\t\t\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}.start();\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\ttMsg = new Text(shlUser, SWT.BORDER);\r\n\t\ttMsg.setEnabled(false);\r\n\t\ttMsg.setBounds(10, 364, 414, 26);\r\n\r\n\t\t\r\n\t\tbtnNewButton.setBounds(324, 7, 80, 27);\r\n\t\tbtnNewButton.setText(\"连接服务器\");\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (tMsg.getText().trim().isEmpty() == false) {\r\n\t\t\t\t\t\tString msg = talker.send(text_2.getText(), tMsg.getText());\r\n\t\t\t\t\t\ttext.setText(text.getText() + msg + \"\\r\\n\");\r\n\t\t\t\t\t\ttMsg.setText(\"\");\r\n\t\t\t\t\t\t// 设置焦点\r\n\t\t\t\t\t\ttMsg.setFocus();\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t}", "private void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tshell.setSize(500, 400);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\tshell.setLayout(new FormLayout());\r\n\t\t\r\n\t\tSERVER_COUNTRY locale = SERVER_COUNTRY.DE;\r\n\t\tString username = JOptionPane.showInputDialog(\"Username\");\r\n\t\tString password = JOptionPane.showInputDialog(\"Password\");\r\n\t\tBot bot = new Bot(username, password, locale);\r\n\t\t\r\n\t\tGroup grpActions = new Group(shell, SWT.NONE);\r\n\t\tgrpActions.setText(\"Actions\");\r\n\t\tgrpActions.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tgrpActions.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\r\n\t\tgrpActions.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tgrpActions.setLayout(new GridLayout(5, false));\r\n\t\tFormData fd_grpActions = new FormData();\r\n\t\tfd_grpActions.left = new FormAttachment(0, 203);\r\n\t\tfd_grpActions.right = new FormAttachment(100, -10);\r\n\t\tfd_grpActions.top = new FormAttachment(0, 10);\r\n\t\tfd_grpActions.bottom = new FormAttachment(0, 152);\r\n\t\tgrpActions.setLayoutData(fd_grpActions);\r\n\t\t\r\n\t\tConsole = new Text(shell, SWT.BORDER | SWT.READ_ONLY | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tFormData fd_Console = new FormData();\r\n\t\tfd_Console.left = new FormAttachment(grpActions, 0, SWT.LEFT);\r\n\t\tfd_Console.right = new FormAttachment(100, -10);\r\n\t\tConsole.setLayoutData(fd_Console);\r\n\r\n\t\t\r\n\t\tButton Feed = new Button(grpActions, SWT.CHECK);\r\n\t\tFeed.setSelection(true);\r\n\t\tFeed.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tfeed = !feed;\r\n\t\t\t\tConsole.append(\"\\nTest\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tFeed.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tFeed.setText(\"Feed\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Drink = new Button(grpActions, SWT.CHECK);\r\n\t\tDrink.setSelection(true);\r\n\t\tDrink.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tdrink = !drink;\r\n\t\t\t}\r\n\t\t});\r\n\t\tDrink.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tDrink.setText(\"Drink\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Stroke = new Button(grpActions, SWT.CHECK);\r\n\t\tStroke.setSelection(true);\r\n\t\tStroke.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tstroke = !stroke;\r\n\t\t\t}\r\n\t\t});\r\n\t\tStroke.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tStroke.setText(\"Stroke\");\r\n\t\t\r\n\t\t\r\n\t\t//STATIC\r\n\t\tLabel lblNewLabel_0 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_0.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tlblNewLabel_0.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/feed.png\"));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tLabel lblNewLabel_1 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_1.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/drink.png\"));\r\n\t\tlblNewLabel_1.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\t\r\n\t\tGroup grpBreeds = new Group(shell, SWT.NONE);\r\n\t\tgrpBreeds.setText(\"Breeds\");\r\n\t\tgrpBreeds.setLayout(new GridLayout(1, false));\r\n\t\t\r\n\t\tFormData fd_grpBreeds = new FormData();\r\n\t\tfd_grpBreeds.top = new FormAttachment(0, 10);\r\n\t\tfd_grpBreeds.bottom = new FormAttachment(100, -10);\r\n\t\tfd_grpBreeds.right = new FormAttachment(0, 180);\r\n\t\tfd_grpBreeds.left = new FormAttachment(0, 10);\r\n\t\tgrpBreeds.setLayoutData(fd_grpBreeds);\r\n\t\t\r\n\t\tButton Defaults = new Button(grpBreeds, SWT.RADIO);\r\n\t\tDefaults.setText(\"Defaults\");\r\n\t\t//END STATIC\r\n\t\t\r\n\t\tbot.account.api.requests.setTimeout(200);\r\n\t\tbot.logger.printlevel = 1;\t\r\n\t\t\r\n\t\tReturn<HashMap<Integer,Breed>> b = bot.getBreeds();\t\t\r\n\t\tif(!b.sucess) {\r\n\t\t\tConsole.append(\"\\nERROR!\");\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t\tIterator<Breed> iterator = b.data.values().iterator();\r\n\t\tHashMap<String, java.awt.Button> buttons = new HashMap<String, Button>();\r\n\t\t\r\n\t\twhile(iterator.hasNext()) {\r\n\t\t\tBreed breed = iterator.next();\r\n\t\t\t\r\n\t\t\tString name = breed.name;\r\n\t\t\t\r\n\t\t\tButton btn = new Button(grpBreeds, SWT.RADIO);\r\n\t\t\tbtn.setText(name);\r\n\t\t\t\r\n\t\t\tbuttons.put(name, btn);\r\n\t\t\t\r\n\t\t\t//\tTODO - Für jeden Breed wird ein Button erstellt:\r\n\t\t\t//\tButton [HIER DER BREED NAME] = new Button(grpBreeds, SWT.RADIO); <-- Dass geht nicht so wirklich so\r\n\t\t\t//\tDefaults.setText(\"[BREED NAME]\");\r\n\t\t}\r\n\t\t\r\n\t\t// um ein button mit name <name> zu bekommen: Button whatever = buttons.get(<name>);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tButton btnStartBot = new Button(shell, SWT.NONE);\r\n\t\tfd_Console.top = new FormAttachment(0, 221);\r\n\t\tbtnStartBot.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tConsole.setText(\"Starting bot... \");\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t/*TODO\r\n\t\t\t\tBreed[] breeds = new Breed[b.data.size()];\r\n\t\t\t\t\r\n\t\t\t\tIterator<Breed> br = b.data.values().iterator();\r\n\t\t\t\t\r\n\t\t\t\tfor(int i = 0; i < b.data.size(); i++) {\r\n\t\t\t\t\tbreeds[i] = br.next();\r\n\t\t\t\t};\r\n\t\t\t\tBreed s = (Breed) JOptionPane.showInputDialog(null, \"Choose breed\", \"breed selector\", JOptionPane.PLAIN_MESSAGE, null, breeds, \"default\");\r\n\t\t\t\tEND TODO*/\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//Breed breed, boolean drink, boolean stroke, boolean groom, boolean carrot, boolean mash, boolean suckle, boolean feed, boolean sleep, boolean centreMission, long timeout, Bot bot, Runnable onEnd\r\n\t\t\t\tReturn<BasicBreedTasksAsync> ret = bot.basicBreedTasks(0, drink, stroke, groom, carrot, mash, suckle, feed, sleep, mission, 500, new Runnable() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"FINISHED!\", \"Bot\", JOptionPane.PLAIN_MESSAGE);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\tbot.logout();\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\tif(!ret.sucess) {\r\n\t\t\t\t\tConsole.append(\"ERROR\");\r\n\t\t\t\t\tSystem.exit(-1);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tret.data.start();\r\n\t\t\t\t\r\n\t\t\t\t//TODO\r\n\t\t\t\twhile(ret.data.running()) {\r\n\t\t\t\t\tSleeper.sleep(5000);\r\n\t\t\t\t\tif(ret.data.getProgress() == 1)\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tConsole.append(\"progress: \" + (ret.data.getProgress() * 100) + \"%\");\r\n\t\t\t\t\tConsole.append(\"ETA: \" + (ret.data.getEta() / 1000) + \"sec.\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tFormData fd_btnStartBot = new FormData();\r\n\t\tfd_btnStartBot.left = new FormAttachment(grpActions, 0, SWT.LEFT);\r\n\t\tbtnStartBot.setLayoutData(fd_btnStartBot);\r\n\t\tbtnStartBot.setText(\"Start Bot\");\r\n\t\t\r\n\t\tButton btnStopBot = new Button(shell, SWT.NONE);\r\n\t\tfd_btnStartBot.top = new FormAttachment(btnStopBot, 0, SWT.TOP);\r\n\t\tbtnStopBot.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tConsole.append(\"Stopping bot...\");\r\n\t\t\t\tbot.logout();\r\n\t\t\t}\r\n\t\t});\r\n\t\tFormData fd_btnStopBot = new FormData();\r\n\t\tfd_btnStopBot.right = new FormAttachment(grpActions, 0, SWT.RIGHT);\r\n\t\tbtnStopBot.setLayoutData(fd_btnStopBot);\r\n\t\tbtnStopBot.setText(\"Stop Bot\");\r\n\t\t\t\r\n\t\t\r\n\t\tProgressBar progressBar = new ProgressBar(shell, SWT.NONE);\r\n\t\tfd_Console.bottom = new FormAttachment(progressBar, -6);\r\n\t\tfd_btnStopBot.bottom = new FormAttachment(progressBar, -119);\r\n\t\t\r\n\t\tFormData fd_progressBar = new FormData();\r\n\t\tfd_progressBar.left = new FormAttachment(grpBreeds, 23);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//STATIC\r\n\t\tLabel lblNewLabel_2 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_2.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/stroke.png\"));\r\n\t\tlblNewLabel_2.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\t\r\n\t\tButton Groom = new Button(grpActions, SWT.CHECK);\r\n\t\tGroom.setSelection(true);\r\n\t\tGroom.setSelection(true);\r\n\t\tGroom.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tgroom = !groom;\r\n\t\t\t}\r\n\t\t});\r\n\t\tGroom.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tGroom.setText(\"Groom\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Treat = new Button(grpActions, SWT.CHECK);\r\n\t\tTreat.setSelection(true);\r\n\t\tTreat.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tcarrot = !carrot;\r\n\t\t\t}\r\n\t\t});\r\n\t\tTreat.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tTreat.setText(\"Treat\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Mash = new Button(grpActions, SWT.CHECK);\r\n\t\tMash.setSelection(true);\r\n\t\tMash.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tmash = !mash;\r\n\t\t\t}\r\n\t\t});\r\n\t\tMash.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tMash.setText(\"Mash\");\r\n\t\t\r\n\t\tLabel lblNewLabel_3 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_3.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/groom.png\"));\r\n\t\tlblNewLabel_3.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tLabel lblNewLabel_4 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_4.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/carotte.png\"));\r\n\t\tlblNewLabel_4.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tLabel lblNewLabel_5 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_5.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/mash.png\"));\r\n\t\tlblNewLabel_5.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\t\r\n\t\tButton btnSleep = new Button(grpActions, SWT.CHECK);\r\n\t\tbtnSleep.setSelection(true);\r\n\t\tbtnSleep.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tsleep = !sleep;\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnSleep.setText(\"Sleep\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton btnMission = new Button(grpActions, SWT.CHECK);\r\n\t\tbtnMission.setSelection(true);\r\n\t\tbtnMission.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tmission = !mission;\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnMission.setText(\"Mission\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\r\n\t}", "public void createUI() {\r\n\t\ttry {\r\n\t\t\tJPanel centerPanel = this.createCenterPane();\r\n\t\t\tJPanel westPanel = this.createWestPanel();\r\n\t\t\tm_XONContentPane.add(westPanel, BorderLayout.WEST);\r\n\t\t\tm_XONContentPane.add(centerPanel, BorderLayout.CENTER);\r\n\t\t\tm_XONContentPane.revalidate();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tRGPTLogger.logToFile(\"Exception at createUI \", ex);\r\n\t\t}\r\n\t}", "private void createContents() {\n\t\tshell = new Shell(getParent(), SWT.SHELL_TRIM | SWT.BORDER | SWT.PRIMARY_MODAL);\n\t\tshell.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/list-2x.png\"));\n\t\tshell.setSize(610, 340);\n\t\tshell.setText(\"Thuoc List View\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\tshell.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.keyCode==SWT.ESC){\n\t\t\t\t\tobjThuoc = null;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n \n Composite compositeInShellThuoc = new Composite(shell, SWT.NONE);\n\t\tcompositeInShellThuoc.setLayout(new BorderLayout(0, 0));\n\t\tcompositeInShellThuoc.setLayoutData(BorderLayout.CENTER);\n \n\t\tComposite compositeHeaderThuoc = new Composite(compositeInShellThuoc, SWT.NONE);\n\t\tcompositeHeaderThuoc.setLayoutData(BorderLayout.NORTH);\n\t\tcompositeHeaderThuoc.setLayout(new GridLayout(5, false));\n\n\t\ttextSearchThuoc = new Text(compositeHeaderThuoc, SWT.BORDER);\n\t\ttextSearchThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\t\ttextSearchThuoc.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.keyCode==13){\n\t\t\t\t\treloadTableThuoc();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnNewButtonSearchThuoc = new Button(compositeHeaderThuoc, SWT.NONE);\n\t\tbtnNewButtonSearchThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/media-play-2x.png\"));\n\t\tbtnNewButtonSearchThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\n\t\tbtnNewButtonSearchThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\treloadTableThuoc();\n\t\t\t}\n\t\t});\n\t\tButton btnNewButtonExportExcelThuoc = new Button(compositeHeaderThuoc, SWT.NONE);\n\t\tbtnNewButtonExportExcelThuoc.setText(\"Export Excel\");\n\t\tbtnNewButtonExportExcelThuoc.setImage(SWTResourceManager.getImage(KhamBenhListDlg.class, \"/png/spreadsheet-2x.png\"));\n\t\tbtnNewButtonExportExcelThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\t\tbtnNewButtonExportExcelThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\texportExcelTableThuoc();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tGridData gd_btnNewButtonThuoc = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnNewButtonThuoc.widthHint = 87;\n\t\tbtnNewButtonSearchThuoc.setLayoutData(gd_btnNewButtonThuoc);\n\t\tbtnNewButtonSearchThuoc.setText(\"Search\");\n \n\t\ttableViewerThuoc = new TableViewer(compositeInShellThuoc, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttableThuoc = tableViewerThuoc.getTable();\n\t\ttableThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\t\ttableThuoc.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.keyCode==SWT.F5){\n\t\t\t\t\treloadTableThuoc();\n }\n if(e.keyCode==SWT.F4){\n\t\t\t\t\teditTableThuoc();\n }\n\t\t\t\telse if(e.keyCode==13){\n\t\t\t\t\tselectTableThuoc();\n\t\t\t\t}\n else if(e.keyCode==SWT.DEL){\n\t\t\t\t\tdeleteTableThuoc();\n\t\t\t\t}\n else if(e.keyCode==SWT.F7){\n\t\t\t\t\tnewItemThuoc();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n tableThuoc.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\tselectTableThuoc();\n\t\t\t}\n\t\t});\n \n\t\ttableThuoc.setLinesVisible(true);\n\t\ttableThuoc.setHeaderVisible(true);\n\t\ttableThuoc.setLayoutData(BorderLayout.CENTER);\n\n\t\tTableColumn tbTableColumnThuocMA_HOAT_CHAT = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_HOAT_CHAT.setWidth(100);\n\t\ttbTableColumnThuocMA_HOAT_CHAT.setText(\"MA_HOAT_CHAT\");\n\n\t\tTableColumn tbTableColumnThuocMA_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_AX.setWidth(100);\n\t\ttbTableColumnThuocMA_AX.setText(\"MA_AX\");\n\n\t\tTableColumn tbTableColumnThuocHOAT_CHAT = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHOAT_CHAT.setWidth(100);\n\t\ttbTableColumnThuocHOAT_CHAT.setText(\"HOAT_CHAT\");\n\n\t\tTableColumn tbTableColumnThuocHOATCHAT_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHOATCHAT_AX.setWidth(100);\n\t\ttbTableColumnThuocHOATCHAT_AX.setText(\"HOATCHAT_AX\");\n\n\t\tTableColumn tbTableColumnThuocMA_DUONG_DUNG = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_DUONG_DUNG.setWidth(100);\n\t\ttbTableColumnThuocMA_DUONG_DUNG.setText(\"MA_DUONG_DUNG\");\n\n\t\tTableColumn tbTableColumnThuocMA_DUONGDUNG_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_DUONGDUNG_AX.setWidth(100);\n\t\ttbTableColumnThuocMA_DUONGDUNG_AX.setText(\"MA_DUONGDUNG_AX\");\n\n\t\tTableColumn tbTableColumnThuocDUONG_DUNG = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDUONG_DUNG.setWidth(100);\n\t\ttbTableColumnThuocDUONG_DUNG.setText(\"DUONG_DUNG\");\n\n\t\tTableColumn tbTableColumnThuocDUONGDUNG_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDUONGDUNG_AX.setWidth(100);\n\t\ttbTableColumnThuocDUONGDUNG_AX.setText(\"DUONGDUNG_AX\");\n\n\t\tTableColumn tbTableColumnThuocHAM_LUONG = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHAM_LUONG.setWidth(100);\n\t\ttbTableColumnThuocHAM_LUONG.setText(\"HAM_LUONG\");\n\n\t\tTableColumn tbTableColumnThuocHAMLUONG_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHAMLUONG_AX.setWidth(100);\n\t\ttbTableColumnThuocHAMLUONG_AX.setText(\"HAMLUONG_AX\");\n\n\t\tTableColumn tbTableColumnThuocTEN_THUOC = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocTEN_THUOC.setWidth(100);\n\t\ttbTableColumnThuocTEN_THUOC.setText(\"TEN_THUOC\");\n\n\t\tTableColumn tbTableColumnThuocTENTHUOC_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocTENTHUOC_AX.setWidth(100);\n\t\ttbTableColumnThuocTENTHUOC_AX.setText(\"TENTHUOC_AX\");\n\n\t\tTableColumn tbTableColumnThuocSO_DANG_KY = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocSO_DANG_KY.setWidth(100);\n\t\ttbTableColumnThuocSO_DANG_KY.setText(\"SO_DANG_KY\");\n\n\t\tTableColumn tbTableColumnThuocSODANGKY_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocSODANGKY_AX.setWidth(100);\n\t\ttbTableColumnThuocSODANGKY_AX.setText(\"SODANGKY_AX\");\n\n\t\tTableColumn tbTableColumnThuocDONG_GOI = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDONG_GOI.setWidth(100);\n\t\ttbTableColumnThuocDONG_GOI.setText(\"DONG_GOI\");\n\n\t\tTableColumn tbTableColumnThuocDON_VI_TINH = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDON_VI_TINH.setWidth(100);\n\t\ttbTableColumnThuocDON_VI_TINH.setText(\"DON_VI_TINH\");\n\n\n\t\tTableColumn tbTableColumnThuocDON_GIA = new TableColumn(tableThuoc, SWT.NONE);\n\t\ttbTableColumnThuocDON_GIA.setWidth(100);\n\t\ttbTableColumnThuocDON_GIA.setText(\"DON_GIA\");\n\n\n\t\tTableColumn tbTableColumnThuocDON_GIA_TT = new TableColumn(tableThuoc, SWT.NONE);\n\t\ttbTableColumnThuocDON_GIA_TT.setWidth(100);\n\t\ttbTableColumnThuocDON_GIA_TT.setText(\"DON_GIA_TT\");\n\n\t\tTableColumn tbTableColumnThuocSO_LUONG = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocSO_LUONG.setWidth(100);\n\t\ttbTableColumnThuocSO_LUONG.setText(\"SO_LUONG\");\n\n\t\tTableColumn tbTableColumnThuocMA_CSKCB = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_CSKCB.setWidth(100);\n\t\ttbTableColumnThuocMA_CSKCB.setText(\"MA_CSKCB\");\n\n\t\tTableColumn tbTableColumnThuocHANG_SX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHANG_SX.setWidth(100);\n\t\ttbTableColumnThuocHANG_SX.setText(\"HANG_SX\");\n\n\t\tTableColumn tbTableColumnThuocNUOC_SX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocNUOC_SX.setWidth(100);\n\t\ttbTableColumnThuocNUOC_SX.setText(\"NUOC_SX\");\n\n\t\tTableColumn tbTableColumnThuocNHA_THAU = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocNHA_THAU.setWidth(100);\n\t\ttbTableColumnThuocNHA_THAU.setText(\"NHA_THAU\");\n\n\t\tTableColumn tbTableColumnThuocQUYET_DINH = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocQUYET_DINH.setWidth(100);\n\t\ttbTableColumnThuocQUYET_DINH.setText(\"QUYET_DINH\");\n\n\t\tTableColumn tbTableColumnThuocCONG_BO = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocCONG_BO.setWidth(100);\n\t\ttbTableColumnThuocCONG_BO.setText(\"CONG_BO\");\n\n\t\tTableColumn tbTableColumnThuocMA_THUOC_BV = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_THUOC_BV.setWidth(100);\n\t\ttbTableColumnThuocMA_THUOC_BV.setText(\"MA_THUOC_BV\");\n\n\t\tTableColumn tbTableColumnThuocLOAI_THUOC = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocLOAI_THUOC.setWidth(100);\n\t\ttbTableColumnThuocLOAI_THUOC.setText(\"LOAI_THUOC\");\n\n\t\tTableColumn tbTableColumnThuocLOAI_THAU = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocLOAI_THAU.setWidth(100);\n\t\ttbTableColumnThuocLOAI_THAU.setText(\"LOAI_THAU\");\n\n\t\tTableColumn tbTableColumnThuocNHOM_THAU = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocNHOM_THAU.setWidth(100);\n\t\ttbTableColumnThuocNHOM_THAU.setText(\"NHOM_THAU\");\n\n\t\tTableColumn tbTableColumnThuocMANHOM_9324 = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocMANHOM_9324.setWidth(100);\n\t\ttbTableColumnThuocMANHOM_9324.setText(\"MANHOM_9324\");\n\n\t\tTableColumn tbTableColumnThuocHIEULUC = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocHIEULUC.setWidth(100);\n\t\ttbTableColumnThuocHIEULUC.setText(\"HIEULUC\");\n\n\t\tTableColumn tbTableColumnThuocKETQUA = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocKETQUA.setWidth(100);\n\t\ttbTableColumnThuocKETQUA.setText(\"KETQUA\");\n\n\t\tTableColumn tbTableColumnThuocTYP = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocTYP.setWidth(100);\n\t\ttbTableColumnThuocTYP.setText(\"TYP\");\n\n\t\tTableColumn tbTableColumnThuocTHUOC_RANK = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocTHUOC_RANK.setWidth(100);\n\t\ttbTableColumnThuocTHUOC_RANK.setText(\"THUOC_RANK\");\n\n Menu menuThuoc = new Menu(tableThuoc);\n\t\ttableThuoc.setMenu(menuThuoc);\n\t\t\n\t\tMenuItem mntmNewItemThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmNewItemThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tnewItemThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmNewItemThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/arrow-circle-top-2x.png\"));\n\t\tmntmNewItemThuoc.setText(\"New\");\n\t\t\n\t\tMenuItem mntmEditItemThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmEditItemThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/wrench-2x.png\"));\n\t\tmntmEditItemThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\teditTableThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmEditItemThuoc.setText(\"Edit\");\n\t\t\n\t\tMenuItem mntmDeleteThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmDeleteThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/circle-x-2x.png\"));\n\t\tmntmDeleteThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdeleteTableThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmDeleteThuoc.setText(\"Delete\");\n\t\t\n\t\tMenuItem mntmExportThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmExportThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\texportExcelTableThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmExportThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/spreadsheet-2x.png\"));\n\t\tmntmExportThuoc.setText(\"Export Excel\");\n\t\t\n\t\ttableViewerThuoc.setLabelProvider(new TableLabelProviderThuoc());\n\t\ttableViewerThuoc.setContentProvider(new ContentProviderThuoc());\n\t\ttableViewerThuoc.setInput(listDataThuoc);\n //\n //\n\t\tloadDataThuoc();\n\t\t//\n reloadTableThuoc();\n\t}", "public void createWindow(int x, int y, int width, int height, int bgColor, String title, int n) {\r\n\t\tWindow winnie = new Window(x, y, width, height, bgColor, title);\r\n\t\twinnie.type = n;\r\n\t\twindows.add(winnie);\r\n\t}", "protected void createContents(Display display) {\n\t\tshell = new Shell(display, SWT.CLOSE | SWT.TITLE | SWT.MIN);\n\t\tshell.setSize(539, 648);\n\t\tshell.setText(\"SiSi - Security-aware Event Log Generator\");\n\t\tshell.setImage(new Image(shell.getDisplay(), \"imgs/shell.png\"));\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmNewSubmenu = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu.setText(\"File\");\n\t\t\n\t\tMenu menu_1 = new Menu(mntmNewSubmenu);\n\t\tmntmNewSubmenu.setMenu(menu_1);\n\t\t\n\t\tMenuItem mntmOpenFile = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmOpenFile.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tFileDialog dialog = new FileDialog(shell, SWT.OPEN);\n\n\t\t\t\tString[] filterNames = new String[] { \"PNML\", \"All Files (*)\" };\n\t\t\t\tString[] filterExtensions = new String[] { \"*.pnml\", \"*\" };\n\t\t\t\tdialog.setFilterPath(System.getProperty(\"user.dir\"));\n\n\t\t\t\tdialog.setFilterNames(filterNames);\n\t\t\t\tdialog.setFilterExtensions(filterExtensions);\n\n\t\t\t\tString path = dialog.open();\n\t\t\t\tif( path != null ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tgenerateConfigCompositeFor(path);\n\t\t\t\t\t} catch (ParserConfigurationException | SAXException | IOException exception) {\n\t\t\t\t\t\terrorMessageBox(\"Could not load File.\", exception);\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmntmOpenFile.setImage(new Image(shell.getDisplay(), \"imgs/open.png\"));\n\t\tmntmOpenFile.setText(\"Open File...\");\n\t\t\n\t\tMenuItem mntmOpenExample = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmOpenExample.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tgenerateConfigCompositeFor(\"examples/kbv.pnml\");\n\t\t\t\t\t} catch (ParserConfigurationException | SAXException | IOException exception) {\n\t\t\t\t\t\terrorMessageBox(\"Could not load Example.\", exception);\n\t\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmntmOpenExample.setImage(new Image(shell.getDisplay(), \"imgs/example.png\"));\n\t\tmntmOpenExample.setText(\"Open Example\");\n\t\t\n\t\tMenuItem mntmNewItem = new MenuItem(menu_1, SWT.SEPARATOR);\n\t\tmntmNewItem.setText(\"Separator1\");\n\t\t\n\t\tMenuItem mntmExit = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmExit.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.getDisplay().dispose();\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\tmntmExit.setImage(new Image(shell.getDisplay(), \"imgs/exit.png\"));\n\t\tmntmExit.setText(\"Exit\");\n\t\t\n\t\tmainComposite = new ScrolledComposite(shell, SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tmainComposite.setExpandHorizontal(true);\n\t\tmainComposite.setExpandVertical(true);\n\t\t\n\t\tactiveComposite = new Composite(mainComposite, SWT.NONE);\n\t\tGridLayout gl_activeComposite = new GridLayout(1, true);\n\t\tgl_activeComposite.marginWidth = 10;\n\t\tgl_activeComposite.marginHeight = 10;\n\t\tactiveComposite.setLayout(gl_activeComposite);\n\t\t\n\t\tLabel lblWelcomeToSisi = new Label(activeComposite, SWT.NONE);\n\t\tlblWelcomeToSisi.setFont(SWTResourceManager.getFont(\"Segoe UI\", 30, SWT.BOLD));\n\t\tGridData gd_lblWelcomeToSisi = new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1);\n\t\tgd_lblWelcomeToSisi.verticalIndent = 50;\n\t\tlblWelcomeToSisi.setLayoutData(gd_lblWelcomeToSisi);\n\t\tlblWelcomeToSisi.setText(\"Welcome to SiSi!\");\n\t\t\n\t\tLabel lblSecurityawareEvent = new Label(activeComposite, SWT.NONE);\n\t\tlblSecurityawareEvent.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1));\n\t\tlblSecurityawareEvent.setText(\"- A security-aware Event Log Generator -\");\n\t\t\n\t\tLabel lblToGetStarted = new Label(activeComposite, SWT.NONE);\n\t\tlblToGetStarted.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.ITALIC));\n\t\tGridData gd_lblToGetStarted = new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1);\n\t\tgd_lblToGetStarted.verticalIndent = 150;\n\t\tlblToGetStarted.setLayoutData(gd_lblToGetStarted);\n\t\tlblToGetStarted.setText(\"To get started load a file or an example\");\n\t\t\n\t\tmainComposite.setContent(activeComposite);\n\t\tmainComposite.setMinSize(activeComposite.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n\t}", "protected void createContents() {\n\t\tshlFaststone = new Shell();\n\t\tshlFaststone.setImage(SWTResourceManager.getImage(Edit.class, \"/image/all1.png\"));\n\t\tshlFaststone.setToolTipText(\"\");\n\t\tshlFaststone.setSize(944, 479);\n\t\tshlFaststone.setText(\"kaca\");\n\t\tshlFaststone.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tComposite composite = new Composite(shlFaststone, SWT.NONE);\n\t\tcomposite.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm = new SashForm(composite, SWT.VERTICAL);\n\t\t//\n\t\tMenu menu = new Menu(shlFaststone, SWT.BAR);\n\t\tshlFaststone.setMenuBar(menu);\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem.setSelection(true);\n\t\tmenuItem.setText(\"\\u6587\\u4EF6\");\n\t\t\n\t\tMenu menu_1 = new Menu(menuItem);\n\t\tmenuItem.setMenu(menu_1);\n\t\t\n\t\tfinal Canvas down=new Canvas(shlFaststone,SWT.NONE|SWT.BORDER|SWT.DOUBLE_BUFFERED);\n\t\t\n\t\tComposite composite_4 = new Composite(sashForm, SWT.BORDER);\n\t\tcomposite_4.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm_3 = new SashForm(composite_4, SWT.NONE);\n\t\tformToolkit.adapt(sashForm_3);\n\t\tformToolkit.paintBordersFor(sashForm_3);\n\t\t\n\t\tToolBar toolBar = new ToolBar(sashForm_3, SWT.BORDER | SWT.FLAT | SWT.WRAP | SWT.RIGHT);\n\t\ttoolBar.setToolTipText(\"\");\n\t\t\n\t\tToolItem toolItem_6 = new ToolItem(toolBar, SWT.NONE);\n\t\ttoolItem_6.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmntmNewItem_2.notifyListeners(SWT.Selection,event1);\n\n\t\t\t}\n\t\t});\n\t\ttoolItem_6.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6253\\u5F00.jpg\"));\n\t\ttoolItem_6.setText(\"\\u6253\\u5F00\");\n\t\t\n\t\tToolItem tltmNewItem = new ToolItem(toolBar, SWT.NONE);\n\t\t\n\t\t\n\t\ttltmNewItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttltmNewItem.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u53E6\\u5B58\\u4E3A.jpg\"));\n\t\ttltmNewItem.setText(\"\\u53E6\\u5B58\\u4E3A\");\n\t\t//关闭\n\t\tToolItem tltmNewItem_4 = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmNewItem_4.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmntmNewItem_5.notifyListeners(SWT.Selection, event2);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\ttltmNewItem_4.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7ED3\\u675F.jpg\"));\n\t\ttltmNewItem_4.setText(\"\\u5173\\u95ED\");\n\t\t\n\t\t\n\t\t\n\t\tToolItem tltmNewItem_1 = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmNewItem_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t//缩放\n\t\t\n\t\t\n\t\ttltmNewItem_1.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u653E\\u5927.jpg\"));\n\t\t\n\t\t//工具栏:放大\n\t\t\n\t\ttltmNewItem_1.setText(\"\\u653E\\u5927\");\n\t\t\n\t\tToolItem tltmNewItem_2 = new ToolItem(toolBar, SWT.NONE);\n\t\t\n\t\t//工具栏:缩小\n\t\ttltmNewItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t\n\t\ttltmNewItem_2.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F29\\u5C0F.jpg\"));\n\t\ttltmNewItem_2.setText(\"\\u7F29\\u5C0F\");\n\t\tToolItem toolItem_5 = new ToolItem(toolBar, SWT.NONE);\n\t\ttoolItem_5.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmntmNewItem_5.notifyListeners(SWT.Selection, event2);\n\n\t\t\t}\n\t\t});\n\t\ttoolItem_5.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7ED3\\u675F.jpg\"));\n\t\ttoolItem_5.setText(\"\\u9000\\u51FA\");\n\t\t\n\t\tToolBar toolBar_1 = new ToolBar(sashForm_3, SWT.BORDER | SWT.FLAT | SWT.RIGHT);\n\t\tformToolkit.adapt(toolBar_1);\n\t\tformToolkit.paintBordersFor(toolBar_1);\n\t\t\n\t\tToolItem toolItem_7 = new ToolItem(toolBar_1, SWT.NONE);\n\t\t\n\t\t//工具栏:标题\n\t\ttoolItem_7.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_7.setText(\"\\u6807\\u9898\");\n\t\ttoolItem_7.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6807\\u9898.jpg\"));\n\t\t\n\t\tToolItem toolItem_1 = new ToolItem(toolBar_1, SWT.NONE);\n\t\t\n\t\t//工具栏:调整大小\n\t\ttoolItem_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_1.setText(\"\\u8C03\\u6574\\u5927\\u5C0F\");\n\t\ttoolItem_1.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u8C03\\u6574\\u5927\\u5C0F.jpg\"));\n\t\t\n\t\tToolBar toolBar_2 = new ToolBar(sashForm_3, SWT.BORDER | SWT.FLAT | SWT.RIGHT);\n\t\ttoolBar_2.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\tformToolkit.adapt(toolBar_2);\n\t\tformToolkit.paintBordersFor(toolBar_2);\n\t\t\n\t\tToolItem toolItem_2 = new ToolItem(toolBar_2, SWT.NONE);\n\t\t\n\t\t//工具栏:裁剪\n\t\ttoolItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_2.setText(\"\\u88C1\\u526A\");\n\t\ttoolItem_2.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u88C1\\u526A.jpg\"));\n\t\t\n\t\tToolItem toolItem_3 = new ToolItem(toolBar_2, SWT.NONE);\n\t\t\n\t\t//工具栏:剪切\n\t\ttoolItem_3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_3.setText(\"\\u526A\\u5207\");\n\t\ttoolItem_3.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u526A\\u5207.jpg\"));\n\t\t\n\t\tToolItem toolItem_4 = new ToolItem(toolBar_2, SWT.NONE);\n\t\t\n\n\t\t//工具栏:粘贴\n\t\ttoolItem_4.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\tcomposite_3.layout();\n\t\t\t\tFile f=new File(\"src/picture/beauty.jpg\");\n\t\t\t\tImageData imageData;\n\t\t\t\ttry {\n\t\t\t\t\timageData = new ImageData( new FileInputStream( f));\n\t\t\t\t\tImage image=new Image(shlFaststone.getDisplay(),imageData);\n\t\t\t\t\tButton lblNewLabel_3 = null;\n\t\t\t\t\tlblNewLabel_3.setImage(image);\n\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tcomposite_3.layout();\n\t\t\t}\n\t\t});\n\t\t//omposite;\n\t\t//\n\t\t\n\t\ttoolItem_4.setText(\"\\u590D\\u5236\");\n\t\ttoolItem_4.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u590D\\u5236.jpg\"));\n\t\t\n\t\tToolItem tltmNewItem_3 = new ToolItem(toolBar_2, SWT.NONE);\n\t\ttltmNewItem_3.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u7C98\\u8D34.jpg\"));\n\t\ttltmNewItem_3.setText(\"\\u7C98\\u8D34\");\n\t\tsashForm_3.setWeights(new int[] {486, 165, 267});\n\t\t\n\t\tComposite composite_1 = new Composite(sashForm, SWT.NONE);\n\t\tformToolkit.adapt(composite_1);\n\t\tformToolkit.paintBordersFor(composite_1);\n\t\tcomposite_1.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm_1 = new SashForm(composite_1, SWT.VERTICAL);\n\t\tformToolkit.adapt(sashForm_1);\n\t\tformToolkit.paintBordersFor(sashForm_1);\n\t\t\n\t\tComposite composite_2 = new Composite(sashForm_1, SWT.NONE);\n\t\tformToolkit.adapt(composite_2);\n\t\tformToolkit.paintBordersFor(composite_2);\n\t\tcomposite_2.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tTabFolder tabFolder = new TabFolder(composite_2, SWT.NONE);\n\t\ttabFolder.setTouchEnabled(true);\n\t\tformToolkit.adapt(tabFolder);\n\t\tformToolkit.paintBordersFor(tabFolder);\n\t\t\n\t\tTabItem tbtmNewItem = new TabItem(tabFolder, SWT.NONE);\n\t\ttbtmNewItem.setText(\"\\u65B0\\u5EFA\\u4E00\");\n\t\t\n\t\tTabItem tbtmNewItem_1 = new TabItem(tabFolder, SWT.NONE);\n\t\ttbtmNewItem_1.setText(\"\\u65B0\\u5EFA\\u4E8C\");\n\t\t\n\t\tTabItem tbtmNewItem_2 = new TabItem(tabFolder, SWT.NONE);\n\t\ttbtmNewItem_2.setText(\"\\u65B0\\u5EFA\\u4E09\");\n\t\t\n\t\tButton button = new Button(tabFolder, SWT.CHECK);\n\t\tbutton.setText(\"Check Button\");\n\t\t\n\t\tcomposite_3 = new Composite(sashForm_1, SWT.H_SCROLL | SWT.V_SCROLL);\n\t\t\n\t\tformToolkit.adapt(composite_3);\n\t\tformToolkit.paintBordersFor(composite_3);\n\t\tcomposite_3.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tLabel lblNewLabel_3 = new Label(composite_3, SWT.NONE);\n\t\tformToolkit.adapt(lblNewLabel_3, true, true);\n\t\tlblNewLabel_3.setText(\"\");\n\t\tsashForm_1.setWeights(new int[] {19, 323});\n\t\t\n\t\tComposite composite_5 = new Composite(sashForm, SWT.NONE);\n\t\tcomposite_5.setToolTipText(\"\");\n\t\tcomposite_5.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm_2 = new SashForm(composite_5, SWT.NONE);\n\t\tformToolkit.adapt(sashForm_2);\n\t\tformToolkit.paintBordersFor(sashForm_2);\n\t\t\n\t\tLabel lblNewLabel = new Label(sashForm_2, SWT.BORDER | SWT.CENTER);\n\t\tformToolkit.adapt(lblNewLabel, true, true);\n\t\tlblNewLabel.setText(\"1/1\");\n\t\t\n\t\tLabel lblNewLabel_2 = new Label(sashForm_2, SWT.BORDER | SWT.CENTER);\n\t\tformToolkit.adapt(lblNewLabel_2, true, true);\n\t\tlblNewLabel_2.setText(\"\\u5927\\u5C0F\\uFF1A1366*728\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(sashForm_2, SWT.CENTER);\n\t\tformToolkit.adapt(lblNewLabel_1, true, true);\n\t\tlblNewLabel_1.setText(\"\\u7F29\\u653E\\uFF1A100%\");\n\t\t\n\t\tLabel label = new Label(sashForm_2, SWT.NONE);\n\t\tlabel.setAlignment(SWT.RIGHT);\n\t\tformToolkit.adapt(label, true, true);\n\t\tlabel.setText(\"\\u5494\\u5693\\u5DE5\\u4F5C\\u5BA4\\u7248\\u6743\\u6240\\u6709\");\n\t\tsashForm_2.setWeights(new int[] {127, 141, 161, 490});\n\t\tsashForm.setWeights(new int[] {50, 346, 22});\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tMenuItem mntmNewItem = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u65B0\\u5EFA.jpg\"));\n\t\tmntmNewItem.setText(\"\\u65B0\\u5EFA\");\n\t\t\n\t\tmntmNewItem_2 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\t//Label lblNewLabel_3 = new Label(composite_1, SWT.NONE);\n\t\t\t\t//Canvas c=new Canvas(shlFaststone,SWT.BALLOON);\n\t\t\t\t\n\t\t\t\tFileDialog dialog = new FileDialog(shlFaststone,SWT.OPEN); \n\t\t\t\tdialog.setFilterPath(System.getProperty(\"user_home\"));//设置初始路径\n\t\t\t\tdialog.setFilterNames(new String[] {\"文本文档(*txt)\",\"所有文档\"}); \n\t\t\t\tdialog.setFilterExtensions(new String[]{\"*.exe\",\"*.xls\",\"*.*\"});\n\t\t\t\tString path=dialog.open();\n\t\t\t\tString s=null;\n\t\t\t\tFile f=null;\n\t\t\t\tif(path==null||\"\".equals(path)) {\n\t\t\t\t\treturn ;\n\t\t\t\t}\n\t\t\t\ttry{\n\t\t\t f=new File(path);\n\t\t\t\tbyte[] bs=Fileutil.readFile(f);\n\t\t\t s=new String(bs,\"UTF-8\");\n\t\t\t\t}catch (Exception e1) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\tMessageDialog.openError(shlFaststone, \"出错了\", \"打开\"+path+\"出错了\");\n\t\t\t\t\treturn ;\n\t\t\t\t}\n\t\t\t \n\t\t\t\ttext = new Text(composite_4, SWT.BORDER | SWT.WRAP\n\t\t\t\t\t\t| SWT.H_SCROLL | SWT.V_SCROLL | SWT.CANCEL\n\t\t\t\t\t\t| SWT.MULTI);\n\t\t\t\ttext.setText(s);\n\t\t\t\tcomposite_1.layout();\n\t\t\t\tshlFaststone.setText(shlFaststone.getText()+\"\\t\"+f.getName());\n\t\t\t\t\t\n\t\t\t\tFile f1=new File(path);\n\t\t\t\tImageData imageData;\n\t\t\t\ttry {\n\t\t\t\t\timageData = new ImageData( new FileInputStream( f1));\n\t\t\t\t\tImage image=new Image(shlFaststone.getDisplay(),imageData);\n\t\t\t\t\tlblNewLabel_3.setImage(image);\n\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t});\n\t\tmntmNewItem_2.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u6253\\u5F00.jpg\"));\n\t\tmntmNewItem_2.setText(\"\\u6253\\u5F00\");\n\t\t\n\t\tMenuItem mntmNewItem_1 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_1.setText(\"\\u4ECE\\u526A\\u8D34\\u677F\\u5BFC\\u5165\");\n\t\t\n\t\tMenuItem mntmNewItem_3 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_3.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u53E6\\u5B58\\u4E3A.jpg\"));\n\t\tmntmNewItem_3.setText(\"\\u53E6\\u5B58\\u4E3A\");\n\t\t\n\t\t mntmNewItem_5 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_5.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t boolean result=MessageDialog.openConfirm(shlFaststone,\"退出\",\"是否确认退出\");\n\t\t\t\t if(result) {\n\t\t\t\t\t System.exit(0);\n\t\t\t\t }\n\n\t\t\t}\n\t\t});\n\t\tmntmNewItem_5.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u4FDD\\u5B58.jpg\"));\n\t\tmntmNewItem_5.setText(\"\\u5173\\u95ED\");\n\t\tevent2=new Event();\n\t\tevent2.widget=mntmNewItem_5;\n\n\t\t\n\t\tMenuItem mntmNewSubmenu = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu.setText(\"\\u6355\\u6349\");\n\t\t\n\t\tMenu menu_2 = new Menu(mntmNewSubmenu);\n\t\tmntmNewSubmenu.setMenu(menu_2);\n\t\t\n\t\tMenuItem mntmNewItem_6 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_6.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349\\u6D3B\\u52A8\\u7A97\\u53E3.jpg\"));\n\t\tmntmNewItem_6.setText(\"\\u6355\\u6349\\u6D3B\\u52A8\\u7A97\\u53E3\");\n\t\t\n\t\tMenuItem mntmNewItem_7 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_7.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u6355\\u6349\\u7A97\\u53E3\\u6216\\u5BF9\\u8C61.jpg\"));\n\t\tmntmNewItem_7.setText(\"\\u6355\\u6349\\u7A97\\u53E3\\u5BF9\\u8C61\");\n\t\t\n\t\tMenuItem mntmNewItem_8 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_8.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.jpg\"));\n\t\tmntmNewItem_8.setText(\"\\u6355\\u6349\\u77E9\\u5F62\\u533A\\u57DF\");\n\t\t\n\t\tMenuItem mntmNewItem_9 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_9.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u624B\\u7ED8\\u533A\\u57DF.jpg\"));\n\t\tmntmNewItem_9.setText(\"\\u6355\\u6349\\u624B\\u7ED8\\u533A\\u57DF\");\n\t\t\n\t\tMenuItem mntmNewItem_10 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_10.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u6574\\u4E2A\\u5C4F\\u5E55.jpg\"));\n\t\tmntmNewItem_10.setText(\"\\u6355\\u6349\\u6574\\u4E2A\\u5C4F\\u5E55\");\n\t\t\n\t\tMenuItem mntmNewItem_11 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_11.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349\\u6EDA\\u52A8\\u7A97\\u53E3.jpg\"));\n\t\tmntmNewItem_11.setText(\"\\u6355\\u6349\\u6EDA\\u52A8\\u7A97\\u53E3\");\n\t\t\n\t\tMenuItem mntmNewItem_12 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_12.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u56FA\\u5B9A\\u5927\\u5C0F\\u533A\\u57DF.jpg\"));\n\t\tmntmNewItem_12.setText(\"\\u6355\\u6349\\u56FA\\u5B9A\\u5927\\u5C0F\\u533A\\u57DF\");\n\t\t\n\t\tMenuItem menuItem_1 = new MenuItem(menu_2, SWT.NONE);\n\t\tmenuItem_1.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u91CD\\u590D\\u4E0A\\u6B21\\u6355\\u6349.jpg\"));\n\t\tmenuItem_1.setText(\"\\u91CD\\u590D\\u4E0A\\u6B21\\u6355\\u6349\");\n\t\t\n\t\tMenuItem menuItem_2 = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem_2.setText(\"\\u7F16\\u8F91\");\n\t\t\n\t\tMenu menu_3 = new Menu(menuItem_2);\n\t\tmenuItem_2.setMenu(menu_3);\n\t\t\n\t\tMenuItem mntmNewItem_14 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_14.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u5DE6\\u64A4\\u9500.jpg\"));\n\t\tmntmNewItem_14.setText(\"\\u64A4\\u9500\");\n\t\t\n\t\tMenuItem mntmNewItem_13 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_13.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u53F3\\u64A4\\u9500.jpg\"));\n\t\tmntmNewItem_13.setText(\"\\u91CD\\u505A\");\n\t\t\n\t\tMenuItem mntmNewItem_15 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_15.setText(\"\\u9009\\u62E9\\u5168\\u90E8\");\n\t\t\n\t\tMenuItem mntmNewItem_16 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_16.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u7F16\\u8F91.\\u88C1\\u526A.jpg\"));\n\t\tmntmNewItem_16.setText(\"\\u88C1\\u526A\");\n\t\t\n\t\tMenuItem mntmNewItem_17 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_17.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u526A\\u5207.jpg\"));\n\t\tmntmNewItem_17.setText(\"\\u526A\\u5207\");\n\t\t\n\t\tMenuItem mntmNewItem_18 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_18.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u590D\\u5236.jpg\"));\n\t\tmntmNewItem_18.setText(\"\\u590D\\u5236\");\n\t\t\n\t\tMenuItem menuItem_4 = new MenuItem(menu_3, SWT.NONE);\n\t\tmenuItem_4.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u7C98\\u8D34.jpg\"));\n\t\tmenuItem_4.setText(\"\\u7C98\\u8D34\");\n\t\t\n\t\tMenuItem mntmNewItem_19 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_19.setText(\"\\u5220\\u9664\");\n\t\t\n\t\tMenuItem menuItem_3 = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem_3.setText(\"\\u7279\\u6548\");\n\t\t\n\t\tMenu menu_4 = new Menu(menuItem_3);\n\t\tmenuItem_3.setMenu(menu_4);\n\t\t\n\t\tMenuItem mntmNewItem_20 = new MenuItem(menu_4, SWT.NONE);\n\t\tmntmNewItem_20.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7279\\u6548.\\u6C34\\u5370.jpg\"));\n\t\tmntmNewItem_20.setText(\"\\u6C34\\u5370\");\n\t\t\n\t\tPanelPic ppn = new PanelPic();\n\t\tMenuItem mntmNewItem_21 = new MenuItem(menu_4, SWT.NONE);\n\t\tmntmNewItem_21.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tflag[0]=true;\n\t\t\t\tflag[1]=false;\n\n\t\t\t}\n\n\t\t});\n\t\t\n\t\tdown.addMouseListener(new MouseAdapter(){\n\t\t\tpublic void mouseDown(MouseEvent e)\n\t\t\t{\n\t\t\t\tmouseDown=true;\n\t\t\t\tpt=new Point(e.x,e.y);\n\t\t\t\tif(flag[1])\n\t\t\t\t{\n\t\t\t\t\trect=new Composite(down,SWT.BORDER);\n\t\t\t\t\trect.setLocation(e.x, e.y);\n\t\t\t\t\tn++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpublic void mouseUp(MouseEvent e)\n\t\t\t{\n\t\t\t\tmouseDown=false;\n\t\t\t\tif(flag[1]&&dirty)\n\t\t\t\t{\n\t\t\t\t\trexx[n-1]=rect.getBounds();\n\t\t\t\t\trect.dispose();\n\t\t\t\t\tdown.redraw();\n\t\t\t\t\tdirty=false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tdown.addMouseMoveListener(new MouseMoveListener(){\n\t\t\t@Override\n\t\t\tpublic void mouseMove(MouseEvent e) {\n if(mouseDown)\n {\n \t dirty=true;\n\t\t\t\tif(flag[0])\n\t\t\t {\n \t GC gc=new GC(down);\n gc.drawLine(pt.x, pt.y, e.x, e.y);\n list.add(new int[]{pt.x,pt.y,e.x,e.y});\n pt.x=e.x;pt.y=e.y;\n\t\t\t }\n else if(flag[1])\n {\n \t if(rect!=null)\n \t rect.setSize(rect.getSize().x+e.x-pt.x, rect.getSize().y+e.y-pt.y);\n// \t down.redraw();\n \t pt.x=e.x;pt.y=e.y;\n }\n }\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tdown.addPaintListener(new PaintListener(){\n\t\t\t@Override\n\t\t\tpublic void paintControl(PaintEvent e) {\n\t\t\t\tfor(int i=0;i<list.size();i++)\n\t\t\t\t{\n\t\t\t\t\tint a[]=list.get(i);\n\t\t\t\t\te.gc.drawLine(a[0], a[1], a[2], a[3]);\n\t\t\t\t}\n\t\t\t\tfor(int i=0;i<n;i++)\n\t\t\t\t{\n\t\t\t\t\tif(rexx[i]!=null)\n\t\t\t\t\t\te.gc.drawRectangle(rexx[i]);\n\t\t\t\t}\n\t\t\t}});\n\n\t\t\n\t\tmntmNewItem_21.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7279\\u6548.\\u6587\\u5B57.jpg\"));\n\t\tmntmNewItem_21.setText(\"\\u753B\\u7B14\");\n\t\t\n\t\tMenuItem mntmNewSubmenu_1 = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu_1.setText(\"\\u67E5\\u770B\");\n\t\t\n\t\tMenu menu_5 = new Menu(mntmNewSubmenu_1);\n\t\tmntmNewSubmenu_1.setMenu(menu_5);\n\t\t\n\t\tMenuItem mntmNewItem_24 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_24.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u67E5\\u770B.\\u653E\\u5927.jpg\"));\n\t\tmntmNewItem_24.setText(\"\\u653E\\u5927\");\n\t\t\n\t\tMenuItem mntmNewItem_25 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_25.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u67E5\\u770B.\\u7F29\\u5C0F.jpg\"));\n\t\tmntmNewItem_25.setText(\"\\u7F29\\u5C0F\");\n\t\t\n\t\tMenuItem mntmNewItem_26 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_26.setText(\"\\u5B9E\\u9645\\u5C3A\\u5BF8\\uFF08100%\\uFF09\");\n\t\t\n\t\tMenuItem mntmNewItem_27 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_27.setText(\"\\u9002\\u5408\\u7A97\\u53E3\");\n\t\t\n\t\tMenuItem mntmNewItem_28 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_28.setText(\"100%\");\n\t\t\n\t\tMenuItem mntmNewItem_29 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_29.setText(\"200%\");\n\t\t\n\t\tMenuItem mntmNewSubmenu_2 = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu_2.setText(\"\\u8BBE\\u7F6E\");\n\t\t\n\t\tMenu menu_6 = new Menu(mntmNewSubmenu_2);\n\t\tmntmNewSubmenu_2.setMenu(menu_6);\n\t\t\n\t\tMenuItem menuItem_5 = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem_5.setText(\"\\u5E2E\\u52A9\");\n\t\t\n\t\tMenu menu_7 = new Menu(menuItem_5);\n\t\tmenuItem_5.setMenu(menu_7);\n\t\t\n\t\tMenuItem menuItem_6 = new MenuItem(menu_7, SWT.NONE);\n\t\tmenuItem_6.setText(\"\\u7248\\u672C\");\n\t\t\n\t\tMenuItem mntmNewItem_23 = new MenuItem(menu, SWT.NONE);\n\t\tmntmNewItem_23.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u5DE6\\u64A4\\u9500.jpg\"));\n\t\t\n\t\tMenuItem mntmNewItem_30 = new MenuItem(menu, SWT.NONE);\n\t\tmntmNewItem_30.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u53F3\\u64A4\\u9500.jpg\"));\n\n\t}", "private void createContents() {\r\n\t\tshlAjouterNouvelleEquation = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL);\r\n\t\tshlAjouterNouvelleEquation.setSize(363, 334);\r\n\t\tif(modification)\r\n\t\t\tshlAjouterNouvelleEquation.setText(\"Modifier Equation\");\r\n\t\telse\r\n\t\t\tshlAjouterNouvelleEquation.setText(\"Ajouter Nouvelle Equation\");\r\n\t\tshlAjouterNouvelleEquation.setLayout(new FormLayout());\r\n\r\n\r\n\t\tLabel lblContenuEquation = new Label(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_lblContenuEquation = new FormData();\r\n\t\tfd_lblContenuEquation.top = new FormAttachment(0, 5);\r\n\t\tfd_lblContenuEquation.left = new FormAttachment(0, 5);\r\n\t\tlblContenuEquation.setLayoutData(fd_lblContenuEquation);\r\n\t\tlblContenuEquation.setText(\"Contenu Equation\");\r\n\r\n\r\n\t\tcontrainteButton = new Button(shlAjouterNouvelleEquation, SWT.CHECK);\r\n\t\tFormData fd_btnContrainte = new FormData();\r\n\t\tfd_btnContrainte.top = new FormAttachment(0, 27);\r\n\t\tfd_btnContrainte.right = new FormAttachment(100, -10);\r\n\t\tcontrainteButton.setLayoutData(fd_btnContrainte);\r\n\t\tcontrainteButton.setText(\"Contrainte\");\r\n\r\n\t\torientationButton = new Button(shlAjouterNouvelleEquation, SWT.CHECK);\r\n\t\tFormData fd_btnOrinet = new FormData();\r\n\t\tfd_btnOrinet.top = new FormAttachment(0, 27);\r\n\t\tfd_btnOrinet.right = new FormAttachment(contrainteButton, -10);\r\n\r\n\t\torientationButton.setLayoutData(fd_btnOrinet);\r\n\t\t\r\n\t\torientationButton.setText(\"Orient\\u00E9\");\r\n\r\n\t\tcontenuEquation = new Text(shlAjouterNouvelleEquation, SWT.BORDER|SWT.SINGLE);\r\n\t\tFormData fd_text = new FormData();\r\n\t\tfd_text.right = new FormAttachment(orientationButton, -10, SWT.LEFT);\r\n\t\tfd_text.top = new FormAttachment(0, 25);\r\n\t\tfd_text.left = new FormAttachment(0, 5);\r\n\t\tcontenuEquation.setLayoutData(fd_text);\r\n\r\n\t\tcontenuEquation.addListener(SWT.FocusOut, out->{\r\n\t\t\tSystem.out.println(\"Making list...\");\r\n\t\t\ttry {\r\n\t\t\t\tequation.getListeDeParametresEqn_DYNAMIC();\r\n\t\t\t\tif(!btnTerminer.isDisposed()){\r\n\t\t\t\t\tif(!btnTerminer.getEnabled())\r\n\t\t\t\t\t\t btnTerminer.setEnabled(true);\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e1) {\r\n\t\t\t\tthis.showError(shlAjouterNouvelleEquation, e1.toString());\r\n\t\t\t\t btnTerminer.setEnabled(false);\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\t\r\n\t\t});\r\n\r\n\t\tLabel lblNewLabel = new Label(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_lblNewLabel = new FormData();\r\n\t\tfd_lblNewLabel.top = new FormAttachment(0, 51);\r\n\t\tfd_lblNewLabel.left = new FormAttachment(0, 5);\r\n\t\tlblNewLabel.setLayoutData(fd_lblNewLabel);\r\n\t\tlblNewLabel.setText(\"Param\\u00E8tre de Sortie\");\r\n\r\n\t\tparametreDeSortieCombo = new Combo(shlAjouterNouvelleEquation, SWT.DROP_DOWN |SWT.READ_ONLY);\r\n\t\tparametreDeSortieCombo.setEnabled(false);\r\n\r\n\t\tFormData fd_combo = new FormData();\r\n\t\tfd_combo.top = new FormAttachment(0, 71);\r\n\t\tfd_combo.left = new FormAttachment(0, 5);\r\n\t\tparametreDeSortieCombo.setLayoutData(fd_combo);\r\n\t\tparametreDeSortieCombo.addListener(SWT.FocusIn, in->{\r\n\t\t\tparametreDeSortieCombo.setItems(makeItems.apply(equation.getListeDeParametresEqn()));\r\n\t\t\tparametreDeSortieCombo.pack();\r\n\t\t\tparametreDeSortieCombo.update();\r\n\t\t});\r\n\r\n\t\tSashForm sashForm = new SashForm(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_sashForm = new FormData();\r\n\t\tfd_sashForm.top = new FormAttachment(parametreDeSortieCombo, 6);\r\n\t\tfd_sashForm.bottom = new FormAttachment(100, -50);\r\n\t\tfd_sashForm.right = new FormAttachment(100);\r\n\t\tfd_sashForm.left = new FormAttachment(0, 5);\r\n\t\tsashForm.setLayoutData(fd_sashForm);\r\n\r\n\r\n\r\n\r\n\t\tGroup propertiesGroup = new Group(sashForm, SWT.NONE);\r\n\t\tpropertiesGroup.setLayout(new FormLayout());\r\n\r\n\t\tpropertiesGroup.setText(\"Propri\\u00E9t\\u00E9s\");\r\n\t\tFormData fd_propertiesGroup = new FormData();\r\n\t\tfd_propertiesGroup.top = new FormAttachment(0);\r\n\t\tfd_propertiesGroup.left = new FormAttachment(0);\r\n\t\tfd_propertiesGroup.bottom = new FormAttachment(100, 0);\r\n\t\tfd_propertiesGroup.right = new FormAttachment(100, 0);\r\n\t\tpropertiesGroup.setLayoutData(fd_propertiesGroup);\r\n\r\n\r\n\r\n\r\n\r\n\t\tproperties = new Text(propertiesGroup, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL);\r\n\t\tFormData fd_grouptext = new FormData();\r\n\t\tfd_grouptext.top = new FormAttachment(0,0);\r\n\t\tfd_grouptext.left = new FormAttachment(0, 0);\r\n\t\tfd_grouptext.bottom = new FormAttachment(100, 0);\r\n\t\tfd_grouptext.right = new FormAttachment(100, 0);\r\n\t\tproperties.setLayoutData(fd_grouptext);\r\n\r\n\r\n\r\n\t\tGroup grpDescription = new Group(sashForm, SWT.NONE);\r\n\t\tgrpDescription.setText(\"Description\");\r\n\t\tgrpDescription.setLayout(new FormLayout());\r\n\t\tFormData fd_grpDescription = new FormData();\r\n\t\tfd_grpDescription.bottom = new FormAttachment(100, 0);\r\n\t\tfd_grpDescription.right = new FormAttachment(100,0);\r\n\t\tfd_grpDescription.top = new FormAttachment(0);\r\n\t\tfd_grpDescription.left = new FormAttachment(0);\r\n\t\tgrpDescription.setLayoutData(fd_grpDescription);\r\n\r\n\t\tdescription = new Text(grpDescription, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tdescription.setParent(grpDescription);\r\n\r\n\t\tFormData fd_description = new FormData();\r\n\t\tfd_description.top = new FormAttachment(0,0);\r\n\t\tfd_description.left = new FormAttachment(0, 0);\r\n\t\tfd_description.bottom = new FormAttachment(100, 0);\r\n\t\tfd_description.right = new FormAttachment(100, 0);\r\n\r\n\t\tdescription.setLayoutData(fd_description);\r\n\r\n\r\n\t\tsashForm.setWeights(new int[] {50,50});\r\n\r\n\t\tbtnTerminer = new Button(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tbtnTerminer.setEnabled(false);\r\n\t\tFormData fd_btnTerminer = new FormData();\r\n\t\tfd_btnTerminer.top = new FormAttachment(sashForm, 6);\r\n\t\tfd_btnTerminer.left = new FormAttachment(sashForm,0, SWT.CENTER);\r\n\t\tbtnTerminer.setLayoutData(fd_btnTerminer);\r\n\t\tbtnTerminer.setText(\"Terminer\");\r\n\t\tbtnTerminer.addListener(SWT.Selection, e->{\r\n\t\t\t\r\n\t\t\tboolean go = true;\r\n\t\t\tresult = null;\r\n\t\t\tif (status.equals(ValidationStatus.ok())) {\r\n\t\t\t\t//perform all the neccessary tests before validating the equation\t\t\t\t\t\r\n\t\t\t\tif(equation.isOriented()){\r\n\t\t\t\t\tif(!equation.getListeDeParametresEqn().contains(equation.getParametreDeSortie()) || equation.getParametreDeSortie() == null){\t\t\t\t\t\t\r\n\t\t\t\t\t\tString error = \"Erreur sur l'équation \"+equation.getContenuEqn();\r\n\t\t\t\t\t\tgo = false;\r\n\t\t\t\t\t\tshowError(shlAjouterNouvelleEquation, error);\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (go) {\r\n\t\t\t\t\t\tresult = Boolean.TRUE;\r\n\t\t\t\t\t\tshlAjouterNouvelleEquation.dispose();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tequation.setParametreDeSortie(null);\r\n\t\t\t\t\tresult = Boolean.TRUE;\r\n\t\t\t\t\t//Just some cleanup\r\n\t\t\t\t\tfor (Parametre par : equation.getListeDeParametresEqn()) {\r\n\t\t\t\t\t\tif (par.getTypeP().equals(TypeParametre.OUTPUT)) {\t\t\t\t\t\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tpar.setTypeP(TypeParametre.UNDETERMINED);\r\n\t\t\t\t\t\t\t\tpar.setSousTypeP(SousTypeParametre.FREE);\r\n\t\t\t\t\t\t\t} catch (Exception e1) {\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tshlAjouterNouvelleEquation.dispose();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t//\tSystem.out.println(equation.getContenuEqn() +\"\\n\"+equation.isConstraint()+\"\\n\"+equation.isOriented()+\"\\n\"+equation.getParametreDeSortie());\r\n\t\t});\r\n\r\n\t\t//In this sub routine I bind the values to the respective controls in order to observe changes \r\n\t\t//and verify the data insertion\r\n\t\tbindValues();\r\n\t}", "public abstract void createContents(Panel mainPanel);", "protected void createContents() {\n\t\t\n\t\tshlMailview = new Shell();\n\t\tshlMailview.addShellListener(new ShellAdapter() {\n\t\t\t@Override\n\t\t\tpublic void shellClosed(ShellEvent e) {\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tshlMailview.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\tshlMailview.setSize(1124, 800);\n\t\tshlMailview.setText(\"MailView\");\n\t\tshlMailview.setLayout(new BorderLayout(0, 0));\t\t\n\t\t\n\t\tMenu menu = new Menu(shlMailview, SWT.BAR);\n\t\tshlMailview.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmNewSubmenu = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu.setText(\"\\u0413\\u043B\\u0430\\u0432\\u043D\\u0430\\u044F\");\n\t\t\n\t\tMenu mainMenu = new Menu(mntmNewSubmenu);\n\t\tmntmNewSubmenu.setMenu(mainMenu);\n\t\t\n\t\tMenuItem menuItem = new MenuItem(mainMenu, SWT.NONE);\n\t\tmenuItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmyThready.stop();// interrupt();\n\t\t\t\tmyThready = new Thread(timer);\n\t\t\t\tmyThready.setDaemon(true);\n\t\t\t\tmyThready.start();\n\t\t\t}\n\t\t});\n\t\tmenuItem.setText(\"\\u041E\\u0431\\u043D\\u043E\\u0432\\u0438\\u0442\\u044C\");\n\t\t\n\t\tMenuItem exitMenu = new MenuItem(mainMenu, SWT.NONE);\n\t\texitMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\t\t\t\t\n\t\t\t\tshlMailview.close();\n\t\t\t}\n\t\t});\n\t\texitMenu.setText(\"\\u0412\\u044B\\u0445\\u043E\\u0434\");\n\t\t\n\t\tMenuItem filtrMenu = new MenuItem(menu, SWT.NONE);\n\t\tfiltrMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tfilterDialog fd = new filterDialog(shlMailview, 0);\n\t\t\t\tfd.open();\n\t\t\t}\n\t\t});\n\t\tfiltrMenu.setText(\"\\u0424\\u0438\\u043B\\u044C\\u0442\\u0440\");\n\t\t\n\t\tMenuItem settingsMenu = new MenuItem(menu, SWT.NONE);\n\t\tsettingsMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tsettingDialog sd = new settingDialog(shlMailview, 0);\n\t\t\t\tsd.open();\n\t\t\t}\n\t\t});\n\t\tsettingsMenu.setText(\"\\u041D\\u0430\\u0441\\u0442\\u0440\\u043E\\u0439\\u043A\\u0438\");\n\t\t\n\t\tfinal TabFolder tabFolder = new TabFolder(shlMailview, SWT.NONE);\n\t\ttabFolder.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(tabFolder.getSelectionIndex() == 1)\n\t\t\t\t{\n\t\t\t\t\tservice.RepaintAccount(accountsTable);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttabFolder.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\t\n\t\tTabItem lettersTab = new TabItem(tabFolder, SWT.NONE);\n\t\tlettersTab.setText(\"\\u041F\\u0438\\u0441\\u044C\\u043C\\u0430\");\n\t\t\n\t\tComposite composite_2 = new Composite(tabFolder, SWT.NONE);\n\t\tlettersTab.setControl(composite_2);\n\t\tcomposite_2.setLayout(new FormLayout());\n\t\t\n\t\tComposite composite_4 = new Composite(composite_2, SWT.NONE);\n\t\tFormData fd_composite_4 = new FormData();\n\t\tfd_composite_4.bottom = new FormAttachment(0, 81);\n\t\tfd_composite_4.top = new FormAttachment(0);\n\t\tfd_composite_4.left = new FormAttachment(0);\n\t\tfd_composite_4.right = new FormAttachment(0, 1100);\n\t\tcomposite_4.setLayoutData(fd_composite_4);\n\t\t\n\t\tComposite composite_5 = new Composite(composite_2, SWT.NONE);\n\t\tcomposite_5.setLayout(new BorderLayout(0, 0));\n\t\tFormData fd_composite_5 = new FormData();\n\t\tfd_composite_5.bottom = new FormAttachment(composite_4, 281, SWT.BOTTOM);\n\t\tfd_composite_5.left = new FormAttachment(composite_4, 0, SWT.LEFT);\n\t\tfd_composite_5.right = new FormAttachment(composite_4, 0, SWT.RIGHT);\n\t\tfd_composite_5.top = new FormAttachment(composite_4, 6);\n\t\tcomposite_5.setLayoutData(fd_composite_5);\n\t\t\n\t\tComposite composite_10 = new Composite(composite_2, SWT.NONE);\n\t\tFormData fd_composite_10 = new FormData();\n\t\tfd_composite_10.top = new FormAttachment(composite_5, 6);\n\t\tfd_composite_10.bottom = new FormAttachment(100, -10);\n\t\t\n\t\tlettersTable = new Table(composite_5, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tlettersTable.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\titem.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.NONE));\n\t\t\t\t\tbox.Preview(Integer.parseInt(item.getText(0)));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tlettersTable.setLinesVisible(true);\n\t\tlettersTable.setHeaderVisible(true);\n\t\tTableColumn msgId = new TableColumn(lettersTable, SWT.NONE);\n\t\tmsgId.setResizable(false);\n\t\tmsgId.setText(\"ID\");\n\t\t\n\t\tTableColumn from = new TableColumn(lettersTable, SWT.NONE);\n\t\tfrom.setWidth(105);\n\t\tfrom.setText(\"\\u041E\\u0442\");\n\t\tfrom.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn to = new TableColumn(lettersTable, SWT.NONE);\n\t\tto.setWidth(111);\n\t\tto.setText(\"\\u041A\\u043E\\u043C\\u0443\");\n\t\tto.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn subject = new TableColumn(lettersTable, SWT.NONE);\n\t\tsubject.setWidth(406);\n\t\tsubject.setText(\"\\u0422\\u0435\\u043C\\u0430\");\n\t\tsubject.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn created = new TableColumn(lettersTable, SWT.NONE);\n\t\tcreated.setWidth(176);\n\t\tcreated.setText(\"\\u0421\\u043E\\u0437\\u0434\\u0430\\u043D\\u043E\");\n\t\tcreated.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.DATE_COMPARATOR));\n\t\t\n\t\tTableColumn received = new TableColumn(lettersTable, SWT.NONE);\n\t\treceived.setWidth(194);\n\t\treceived.setText(\"\\u041F\\u043E\\u043B\\u0443\\u0447\\u0435\\u043D\\u043E\");\n\t\treceived.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.DATE_COMPARATOR));\t\t\n\t\t\n\t\tMenu popupMenuLetter = new Menu(lettersTable);\n\t\tlettersTable.setMenu(popupMenuLetter);\n\t\t\n\t\tMenuItem miUpdate = new MenuItem(popupMenuLetter, SWT.NONE);\n\t\tmiUpdate.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmyThready.stop();// interrupt();\n\t\t\t\tmyThready = new Thread(timer);\n\t\t\t\tmyThready.setDaemon(true);\n\t\t\t\tmyThready.start();\n\t\t\t}\n\t\t});\n\t\tmiUpdate.setText(\"\\u041E\\u0431\\u043D\\u043E\\u0432\\u0438\\u0442\\u044C\");\n\t\t\n\t\tfinal MenuItem miDelete = new MenuItem(popupMenuLetter, SWT.NONE);\n\t\tmiDelete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\tbox.deleteMessage(Integer.parseInt(item.getText(0)), lettersTable.getSelectionIndex());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmiDelete.setText(\"\\u0412 \\u043A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0443\");\n\t\tfd_composite_10.right = new FormAttachment(composite_4, 0, SWT.RIGHT);\n\t\t\n\t\tfinal Button btnInbox = new Button(composite_4, SWT.NONE);\n\t\tfinal Button btnTrash = new Button(composite_4, SWT.NONE);\n\t\t\n\t\tbtnInbox.setBounds(10, 10, 146, 39);\n\t\tbtnInbox.setEnabled(false);\n\t\tbtnInbox.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSetting.Instance().SetTab(false);\t\t\t\t\n\t\t\t\tbtnInbox.setEnabled(false);\n\t\t\t\tmiDelete.setText(\"\\u0412 \\u043A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0443\");\n\t\t\t\tbtnTrash.setEnabled(true);\n\t\t\t\tbox.rePaint();\n\t\t\t}\n\t\t});\n\t\tbtnInbox.setText(\"\\u0412\\u0445\\u043E\\u0434\\u044F\\u0449\\u0438\\u0435\");\n\t\tbtnTrash.setLocation(170, 10);\n\t\tbtnTrash.setSize(146, 39);\n\t\tbtnTrash.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSetting.Instance().SetTab(true);\n\t\t\t\tbtnInbox.setEnabled(true);\n\t\t\t\tmiDelete.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\t\tbtnTrash.setEnabled(false);\n\t\t\t\tbox.rePaint();\n\t\t\t}\n\t\t});\n\t\tbtnTrash.setText(\"\\u041A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0430\");\n\t\t\n\t\tButton deleteLetter = new Button(composite_4, SWT.NONE);\n\t\tdeleteLetter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\tbox.deleteMessage(Integer.parseInt(item.getText(0)), lettersTable.getSelectionIndex());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tdeleteLetter.setLocation(327, 11);\n\t\tdeleteLetter.setSize(146, 37);\n\t\tdeleteLetter.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\n\t\tdeleteLetter.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\n\t\tLabel label = new Label(composite_4, SWT.NONE);\n\t\tlabel.setLocation(501, 17);\n\t\tlabel.setSize(74, 27);\n\t\tlabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tlabel.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\t\n\t\tCombo listAccounts = new Combo(composite_4, SWT.NONE);\n\t\tlistAccounts.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlistAccounts.setLocation(583, 19);\n\t\tlistAccounts.setSize(180, 23);\n\t\tlistAccounts.setItems(new String[] {\"\\u0412\\u0441\\u0435\"});\n\t\tlistAccounts.select(0);\n\t\t\n\t\tprogressBar = new ProgressBar(composite_4, SWT.NONE);\n\t\tprogressBar.setBounds(10, 64, 263, 17);\n\t\tfd_composite_10.left = new FormAttachment(0);\n\t\tcomposite_10.setLayoutData(fd_composite_10);\n\t\t\n\t\theaderMessage = new Text(composite_10, SWT.BORDER);\n\t\theaderMessage.setFont(SWTResourceManager.getFont(\"Segoe UI\", 14, SWT.NORMAL));\n\t\theaderMessage.setBounds(0, 0, 1100, 79);\n\t\t\n\t\tsc = new ScrolledComposite(composite_10, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tsc.setBounds(0, 85, 1100, 230);\n\t\tsc.setExpandHorizontal(true);\n\t\tsc.setExpandVertical(true);\t\t\n\t\t\n\t\tTabItem accountsTab = new TabItem(tabFolder, SWT.NONE);\n\t\taccountsTab.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u044B\");\n\t\t\n\t\tComposite accountComposite = new Composite(tabFolder, SWT.NONE);\n\t\taccountsTab.setControl(accountComposite);\n\t\taccountComposite.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\t\n\t\t\tLabel labelListAccounts = new Label(accountComposite, SWT.NONE);\n\t\t\tlabelListAccounts.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\t\tlabelListAccounts.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\tlabelListAccounts.setBounds(10, 37, 148, 31);\n\t\t\tlabelListAccounts.setText(\"\\u0421\\u043F\\u0438\\u0441\\u043E\\u043A \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u043E\\u0432\");\n\t\t\t\n\t\t\tComposite Actions = new Composite(accountComposite, SWT.NONE);\n\t\t\tActions.setBounds(412, 71, 163, 234);\n\t\t\t\n\t\t\tButton addAccount = new Button(Actions, SWT.NONE);\n\t\t\taddAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tAccountDialog ad = new AccountDialog(shlMailview, accountsTable, true);\n\t\t\t\t\tad.open();\n\t\t\t\t}\n\t\t\t});\n\t\t\taddAccount.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\t\taddAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\taddAccount.setBounds(10, 68, 141, 47);\n\t\t\taddAccount.setText(\"\\u0414\\u043E\\u0431\\u0430\\u0432\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tButton editAccount = new Button(Actions, SWT.NONE);\n\t\t\teditAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\tAccountDialog ad = new AccountDialog(shlMailview, accountsTable, false);\n\t\t\t\t\tad.open();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\teditAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\teditAccount.setBounds(10, 121, 141, 47);\n\t\t\teditAccount.setText(\"\\u0418\\u0437\\u043C\\u0435\\u043D\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tButton deleteAccount = new Button(Actions, SWT.NONE);\n\t\t\tdeleteAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tTableItem item = accountsTable.getSelection()[0];\n\t\t\t\t\t\tif(MessageDialog.openConfirm(shlMailview, \"Удаление\", \"Вы хотите удалить учетную запись \" + item.getText(1)+\"?\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tservice.DeleteAccount(item.getText(0));\n\t\t\t\t\t\t\tservice.RepaintAccount(accountsTable);\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\tdeleteAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\t\t\t\n\t\t\tdeleteAccount.setBounds(10, 174, 141, 47);\n\t\t\tdeleteAccount.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tfinal Button Include = new Button(Actions, SWT.NONE);\n\t\t\tInclude.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tTableItem item = accountsTable.getSelection()[0];\n\t\t\t\t\t\tservice.toogleIncludeAccount(item.getText(0));\n\t\t\t\t\t\tservice.RepaintAccount(accountsTable);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tInclude.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\tInclude.setBounds(10, 10, 141, 47);\n\t\t\tInclude.setText(\"\\u0412\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\n\t\t\taccountsTable = new Table(accountComposite, SWT.SINGLE | SWT.BORDER | SWT.FULL_SELECTION);\n\t\t\taccountsTable.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getSelection()[0].getText(2)==\"Включен\")\n\t\t\t\t\t{\n\t\t\t\t\t\tInclude.setText(\"\\u0412\\u044B\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tInclude.setText(\"\\u0412\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\taccountsTable.setBounds(10, 74, 396, 296);\n\t\t\taccountsTable.setHeaderVisible(true);\n\t\t\taccountsTable.setLinesVisible(true);\n\t\t\t\n\t\t\tTableColumn tblclmnId = new TableColumn(accountsTable, SWT.NONE);\n\t\t\ttblclmnId.setWidth(35);\n\t\t\ttblclmnId.setText(\"ID\");\n\t\t\t//accountsTable.setRedraw(false);\n\t\t\t\n\t\t\tTableColumn columnLogin = new TableColumn(accountsTable, SWT.LEFT);\n\t\t\tcolumnLogin.setWidth(244);\n\t\t\tcolumnLogin.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\t\t\n\t\t\tTableColumn columnState = new TableColumn(accountsTable, SWT.LEFT);\n\t\t\tcolumnState.setWidth(100);\n\t\t\tcolumnState.setText(\"\\u0421\\u043E\\u0441\\u0442\\u043E\\u044F\\u043D\\u0438\\u0435\");\n\t}", "protected void createContents() {\n\t\tmainShell = new Shell();\n\t\tmainShell.addDisposeListener(new DisposeListener() {\n\t\t\tpublic void widgetDisposed(DisposeEvent arg0) {\n\t\t\t\tLastValueManager manager = LastValueManager.getInstance();\n\t\t\t\tmanager.setLastAppEngineDirectory(mGAELocation.getText());\n\t\t\t\tmanager.setLastProjectDirectory(mAppRootDir.getText());\n\t\t\t\tmanager.setLastPythonBinDirectory(txtPythonLocation.getText());\n\t\t\t\tmanager.save();\n\t\t\t}\n\t\t});\n\t\tmainShell.setSize(460, 397);\n\t\tmainShell.setText(\"Google App Engine Launcher\");\n\t\tmainShell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tComposite mainComposite = new Composite(mainShell, SWT.NONE);\n\t\tmainComposite.setLayout(new GridLayout(1, false));\n\t\t\n\t\tComposite northComposite = new Composite(mainComposite, SWT.NONE);\n\t\tnorthComposite.setLayoutData(new GridData(SWT.FILL, SWT.TOP, false, false, 1, 1));\n\t\tGridLayout gl_northComposite = new GridLayout(1, false);\n\t\tgl_northComposite.verticalSpacing = 1;\n\t\tnorthComposite.setLayout(gl_northComposite);\n\t\t\n\t\tComposite pythonComposite = new Composite(northComposite, SWT.NONE);\n\t\tpythonComposite.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel lblPython = new Label(pythonComposite, SWT.NONE);\n\t\tlblPython.setText(\"Python : \");\n\t\t\n\t\ttxtPythonLocation = new Text(pythonComposite, SWT.BORDER);\n\t\ttxtPythonLocation.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\ttxtPythonLocation.setText(\"/usr/bin/python2.7\");\n\t\t\n\t\tLabel lblGaeLocation = new Label(pythonComposite, SWT.NONE);\n\t\tlblGaeLocation.setText(\"GAE Location :\");\n\t\t\n\t\tmGAELocation = new Text(pythonComposite, SWT.BORDER);\n\t\tmGAELocation.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tmGAELocation.setText(\"/home/zelon/Programs/google_appengine\");\n\t\t\n\t\tLabel lblProject = new Label(pythonComposite, SWT.NONE);\n\t\tlblProject.setText(\"Project : \");\n\t\t\n\t\tmAppRootDir = new Text(pythonComposite, SWT.BORDER);\n\t\tmAppRootDir.setSize(322, 27);\n\t\tmAppRootDir.setText(\"/home/zelon/workspaceIndigo/box.wimy.com\");\n\t\t\n\t\tComposite ActionComposite = new Composite(northComposite, SWT.NONE);\n\t\tActionComposite.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\n\t\tActionComposite.setLayout(new GridLayout(2, true));\n\t\t\n\t\tButton btnTestServer = new Button(ActionComposite, SWT.NONE);\n\t\tGridData gd_btnTestServer = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnTestServer.widthHint = 100;\n\t\tbtnTestServer.setLayoutData(gd_btnTestServer);\n\t\tbtnTestServer.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmExecuter.startTestServer(getPythonLocation(), mGAELocation.getText(), mAppRootDir.getText(), 8080);\n\t\t\t}\n\t\t});\n\t\tbtnTestServer.setText(\"Test Server\");\n\t\t\n\t\tButton btnDeploy = new Button(ActionComposite, SWT.NONE);\n\t\tGridData gd_btnDeploy = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnDeploy.widthHint = 100;\n\t\tbtnDeploy.setLayoutData(gd_btnDeploy);\n\t\tbtnDeploy.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmExecuter.deploy(getPythonLocation(), mGAELocation.getText(), mAppRootDir.getText());\n\t\t\t}\n\t\t});\n\t\tbtnDeploy.setText(\"Deploy\");\n\t\tActionComposite.setTabList(new Control[]{btnTestServer, btnDeploy});\n\t\tnorthComposite.setTabList(new Control[]{ActionComposite, pythonComposite});\n\t\t\n\t\tComposite centerComposite = new Composite(mainComposite, SWT.NONE);\n\t\tGridData gd_centerComposite = new GridData(SWT.FILL, SWT.FILL, false, false, 1, 1);\n\t\tgd_centerComposite.heightHint = 200;\n\t\tcenterComposite.setLayoutData(gd_centerComposite);\n\t\tcenterComposite.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tlog = new StyledText(centerComposite, SWT.BORDER | SWT.V_SCROLL);\n\t\tlog.setAlignment(SWT.CENTER);\n\t}", "public static void createAndShowStartWindow() {\n\n\t\t// Create and set up the window.\n\n\t\tstartMenu.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\t// panel will hold the buttons and text\n\t\tJPanel panel = new JPanel() {\n\n\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\t// Fills the panel with a red/black gradient\n\t\t\tprotected void paintComponent(Graphics grphcs) {\n\t\t\t\tGraphics2D g2d = (Graphics2D) grphcs;\n\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\n\t\t\t\tColor color1 = new Color(119, 29, 29);\n\t\t\t\tColor color2 = Color.BLACK;\n\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, color1, 0, getHeight() - 100, color2);\n\t\t\t\tg2d.setPaint(gp);\n\t\t\t\tg2d.fillRect(0, 0, getWidth(), getHeight());\n\n\t\t\t\tsuper.paintComponent(grphcs);\n\t\t\t}\n\t\t};\n\n\t\tpanel.setOpaque(false);\n\n\t\tpanel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\n\n\t Font customFont = null;\n\t \n\n\t\ttry {\n\t\t customFont = Font.createFont(Font.TRUETYPE_FONT, ClassLoader.getSystemClassLoader().getResourceAsStream(\"data/AlegreyaSC-Medium.ttf\")).deriveFont(32f);\n\n\t\t GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\n\t\t ge.registerFont(Font.createFont(Font.TRUETYPE_FONT, ClassLoader.getSystemClassLoader().getResourceAsStream(\"data/AlegreyaSC-Medium.ttf\")));\n\t\t\n\n\t\t} catch (IOException|FontFormatException e) {\n\t\t //Handle exception\n\t\t}\n\t\t\n\n\t\t\n\t\t// Some info text at the top of the window\n\t\tJLabel welcome = new JLabel(\"<html><center><font color='white'> Welcome to <br> Ultimate Checkers! </font></html>\",\n\t\t\t\tSwingConstants.CENTER);\n\t\twelcome.setFont(customFont);\n\t\n\n\t\twelcome.setPreferredSize(new Dimension(200, 25));\n\t\twelcome.setAlignmentX(Component.CENTER_ALIGNMENT);\n\n\n\t\t// \"Rigid Area\" is used to align everything\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 40)));\n\t\tpanel.add(welcome);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 50)));\n\t\t//panel.add(choose);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 20)));\n\n\t\t// The start Window will have four buttons\n\t\t// Button1 will open a new window with a standard checkers board\n\t\tJButton button1 = new JButton(\"New Game (Standard Setup)\");\n\n\t\tbutton1.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\n\t\t\t\t\t\tNewGameSettings.createAndShowGameSettings();\n\t\t\t\t\t\tstartMenu.dispose();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t});\n\t\t// Setting up button1\n\t\tbutton1.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tbutton1.setMaximumSize(new Dimension(250, 40));\n\n\t\t// Button2 will open a new window where a custom setup can be created\n\t\tJButton button2 = new JButton(\"New Game (Custom Setup)\");\n\t\tbutton2.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// Begin creating custom game board setup for checkers\n\t\t\t\t\t\tNewCustomWindow.createAndShowCustomGame();\n\t\t\t\t\t\t// Close the start menu window and remove it from memory\n\t\t\t\t\t\tstartMenu.dispose();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t});\n\n\t\t// Setting up button2\n\t\tbutton2.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tbutton2.setMaximumSize(new Dimension(250, 40));\n\n\t\t// Button3 is not implemented yet, it will be used to load a saved game\n\t\tJButton button3 = new JButton(\"Load A Saved Game\");\n\t\tbutton3.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tbutton3.setMaximumSize(new Dimension(250, 40));\n\t\tbutton3.addActionListener(new ActionListener() {\n\n\t\t\tfinal JFrame popupWrongFormat = new PopupFrame(\n\t\t\t\t\t\"Wrong Format!\",\n\t\t\t\t\t\"<html><center>\"\n\t\t\t\t\t\t\t+ \"The save file is in the wrong format! <br><br>\"\n\t\t\t\t\t\t\t+ \"Please make sure the load file is in csv format with an 8x8 table, \"\n\t\t\t\t\t\t\t+ \"followed by whose turn it is, \"\n\t\t\t\t\t\t\t+ \"the white player type and the black player type.\"\n\t\t\t\t\t\t\t+ \"</center></html>\");\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// This will create the file chooser\n\t\t\t\t\t\tJFileChooser chooser = new JFileChooser();\n\n\t\t\t\t\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\"CSV Files\", \"csv\");\n\t\t\t\t\t\tchooser.setFileFilter(filter);\n\n\t\t\t\t\t\tint returnVal = chooser.showOpenDialog(startMenu);\n\t\t\t\t\t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\t\t\t\t\tFile file = chooser.getSelectedFile();\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tcheckAndPlay(file);\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\tpopupWrongFormat.setVisible(true);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Do nothing. Load cancelled by user.\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\t\t}\n\n\t\t});\n\n\t\t// Button4 closes the game\n\t\tJButton button4 = new JButton(\"Exit Ultimate Checkers\");\n\t\tbutton4.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// Close the start menu window and remove it from memory\n\t\t\t\t\t\tstartMenu.dispose();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t});\n\n\t\t// Setting up button4\n\t\tbutton4.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tbutton4.setMaximumSize(new Dimension(250, 40));\n\n\t\t// The four buttons are added to the panel and aligned\n\t\tpanel.add(button1);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 20)));\n\t\tpanel.add(button2);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 20)));\n\t\tpanel.add(button3);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 80)));\n\t\tpanel.add(button4);\n\n\t\t// Setting up the start Menu\n\t\tstartMenu.setSize(400, 600);\n\t\tstartMenu.setResizable(false);\n\n\t\t// Centers the window with respect to the user's screen resolution\n\t\tDimension dimension = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tint x = (int) ((dimension.getWidth() - startMenu.getWidth()) / 2);\n\t\tint y = (int) ((dimension.getHeight() - startMenu.getHeight()) / 2);\n\t\tstartMenu.setLocation(x, y);\n\n\t\tstartMenu.add(panel, BorderLayout.CENTER);\n\t\tstartMenu.setVisible(true);\n\n\t}", "private void createAndShowGUI() {\n setSize(300, 200);\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n addContent(getContentPane());\n\n //pack();\n setVisible(true);\n }", "public void createContentPane() {\n\t\tLOG.log(\"Creating the content panel.\");\n\t\tCONTENT_PANE = new JPanel();\n\t\tCONTENT_PANE.setBorder(null);\n\t\tCONTENT_PANE.setLayout(new BorderLayout());\n\t}", "protected void createContents() {\n shell = new Shell();\n shell.setSize(1024, 650);\n shell.setText(\"GMToolsTD\");\n shell.setLayout(new GridLayout());\n\n\n /* Création du menu principal */\n Menu menuPrincipal = new Menu(shell, SWT.BAR);\n shell.setMenuBar(menuPrincipal);\n\n MenuItem mntmModule = new MenuItem(menuPrincipal, SWT.CASCADE);\n mntmModule.setText(\"Module\");\n\n Menu menuModule = new Menu(mntmModule);\n mntmModule.setMenu(menuModule);\n\n mntmSpoolUsage = new MenuItem(menuModule, SWT.NONE);\n mntmSpoolUsage.setText(\"Spool Usage\");\n\n mntmUser = new MenuItem(menuModule, SWT.NONE);\n mntmUser.setText(\"User Information\");\n\n new MenuItem(menuModule, SWT.SEPARATOR);\n\n mntmConfig = new MenuItem(menuModule, SWT.NONE);\n mntmConfig.setText(\"Configuration\");\n\n new MenuItem(menuModule, SWT.SEPARATOR);\n\n mntmExit = new MenuItem(menuModule, SWT.NONE);\n mntmExit.setText(\"Exit\");\n\n MenuItem mntmHelp = new MenuItem(menuPrincipal, SWT.CASCADE);\n mntmHelp.setText(\"Help\");\n\n Menu menuAbout = new Menu(mntmHelp);\n mntmHelp.setMenu(menuAbout);\n\n mntmAbout = new MenuItem(menuAbout, SWT.NONE);\n mntmAbout.setText(\"About\");\n\n\n /* Creation main screen elements */\n pageComposite = new Composite(shell, SWT.NONE);\n pageComposite.setLayout(new GridLayout(2,false));\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.verticalAlignment = SWT.FILL;\n gridData.grabExcessVerticalSpace = true;\n pageComposite.setLayoutData(gridData);\n\n\n grpConnexion = new Group(pageComposite, SWT.NONE );\n grpConnexion.setText(\"Connection\");\n grpConnexion.setLayout(new GridLayout(2,false));\n gridData = new GridData();\n gridData.heightHint = 110;\n grpConnexion.setLayoutData(gridData);\n\n\n Label lblServer = new Label(grpConnexion, SWT.NONE);\n lblServer.setText(\"Server :\");\n\n textServer = new Text(grpConnexion, SWT.NONE);\n textServer.setLayoutData(new GridData(110,20));\n\n Label lblUsername = new Label(grpConnexion, SWT.NONE);\n lblUsername.setSize(65, 20);\n lblUsername.setText(\"Username :\");\n\n textUsername = new Text(grpConnexion,SWT.NONE);\n textUsername.setLayoutData(new GridData(110,20));\n\n Label lblPassword = new Label(grpConnexion, SWT.NONE);\n lblPassword.setSize(65, 20);\n lblPassword.setText(\"Password :\");\n\n textPassword = new Text(grpConnexion, SWT.PASSWORD);\n textPassword.setLayoutData(new GridData(110,20));\n\n btnConnect = new Button(grpConnexion, SWT.NONE);\n btnConnect.setLayoutData(new GridData(SWT.RIGHT,SWT.CENTER, false, false));\n btnConnect.setText(\"Connect\");\n\n btnDisconnect = new Button(grpConnexion, SWT.NONE);\n btnDisconnect.setEnabled(false);\n btnDisconnect.setText(\"Disconnect\");\n\n\n\n groupInfo = new Group(pageComposite, SWT.NONE);\n groupInfo.setText(\"Information\");\n groupInfo.setLayout(new GridLayout(1, false));\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.heightHint = 110;\n groupInfo.setLayoutData(gridData);\n\n textInformation = new Text(groupInfo, SWT.READ_ONLY | SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI);\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.verticalAlignment = SWT.FILL;\n gridData.grabExcessVerticalSpace = true;\n textInformation.setLayoutData(gridData);\n\n\n // renseignement des informations provenant de config\n textServer.setText(conf.getValueConf(conf.SERVER_TD));\n textUsername.setText(conf.getValueConf(conf.USERNAME_TD));\n textPassword.setText(\"\");\n\n\n mntmSpoolUsage.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n majAffichage(AFFICHE_SPOOL);\n }\n });\n\n\n mntmUser.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n majAffichage(AFFICHE_USER);\n }\n });\n\n mntmConfig.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n majAffichage(AFFICHE_CONFIG);\n }\n });\n\n mntmAbout.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n MessageBox messageBox = new MessageBox(shell, SWT.ICON_INFORMATION);\n messageBox.setText(\"About...\");\n messageBox.setMessage(\"Not implemented yet ...\");\n messageBox.open();\n }\n });\n\n mntmExit.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n // afficher un message box avec du blabla\n shell.close();\n\n }\n });\n\n btnConnect.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n // connexion Teradata\n btnConnect.setEnabled(false);\n entryServer = textServer.getText();\n entryUsername = textUsername.getText();\n entryPassword = textPassword.getText();\n\n new Thread(new Runnable() {\n public void run() {\n try {\n\n tdConnect = new TDConnexion(entryServer, entryUsername, entryPassword, conf);\n majInformation(MESSAGE_INFORMATION,nomModuleConnexion,\"Connexion OK\");\n connexionStatut = true;\n } catch ( SQLException err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Connexion KO : \"+err.getMessage());\n connexionStatut = false;\n } catch (ClassNotFoundException err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Error ClassNotFoundException : \"+err.getMessage());\n connexionStatut = false;\n }\n if (connexionStatut) {\n try {\n nbrAMP = tdConnect.requestNumberAMP();\n } catch (Exception err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Calculation of AMPs KO : \"+err.getMessage());\n connexionStatut = false;\n tdConnect.deconnexion();\n }\n }\n\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n\n if (connexionStatut) {\n activationON();\n\n textServer.setEnabled(false);\n textUsername.setEnabled(false);\n textPassword.setEnabled(false);\n\n btnConnect.setEnabled(false);\n btnDisconnect.setEnabled(true);\n } else {\n btnConnect.setEnabled(true);\n }\n }\n });\n }\n }).start();\n\n\n\n\n }\n });\n\n\n btnDisconnect.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n manageDisconnection();\n }\n });\n\n\n //creating secondary screen\n ecranUser = new EcranUser(this);\n ecranSpool = new EcranSpool(this);\n ecranConfig = new EcranConfig(this);\n\n\n // update of the information message (log)\n new Thread(new Runnable() {\n public void run() {\n try {\n while (true) {\n if (!listMessageInfo.isEmpty()) {\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n refreshInformation();\n }\n });\n }\n try {\n Thread.sleep(500);\n } catch (Exception e) {\n //nothing to do\n }\n }\n } catch (Exception e) {\n //What to do when the while send an error ?\n }\n }\n }).start();\n\n }", "public void open() {\n\t\tthis.createContents();\n\n\t\tWindowBuilder delegate = this.getDelegate();\n\t\tdelegate.setTitle(this.title);\n\t\tdelegate.setContents(this);\n\t\tdelegate.setIcon(this.iconImage);\n\t\tdelegate.setMinHeight(this.minHeight);\n\t\tdelegate.setMinWidth(this.minWidth);\n\t\tdelegate.open();\n\t}", "@Override\r\n\tprotected final void createAppWindows() {\r\n \t//Instantiate only DD-specific windows. SFDC-scope windows (such as mainWindow) are static\r\n \t// objects in the EISTestBase class\r\n \tmyDocumentsPopUp = createWindow(\"WINDOW_MY_DOCUMENTS_POPUP_PROPERTIES_FILE\");\r\n }", "protected void createContents() {\n\t\tregister Register = new register();\n\t\tRegisterDAOImpl RDI = new RegisterDAOImpl();\t\n\t\t\n\t\tload = new Shell();\n\t\tload.setSize(519, 370);\n\t\tload.setText(\"XX\\u533B\\u9662\\u6302\\u53F7\\u7CFB\\u7EDF\");\n\t\tload.setLayout(new FormLayout());\n\t\t\n\t\tLabel name = new Label(load, SWT.NONE);\n\t\tFormData fd_name = new FormData();\n\t\tfd_name.top = new FormAttachment(20);\n\t\tfd_name.left = new FormAttachment(45, -10);\n\t\tname.setLayoutData(fd_name);\n\t\tname.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tname.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel subjet = new Label(load, SWT.NONE);\n\t\tFormData fd_subjet = new FormData();\n\t\tfd_subjet.left = new FormAttachment(44);\n\t\tfd_subjet.top = new FormAttachment(50);\n\t\tsubjet.setLayoutData(fd_subjet);\n\t\tsubjet.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tsubjet.setText(\"\\u79D1\\u5BA4\");\n\t\t\n\t\tLabel doctor = new Label(load, SWT.NONE);\n\t\tFormData fd_doctor = new FormData();\n\t\tfd_doctor.top = new FormAttachment(60);\n\t\tfd_doctor.left = new FormAttachment(45, -10);\n\t\tdoctor.setLayoutData(fd_doctor);\n\t\tdoctor.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tdoctor.setText(\"\\u533B\\u751F\");\n\t\t\n\t\tnametext = new Text(load, SWT.BORDER);\n\t\tnametext.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tnametext.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_nametext = new FormData();\n\t\tfd_nametext.right = new FormAttachment(50, 94);\n\t\tfd_nametext.top = new FormAttachment(20);\n\t\tfd_nametext.left = new FormAttachment(50);\n\t\tnametext.setLayoutData(fd_nametext);\n\t\t\n\t\tLabel titlelabel = new Label(load, SWT.NONE);\n\t\tFormData fd_titlelabel = new FormData();\n\t\tfd_titlelabel.right = new FormAttachment(43, 176);\n\t\tfd_titlelabel.top = new FormAttachment(10);\n\t\tfd_titlelabel.left = new FormAttachment(43);\n\t\ttitlelabel.setLayoutData(fd_titlelabel);\n\t\ttitlelabel.setFont(SWTResourceManager.getFont(\"楷体\", 18, SWT.BOLD));\n\t\ttitlelabel.setText(\"XX\\u533B\\u9662\\u95E8\\u8BCA\\u6302\\u53F7\");\n\t\t\n\t\tLabel label = new Label(load, SWT.NONE);\n\t\tFormData fd_label = new FormData();\n\t\tfd_label.top = new FormAttachment(40);\n\t\tfd_label.left = new FormAttachment(44, -10);\n\t\tlabel.setLayoutData(fd_label);\n\t\tlabel.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tlabel.setText(\"\\u6302\\u53F7\\u8D39\");\n\t\t\n\t\tcosttext = new Text(load, SWT.BORDER);\n\t\tcosttext.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tcosttext.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_costtext = new FormData();\n\t\tfd_costtext.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_costtext.top = new FormAttachment(40);\n\t\tfd_costtext.left = new FormAttachment(50);\n\t\tcosttext.setLayoutData(fd_costtext);\n\t\t\n\t\tLabel type = new Label(load, SWT.NONE);\n\t\tFormData fd_type = new FormData();\n\t\tfd_type.top = new FormAttachment(30);\n\t\tfd_type.left = new FormAttachment(45, -10);\n\t\ttype.setLayoutData(fd_type);\n\t\ttype.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\ttype.setText(\"\\u7C7B\\u578B\");\n\t\t\n\t\tCombo typecombo = new Combo(load, SWT.NONE);\n\t\ttypecombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\ttypecombo.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_typecombo = new FormData();\n\t\tfd_typecombo.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_typecombo.top = new FormAttachment(30);\n\t\tfd_typecombo.left = new FormAttachment(50);\n\t\ttypecombo.setLayoutData(fd_typecombo);\n\t\ttypecombo.setText(\"\\u95E8\\u8BCA\\u7C7B\\u578B\");\n\t\ttypecombo.add(\"普通门诊\",0);\n\t\ttypecombo.add(\"专家门诊\",1);\n\t\tMySelectionListener3 ms3 = new MySelectionListener3(typecombo,costtext);\n\t\ttypecombo.addSelectionListener(ms3);\n\t\t\n\t\tCombo doctorcombo = new Combo(load, SWT.NONE);\n\t\tdoctorcombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tdoctorcombo.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_doctorcombo = new FormData();\n\t\tfd_doctorcombo.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_doctorcombo.top = new FormAttachment(60);\n\t\tfd_doctorcombo.left = new FormAttachment(50);\n\t\tdoctorcombo.setLayoutData(fd_doctorcombo);\n\t\tdoctorcombo.setText(\"\\u9009\\u62E9\\u533B\\u751F\");\n\t\t\n\t\tCombo subject = new Combo(load, SWT.NONE);\n\t\tsubject.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tsubject.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tfd_subjet.right = new FormAttachment(subject, -6);\n\t\tfd_subjet.top = new FormAttachment(subject, -1, SWT.TOP);\n\t\tFormData fd_subject = new FormData();\n\t\tfd_subject.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_subject.top = new FormAttachment(50);\n\t\tfd_subject.left = new FormAttachment(50);\n\t\tsubject.setLayoutData(fd_subject);\n\t\tsubject.setText(\"\\u79D1\\u5BA4\\uFF1F\");\n\t\tsubject.add(\"神经内科\", 0);\n\t\tsubject.add(\"呼吸科\", 1);\n\t\tsubject.add(\"泌尿科\", 2);\n\t\tsubject.add(\"放射科\", 3);\n\t\tsubject.add(\"五官\", 4);\n\t\tMySelectionListener myselection = new MySelectionListener(i,subject,doctorcombo,pdtabledaoimpl);\n\t\tsubject.addSelectionListener(myselection);\n\t\t\n\t\tMySelectionListener2 ms2 = new MySelectionListener2(subject,doctorcombo,Register,nametext,RDI);\n\t\tdoctorcombo.addSelectionListener(ms2);\n\t\t\n\t\tButton surebutton = new Button(load, SWT.NONE);\n\t\tFormData fd_surebutton = new FormData();\n\t\tfd_surebutton.top = new FormAttachment(70);\n\t\tfd_surebutton.left = new FormAttachment(44);\n\t\tsurebutton.setLayoutData(fd_surebutton);\n\t\tsurebutton.setFont(SWTResourceManager.getFont(\"楷体\", 12, SWT.BOLD));\n\t\tsurebutton.setText(\"\\u786E\\u5B9A\");\n\t\tsurebutton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n \t Register register = new Register();\n\t\t\t\tPatientDAOImpl patientdaoimpl = new PatientDAOImpl();\n\n/*\t\t\t\tregisterdaoimpl.Save(Register);*/\n\t\t\t\tPatientInfo patientinfo = null;\n\t\t\t\tpatientinfo = patientdaoimpl.findByname(nametext.getText());\n\t\t\t\tif(patientinfo.getId() > 0 ){\n\t\t\t\t\tMessageBox messagebox = new MessageBox(load);\n\t\t\t\t\tmessagebox.setMessage(\"挂号成功!\");\n\t\t\t\t\tmessagebox.open();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tMessageBox messagebox = new MessageBox(load);\n\t\t\t\t\tmessagebox.setMessage(\"此用户不存在,请先注册\");\n\t\t\t\t\tmessagebox.open();\n\t\t\t\t\tload.dispose();\n\t\t\t\t\tregister.open();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton registerbutton = new Button(load, SWT.NONE);\n\t\tFormData fd_registerbutton = new FormData();\n\t\tfd_registerbutton.top = new FormAttachment(70);\n\t\tfd_registerbutton.left = new FormAttachment(53);\n\t\tregisterbutton.setLayoutData(fd_registerbutton);\n\t\tregisterbutton.setFont(SWTResourceManager.getFont(\"楷体\", 12, SWT.BOLD));\n\t\tregisterbutton.setText(\"\\u6CE8\\u518C\");\n\t\tregisterbutton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\t\n\t\t\t\tRegister register = new Register();\n\t\t\t\tload.close();\n\t\t\t\tregister.open();\n\t\t\t}\n\t\t});\n\t}", "protected void createContents() {\n\n\t\tfinal FileServeApplicationWindow appWindow = this;\n\n\t\tthis.shlFileServe = new Shell();\n\t\tthis.shlFileServe.setSize(450, 300);\n\t\tthis.shlFileServe.setText(\"File Serve - Server\");\n\t\tthis.shlFileServe.setLayout(new BorderLayout(0, 0));\n\n\t\tthis.composite = new Composite(this.shlFileServe, SWT.NONE);\n\t\tthis.composite.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tthis.composite.setLayoutData(BorderLayout.CENTER);\n\t\tthis.composite.setLayout(new FormLayout());\n\n\t\tthis.lblServerTcpPort = new Label(this.composite, SWT.NONE);\n\t\tFormData fd_lblServerTcpPort = new FormData();\n\t\tfd_lblServerTcpPort.top = new FormAttachment(0, 10);\n\t\tfd_lblServerTcpPort.left = new FormAttachment(0, 10);\n\t\tthis.lblServerTcpPort.setLayoutData(fd_lblServerTcpPort);\n\t\tthis.lblServerTcpPort.setText(\"Server TCP Port:\");\n\n\t\tthis.serverTCPPortField = new Text(this.composite, SWT.BORDER);\n\t\tthis.serverTCPPortField.setTextLimit(5);\n\t\tthis.serverTCPPortField.addVerifyListener(new VerifyListener() {\n\t\t\t@Override\n\t\t\tpublic void verifyText(VerifyEvent e) {\n\t\t\t\te.doit = true;\n\t\t\t\tfor(int i = 0; i < e.text.length(); i++) {\n\n\t\t\t\t\tchar c = e.text.charAt(i);\n\n\t\t\t\t\tboolean b = false;\n\n\t\t\t\t\tif(c >= '0' && c <= '9') {b = true;}\n\t\t\t\t\telse if(c == SWT.BS) {b = true;}\n\t\t\t\t\telse if(c == SWT.DEL) {b = true;}\n\n\t\t\t\t\tif(b == false) {\n\t\t\t\t\t\te.doit = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tFormData fd_serverTCPPortField = new FormData();\n\t\tfd_serverTCPPortField.top = new FormAttachment(0, 7);\n\t\tfd_serverTCPPortField.right = new FormAttachment(100, -54);\n\t\tfd_serverTCPPortField.left = new FormAttachment(this.lblServerTcpPort, 12);\n\t\tthis.serverTCPPortField.setLayoutData(fd_serverTCPPortField);\n\n\t\tthis.btnStartServer = new Button(this.composite, SWT.NONE);\n\t\tFormData fd_btnStartServer = new FormData();\n\t\tfd_btnStartServer.bottom = new FormAttachment(100, -10);\n\t\tfd_btnStartServer.right = new FormAttachment(100, -10);\n\t\tthis.btnStartServer.setLayoutData(fd_btnStartServer);\n\t\tthis.btnStartServer.setText(\"Start Server\");\n\n\t\tthis.lblServerStatus = new Label(this.composite, SWT.NONE);\n\t\tFormData fd_lblServerStatus = new FormData();\n\t\tfd_lblServerStatus.right = new FormAttachment(this.btnStartServer, -6);\n\t\tfd_lblServerStatus.top = new FormAttachment(this.btnStartServer, 5, SWT.TOP);\n\t\tfd_lblServerStatus.left = new FormAttachment(this.lblServerTcpPort, 0, SWT.LEFT);\n\t\tthis.lblServerStatus.setLayoutData(fd_lblServerStatus);\n\t\tthis.lblServerStatus.setText(\"Server Status: Stopped\");\n\n\t\tthis.text = new Text(this.composite, SWT.BORDER);\n\t\tFormData fd_text = new FormData();\n\t\tfd_text.top = new FormAttachment(this.serverTCPPortField, 6);\n\t\tthis.text.setLayoutData(fd_text);\n\n\t\tthis.lblHighestDirectory = new Label(this.composite, SWT.NONE);\n\t\tfd_text.left = new FormAttachment(this.lblHighestDirectory, 6);\n\t\tFormData fd_lblHighestDirectory = new FormData();\n\t\tfd_lblHighestDirectory.top = new FormAttachment(this.lblServerTcpPort, 12);\n\t\tfd_lblHighestDirectory.left = new FormAttachment(this.lblServerTcpPort, 0, SWT.LEFT);\n\t\tthis.lblHighestDirectory.setLayoutData(fd_lblHighestDirectory);\n\t\tthis.lblHighestDirectory.setText(\"Highest Directory:\");\n\n\t\tthis.button = new Button(this.composite, SWT.NONE);\n\n\t\tfd_text.right = new FormAttachment(100, -54);\n\t\tFormData fd_button = new FormData();\n\t\tfd_button.left = new FormAttachment(this.text, 6);\n\t\tthis.button.setLayoutData(fd_button);\n\t\tthis.button.setText(\"...\");\n\n\t\tthis.grpConnectionInformation = new Group(this.composite, SWT.NONE);\n\t\tfd_button.bottom = new FormAttachment(this.grpConnectionInformation, -1);\n\t\tthis.grpConnectionInformation.setText(\"Connection Information:\");\n\t\tthis.grpConnectionInformation.setLayout(new BorderLayout(0, 0));\n\t\tFormData fd_grpConnectionInformation = new FormData();\n\t\tfd_grpConnectionInformation.bottom = new FormAttachment(this.btnStartServer, -6);\n\t\tfd_grpConnectionInformation.right = new FormAttachment(this.btnStartServer, 0, SWT.RIGHT);\n\t\tfd_grpConnectionInformation.top = new FormAttachment(this.lblHighestDirectory, 6);\n\t\tfd_grpConnectionInformation.left = new FormAttachment(this.lblServerTcpPort, 0, SWT.LEFT);\n\t\tthis.grpConnectionInformation.setLayoutData(fd_grpConnectionInformation);\n\n\t\tthis.scrolledComposite = new ScrolledComposite(this.grpConnectionInformation, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tthis.scrolledComposite.setLayoutData(BorderLayout.CENTER);\n\t\tthis.scrolledComposite.setExpandHorizontal(true);\n\t\tthis.scrolledComposite.setExpandVertical(true);\n\n\t\tthis.table = new Table(this.scrolledComposite, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tthis.table.setLinesVisible(true);\n\t\tthis.table.setHeaderVisible(true);\n\t\tthis.scrolledComposite.setContent(this.table);\n\t\tthis.scrolledComposite.setMinSize(this.table.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n\n\t}", "public PastDataWindow(){\n // Set the title\n setTitle(\"Past CS Data Viewer\");\n\n //Create a new BorderLayout manager\n setLayout(new BorderLayout());\n\n // Centers the window\n setLocationRelativeTo(null);\n \n //Build the view panel\n buildViewPanel();\n \n //Add text area to the window\n add(viewPanel, BorderLayout.CENTER);\n \n //Clean up and display the window\n pack();\n setVisible(true);\n }", "private void createContents() {\n shell = new Shell(getParent(), SWT.BORDER | SWT.TITLE | SWT.APPLICATION_MODAL);\n shell.setSize(FORM_WIDTH, 700);\n shell.setText(getText());\n shell.setLayout(new GridLayout(1, false));\n\n TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\n tabFolder.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n // STRUCTURE PARAMETERS\n\n TabItem tbtmStructure = new TabItem(tabFolder, SWT.NONE);\n tbtmStructure.setText(\"Structure\");\n\n Composite grpStructure = new Composite(tabFolder, SWT.NONE);\n tbtmStructure.setControl(grpStructure);\n grpStructure.setLayout(TAB_GROUP_LAYOUT);\n grpStructure.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n ParmDialogText.load(grpStructure, parms, \"meta\");\n ParmDialogText.load(grpStructure, parms, \"col\");\n ParmDialogText.load(grpStructure, parms, \"id\");\n ParmDialogChoices.load(grpStructure, parms, \"init\", Activation.values());\n ParmDialogChoices.load(grpStructure, parms, \"activation\", Activation.values());\n ParmDialogFlag.load(grpStructure, parms, \"raw\");\n ParmDialogFlag.load(grpStructure, parms, \"batch\");\n ParmDialogGroup cnn = ParmDialogText.load(grpStructure, parms, \"cnn\");\n ParmDialogGroup filters = ParmDialogText.load(grpStructure, parms, \"filters\");\n ParmDialogGroup strides = ParmDialogText.load(grpStructure, parms, \"strides\");\n ParmDialogGroup subs = ParmDialogText.load(grpStructure, parms, \"sub\");\n if (cnn != null) {\n if (filters != null) cnn.setGrouped(filters);\n if (strides != null) cnn.setGrouped(strides);\n if (subs != null) cnn.setGrouped(subs);\n }\n ParmDialogText.load(grpStructure, parms, \"lstm\");\n ParmDialogGroup wGroup = ParmDialogText.load(grpStructure, parms, \"widths\");\n ParmDialogGroup bGroup = ParmDialogText.load(grpStructure, parms, \"balanced\");\n if (bGroup != null && wGroup != null) {\n wGroup.setExclusive(bGroup);\n bGroup.setExclusive(wGroup);\n }\n\n // SEARCH CONTROL PARAMETERS\n\n TabItem tbtmSearch = new TabItem(tabFolder, SWT.NONE);\n tbtmSearch.setText(\"Training\");\n\n ScrolledComposite grpSearch0 = new ScrolledComposite(tabFolder, SWT.V_SCROLL);\n grpSearch0.setLayout(new FillLayout());\n grpSearch0.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n tbtmSearch.setControl(grpSearch0);\n Composite grpSearch = new Composite(grpSearch0, SWT.NONE);\n grpSearch0.setContent(grpSearch);\n grpSearch.setLayout(TAB_GROUP_LAYOUT);\n grpSearch.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n Enum<?>[] preferTypes = (this.modelType == TrainingProcessor.Type.CLASS ? RunStats.OptimizationType.values()\n : RunStats.RegressionType.values());\n ParmDialogChoices.load(grpSearch, parms, \"prefer\", preferTypes);\n ParmDialogChoices.load(grpSearch, parms, \"method\", Trainer.Type.values());\n ParmDialogText.load(grpSearch, parms, \"bound\");\n ParmDialogChoices.load(grpSearch, parms, \"lossFun\", LossFunctionType.values());\n ParmDialogText.load(grpSearch, parms, \"weights\");\n ParmDialogText.load(grpSearch, parms, \"iter\");\n ParmDialogText.load(grpSearch, parms, \"batchSize\");\n ParmDialogText.load(grpSearch, parms, \"testSize\");\n ParmDialogText.load(grpSearch, parms, \"maxBatches\");\n ParmDialogText.load(grpSearch, parms, \"earlyStop\");\n ParmDialogChoices.load(grpSearch, parms, \"regMode\", Regularization.Mode.values());\n ParmDialogText.load(grpSearch, parms, \"regFactor\");\n ParmDialogText.load(grpSearch, parms, \"seed\");\n ParmDialogChoices.load(grpSearch, parms, \"start\", WeightInit.values());\n ParmDialogChoices.load(grpSearch, parms, \"gradNorm\", GradientNormalization.values());\n ParmDialogChoices.load(grpSearch, parms, \"updater\", GradientUpdater.Type.values());\n ParmDialogText.load(grpSearch, parms, \"learnRate\");\n ParmDialogChoices.load(grpSearch, parms, \"bUpdater\", GradientUpdater.Type.values());\n ParmDialogText.load(grpSearch, parms, \"updateRate\");\n\n grpSearch.setSize(grpSearch.computeSize(FORM_WIDTH - 50, SWT.DEFAULT));\n\n // BOTTOM BUTTON BAR\n\n Composite grpButtonBar = new Composite(shell, SWT.NONE);\n grpButtonBar.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));\n grpButtonBar.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n Button btnSave = new Button(grpButtonBar, SWT.NONE);\n btnSave.setText(\"Save\");\n btnSave.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n try {\n parms.save(parmFile);\n } catch (IOException e) {\n ShellUtils.showErrorBox(getParent(), \"Error Saving Parm File\", e.getMessage());\n }\n }\n });\n\n Button btnClose = new Button(grpButtonBar, SWT.NONE);\n btnClose.setText(\"Cancel\");\n btnClose.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n shell.close();\n }\n });\n\n Button btnOK = new Button(grpButtonBar, SWT.NONE);\n btnOK.setText(\"Save and Close\");\n btnOK.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n try {\n parms.save(parmFile);\n shell.close();\n } catch (IOException e) {\n ShellUtils.showErrorBox(getParent(), \"Error Saving Parm File\", e.getMessage());\n }\n }\n });\n\n }", "private void createContents() {\r\n this.shell = new Shell(this.getParent(), this.getStyle());\r\n this.shell.setText(\"自動プロキシ構成スクリプトファイル生成\");\r\n this.shell.setLayout(new GridLayout(1, false));\r\n\r\n Composite composite = new Composite(this.shell, SWT.NONE);\r\n composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n composite.setLayout(new GridLayout(1, false));\r\n\r\n Label labelTitle = new Label(composite, SWT.NONE);\r\n labelTitle.setText(\"自動プロキシ構成スクリプトファイルを生成します\");\r\n\r\n String server = Filter.getServerName();\r\n if (server == null) {\r\n Group manualgroup = new Group(composite, SWT.NONE);\r\n manualgroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n manualgroup.setLayout(new GridLayout(2, false));\r\n manualgroup.setText(\"鎮守府サーバーが未検出です。IPアドレスを入力して下さい。\");\r\n\r\n Label iplabel = new Label(manualgroup, SWT.NONE);\r\n iplabel.setText(\"IPアドレス:\");\r\n\r\n final Text text = new Text(manualgroup, SWT.BORDER);\r\n GridData gdip = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n gdip.widthHint = SwtUtils.DPIAwareWidth(150);\r\n text.setLayoutData(gdip);\r\n text.setText(\"0.0.0.0\");\r\n text.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent e) {\r\n CreatePacFileDialog.this.server = text.getText();\r\n }\r\n });\r\n\r\n this.server = \"0.0.0.0\";\r\n } else {\r\n this.server = server;\r\n }\r\n\r\n Button storeButton = new Button(composite, SWT.NONE);\r\n storeButton.setText(\"保存先を選択...\");\r\n storeButton.addSelectionListener(new FileSelectionAdapter(this));\r\n\r\n Group addrgroup = new Group(composite, SWT.NONE);\r\n addrgroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n addrgroup.setLayout(new GridLayout(2, false));\r\n addrgroup.setText(\"アドレス(保存先のアドレスより生成されます)\");\r\n\r\n Label ieAddrLabel = new Label(addrgroup, SWT.NONE);\r\n ieAddrLabel.setText(\"IE用:\");\r\n\r\n this.iePath = new Text(addrgroup, SWT.BORDER);\r\n GridData gdIePath = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n gdIePath.widthHint = SwtUtils.DPIAwareWidth(380);\r\n this.iePath.setLayoutData(gdIePath);\r\n\r\n Label fxAddrLabel = new Label(addrgroup, SWT.NONE);\r\n fxAddrLabel.setText(\"Firefox用:\");\r\n\r\n this.firefoxPath = new Text(addrgroup, SWT.BORDER);\r\n GridData gdFxPath = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n gdFxPath.widthHint = SwtUtils.DPIAwareWidth(380);\r\n this.firefoxPath.setLayoutData(gdFxPath);\r\n\r\n this.shell.pack();\r\n }", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(447, 310);\n\t\tshell.setText(\"Verisure ASCII Node\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tTabFolder tabFolder = new TabFolder(shell, SWT.NONE);\n\t\t\n\t\tTabItem basicItem = new TabItem(tabFolder, SWT.NONE);\n\t\tbasicItem.setText(\"Basic\");\n\t\t\n\t\tComposite basicComposite = new Composite(tabFolder, SWT.NONE);\n\t\tbasicItem.setControl(basicComposite);\n\t\tbasicComposite.setLayout(null);\n\t\t\n\t\tButton btnDelMeasurments = new Button(basicComposite, SWT.NONE);\n\t\t\n\t\tbtnDelMeasurments.setToolTipText(\"Delete the measurements from the device.\");\n\t\tbtnDelMeasurments.setBounds(269, 192, 159, 33);\n\t\tbtnDelMeasurments.setText(\"Delete measurements\");\n\t\t\n\t\tButton btnGetMeasurement = new Button(basicComposite, SWT.NONE);\n\t\tbtnGetMeasurement.setToolTipText(\"Get the latest measurement from the device.\");\n\t\t\n\t\tbtnGetMeasurement.setBounds(0, 36, 159, 33);\n\t\tbtnGetMeasurement.setText(\"Get new bloodvalue\");\n\t\t\n\t\tfinal StyledText receiveArea = new StyledText(basicComposite, SWT.BORDER | SWT.WRAP);\n\t\treceiveArea.setLocation(167, 30);\n\t\treceiveArea.setSize(259, 92);\n\t\treceiveArea.setToolTipText(\"This is where the measurement will be displayd.\");\n\t\t\n\t\tButton btnBase64 = new Button(basicComposite, SWT.RADIO);\n\t\tbtnBase64.setToolTipText(\"Show the latest blood value (base64 encoded).\");\n\t\tbtnBase64.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\t\n\t\tbtnDelMeasurments.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0){\n\t\t\t\treceiveArea.setText(\"Deleting measurements, please wait...\");\n\n\t\t\t}\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t\tRest rest = new Rest();\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tString theText = \"DEL\";\n\t\t\t\tdo {\n\t\t\t\t\t// System.out.println(\"Längded på theText i restCallImpl \"+theText.length()\n\t\t\t\t\t// +\" och det står \" +theText);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t//System.out.println(\"Hej\");\n\n\t\t\t\t\t\t//rest.doPut(\"lol\");\n\t\t\t\t\t\trest.doPut(theText);\n\t\t\t\t\t\tSystem.out.println(\"Sov i tre sekunder.\");\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twhile (!db.getAck(theText, rest));\n\t\t\t\treceiveArea.setText(\"Deleted measurements from device.\");\n\t\t\t}\n\t\t});\n\t\tbtnBase64.setSelection(true);\n\t\tbtnBase64.setBounds(137, 130, 74, 25);\n\t\tbtnBase64.setText(\"base64\");\n\t\t\n\t\tButton btnHex = new Button(basicComposite, SWT.RADIO);\n\t\tbtnHex.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\n\t\t\t\ttype = 2;\n\t\t\t\tSystem.out.println(\"Bytte type till: \"+type);\n\n\t\t\t}\n\t\t});\n\t\tbtnHex.setToolTipText(\"Show the measurement in hex.\");\n\t\tbtnHex.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tbtnHex.setBounds(217, 130, 50, 25);\n\t\tbtnHex.setText(\"hex\");\n\t\t\n\t\tButton btnAscii = new Button(basicComposite, SWT.RADIO);\n\t\t\n\t\tbtnAscii.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\ttype = 1;\n\t\t\t\tSystem.out.println(\"Bytte type till: \"+type);\n\n\t\t\t}\n\t\t});\n\t\t\n\t\t/*\n\t\t * Return that the value should be represented as base64.\n\t\t * \n\t\t */\n\t\t\n\t\tbtnBase64.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\ttype = 0;\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnAscii.setToolTipText(\"Show the measurement in ascii.\");\n\t\tbtnAscii.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tbtnAscii.setBounds(269, 130, 53, 25);\n\t\tbtnAscii.setText(\"ascii\");\n\t\t\n\t\tLabel label = new Label(basicComposite, SWT.NONE);\n\t\tlabel.setText(\"A master thesis project by Pétur and David\");\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Cantarell\", 7, SWT.NORMAL));\n\t\tlabel.setBounds(10, 204, 192, 21);\n\t\t\n\t\tButton btnGetDbValue = new Button(basicComposite, SWT.NONE);\n\t\tbtnGetDbValue.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\treceiveArea.setText(db.getNodeFaults(type));\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\treceiveArea.setText(\"Getting latest measurements from db, please wait...\");\n\t\t\t}\n\t\t});\n\t\tbtnGetDbValue.setBounds(0, 71, 159, 33);\n\t\tbtnGetDbValue.setText(\"Get latest bloodvalue\");\n\t\t\n\t\t/*\n\t\t *Get measurement from device event handler \n\t\t *\n\t\t *@param The Mouse Adapter\n\t\t * \n\t\t */\n\t\t\n\t\t\n\t\tbtnGetMeasurement.addMouseListener(new MouseAdapter() {\n\t\t\t\n\t\t\tpublic void MouseDown(MouseEvent arg0){\n\t\t\t\treceiveArea.setText(\"Getting measurement from device, please wait...\");\n\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tRest rest = new Rest();\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tString theText = \"LOG\";\n\t\t\t\t\n\t\t\t\tdo {\n\t\t\t\t\t// System.out.println(\"Längded på theText i restCallImpl \"+theText.length()\n\t\t\t\t\t// +\" och det står \" +theText);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t//System.out.println(\"Hej\");\n\n\t\t\t\t\t\t//rest.doPut(\"lol\");\n\t\t\t\t\t\trest.doPut(theText);\n\t\t\t\t\t\t\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twhile (!db.getAck(theText, rest));\n\t\t\t\ttry{\n\t\t\t\t\tThread.sleep(2000);\n\n\t\t\t\t}\n\t\t\t\tcatch(Exception e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} \n\t\t\t\treceiveArea.setText(db.getNodeFaults(type));\n\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\treceiveArea.setText(\"Getting measurements from device, please wait...\");\n\t\t\t}\n\t\t});\n\n\t\t\n\t\t/*\n\t\t * The advanced tab section\n\t\t */\n\t\t\n\t\tTabItem advancedItem = new TabItem(tabFolder, SWT.NONE);\n\t\tadvancedItem.setText(\"Advanced\");\n\t\t\n\t\tComposite advComposite = new Composite(tabFolder, SWT.NONE);\n\t\tadvancedItem.setControl(advComposite);\n\t\tadvComposite.setLayout(null);\n\t\t\n\t\tButton advSendButton = new Button(advComposite, SWT.NONE);\n\t\t\n\t\n\t\tadvSendButton.setToolTipText(\"Send arbitary data to the device.\");\n\t\n\t\tadvSendButton.setBounds(307, 31, 121, 33);\n\t\tadvSendButton.setText(\"Send Data\");\n\t\t\n\t\tLabel lblNewLabel = new Label(advComposite, SWT.NONE);\n\t\tlblNewLabel.setFont(SWTResourceManager.getFont(\"Cantarell\", 7, SWT.NORMAL));\n\t\tlblNewLabel.setBounds(10, 204, 192, 21);\n\t\tlblNewLabel.setText(\"A master thesis project by Pétur and David\");\n\t\t\n\t\tfinal StyledText advSendArea = new StyledText(advComposite, SWT.BORDER | SWT.WRAP);\n\t\tadvSendArea.setToolTipText(\"This is where you type your arbitary data to send to the device.\");\n\t\tadvSendArea.setBounds(10, 31, 291, 33);\n\t\t\n\t\tButton advReceiveButton = new Button(advComposite, SWT.NONE);\n\t\t\n\n\t\t\n\t\tadvReceiveButton.setToolTipText(\"Receive data from the database.\");\n\t\tadvReceiveButton.setBounds(10, 70, 99, 33);\n\t\tadvReceiveButton.setText(\"Receive Data\");\n\t\t\n\t\tfinal StyledText advReceiveArea = new StyledText(advComposite, SWT.BORDER | SWT.WRAP);\n\t\tadvReceiveArea.setToolTipText(\"This is where the receive data will be presented.\");\n\t\tadvReceiveArea.setBounds(115, 67, 313, 70);\n\t\t\n\t\tButton advAscii = new Button(advComposite, SWT.RADIO);\n\t\tadvAscii.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\tadvType = 1;\n\t\t\t}\n\t\t});\n\t\t\n\t\tadvReceiveButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tadvReceiveArea.setText(\"Receiving the data, please wait...\");\n\t\t\t\tXBNConnection xbn = new XBNConnection();\n\t\t\t\tString text = xbn.getNodeFaults(advType);\n\t\t\t\tadvReceiveArea.setText(text);\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\tadvReceiveArea.setText(\"Receivng data from device, please wait\");\n\t\t\t}\n\t\t});\n\t\tadvAscii.setSelection(true);\n\t\tadvAscii.setToolTipText(\"Show the database results as ascii.\");\n\t\tadvAscii.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tadvAscii.setBounds(10, 109, 54, 25);\n\t\tadvAscii.setText(\"ascii\");\n\t\t\n\t\tButton advHex = new Button(advComposite, SWT.RADIO);\n\t\tadvHex.setToolTipText(\"Show the database results as hex.\");\n\t\tadvHex.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tadvHex.setBounds(66, 109, 43, 25);\n\t\tadvHex.setText(\"hex\");\n\t\tadvHex.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\tadvType = 2;\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnDeleteDatabase = new Button(advComposite, SWT.NONE);\n\t\tbtnDeleteDatabase.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tdb.deleteMessages();\n\t\t\t\tadvReceiveArea.setText(\"Deleted data from database\");\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnDeleteDatabase.setToolTipText(\"Delete entries in the database.\");\n\t\tbtnDeleteDatabase.setText(\"Delete database\");\n\t\tbtnDeleteDatabase.setBounds(269, 192, 159, 33);\n\t\t\n\t\n\t\t\n\n\t\t/*\n\t\t * This is the advanced send button. Can send arbitary text to the device.\n\t\t */\n\t\t\n\t\tadvSendButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t\t//advSendArea.setText(\"Sending: '\"+advSendArea.getText()+\"' to the device, please wait...\");\n\t\t\t\tString theText = advSendArea.getText();\n\t\t\t\tSystem.out.println(\"Texten som ska skickas är: \" + theText);\n\t\t\t\t\n\t\t\t\tRest rest = new Rest();\n\t\t\t\tString chunkText = \"\";\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tStringBuilder sb = new StringBuilder(theText);\n\t\t\t\t// Add and @ to be sure that there will never be two strings that are\n\t\t\t\t// the same in a row.\n\t\t\t\t// for (int i = 3; i < sb.toString().length(); i += 6) {\n\t\t\t\t// sb.insert(i, \"@\");\n\t\t\t\t// }\n\t\t\t\t// theText = sb.toString();\n\t\t\t\tSystem.out.println(theText);\n\n\t\t\t\tdo {\n\t\t\t\t\t// System.out.println(\"Längded på theText i restCallImpl \"+theText.length()\n\t\t\t\t\t// +\" och det står \" +theText);\n\n\t\t\t\t\tif (theText.length() < 3) {\n\t\t\t\t\t\tchunkText = theText.substring(0, theText.length());\n\t\t\t\t\t\tint pad = theText.length() % 3;\n\t\t\t\t\t\tif (pad == 1) {\n\t\t\t\t\t\t\tchunkText = chunkText + \" \";\n\t\t\t\t\t\t\ttheText = theText + \" \";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tchunkText = chunkText + \" \";\n\t\t\t\t\t\t\ttheText = theText + \" \";\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tchunkText = theText.substring(0, 3);\n\t\t\t\t\t}\n\n\t\t\t\t\ttheText = theText.substring(3);\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\trest.doPut(chunkText);\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\twhile (theText.length() > 0 && db.getAck(chunkText, rest));\n\t\t\t\tadvSendArea.setText(\"Data sent to the device.\");\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t\t\n\t\t});\n\n\t}", "public static void createAndShowGUI() {\n windowContent.add(\"Center\",p1);\n\n //Create the frame and set its content pane\n JFrame frame = new JFrame(\"GridBagLayoutCalculator\");\n frame.setContentPane(windowContent);\n\n // Set the size of the window to be big enough to accommodate all controls\n frame.pack();\n\n // Display the window\n frame.setVisible(true);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }", "static public void make() {\n\t\tif (window != null)\n\t\t\treturn;\n\n\t\twindow = new JFrame();\n\t\twindow.setTitle(\"Finecraft\");\n\t\twindow.setMinimumSize(new Dimension(500, 300));\n\t\twindow.setSize(asInteger(WINDOW_WIDTH), asInteger(WINDOW_HEIGHT));\n\t\twindow.setResizable(asBoolean(WINDOW_RESIZE));\n\t\twindow.setLocationRelativeTo(null);\n\t\twindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t}", "private void makeContent(JFrame frame){\n Container content = frame.getContentPane();\n content.setSize(700,700);\n\n makeButtons();\n makeRooms();\n makeLabels();\n\n content.add(inputPanel,BorderLayout.SOUTH);\n content.add(roomPanel, BorderLayout.CENTER);\n content.add(infoPanel, BorderLayout.EAST);\n\n }", "private static void createAndShowGUI() {\r\n //Disable boldface controls.\r\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE); \r\n\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"Exertion Scripting\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Create and set up the content pane.\r\n NetletEditor newContentPane = new NetletEditor(null);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "private void initDialog() {\n Window subWindow = new Window(\"Sub-window\");\n \n FormLayout nameLayout = new FormLayout();\n TextField code = new TextField(\"Code\");\n code.setPlaceholder(\"Code\");\n \n TextField description = new TextField(\"Description\");\n description.setPlaceholder(\"Description\");\n \n Button confirm = new Button(\"Save\");\n confirm.addClickListener(listener -> insertRole(code.getValue(), description.getValue()));\n\n nameLayout.addComponent(code);\n nameLayout.addComponent(description);\n nameLayout.addComponent(confirm);\n \n subWindow.setContent(nameLayout);\n \n // Center it in the browser window\n subWindow.center();\n\n // Open it in the UI\n UI.getCurrent().addWindow(subWindow);\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell(SWT.APPLICATION_MODAL|SWT.CLOSE);\r\n\t\tshell.setSize(800, 600);\r\n\t\tshell.setText(\"租借/归还车辆\");\r\n\t\tshell.setBackgroundMode(SWT.INHERIT_DEFAULT);\r\n\r\n\t\t/**换肤功能已经实现*/\r\n\t\tString bgpath = ChangeSkin.getCurrSkin();\r\n\t\tInputStream bg = this.getClass().getResourceAsStream(bgpath);\r\n\t\t\r\n\t\tInputStream reimg = this.getClass().getResourceAsStream(\"/Img/icon1.png\");\r\n\t\tshell.setBackgroundImage(new Image(display,bg));\r\n\t\tshell.setImage(new Image(display, reimg));\r\n\t\t\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setBounds(52, 48, 168, 20);\r\n\t\tlabel.setText(\"\\u8BF7\\u60A8\\u8BA4\\u771F\\u586B\\u5199\\u79DF\\u8D41\\u4FE1\\u606F:\");\r\n\t\t\r\n\t\tLabel lblid = new Label(shell, SWT.NONE);\r\n\t\tlblid.setBounds(158, 180, 61, 20);\r\n\t\tlblid.setText(\"\\u8F66\\u8F86ID\");\r\n\t\t\r\n\t\tui_car_id = new Text(shell, SWT.BORDER);\r\n\t\tui_car_id.setBounds(225, 177, 129, 26);\r\n\t\t\r\n\t\tui_renter = new Text(shell, SWT.BORDER);\r\n\t\tui_renter.setBounds(225, 228, 129, 26);\r\n\t\t\r\n\t\tLabel label_1 = new Label(shell, SWT.NONE);\r\n\t\tlabel_1.setBounds(159, 231, 61, 20);\r\n\t\tlabel_1.setText(\"\\u79DF\\u8D41\\u4EBA\");\r\n\t\t\r\n\t\tDateTime ui_start = new DateTime(shell, SWT.BORDER);\r\n\t\tui_start.setBounds(225, 271, 129, 28);\r\n\t\t\r\n\t\tLabel label_2 = new Label(shell, SWT.NONE);\r\n\t\tlabel_2.setBounds(144, 271, 76, 20);\r\n\t\tlabel_2.setText(\"\\u5F00\\u59CB\\u65F6\\u95F4\");\r\n\t\t\r\n\t\tLabel label_3 = new Label(shell, SWT.NONE);\r\n\t\tlabel_3.setBounds(144, 326, 76, 20);\r\n\t\tlabel_3.setText(\"\\u7ED3\\u675F\\u65F6\\u95F4\");\r\n\t\t\r\n\t\tLabel label_4 = new Label(shell, SWT.NONE);\r\n\t\tlabel_4.setBounds(559, 97, 76, 20);\r\n\t\tlabel_4.setText(\"\\u5F53\\u524D\\u8D39\\u7528:\");\r\n\t\t\r\n\t\tLabel ui_count_price = new Label(shell, SWT.BORDER | SWT.CENTER);\r\n\t\tui_count_price.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 16, SWT.NORMAL));\r\n\t\tui_count_price.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\r\n\t\tui_count_price.setBounds(539, 205, 156, 77);\r\n\t\tui_count_price.setText(\"0.00\");\r\n\t\t\r\n\t\tDateTime ui_end = new DateTime(shell, SWT.BORDER);\r\n\t\tui_end.setBounds(225, 318, 129, 28);\r\n\t\t\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tRentService rentser = new RentService();\r\n\t\t\t\tdouble day_pri = rentser.rentPrice(ui_car_id.getText());\r\n\t\t\t\t/*当前仅能计算一个月以内的租用情况\r\n\t\t\t\t * @Time 10/09/15.03\r\n\t\t\t\t * \r\n\t\t\t\t * **/\r\n\t\t\t\t//不管当月几天,都按照30天计算\r\n\t\t\t\tint month = ui_end.getMonth()-ui_start.getMonth();\r\n\t\t\t\tint day = (ui_end.getDay() - ui_start.getDay()) +\r\n\t\t\t\t\t\tmonth * 30\r\n\t\t\t\t\t\t;\r\n\t\t\t\tif(day_pri > 0) {\r\n\t\t\t\t\tui_count_price.setText(String.valueOf(day*day_pri));\r\n\t\t\t\t}else {\r\n\t\t\t\t\tui_count_price.setText(\"数据非法\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setBounds(122, 393, 141, 30);\r\n\t\tbutton.setText(\"\\u4F30\\u7B97\\u5F53\\u524D\\u79DF\\u8D41\\u4EF7\\u683C\");\r\n\t\t\r\n\t\tButton button_1 = new Button(shell, SWT.NONE);\r\n\t\tbutton_1.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tRentService rentService = new RentService();\r\n\t\t\t\tString sdate = ui_start.getDay()+\"-\"+ui_start.getMonth()+\"月-\"+ui_start.getYear();\r\n\t\t\t\tString edate = ui_end.getDay()+\"-\"+ui_end.getMonth()+\"月-\"+ui_end.getYear();\r\n\t\t\t\t/**这个地方可能有问题*/\r\n\t\t\t\tboolean rentCar = rentService.rentCar(ui_car_id.getText(),sdate , edate, ui_count_price.getText());\r\n\t\t\t\tif(rentCar) {\r\n\t\t\t\t\tui_count_price.setText(\"租借成功!\");\r\n\t\t\t\t\t/**租借成功,就该让信息表中的数据减1**/\r\n\t\t\t\t\tCarService cars = new CarService();\r\n\t\t\t\t\tcars.minusCar(ui_car_id.getText());\r\n\t\t\t\t}else {\r\n\t\t\t\t\tui_count_price.setText(\"租借失败!\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton_1.setBounds(292, 393, 98, 30);\r\n\t\tbutton_1.setText(\"\\u79DF\\u501F\");\r\n\t\t\r\n\t\r\n\r\n\t}", "private void createContents() {\r\n shell = new Shell(getParent(), getStyle());\r\n shell.setSize(650, 300);\r\n shell.setText(getText());\r\n\r\n shell.setLayout(new FormLayout());\r\n\r\n lblSOName = new Label(shell, SWT.CENTER);\r\n lblSOName.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_lblSOName = new FormData();\r\n fd_lblSOName.bottom = new FormAttachment(0, 20);\r\n fd_lblSOName.right = new FormAttachment(100, -2);\r\n fd_lblSOName.top = new FormAttachment(0, 2);\r\n fd_lblSOName.left = new FormAttachment(0, 2);\r\n lblSOName.setLayoutData(fd_lblSOName);\r\n lblSOName.setText(soName);\r\n\r\n tableParams = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION | SWT.H_SCROLL | SWT.V_SCROLL);\r\n tableParams.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_tableParams = new FormData();\r\n fd_tableParams.bottom = new FormAttachment(100, -40);\r\n fd_tableParams.right = new FormAttachment(100, -2);\r\n fd_tableParams.top = new FormAttachment(0, 22);\r\n fd_tableParams.left = new FormAttachment(0, 2);\r\n tableParams.setLayoutData(fd_tableParams);\r\n tableParams.setHeaderVisible(true);\r\n tableParams.setLinesVisible(true);\r\n fillInTable(tableParams);\r\n tableParams.addControlListener(new ControlAdapter() {\r\n\r\n @Override\r\n public void controlResized(ControlEvent e) {\r\n Table table = (Table)e.getSource();\r\n table.getColumn(0).setWidth((int)(table.getClientArea().width*nameSpace));\r\n table.getColumn(1).setWidth((int)(table.getClientArea().width*valueSpace));\r\n table.getColumn(2).setWidth((int)(table.getClientArea().width*hintSpace));\r\n }\r\n });\r\n tableParams.pack();\r\n //paramName.pack();\r\n //paramValue.pack();\r\n\r\n final TableEditor editor = new TableEditor(tableParams);\r\n //The editor must have the same size as the cell and must\r\n //not be any smaller than 50 pixels.\r\n editor.horizontalAlignment = SWT.LEFT;\r\n editor.grabHorizontal = true;\r\n editor.minimumWidth = 50;\r\n // editing the second column\r\n tableParams.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n // Identify the selected row\r\n TableItem item = (TableItem) e.item;\r\n if (item == null) {\r\n return;\r\n }\r\n\r\n // The control that will be the editor must be a child of the Table\r\n IReplaceableParam<?> editedParam = (IReplaceableParam<?>)item.getData(DATA_VALUE_PARAM);\r\n if (editedParam != null) {\r\n // Clean up any previous editor control\r\n Control oldEditor = editor.getEditor();\r\n if (oldEditor != null) {\r\n oldEditor.dispose();\r\n }\r\n\r\n Control editControl = null;\r\n String cellText = item.getText(columnValueIndex);\r\n switch (editedParam.getType()) {\r\n case BOOLEAN:\r\n Combo cmb = new Combo(tableParams, SWT.READ_ONLY);\r\n String[] booleanItems = {Boolean.toString(true), Boolean.toString(false)};\r\n cmb.setItems(booleanItems);\r\n cmb.select(1);\r\n if (Boolean.parseBoolean(cellText)) {\r\n cmb.select(0);\r\n }\r\n editControl = cmb;\r\n cmb.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n Combo text = (Combo) editor.getEditor();\r\n editor.getItem().setText(columnValueIndex, text.getText());\r\n }\r\n });\r\n break;\r\n case DATE:\r\n IReplaceableParam<LocalDateTime> calParam = (IReplaceableParam<LocalDateTime>)editedParam;\r\n LocalDateTime calToUse = calParam.getValue();\r\n Composite dateAndTime = new Composite(tableParams, SWT.NONE);\r\n RowLayout rl = new RowLayout();\r\n rl.wrap = false;\r\n dateAndTime.setLayout(rl);\r\n //Date cellDt;\r\n try {\r\n LocalDateTime locDT = LocalDateTime.parse(cellText, dtFmt);\r\n if (locDT != null) {\r\n calToUse = locDT;\r\n }\r\n /*cellDt = dateFmt.parse(cellText);\r\n if (cellDt != null) {\r\n calToUse.setTime(cellDt);\r\n }*/\r\n } catch (DateTimeParseException e1) {\r\n log.error(\"widgetSelected \", e1);\r\n }\r\n\r\n DateTime datePicker = new DateTime(dateAndTime, SWT.DATE | SWT.MEDIUM | SWT.DROP_DOWN);\r\n datePicker.setData(DATA_VALUE_PARAM, calParam);\r\n DateTime timePicker = new DateTime(dateAndTime, SWT.TIME | SWT.LONG);\r\n timePicker.setData(DATA_VALUE_PARAM, calParam);\r\n // for the date picker the months are zero-based, the first month is 0 the last is 11\r\n // for LocalDateTime the months range 1-12\r\n datePicker.setDate(calToUse.getYear(), calToUse.getMonthValue() - 1,\r\n calToUse.getDayOfMonth());\r\n timePicker.setTime(calToUse.getHour(), calToUse.getMinute(),\r\n calToUse.getSecond());\r\n\r\n datePicker.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n DateTime source = (DateTime)se.getSource();\r\n IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM);\r\n if (calParam1 != null) {\r\n LocalDateTime currDt = calParam1.getValue();\r\n // for the date picker the months are zero-based, the first month is 0 the last is 11\r\n // for LocalDateTime the months range 1-12\r\n calParam1.setValue(currDt.withYear(source.getYear()).withMonth(source.getMonth() + 1).withDayOfMonth(source.getDay()));\r\n String resultText = dtFmt.format(calParam1.getValue());\r\n log.debug(\"Result Text \" + resultText);\r\n editor.getItem().setText(columnValueIndex, resultText);\r\n } else {\r\n log.warn(\"widgetSelected param is null\");\r\n }\r\n }\r\n\r\n });\r\n timePicker.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n DateTime source = (DateTime)se.getSource();\r\n IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM);\r\n if (calParam1 != null) {\r\n LocalDateTime currDt = calParam1.getValue();\r\n calParam1.setValue(currDt.withHour(source.getHours()).withMinute(source.getMinutes()).withSecond(source.getSeconds()));\r\n String resultText = dtFmt.format(calParam1.getValue());\r\n log.debug(\"Result Text \" + resultText);\r\n editor.getItem().setText(columnValueIndex, resultText);\r\n } else {\r\n log.warn(\"widgetSelected param is null\");\r\n }\r\n }\r\n\r\n });\r\n dateAndTime.layout();\r\n editControl = dateAndTime;\r\n break;\r\n case INTEGER:\r\n Text intEditor = new Text(tableParams, SWT.NONE);\r\n intEditor.setText(item.getText(columnValueIndex));\r\n intEditor.selectAll();\r\n intEditor.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent se) {\r\n Text text = (Text) editor.getEditor();\r\n Integer resultInt = null;\r\n try {\r\n resultInt = Integer.parseInt(text.getText());\r\n } catch (NumberFormatException nfe) {\r\n log.error(\"NFE \", nfe);\r\n }\r\n if (resultInt != null) {\r\n editor.getItem().setText(columnValueIndex, resultInt.toString());\r\n }\r\n }\r\n });\r\n editControl = intEditor;\r\n break;\r\n case STRING:\r\n default:\r\n Text newEditor = new Text(tableParams, SWT.NONE);\r\n newEditor.setText(item.getText(columnValueIndex));\r\n newEditor.setFont(tableParams.getFont());\r\n newEditor.selectAll();\r\n newEditor.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent se) {\r\n Text text = (Text) editor.getEditor();\r\n editor.getItem().setText(columnValueIndex, text.getText());\r\n }\r\n });\r\n editControl = newEditor;\r\n break;\r\n }\r\n\r\n editControl.setFont(tableParams.getFont());\r\n editControl.setFocus();\r\n editor.setEditor(editControl, item, columnValueIndex);\r\n }\r\n }\r\n });\r\n\r\n\r\n btnOK = new Button(shell, SWT.NONE);\r\n btnOK.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_btnOK = new FormData();\r\n fd_btnOK.bottom = new FormAttachment(100, -7);\r\n fd_btnOK.right = new FormAttachment(40, 2);\r\n fd_btnOK.top = new FormAttachment(100, -35);\r\n fd_btnOK.left = new FormAttachment(15, 2);\r\n btnOK.setLayoutData(fd_btnOK);\r\n btnOK.setText(\"OK\");\r\n btnOK.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n result = new DialogResult<>(SWT.OK, getParamMap());\r\n shell.close();\r\n }\r\n\r\n });\r\n shell.setDefaultButton(btnOK);\r\n\r\n btnCancel = new Button(shell, SWT.NONE);\r\n btnCancel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_btnCancel = new FormData();\r\n fd_btnCancel.bottom = new FormAttachment(100, -7);\r\n fd_btnCancel.left = new FormAttachment(60, -2);\r\n fd_btnCancel.top = new FormAttachment(100, -35);\r\n fd_btnCancel.right = new FormAttachment(85, -2);\r\n btnCancel.setLayoutData(fd_btnCancel);\r\n btnCancel.setText(\"Cancel\");\r\n btnCancel.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n result = new DialogResult<>(SWT.CANCEL, null);\r\n shell.close();\r\n }\r\n\r\n });\r\n tableParams.redraw();\r\n }", "private void makeFrame(){\n frame = new JFrame(\"Rebellion\");\n\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n frame.setSize(800,800);\n\n makeContent(frame);\n\n frame.setBackground(Color.getHSBColor(10,99,35));\n frame.pack();\n frame.setVisible(true);\n }", "private void buildContentPane() {\n\t\t// The JPanel that will become the content pane\n\t\tJPanel cp = new JPanel();\n\t\tcp.setLayout(new BoxLayout(cp, BoxLayout.PAGE_AXIS));\n\n\t\tlanguagePanel = initLanguagePanel();\n\t\tcp.add(languagePanel);\n\n\t\tinputPanel = initInputPanel();\n\t\tcp.add(inputPanel);\n\n\t\tJPanel btnPanel = initBtnPanel();\n\t\tcp.add(btnPanel);\n\n\t\toutputPanel = initOutputPanel();\n\t\tcp.add(outputPanel);\n\n\t\tJPanel picturePanel = initPicturePanel();\n\t\tif(picturePanel == null) {\n\t\t\tframe.setSize(FRAME_WIDTH, FRAME_SMALL_HEIGHT);\n\t\t}\n\t\telse {\n\t\t\tcp.add(picturePanel);\n\t\t}\n\n\t\tLanguage selectedLang = languagePanel.getSelectedLanguage();\n\t\tsetLanguage(selectedLang);\n\n\t\tframe.setContentPane(cp);\n\t}", "protected void createContents() throws Exception\n\t{\n\t\tshell = new Shell();\n\t\tshell.setSize(755, 592);\n\t\tshell.setText(\"Impresor - Documentos v1.2\");\n\t\t\n\t\tthis.commClass.centrarVentana(shell);\n\t\t\n\t\tlistComandos = new List(shell, SWT.BORDER | SWT.H_SCROLL | SWT.COLOR_WHITE);\n\t\tlistComandos.setBounds(72, 22, 628, 498);\n\t\tlistComandos.setVisible(false);\n\n//Boton que carga los documentos\t\t\n\t\tButton btnLoaddocs = new Button(shell, SWT.NONE);\n\t\tbtnLoaddocs.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnLoaddocs.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tloadDocs(false, false);\n\t\t\t}\n\t\t});\n\t\tbtnLoaddocs.setBounds(10, 20, 200, 26);\n\t\tbtnLoaddocs.setText(\"Cargar documentos a imprimir\");\n\t\t\n//Browser donde se muestra el documento descargado\n\t\tbrowser = new Browser(shell, SWT.BORDER);\n\t\tbrowser.setBounds(10, 289, 726, 231);\n\t\tbrowser.addProgressListener(new ProgressListener() \n\t\t{\n\t\t\tpublic void changed(ProgressEvent event) {\n\t\t\t\t// Cuando cambia.\t\n\t\t\t}\n\t\t\tpublic void completed(ProgressEvent event) {\n\t\t\t\t/* Cuando se completo \n\t\t\t\t Se usa para parsear el documento una vez cargado, el documento\n\t\t\t\t puede ser un doc xml que contiene un mensaje de error\n\t\t\t\t o un doc html que dara error de parseo Xml,es decir,\n\t\t\t\t ante este error entendemos que se cargo bien el doc HTML.\n\t\t\t\t Paradojico verdad? */\n\t\t\t\tleerDocumentoCargado();\n\t\t\t}\n\t\t });\n\n///Boton para iniciar impresion\t\t\n\t\tButton btnIniPrintW = new Button(shell, SWT.NONE);\n\t\tbtnIniPrintW.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tiniciarImpresion(null);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnIniPrintW.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tiniciarImpresion(null);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnIniPrintW.setBounds(337, 532, 144, 26);\n\t\tbtnIniPrintW.setText(\"Iniciar impresion\");\n\t\t\n\t\tLabel label = new Label(shell, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabel.setBounds(10, 52, 885, 2);\n\t\t\n\t\tButton btnSalir = new Button(shell, SWT.NONE);\n\t\tbtnSalir.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnSalir.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnSalir.setBounds(659, 532, 77, 26);\n\t\tbtnSalir.setText(\"Salir\");\n\t\t\n\t\tthreadLabel = new Label(shell, SWT.BORDER);\n\t\tthreadLabel.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t//mostrar / ocultar el historial de mensajes\n\t\t\t\tMOCmsgHist();\n\t\t\t}\n\t\t});\n\t\tthreadLabel.setAlignment(SWT.CENTER);\n\t\tthreadLabel.setBackground(new Color(display, 255,255,255));\n\t\tthreadLabel.setBounds(10, 0, 891, 18);\n\t\tthreadLabel.setText(\"\");\n\t\t\n\t\tLabel label_1 = new Label(shell, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabel_1.setBounds(10, 281, 726, 2);\n\n\t\ttablaDocs = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttablaDocs.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t//PabloGo, 12 de julio de 2013\n\t\t\t\t//verifUltDocSelected(e);\n\t\t\t\tseleccionarItemMouse(e);\n\t\t\t}\n\t\t});\n\t\ttablaDocs.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tseleccionarItem(e);\n\t\t\t}\n\t\t});\n\t\ttablaDocs.setBounds(10, 52, 726, 215);\n\t\ttablaDocs.setHeaderVisible(true);\n\t\ttablaDocs.setLinesVisible(true);\n\t\tcrearColumnas(tablaDocs);\n\t\t\n//Label que muestra los mensajes\n\t\tmensajeTxt = new Label(shell, SWT.NONE);\n\t\tmensajeTxt.setAlignment(SWT.CENTER);\n\t\tmensajeTxt.setBounds(251, 146, 200, 26);\n\t\tmensajeTxt.setText(\"Espere...\");\n\t\t\n//Listado donde se muestran los documentos cargados\n\t\tlistaDocumentos = new List(shell, SWT.BORDER);\n\t\tlistaDocumentos.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t//PabloGo, 12 de julio de 2013\n\t\t\t\t//verifUltDocSelected(e);\n\t\t\t\tseleccionarItemMouse(e);\n\t\t\t}\n\t\t});\n\t\tlistaDocumentos.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tseleccionarItem(e);\n\t\t\t}\n\t\t});\n\t\tlistaDocumentos.setBounds(10, 82, 726, 77);\n\t\t\n\t\tButton btnShowPreview = new Button(shell, SWT.CHECK);\n\t\tbtnShowPreview.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\t\t\t\tif (((Button)e.getSource()).getSelection()){\n\t\t\t\t\tmostrarPreview = true;\n\t\t\t\t}else{\n\t\t\t\t\tmostrarPreview = false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnShowPreview.setBounds(215, 28, 118, 18);\n\t\tbtnShowPreview.setText(\"Mostrar preview\");\n\t\t\n\t\tButton btnAutoRefresh = new Button(shell, SWT.CHECK);\n\t\tbtnAutoRefresh.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\t\t\t\tif (((Button)e.getSource()).getSelection()){\n\t\t\t\t\tautoRefresh = true;\n\t\t\t\t\tbeginTarea();\n\t\t\t\t}else{\n\t\t\t\t\tautoRefresh = false;\n\t\t\t\t\tponerMsg(\"Carga automática desactivada\");\n\t\t\t\t\tfinishTarea();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnAutoRefresh.setBounds(353, 28, 128, 18);\n\t\tbtnAutoRefresh.setText(\"Recarga Automática\");\n\t\t\n\t\ttareaBack(this, autoRefresh).start();\n\t\tloadDocs(false, false);\n\t}", "private static void createAndShowGUI() {\n //Create and set up the window.\n JFrame frame = new JFrame(\"FrameDemo\");\n frame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n\n //main input TextArea\n JTextArea mainIn = new JTextArea(\"Type your Command here.\", 3, 1);\n \n //main Output Display Displays htmlDocuments\n JTextPane mainOut = new JTextPane(new HTMLDocument());\n mainOut.setPreferredSize(new Dimension(800, 600));\n \n //add components to Pane\n frame.getContentPane().add(mainOut);\n frame.getContentPane().add(mainIn);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "private void buildAndShowWindow() {\n SwingUtilities.invokeLater(() -> {\n buildWindow().setVisible(true);\n });\n }", "private static void createAndShowGUI() {\n\t\tint width = 500, height = 300;\n\t\tJFrame frame = new JFrame(\"Text File Reader\");\n\t\tframe.setSize(new Dimension(width, height));\n\t\tframe.setContentPane(new MainExecutor(width, height)); /* Adds the panel to the frame */\n\n\t\t/* Centralizing the frame */\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tint upperLeftCornerX = (screenSize.width - frame.getWidth()) / 2;\n\t\tint upperLeftCornerY = (screenSize.height - frame.getHeight()) / 2;\n\t\tframe.setLocation(upperLeftCornerX, upperLeftCornerY);\n\t\tframe.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n\n\t\t/* Shows the GUI */\n\t\tframe.setVisible(true);\n\t}", "public void createContents(Composite parent) {\n\t\tparent.setLayout(new FillLayout());\n\t\tfMainSection = fToolkit.createSection(parent, Section.TITLE_BAR);\n\n\t\tComposite mainComposite = fToolkit.createComposite(fMainSection, SWT.NONE);\n\t\tfToolkit.paintBordersFor(mainComposite);\n\t\tfMainSection.setClient(mainComposite);\n\t\tmainComposite.setLayout(new GridLayout(1, true));\n\t\t\n\t\tcreateClassListViewer(mainComposite);\n\t\tcreateBottomButtons(mainComposite);\n\t\tcreateTextClientComposite(fMainSection);\n\t}", "public void createAndShowGUI() {\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n\tif(open==0)\n\t\tframe = new JFrame(\"Open a file\");\n\telse if(open ==1)\n\t\tframe = new JFrame(\"Save file as\");\n //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane =this ;\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n // frame.setSize(500,500);\n//\tvalidate();\n }", "private static void createWindow(){\n try{\n\n displayMode = new DisplayMode(1600 ,900);\n Display.setDisplayMode(displayMode);\n\n /*\n Display.setDisplayMode(getDisplayMode(1920 ,1080,false));\n if(displayMode.isFullscreenCapable()){\n Display.setFullscreen(true);\n }else{\n Display.setFullscreen(false);\n }\n */\n Display.setTitle(\"CubeKraft\");\n Display.create();\n }catch (Exception e){\n for(StackTraceElement s: e.getStackTrace()){\n System.out.println(s.toString());\n }\n }\n }", "public void CreateTheFrame()\n {\n setSize(250, 300);\n setMaximumSize( new Dimension(250, 300) );\n setMinimumSize(new Dimension(250, 300));\n setResizable(false);\n\n pane = getContentPane();\n insets = pane.getInsets();\n\n // Apply the null layout\n pane.setLayout(null);\n }", "public Scene Window(){\n Area.setPrefHeight(177);\n Area.setPrefWidth(650);\n Area.setOpacity(0.5);\n Area.setEditable(false);\n Area.setText(\"\\n\\nThe application is used for PV(photovoltaics) sizing to power a RO(Reverse osmosis) desalination unit\" +\n \"\\nThe system depends on batteries to store energy.\" +\n \"\\n\\nTo use this application without problems, you must have the following information\\n\" +\n \"\\t*The location of the desalination unit;\\n\" +\n \"\\t*Amount of power required to operate the unit in kilowatts;\\n\" +\n \"\\t*Time of operating for RO;\\n\" +\n \"\\t*Detailed specification information of the pv modules;\\n\" +\n \"\\t*The number of people the Ro unit will provide water for,and the average water consumption for regular person\");\n\n boxPane.setPrefHeight(44);\n boxPane.setPrefWidth(650);\n\n //Go user map selection interface\n nextWindow.setPrefHeight(30);\n nextWindow.setPrefWidth(300);\n nextWindow.setMnemonicParsing(false);\n nextWindow.setText(\"NEXT\");\n\n\n //HBox.setMargin(nextWindow, new Insets(5,0,5,0));\n // boxPane.getChildren().addAll(nextWindow);\n boxPane.setAlignment(Pos.CENTER);\n\n //Load text area and button to the container\n rootPane.setCenter(Area);\n rootPane.setBottom(boxPane);\n\n scene = new Scene(rootPane,640,300);\n return scene;\n }", "private static void createAndShowGUI() {\n\t\t//Create and set up the window.\n\t\tJFrame frame = new JFrame(\"Color test\");\n\t\tframe.setPreferredSize(new Dimension(700, 700));\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\t//Create and set up the content pane.\n\t\tJComponent newContentPane = new ColorTest();\n\t\tnewContentPane.setOpaque(true); //content panes must be opaque\n\t\tframe.setContentPane(newContentPane);\n\n\t\t//Display the window.\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t}" ]
[ "0.78568476", "0.770408", "0.77024", "0.75711876", "0.747748", "0.7446512", "0.7418617", "0.74041", "0.7305366", "0.72465086", "0.7217618", "0.7171157", "0.71683043", "0.7142865", "0.71213007", "0.71075344", "0.7094211", "0.7083325", "0.707515", "0.69683087", "0.69569373", "0.69435936", "0.69432276", "0.69396424", "0.6924243", "0.6895419", "0.6850218", "0.68276834", "0.68074876", "0.68025005", "0.67898977", "0.67841756", "0.67757124", "0.674601", "0.67445385", "0.6740135", "0.6739461", "0.6706772", "0.6685774", "0.66814446", "0.66730106", "0.66603976", "0.6653801", "0.66439974", "0.6635548", "0.6622658", "0.66165483", "0.6613815", "0.66127455", "0.6610833", "0.6604642", "0.6603116", "0.65947884", "0.6588881", "0.65808713", "0.65702486", "0.6568938", "0.6566003", "0.6551275", "0.65337104", "0.6527361", "0.65089124", "0.6486221", "0.64831036", "0.6473845", "0.6466729", "0.64224565", "0.6418808", "0.64153755", "0.63810664", "0.6373637", "0.6366111", "0.63491476", "0.63487905", "0.63265365", "0.6324279", "0.6314956", "0.63062686", "0.6295113", "0.6278655", "0.6273466", "0.62667793", "0.6245354", "0.6240118", "0.62346804", "0.62346417", "0.6215663", "0.62077373", "0.620583", "0.6200544", "0.6182369", "0.61820024", "0.61793536", "0.61787826", "0.6165086", "0.6160475", "0.6158696", "0.6157515", "0.615536", "0.6149862" ]
0.65533143
58
Begin rendering of the scene graph from the root
@Override public void draw(INode root, Stack<Matrix4f> modelView) { GL3 gl = glContext.getGL().getGL3(); gl.glEnable(GL.GL_TEXTURE_2D); gl.glActiveTexture(GL.GL_TEXTURE0); int loc = -1; loc = shaderLocations.getLocation("image"); if (loc >= 0) { gl.glUniform1i(loc, 0); } root.draw(this, modelView); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void renderScene() {\n\t\tscene.ready=false;\n\t\tscene.num_points=0;\n\t\tscene.num_triangles=0;\n\t\tscene.num_tri_vertices=0;\n\t\tscene.list_of_triangles.clear(); // reset the List of Triangles (for z-sorting purposes)\n\t\tscene.num_objects_visible=0;\n\t\ttotal_cost=0;\n\t\tupdateLighting();\n\t\tfor (int i=0; i<num_vobjects;i++) {\n\t\t\tif (vobject[i].potentially_visible) {\n\t\t\t\tif (checkVisible(i)) {\n\t\t\t\t\tscene.num_objects_visible++;\n\t\t\t\t\tcalculateRelativePoints(i);\n\t\t\t\t\tif (scene.dot_field) {defineDots(i);} \n\t\t\t\t\tif (scene.wireframe) {defineTriangles(i);}\n\t\t\t\t\tif (scene.solid_poly) {defineTriangles(i);}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\t\tif (scene.z_sorted) {Collections.sort(scene.list_of_triangles);}\n\t\tscene.ready=true;\n\t}", "public void startRendering() {\n if (!justRendered) {\n justRendered = true;\n \n if (Flags.wireFrame) p.render_wireFrame();\n else p.render();\n }\n }", "public void render(){\n\t\tstage.act();\n\t\tstage.draw();\n\t}", "@Override\r\n public void render() {\n \r\n stage.act();\r\n stage.draw();\r\n }", "private void render() {\n\n StateManager.getState().render();\n }", "public void startScene()\r\n\t{\r\n\t\tthis.start();\r\n\t}", "public void render () \n\t{ \n\t\trenderWorld(batch);\n\t\trenderGui(batch);\n\t}", "protected void buildScene() {\n Geometry cube1 = buildCube(ColorRGBA.Red);\n cube1.setLocalTranslation(-1f, 0f, 0f);\n Geometry cube2 = buildCube(ColorRGBA.Green);\n cube2.setLocalTranslation(0f, 0f, 0f);\n Geometry cube3 = buildCube(ColorRGBA.Blue);\n cube3.setLocalTranslation(1f, 0f, 0f);\n\n Geometry cube4 = buildCube(ColorRGBA.randomColor());\n cube4.setLocalTranslation(-0.5f, 1f, 0f);\n Geometry cube5 = buildCube(ColorRGBA.randomColor());\n cube5.setLocalTranslation(0.5f, 1f, 0f);\n\n rootNode.attachChild(cube1);\n rootNode.attachChild(cube2);\n rootNode.attachChild(cube3);\n rootNode.attachChild(cube4);\n rootNode.attachChild(cube5);\n }", "public void renderAll() {\n GameObjectManager.instance.renderAll(graphics);\n this.repaint();\n }", "protected void displayInitialScene() {\n stageManager.switchScene(FxmlView.SPLASH, StageStyle.UNDECORATED);\n }", "public void Scene() {\n Scene scene = new Scene(this.root);\n this.stage.setScene(scene);\n this.stage.show();\n }", "@Override\r\n public void render(){\r\n\r\n Gdx.gl.glClearColor(1,1,1,1);\r\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\r\n stage.act(Gdx.graphics.getDeltaTime());\r\n stage.draw();\r\n }", "public void draw() {\n draw(this.root, new RectHV(0.0, 0.0, 1.0, 1.0));\n }", "public void draw() {\n draw(root, true);\n }", "public void draw() \n\t {\n\t\t draw(root,0,0,1,1,true);\n\t }", "public EDMGraphScene() {\n setKeyEventProcessingType(EventProcessingType.FOCUSED_WIDGET_AND_ITS_PARENTS);\n\n addChild(backgroundLayer);\n addChild(mainLayer);\n addChild(connectionLayer);\n addChild(upperLayer);\n\n router = RouterFactory.createOrthogonalSearchRouter(mainLayer, connectionLayer);\n\n getActions().addAction(ActionFactory.createZoomAction());\n getActions().addAction(ActionFactory.createPanAction());\n getActions().addAction(ActionFactory.createSelectAction(new SceneSelectProvider()));\n\n graphLayout.addGraphLayoutListener(new GridGraphListener());\n sceneLayout = LayoutFactory.createSceneGraphLayout(this, graphLayout);\n }", "@Override\n protected void finalRender() {\n finishTraversalAnimation();\n placeTreeNodes();\n placeNodesAtDestination();\n render();\n\n }", "public void render() {\n this.canvas.repaint();\n }", "public void draw() {\n draw(root, false);\n }", "public void updateScene() {\n\t\tthis.background.draw();\n\t\tthis.errorScene.draw();\n\t}", "public void draw() {\n drawNode(root, true);\n }", "public void render()\n\t{\n\t\t//double buffering is cool\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(2);\n\t\t\tbs = getBufferStrategy();\n\t\t}\n\t\t\t\n\t\tGraphics2D g2 = (Graphics2D)bs.getDrawGraphics();\n\t\n\t\t\n\t\t\n\t\tif (true)\t\n\t\t{\n\t\t\tif (level != 0)\n\t\t\t{\n\t\t\t\tg2.setColor(Color.black);\n\t\t\t\tg2.fillRect(0, 0, width, height);\t\t\t\n\t\t\t}\n\t\t\tgameObjectHandler.render(g2,false);\n\t\t}\n\t\tif(currTransition != null)\n\t\t{\n\t\t\tcurrTransition.render(g2);\n\t\t\n\t\t}\n\t\t\n\t\t\n\t\tbs.show();\n\t\tg2.dispose();\n\t\n\t}", "@Override\n\tpublic void render() {\n\t\tScreen.render();\n\t}", "public void draw() {\n drawNode(root);\n }", "@Override\n\tpublic void render() {\n\t\tGdx.gl.glClearColor(0, 0, 0, 0);\n\t\tGdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\t\tworld.step(1f / 60f, 6, 2);\n\n\t\tgame.act();\n\t\tgame.render();\n\n\t}", "public void draw() \r\n\t{\r\n\t\tdraw(root, new RectHV(0,0,1,1) );\r\n\t}", "@Override\n\tpublic void render(float delta) {\n\t\tGdx.gl.glClearColor( 0, 1, 1, 1 );\n\t\tGdx.gl.glClear( GL10.GL_COLOR_BUFFER_BIT );\n\t\t\n\t\tstage.act();\n\t\tstage.draw();\n\t\t\n\t\tsuper.render(delta);\n\t}", "public void render () {\n\t\tcam.update();\n\t\tbatch.setProjectionMatrix(cam.combined);\n\t\trenderBackground();\n\t\t/*shapeRender.setProjectionMatrix(cam.combined);\n\t\tshapeRender.begin(ShapeRenderer.ShapeType.Line);\n\t\tshapeRender.ellipse(world.trout.hitBox.x, world.trout.hitBox.y, world.trout.hitBox.width, world.trout.hitBox.height);\n\t\tshapeRender.circle(world.hook.circleBounds.x, world.hook.circleBounds.y, world.hook.circleBounds.radius);\n\t\tshapeRender.point(world.trout.position.x, world.trout.position.y, 0f);*/\n\t\trenderObjects();\n\t\t\n\t}", "protected void render() {\n\t\tentities.render();\n\t\t// Render GUI\n\t\tentities.renderGUI();\n\n\t\t// Flips the page between the two buffers\n\t\ts.drawToGraphics((Graphics2D) Window.strategy.getDrawGraphics());\n\t\tWindow.strategy.show();\n\t}", "@Override\n public void render(Canvas canvas) {\n\n // Makes the entire Canvas White.\n canvas.drawRGB(AnimationParameters.BACK_R,\n AnimationParameters.BACK_G, AnimationParameters.BACK_B);\n\n // Draws the Tree over the Canvas.\n drawTreeRecursive(root, canvas);\n\n // Draws the nodeList over the Canvas.\n nodeList.render(canvas);\n\n // Renders this frame to the Canvas.\n super.render(canvas);\n\n }", "public void render(){\n //this block is pre-loading 2 frames in\n BufferStrategy bs = this.getBufferStrategy();\n if(bs == null){\n this.createBufferStrategy(2);\n return;\n }\n\n Graphics g = bs.getDrawGraphics();\n Graphics2D g2d = (Graphics2D) g;\n ///////////////////////////\n //Draw things below here!\n g.setColor(Color.white);\n g.fillRect(0, 0, 800, 800);\n\n g2d.translate(-camera.getX(), -camera.getY());\n\n g.setColor(Color.gray);\n g.fillRect(0, 0, 500, 500);\n //render all the objects\n handler.render(g);\n\n //g2d.translate(camera.getX(), camera.getY());\n //Draw things above here!\n ///////////////////////////\n g.dispose();\n bs.show();\n }", "public void render() {\n\t\tscreen.background(255);\n\t\thandler.render();\n\t}", "public void drawGraph()\n\t{\n\t\tMatrixStack transformStack = new MatrixStack();\n\t\ttransformStack.getTop().mul(getWorldTransform());\n\t\tdrawSelfAndChildren(transformStack);\n\t}", "public void startGame() {\n\t\t//Start the rendering first\n\t\tgetRenderer().startRendering();\n\t\t\n\t\t//Start the game thread after that.\n\t\tgetGameThread().start();\n\t}", "public void draw() {\n if (isEmpty()) return;\n draw1(root, 0, 1, 0, 1);\n }", "@Override\n public void render() {\n GUI.clearScreen();\n if (assetManager.update()) {\n switch (gameState) {\n case MENU:\n GUI.menuLoop();\n break;\n case PAUSE:\n case GAME:\n gameLoop();\n break;\n case LOAD:\n World.load();\n gameState = GameState.GAME;\n break;\n }\n } else {\n GUI.splashScreen(assetManager.getProgress());\n }\n DrawManager.end();\n }", "@Override\r\n public void render(float delta) {\n Gdx.gl.glClearColor(0f, 0f, 0f, 1);\r\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\r\n\r\n // tell our stage to do actions and draw itself\r\n stage.act(Math.min(Gdx.graphics.getDeltaTime(), 1 / 30f));\r\n stage.draw();\r\n\r\n }", "public void render() {\n backGraphics.drawImage(background, backgroundX, backgroundY, null);\n\n GameObject.renderAll(backGraphics);\n\n //2. Call repaint\n repaint();\n }", "@Override\n\tpublic void tick() {\n\t\trenderer.render(this);\n\t}", "public void render() \r\n\t{\r\n \tE3DRenderTree renderTree = new E3DRenderTree(getEngine());\r\n \trenderTree.getTriangleHandler().add(this);\r\n \trenderTree.render();\r\n\t}", "@Override\r\n\tpublic void render(){\n\t\tGdx.gl.glClearColor( 0f, 1f, 0f, 1f );\r\n\t\tGdx.gl.glClear( GL20.GL_COLOR_BUFFER_BIT );\r\n\r\n\t\t// output the current FPS\r\n\t\tfpsLogger.log();\r\n\t}", "public void render() {\n\t\tRenderUtil.clearScreen();\n\t\t\n\t\tEntityShader.getInstance().updateLights(testLight);\n\t\t\n\t\ttestLight.render();\n\t\t\n\t\tsky.render();\n\t\t\t\t\n\t\ttestEntity.render();\t\t\n\t\ttestEntity2.render();\n\t\t\t\t\n\t\tSystem.out.println(\"Entity: \" + testEntity.getPositon().toString());\n\t\tSystem.out.println(\"Camera: \" + Camera.getInstance().getPosition().toString());\n\t\tSystem.out.println(\"Look: \" + Camera.getInstance().getForward().toString());\n\t\tSystem.out.println(\"Light: \" + testLight.getPosition().toString());\n\t\twindow.render();\n\t}", "@Override\n public void render(float delta) {\n Gdx.gl.glClearColor(0f, 0f, 0f, 1);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\n stage.act(delta);\n stage.draw();\n }", "private void render() {\n\t\ttheMap.draw(g);\n\t\ttheTrainer.draw(g);\n\t}", "public void render() {\r\n\r\n }", "public void draw()\n {\n inorder(root);\n }", "@Override\n\tpublic void render(float delta) {\n\t\tGdx.gl.glClearColor(0, 0, 0.9f, 1);\n\t\tGdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\t\t\n\t\tbatch.begin();\n\t\tstage.act();\n\t\tstage.draw();\n\t\tbatch.end();\n\t}", "@Override\n\tpublic void paint(Graphics g) {\n\t\tGraphics2D backBufferG2 = (Graphics2D)backBuffer.getGraphics();\n\t\tbackBufferG2.translate(0, scene.height);\n\t\tbackBufferG2.scale(1, -1);\n\t\t\n\t\t// Clear the buffer image before drawing stuff onto it\n\t\tbackBufferG2.setColor(scene.backgroundColor);\n\t\tbackBufferG2.fillRect(0, 0, getWidth(), getHeight());\n\t\t\n\t\t// Now we render the entire scene!\n\t\trenderer.scheduleNodeForRendering(scene); // Render scene + all it's children!\n\t\trenderer.scheduleNodeForRendering(scene.camera); //Need to specify camera individually \n\t\t\t\t\t\t\t\t\t\t\t\t\t//because camera isn't in the scene's children array\n\t\trenderer.renderAllNodes(backBufferG2);\n\t\t\n\t\t// Finally we draw the buffer image onto the main Graphics object\n\t\tg.drawImage(backBuffer, 0 , 0, this);\n\t}", "private void render()\n\t{\n\t\ttheta = (float) (velocity.heading() + Math.toRadians(90.0));\n\n\t\t// se baser sur le temps écoulé depuis le lancement\n\t\tf = parent.frameCount / 4;\n\t\tint fi = f + 1;\n\t\tfloat x = fi % DIM * W;\n\t\tfloat y = fi / DIM % DIM * H;\n\n\t\tparent.pushMatrix();\n\t\tparent.translate(location.x, location.y);\n\t\tparent.rotate(theta);\n\t\tparent.beginShape();\n\t\tparent.texture(spritesheet);\n\t\tparent.vertex(0, 0, x, y);\n\t\tparent.vertex(100, 0, x + W, y);\n\t\tparent.vertex(100, 100, x + W, y + H);\n\t\tparent.vertex(0, 100, x, y + H);\n\t\tparent.endShape();\n\t\tparent.popMatrix();\n\t}", "public void render()\r\n\t{\n\t}", "public void render() {\n }", "@FXML\n private void renderTree() {\n unmountTree();\n buildTree(inputN, treePane.getWidth() / 2, treePane.getHeight(), Math.toRadians(inputTrunkAngle), inputBranchLength);\n mountTree();\n }", "@Override\n\tpublic void render() {\n\t\tif(!paused){\n\t\t\t//Update the game world with time since last rendered frame\n\t\t\tworldController.update(Gdx.graphics.getDeltaTime());\n\t\t}\n\t\t\n\t\t//Set ClearColor to default color\n\t\tGdx.gl20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);\n\t\t\n\t\t//Clear the screen\n\t\tGdx.gl20.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\t\t\n\t\t//Render the game world to the screen\n\t\tworldRenderer.render();\n\t}", "public void render() {\n\t\t// do nothing... as we should\n\t}", "public void draw() {\n drawSubtree(root);\n }", "public static void start(){\n new Light(new Vector3f(getSIZE()*Chunk.getCHUNKSIZE()/2,getSIZE()*Chunk.getCHUNKSIZE()/2,getSIZE()*Chunk.getCHUNKSIZE()/2));\n Keyboard.enableRepeatEvents(true);\n createWindow();\n initGL();\n generateWorld();\n Game.gameLoop();\n }", "private void initRender() {\n if (!isRenderable()) {\n throw new IllegalStateException(\"Make the mesh renderable before rendering!\");\n }\n \n //Set active texture if it exists\n if (material.hasTexture()) {\n glActiveTexture(GL_TEXTURE0);\n glBindTexture(GL_TEXTURE_2D, material.getTexture().getId());\n }\n\n if (material.hasNormalMap()) {\n glActiveTexture(GL_TEXTURE1);\n glBindTexture(GL_TEXTURE_2D, material.getNormalMap().getId());\n }\n\n //Draw mesh\n glBindVertexArray(vaoId);\n glEnableVertexAttribArray(0);\n glEnableVertexAttribArray(1);\n glEnableVertexAttribArray(2);\n glEnableVertexAttribArray(3);\n glEnableVertexAttribArray(4);\n }", "public void updateScene() {\n\t\t// check whether updates should be stopped\n\t\tif (simulation.isTerminated()) { \n\t\t\ttimeline.stop();\n\t\t\tsimulation.exit();\n\t\t} else {\n\t\t\t// first update the elements coordinates\n\t\t\ttry {\n\t\t\t\tsimulation.update();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Simulation> Non-critical error: Couldn't communicate with Server.\");\n\t\t\t}\n\n\t\t\t// then update the scene graph (in a rather brutal way)\n\t\t\troot.getChildren().clear();\n\t\t\troot.getChildren().addAll(simulation.getElements());\n\t\t}\n\t}", "@Override\n public void begin() {\n\n Objects.requireNonNull(this.model);\n Objects.requireNonNull(this.view);\n initiateKeyboard();\n initiateMouse();\n view.showView();\n\n }", "protected void initRender() {\n glActiveTexture(GL_TEXTURE0);\n // Bind the texture\n glBindTexture(GL_TEXTURE_2D, texture.getId());\n\n // Draw the mesh\n glBindVertexArray(vaoId);\n glEnableVertexAttribArray(0);\n glEnableVertexAttribArray(1);\n }", "public void setupScene() {\n\t\tplayScene = new Scene(new Group());\n\t\tupdateScene(playScene);\n\t\twindow.setScene(playScene);\n\t\twindow.show();\n\t}", "@Override protected void startup() {\n BlaiseGraphicsTestFrameView view = new BlaiseGraphicsTestFrameView(this);\n canvas1 = view.canvas1;\n root1 = view.canvas1.getGraphicRoot();\n canvas1.setSelectionEnabled(true);\n show(view);\n }", "private void initialRenderPhase(final GL10 gl)\n {\n gl.glViewport(0, 0, width, height);\n gl.glClear(GL10.GL_COLOR_BUFFER_BIT);\n gl.glMatrixMode(GL10.GL_PROJECTION);\n gl.glLoadIdentity();\n GLU.gluOrtho2D(gl, 0, width, 0, height);\n }", "public void flush() {\n renderMesh();\n }", "public void renderAll()\n {\n \tthis.panel.rotateAngleX = -0.32f;\n this.lid.render(0.0625F);\n this.sideBox.render(0.0625F);\n this.box.render(0.0625F);\n this.panel.render(0.0625F);\n\n GL11.glDisable(GL11.GL_CULL_FACE);\n this.inner.render(0.0625F);\n GL11.glEnable(GL11.GL_CULL_FACE);\n \n this.innerStand.rotateAngleY = 0+rotateCentrifuge;\n this.innerStand.render(0.0625F);\n this.innerStand.rotateAngleY = 0.7854F+rotateCentrifuge;\n this.innerStand.render(0.0625F);\n }", "@Override\n\tpublic void start(Stage primaryStage) throws IOException {\n\t\t// Create the root of the graph scene. It is mainly used in the updateScene() method.\n\t\troot = new Group();\n\n\t\t// Create a simulation with N elements\n\t\tsimulation = new Simulation();\n\n\t\t// Configure and start periodic scene update: after PERIOD_MS ms, updateScene() is called.\n\t\ttimeline = new Timeline(new KeyFrame(PERIOD_MS, ae -> {\n\t\t\tupdateScene();\n\t\t})); // \"->\" is a Java 8 specific construction\n\t\ttimeline.setCycleCount(Animation.INDEFINITE);\n\t\ttimeline.play();\n\n\n\t\t/** Allows the window to be dragged by the mouse */\n\t root.setOnMousePressed(new EventHandler<MouseEvent>() {\n\t \t@Override\n\t public void handle(MouseEvent event) {\n\t xOffset = primaryStage.getX() - event.getScreenX();\n\t yOffset = primaryStage.getY() - event.getScreenY();\n\t }\n\t });\t \n\t root.setOnMouseDragged(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n \tprimaryStage.setX(event.getScreenX() + xOffset);\n\t primaryStage.setY(event.getScreenY() + yOffset);\n\t }\n\t });\n\t \n\t \n\t /** Adds the stylesheet for visual effect */\n\t root.getStylesheets().add(\"/stylesheet.css\");\n\t root.getStyleClass().add(\"rootPane\");\n\t \n\t /** Adds icon */\n\t primaryStage.getIcons().add(new Image(\"/icon.png\"));\n\t \n\t Scene scene = new Scene(root, Simulation.SPACE_SIZE, Simulation.SPACE_SIZE, Simulation.BACKGROUND); \n\t primaryStage.setScene(scene);\n \tprimaryStage.setTitle(\"Gabriel's Land\");\n \tprimaryStage.setResizable(false);\n\t primaryStage.getScene().setCursor(Cursor.HAND);\n\t primaryStage.show();\n\n\t}", "@Override\r\n public void simpleInitApp() {\r\n PhysicsRigidBody.logger2.setLevel(Level.WARNING);\r\n\r\n cam.setLocation(new Vector3f(39f, 64f, 172f));\r\n cam.setRotation(new Quaternion(-0.013f, 0.98608f, -0.1254f, -0.1084f));\r\n flyCam.setMoveSpeed(100f);\r\n\r\n Material hiMat = MyAsset\r\n .createWireframeMaterial(assetManager, ColorRGBA.Red, 3f);\r\n Material loMat = MyAsset\r\n .createWireframeMaterial(assetManager, ColorRGBA.Green, 3f);\r\n\r\n // Add axes\r\n float axisLength = 30f;\r\n AxesVisualizer axes = new AxesVisualizer(assetManager, axisLength);\r\n axes.setLineWidth(AxesVisualizer.widthForSolid);\r\n rootNode.addControl(axes);\r\n axes.setEnabled(true);\r\n\r\n for (int i = 0; i < 1000; ++i) {\r\n float x = -50f + 100f * random.nextFloat();\r\n float z = -50f + 100f * random.nextFloat();\r\n float vz = test(x, z);\r\n\r\n PointMesh pointMesh = new PointMesh();\r\n pointMesh.setLocation(new Vector3f(x, 5f * vz, z));\r\n Geometry geometry = new Geometry(\"result\", pointMesh);\r\n if (vz > 1f) {\r\n geometry.setMaterial(hiMat);\r\n } else {\r\n geometry.setMaterial(loMat);\r\n }\r\n rootNode.attachChild(geometry);\r\n }\r\n }", "public void render(float delta){\n guiStage.act(delta);\n guiStage.draw();\n }", "public void begin() {\n\t\tview.setVisible(true);\n\t}", "public void draw(Canvas canvas) {\n scenes.get(ACTIVE_SCENE).draw(canvas);\n }", "public void begin() {\r\n GL11.glViewport(0, 0, colorTexture.getWidth(), colorTexture.getHeight());\r\n bind();\r\n }", "@Override\n protected void initScene() {\n setupCamera(0xff888888);\n\n /*\n * Create a Cube and display next to the cube\n * */\n setupCube();\n\n\n /*\n * Create a Sphere and place it initially 4 meters next to the cube\n * */\n setupSphere();\n\n\n /*\n * Create a Plane and place it initially 2 meters next to the cube\n * */\n setupPlane();\n setupImage();\n setupText();\n\n }", "private void render() {\n if (game.isEnded()) {\n if (endGui == null) {\n drawEndScreen();\n }\n\n return;\n }\n\n drawScore();\n drawSnake();\n drawFood();\n }", "private void buildScene() {\n for (int i = 0; i < Layer.LAYERCOUNT.ordinal(); i++) {\n SceneNode layer = new SceneNode();\n sceneLayers[i] = layer;\n\n sceneGraph.attachChild(layer);\n }\n\n // Prepare the tiled background\n Texture texture = textures.getTexture(Textures.DESERT);\n IntRect textureRect = new IntRect(worldBounds);\n texture.setRepeated(true);\n\n // Add the background sprite to the scene\n SpriteNode backgroundSprite = new SpriteNode(texture, textureRect);\n backgroundSprite.setPosition(worldBounds.left, worldBounds.top);\n sceneLayers[Layer.BACKGROUND.ordinal()].attachChild(backgroundSprite);\n\n // Add player's aircraft\n playerAircraft = new Aircraft(Aircraft.Type.EAGLE, textures);\n playerAircraft.setPosition(spawnPosition);\n playerAircraft.setVelocity(40.f, scrollSpeed);\n sceneLayers[Layer.AIR.ordinal()].attachChild(playerAircraft);\n\n // Add two escorting aircrafts, placed relatively to the main plane\n Aircraft leftEscort = new Aircraft(Aircraft.Type.RAPTOR, textures);\n leftEscort.setPosition(-80.f, 50.f);\n playerAircraft.attachChild(leftEscort);\n\n Aircraft rightEscort = new Aircraft(Aircraft.Type.RAPTOR, textures);\n rightEscort.setPosition(80.f, 50.f);\n playerAircraft.attachChild(rightEscort);\n }", "private void renderView() {\r\n\t\tSystem.out.println(this.currentView.render());\r\n\t}", "@Override\n public void render(float delta) {\n Gdx.gl.glClearColor(0.4f, 0.737f, 0.929f, 1);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\n checkForBack();\n\n stage.act();\n stage.draw();\n }", "public void render(){\n\t\tGL11.glPushMatrix();\n GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);\n\n /* Load the Identity Matrix to reset our drawing locations */\n GL11.glLoadIdentity(); \n \n /* Zoom */\n \tGL11.glScalef(zoom, zoom, 0);\n \t\n \t /* Position */\n \tGL11.glTranslatef(parent.width/zoom/2-position.x, parent.height/zoom/2-position.y, 0);\n\n \t/* Prepares draw list with graphics elements list to sort and render */\n \tdrawlist.clear();\n\t\tdrawlist.addAll(graphicsElements);\n\n\t\t/* Sort draw list, with respect to y of sprite */\n\t\tCollections.sort(drawlist, new Comparator<Sprite>() {\n\t\t\t@Override\n\t\t\tpublic int compare(Sprite s1, Sprite s2) {\n\t\t\t\t/* Sprites that not sort, like backgrounds or maps */\n\t\t\t\tif(!s1.sort)\n\t\t\t\t\treturn -1;\n\t\t\t\tif(!s2.sort)\n\t\t\t\t\treturn 1;\n\t\n\t\t\t\t\n\t\t if (s1.position.y+s1.height < s2.position.y+s2.height) {\n\t\t return -1;\n\t\t }else {\n\t\t return 1;\n\t\t }\n\t\t\t}\n\t\t});\n\t\t\n\t\t/* render each sprite already ordered of draw list */\n \tfor (Iterator<Sprite> iterator = drawlist.iterator(); iterator.hasNext();) {\n\t\t\tSprite s = iterator.next();\n\t\t\ts.render();\n \t}\n \t\n \tGL11.glPushMatrix();\n }", "public void buildInitialScene() {\n\t\t\n\t\t//Creation image background\n\t\tfinal String BACKGROUND_PATH = \"src/assets/img/temp_background.png\";\n\t\tthis.background = new GameImage(BACKGROUND_PATH);\n\n\t\t//Creation image Game Over\n\t\tfinal String GAME_OVER_PATH = \"src/assets/img/erro.png\";\n\t\tthis.errorScene = new Sprite(GAME_OVER_PATH);\n\n\t\t//Game over sprite center position\n\t\tthis.errorScene.x = spos.calculatePosition(WindowConstants.WIDTH, 2, this.errorScene, 2);\n\t\tthis.errorScene.y = spos.calculatePosition(WindowConstants.HEIGHT, 2, this.errorScene, 2);\n\t}", "@Override\n\tpublic void render() {\n\t\tGdx.gl.glViewport(0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n\t\tGdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT | GL20.GL_DEPTH_BUFFER_BIT);\n\n\n\t\t// TODO: begin the model batch with the current camera\n\t\t// render the instance of the model in the set-up environment using the model batch\n\t\t// end the model batch rendering process\n\t\tmodelBatch.begin(cam);\n\t\tmodelBatch.render(instance, environment);\n\t\tmodelBatch.end();\n\n\t\t// TODO: begin the sprite batch rendering\n\t\t// draw the new order logo at (50, 50, 200, 200)\n\t\t// end the sprite batch rendering process\n\t\tsprites.begin();\n\t\tsprites.draw(logo,50, 50, 200, 200);\n\t\tsprites.end();\n\t}", "private void initScene() {\n scene = new idx3d_Scene() {\n\n @Override\n public boolean isAdjusting() {\n return super.isAdjusting() || isAnimating() || isInStartedPlayer() || AbstractCube7Idx3D.this.isAdjusting();\n }\n\n @Override\n public void prepareForRendering() {\n validateAlphaBeta();\n validateScaleFactor();\n validateCube();\n validateStickersImage();\n validateAttributes(); // must be done after validateStickersImage!\n super.prepareForRendering();\n }\n @Override\n\t\tpublic /*final*/ void rotate(float dx, float dy, float dz) {\n super.rotate(dx, dy, dz);\n fireStateChanged();\n }\n };\n scene.setBackgroundColor(0xffffff);\n\n scaleTransform = new idx3d_Group();\n scaleTransform.scale(0.018f);\n\n for (int i = 0; i < locationTransforms.length; i++) {\n scaleTransform.addChild(locationTransforms[i]);\n }\n alphaBetaTransform = new idx3d_Group();\n alphaBetaTransform.addChild(scaleTransform);\n scene.addChild(alphaBetaTransform);\n\n scene.addCamera(\"Front\", idx3d_Camera.FRONT());\n scene.camera(\"Front\").setPos(0, 0, -4.9f);\n scene.camera(\"Front\").setFov(40f);\n\n scene.addCamera(\"Rear\", idx3d_Camera.FRONT());\n scene.camera(\"Rear\").setPos(0, 0, 4.9f);\n scene.camera(\"Rear\").setFov(40f);\n scene.camera(\"Rear\").roll((float) Math.PI);\n\n //scene.environment.ambient = 0x0;\n //scene.environment.ambient = 0xcccccc;\n scene.environment.ambient = 0x777777;\n //scene.addLight(\"Light1\",new idx3d_Light(new idx3d_Vector(0.2f,-0.5f,1f),0x888888,144,120));\n //scene.addLight(\"Light1\",new idx3d_Light(new idx3d_Vector(1f,-1f,1f),0x888888,144,120));\n // scene.addLight(\"Light2\",new idx3d_Light(new idx3d_Vector(1f,1f,1f),0x222222,100,40));\n //scene.addLight(\"Light2\",new idx3d_Light(new idx3d_Vector(-1f,1f,1f),0x222222,100,40));\n // scene.addLight(\"Light3\",new idx3d_Light(new idx3d_Vector(-1f,2f,1f),0x444444,200,120));\n scene.addLight(\"KeyLight\", new idx3d_Light(new idx3d_Vector(1f, -1f, 1f), 0xffffff, 0xffffff, 100, 100));\n scene.addLight(\"FillLightRight\", new idx3d_Light(new idx3d_Vector(-1f, 0f, 1f), 0x888888, 50, 50));\n scene.addLight(\"FillLightDown\", new idx3d_Light(new idx3d_Vector(0f, 1f, 1f), 0x666666, 50, 50));\n\n if (sharedLightmap == null) {\n sharedLightmap = scene.getLightmap();\n } else {\n scene.setLightmap(sharedLightmap);\n }\n }", "public void initRootLayout(){\n try{\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(Game.class.getResource(\"view/RootLayout.fxml\"));\n rootLayout = (BorderPane) loader.load();\n\n Scene scene = new Scene(rootLayout);\n \n primaryStage.setScene(scene);\n \n RootLayoutController controller = loader.getController();\n controller.setGame(this);\n \n primaryStage.show(); \n showCreateNewPlayer();\n }catch(IOException e){\n }\n }", "public void render(){ \r\n\t\tGL11.glPushMatrix();\r\n\t\tGL11.glTranslatef(x, y, z);\r\n\t\tGL11.glColor4f(Color.x, Color.y, Color.z, (float)(Math.random())); //Color.vx\r\n\t\tVGO v=getModel();\r\n\t\tv.orientPlain(r);\r\n\t\tv.orient(base);\r\n\t\t\r\n\t\ttFling+=0.01f;\r\n\t\tif(tFling>5){\r\n\t\t\ttHide=tActive;\r\n\t\t\ttActive+=0.1f;\r\n\t\t\tif(tHide>=1){\r\n\t\t\t\ttHide=0f;\r\n\t\t\t\ttActive=0.1f;\r\n\t\t\t}\r\n\t\t\ttFling=0f;\r\n\t\t}\r\n\t\t\r\n\t\tv.render();//tHide,tActive,tFling,1);\r\n\t\tGL11.glPopMatrix();\r\n\t}", "private void render() {\n final int numBuffers = 3;\n BufferStrategy bs = this.getBufferStrategy(); // starts value at null\n if (bs == null) {\n this.createBufferStrategy(numBuffers); // 3: buffer creations\n return;\n }\n Graphics g = bs.getDrawGraphics();\n\n g.setColor(Color.black); // stops flashing background\n g.fillRect(0, 0, WINDOW_WIDTH, WINDOW_HEIGHT);\n\n handler.render(g);\n\n if (gameStart == GAME_STATE.Game) {\n hud.render(g);\n } else if (gameStart == GAME_STATE.Menu || gameStart == GAME_STATE.Help || gameStart == GAME_STATE.GameOver || gameStart == GAME_STATE.GameVictory) {\n menu.render(g);\n }\n\n g.dispose();\n bs.show();\n }", "@Override\n public void render(float delta) {\n stage.act(delta);\n\n // (2) draws the result ----------------------------------------\n\n // clears the screen with given RGB color (black)\n Gdx.gl.glClearColor(0, 0, 0, 1);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\n // draws stage actors\n stage.draw();\n }", "public void render(){\n\t\tBufferStrategy bs = frame.getBufferStrategy();\n\t\tif(bs == null){\n\t\t\tframe.createBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\trenderGraphics(bs);\n\t}", "public void goToMainScene() {\n\n scenesSeen.clear();\n this.window.setScene(firstScene.createAndReturnScene());\n scenesSeen.add(firstScene);\n }", "@Override\n public void render() {\n float deltaTime = Math.min(Gdx.graphics.getDeltaTime(), 1.0f / 60.0f);\n\n // no ongoing transition\n if (currScreen != null) {\n currScreen.render(deltaTime);\n }\n }", "@Override\n public void render(float delta) {\n Gdx.gl.glClearColor(0f, 0f, 0f, 1);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\n // tell our stage to do actions and draw itself\n stage.act(Math.min(Gdx.graphics.getDeltaTime(), 1 / 30f));\n\n stage.getBatch().begin();\n backSprite.draw(stage.getBatch());\n stage.getBatch().end();\n\n stage.draw();\n\n\n }", "public void render(\n Graphics2D renderContext,\n Dimension2D renderSize,\n Shape renderObject\n )\n {\n if(isRootLevel())\n {\n // Initialize the context!\n renderContext.setRenderingHint(\n RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_ON\n );\n renderContext.setRenderingHint(\n RenderingHints.KEY_INTERPOLATION,\n RenderingHints.VALUE_INTERPOLATION_BICUBIC\n );\n\n // Paint the canvas background!\n renderContext.setColor(java.awt.Color.WHITE);\n renderContext.fillRect(0,0,(int)renderSize.getWidth(),(int)renderSize.getHeight());\n }\n\n try\n {\n this.renderContext = renderContext;\n this.renderSize = renderSize;\n this.renderObject = renderObject;\n\n // Scan this level for rendering!\n //if(index == 0)\n moveStart();\n //moveNext();\n while(moveNext());\n } finally {\n this.renderContext = null;\n this.renderSize = null;\n this.renderObject = null;\n }\n }", "public void render() {\r\n\t\t\r\n\t\tif (page >= 0 && page < pages.length) {\r\n\t\t\tTextures.renderQuad(pages[page][(updates / 90) % pages[page].length], 32, 32, 1024, 512);\r\n\t\t}\r\n\t}", "@Override\n public void render() {\n // Set the background color to opaque black\n Gdx.gl.glClearColor(0, 0, 0, 1);\n // Actually tell OpenGL to clear the screen\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n // First we begin a batch of points\n shapeRenderer.begin(ShapeType.Point);\n // Then we draw a point\n shapeRenderer.point(100, 100, 0);\n // And make sure we end the batch\n shapeRenderer.end();\n }", "public void render();", "private void render() {\n\t\tBufferStrategy buffStrat = display.getCanvas().getBufferStrategy();\n\t\tif(buffStrat == null) {\n\t\t\tdisplay.getCanvas().createBufferStrategy(3); //We will have 3 buffered screens for the game\n\t\t\treturn;\n\t\t}\n\n\t\t//A bufferstrategy prevents flickering since it preloads elements onto the display.\n\t\t//A graphics object is a paintbrush style object\n\t\tGraphics g = buffStrat.getDrawGraphics();\n\t\t//Clear the screen\n\t\tg.clearRect(0, 0, width, height); //Clear for further rendering\n\t\t\n\t\tif(State.getState() !=null) {\n\t\t\tState.getState().render(g);\n\t\t}\n\t\t//Drawings to be done in this space\n\t\t\n\t\t\n\t\t\n\t\tbuffStrat.show();\n\t\tg.dispose();\n\t}", "@Override\n public void start(Stage primaryStage) {\n\n // Creates the scene and displays it to the main window\n Scene withDrawPaneSetup = new Scene(withDrawPaneSetup(primaryStage), 1024, 768);\n primaryStage.setScene(withDrawPaneSetup);\n }", "public void display() {\t\t\n\t\tparent.pushStyle();\n\t\t\n\t\t//parent.noStroke();\n\t\t//parent.fill(255);\n\t\tparent.noFill();\n\t\tparent.ellipse(pos.x, pos.y, diam, diam);\n\t\tnodeSpin.drawNode(pos.x, pos.y, diam);\n\t\t\n\t\t//This should match what happens in the hover animation\n\t\tif (focused && userId >= 0) {\n\t\t\tparent.fill(Sequencer.colors[userId]);\n\t\t\tparent.ellipse(pos.x, pos.y, diam, diam);\n\t\t}\n\t\t\n\t\trunAnimations();\n\t\t\n\t\tparent.popStyle();\n\t}", "@Override\n\tpublic void prepareScreen() {\n\t\tgl.glColor3d(0.0, 0.0, 0.0);\n\t\tgl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);\n\t}", "public void moveStart(\n )\n {\n index = StartIndex;\n if(state == null)\n {\n if(parentLevel == null)\n {state = new GraphicsState(this);}\n else\n {state = parentLevel.state.clone(this);}\n }\n else\n {\n if(parentLevel == null)\n {state.initialize();}\n else\n {parentLevel.state.copyTo(state);}\n }\n\n notifyStart();\n\n refresh();\n }", "@Override\n\tpublic void render(float delta) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tGdx.gl.glClearColor(0, 0, 0.2f, 1);\n\t Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\t stage.act(Math.min(Gdx.graphics.getDeltaTime(), 1 / 30f));\n stage.draw();\n \n\t}", "public void render() {\n\t\tcam.update();\n\t\tcam.apply(Gdx.gl10);\n\n\t\t// TODO: encapsulate in the background class\n\t\t/*\n\t\t * float gravColour = (WorldGravity.G - WorldGravity.gravMin) /\n\t\t * (WorldGravity.gravMax - WorldGravity.gravMin);\n\t\t * \n\t\t * float red = gravColour; float blue = (1 - gravColour);\n\t\t * \n\t\t * Gdx.graphics.getGL10().glClearColor(red, 0f, blue, 1f);\n\t\t */\n\n\t\tGdx.graphics.getGL10().glClearColor(0.3f, 0f, 0.4f, 1f);\n\t\tGdx.graphics.getGL10().glClear(\n\t\t\t\tGL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);\n\n\t\t// spriteBatch has its own camera so the code below sets its projection\n\t\t// matrix to that of the camera\n\t\tspriteBatch.setProjectionMatrix(cam.combined);\n\t\t\n\t\t// all drawing using spriteBatch needs to be surrounded with begin() and\n\t\t// end()\n\t\tspriteBatch.begin();\n\t\t// put all the drawing methods here\n\t\t// *************************************\n\t\tdrawBackground();\n\t\t\n\t\tdrawButtons();\n\t\t\n\t\tdrawMenu();\n\n\t\tspriteBatch.end();\n\t}", "@Override\n public void render() {\n super.render();\n }", "@Override\n public void render() {\n super.render();\n }" ]
[ "0.7018862", "0.7007449", "0.6964836", "0.68916476", "0.68463904", "0.68462396", "0.6707337", "0.66795105", "0.66108", "0.66073585", "0.65842146", "0.6556545", "0.65564597", "0.64992243", "0.6472839", "0.6454703", "0.6426713", "0.64193255", "0.6398809", "0.63952196", "0.6390723", "0.63754857", "0.63736284", "0.6371913", "0.6370333", "0.6361342", "0.63355947", "0.63350594", "0.6332858", "0.63317364", "0.6326794", "0.63238364", "0.63200927", "0.63176024", "0.6277191", "0.6262062", "0.62562674", "0.6233484", "0.62087506", "0.61817396", "0.615273", "0.6150672", "0.6148011", "0.6138811", "0.6129795", "0.61280143", "0.6122814", "0.6098873", "0.6092725", "0.6083208", "0.608258", "0.6077434", "0.6061409", "0.6057027", "0.6044258", "0.6033226", "0.60321546", "0.60308874", "0.60275596", "0.6017057", "0.6013114", "0.6010572", "0.60075754", "0.60004175", "0.59995735", "0.59957564", "0.5992992", "0.5991985", "0.5987754", "0.598456", "0.5978791", "0.5978703", "0.59751004", "0.5959111", "0.5952819", "0.5946868", "0.59389365", "0.59348077", "0.59207493", "0.5895526", "0.58953756", "0.58951104", "0.58922166", "0.5891859", "0.5891536", "0.58732504", "0.58731234", "0.58714926", "0.5871253", "0.5867047", "0.58653873", "0.5840464", "0.58349323", "0.5832794", "0.58293796", "0.58186024", "0.58144474", "0.5813137", "0.58123076", "0.5800868", "0.5800868" ]
0.0
-1
Draws a specific mesh. If the mesh has been added to this renderer, it delegates to its correspond mesh renderer This function first passes the material to the shader. Currently it uses the shader variable "vColor" and passes it the ambient part of the material. When lighting is enabled, this method must be overriden to set the ambient, diffuse, specular, shininess etc. values to the shader
@Override public void drawMesh(String name, util.Material material, String textureName, final Matrix4f transformation) { if (meshRenderers.containsKey(name)) { GL3 gl = glContext.getGL().getGL3(); //get the color FloatBuffer fb4 = Buffers.newDirectFloatBuffer(4); FloatBuffer fb16 = Buffers.newDirectFloatBuffer(16); int loc = -1; loc = shaderLocations.getLocation("material.ambient"); if (loc >= 0) { gl.glUniform3fv(loc, 1, material.getAmbient().get(fb4)); } else { throw new IllegalArgumentException("No shader variable for \" material.ambient \""); } loc = shaderLocations.getLocation("material.diffuse"); if (loc >= 0) { gl.glUniform3fv(loc, 1, material.getDiffuse().get(fb4)); } else { throw new IllegalArgumentException("No shader variable for \" material.diffuse \""); } if (loc >= 0) { loc = shaderLocations.getLocation("material.specular"); gl.glUniform3fv(loc, 1, material.getSpecular().get(fb4)); } else { throw new IllegalArgumentException("No shader variable for \" material.specular \""); } loc = shaderLocations.getLocation("material.shininess"); if (loc >= 0) { gl.glUniform1f(loc, material.getShininess()); } else { throw new IllegalArgumentException("No shader variable for \" material.shininess \""); } loc = shaderLocations.getLocation("modelview"); if (loc >= 0) { gl.glUniformMatrix4fv(loc, 1, false, transformation.get(fb16)); } else { throw new IllegalArgumentException("No shader variable for \" modelview \""); } loc = shaderLocations.getLocation("normalmatrix"); if (loc>=0) { Matrix4f normalmatrix = new Matrix4f(transformation).invert().transpose(); gl.glUniformMatrix4fv(loc,1,false,normalmatrix.get(fb16)); } else { throw new IllegalArgumentException("No shader variable for \" normalmatrix \""); } if (textures.containsKey(textureName)) textures.get(textureName).getTexture().bind(gl); else if (textures.containsKey("white")) textures.get("white").getTexture().bind(gl); meshRenderers.get(name).draw(glContext); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void render(Shader shader, RenderingEngine renderingEngine) { meshRenderer.render(shader, renderingEngine); }", "@Override\n public void drawMesh(String name, util.Material material, String textureName,\n final Matrix4f transformation) {\n if (meshRenderers.containsKey(name)) {\n GL3 gl = glContext.getGL().getGL3();\n FloatBuffer fb16 = Buffers.newDirectFloatBuffer(16);\n FloatBuffer fb4 = Buffers.newDirectFloatBuffer(4);\n\n if (textures != null && textures.containsKey(textureName)) {\n gl.glEnable(gl.GL_TEXTURE_2D);\n gl.glActiveTexture(gl.GL_TEXTURE0);\n gl.glUniform1i(shaderLocations.getLocation(\"image\"), 0);\n\n Texture texture = textures.get(textureName).getTexture();\n\n texture.setTexParameteri(gl, GL.GL_TEXTURE_WRAP_S, GL.GL_REPEAT);\n texture.setTexParameteri(gl, GL.GL_TEXTURE_WRAP_T, GL.GL_REPEAT);\n texture.setTexParameteri(gl, GL.GL_TEXTURE_MIN_FILTER, GL.GL_LINEAR);\n texture.setTexParameteri(gl, GL.GL_TEXTURE_MAG_FILTER, GL.GL_LINEAR);\n\n texture.setMustFlipVertically(true);\n Matrix4f textureTrans = new Matrix4f();\n if (texture.getMustFlipVertically()) { //for flipping the image vertically\n textureTrans = new Matrix4f().translate(0, 1, 0).scale(1, -1, 1);\n }\n gl.glUniformMatrix4fv(shaderLocations.getLocation(\"texturematrix\"), 1, false,\n textureTrans.get(fb16));\n gl.glDisable(gl.GL_TEXTURE_2D);\n texture.bind(gl);\n }\n\n //get the color\n\n //set the color for all vertices to be drawn for this object\n\n int loc = shaderLocations.getLocation(\"material.ambient\");\n if (loc < 0) {\n throw new IllegalArgumentException(\"No shader variable for \\\" material.ambient \\\"\");\n }\n gl.glUniform3fv(loc, 1,\n material.getAmbient().get(fb4));\n\n loc = shaderLocations.getLocation(\"material.diffuse\");\n if (loc < 0) {\n throw new IllegalArgumentException(\"No shader variable for \\\" material.diffuse \\\"\");\n }\n gl.glUniform3fv(loc, 1,\n material.getDiffuse().get(fb4));\n\n loc = shaderLocations.getLocation(\"material.specular\");\n if (loc < 0) {\n throw new IllegalArgumentException(\"No shader variable for \\\" material.specular \\\"\");\n }\n gl.glUniform3fv(loc, 1,\n material.getSpecular().get(fb4));\n\n loc = shaderLocations.getLocation(\"material.shininess\");\n if (loc < 0) {\n throw new IllegalArgumentException(\"No shader variable for \\\" material.shininess \\\"\");\n }\n gl.glUniform1f(loc, material.getShininess());\n\n loc = shaderLocations.getLocation(\"modelview\");\n if (loc < 0) {\n throw new IllegalArgumentException(\"No shader variable for \\\" modelview \\\"\");\n }\n gl.glUniformMatrix4fv(loc, 1, false, transformation.get(fb16));\n\n loc = shaderLocations.getLocation(\"normalmatrix\");\n if (loc < 0) {\n throw new IllegalArgumentException(\"No shader variable for \\\" normalmatrix \\\"\");\n }\n Matrix4f normalmatrix = new Matrix4f(transformation);\n normalmatrix = normalmatrix.invert().transpose();\n gl.glUniformMatrix4fv(shaderLocations.getLocation(\"normalmatrix\"), 1,\n false, normalmatrix.get(fb16));\n\n meshRenderers.get(name).draw(glContext);\n }\n }", "private void initRender() {\n if (!isRenderable()) {\n throw new IllegalStateException(\"Make the mesh renderable before rendering!\");\n }\n \n //Set active texture if it exists\n if (material.hasTexture()) {\n glActiveTexture(GL_TEXTURE0);\n glBindTexture(GL_TEXTURE_2D, material.getTexture().getId());\n }\n\n if (material.hasNormalMap()) {\n glActiveTexture(GL_TEXTURE1);\n glBindTexture(GL_TEXTURE_2D, material.getNormalMap().getId());\n }\n\n //Draw mesh\n glBindVertexArray(vaoId);\n glEnableVertexAttribArray(0);\n glEnableVertexAttribArray(1);\n glEnableVertexAttribArray(2);\n glEnableVertexAttribArray(3);\n glEnableVertexAttribArray(4);\n }", "@Override\n protected void createMesh() {\n rayLight.getScope().add(camera);\n\n light = new PointLight(Color.GAINSBORO);\n light.setTranslateX(-300);\n light.setTranslateY(300);\n light.setTranslateZ(-2000);\n\n light2 = new PointLight(Color.ALICEBLUE);\n light2.setTranslateX(300);\n light2.setTranslateY(-300);\n light2.setTranslateZ(2000);\n\n light3 = new PointLight(Color.SPRINGGREEN);\n light3.setTranslateY(-2000);\n //create a target\n target1 = new Sphere(180);\n target1.setId(\"t1\");\n target1.setDrawMode(DrawMode.LINE);\n target1.setCullFace(CullFace.NONE);\n target1.setTranslateX(500);\n target1.setTranslateY(500);\n target1.setTranslateZ(500);\n target1.setMaterial(red);\n // create another target\n target2 = new Sphere(150);\n target2.setId(\"t2\");\n target2.setDrawMode(DrawMode.LINE);\n target2.setCullFace(CullFace.NONE);\n target2.setTranslateX(-500);\n target2.setTranslateY(-500);\n target2.setTranslateZ(-500);\n target2.setMaterial(blue);\n\n origin = new Box(20, 20, 20);\n origin.setDrawMode(DrawMode.LINE);\n origin.setCullFace(CullFace.NONE);\n \n model = new Group(target1, target2, origin, light, light2, light3, rayLight);\n }", "private void drawMesh(GL10 gl)\n\t{\n\t\t// Point to our buffers\n\t\tgl.glEnableClientState(GL10.GL_VERTEX_ARRAY);\n\t\tgl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);\n\t\t\n\t\t// Set the face rotation\n\t\tgl.glFrontFace(GL10.GL_CW);\n\t\t\n\t\t// Point to our vertex buffer\n\t\tgl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexBuffer);\n\t\tgl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, textureBuffer);\n\t\t\n\t\t// Draw the vertices as triangle strip\n\t\t//gl.glDrawArrays(GL10.GL_TRIANGLE_STRIP, 0, vertices.length / 3);\n\t\tgl.glDrawArrays(GL10.GL_TRIANGLE_STRIP, 0, vertexCount / 3);\n\n\t\t//Disable the client state before leaving\n\t\tgl.glDisableClientState(GL10.GL_VERTEX_ARRAY);\n\t\tgl.glDisableClientState(GL10.GL_TEXTURE_COORD_ARRAY);\n\t}", "public void draw(int posHandle, int colourHandle, int normalHandle, int mvpHandle, int mvHandle, int lightHandle, float[] mvpMat, float[] viewMat, float[] projMat, float[] lightEye) {\n // Pass in the position information\n mCubeVertices.position(0);\n GLES20.glVertexAttribPointer(posHandle, 3, GLES20.GL_FLOAT, false,\n 0, mCubeVertices);\n GLES20.glEnableVertexAttribArray(posHandle);\n // Pass in the colour information\n mCubeColours.position(0);\n GLES20.glVertexAttribPointer(colourHandle, 4, GLES20.GL_FLOAT, false,\n 0, mCubeColours);\n GLES20.glEnableVertexAttribArray(colourHandle);\n // Pass in the normal information\n mCubeNormals.position(0);\n GLES20.glVertexAttribPointer(normalHandle, 3, GLES20.GL_FLOAT, false,\n 0, mCubeNormals);\n GLES20.glEnableVertexAttribArray(normalHandle);\n // This multiplies the view matrix by the model matrix, and stores the result in the MVP matrix\n Matrix.multiplyMM(mvpMat, 0, viewMat, 0, mModelMatrix, 0);\n // Pass in the modelview matrix.\n GLES20.glUniformMatrix4fv(mvHandle, 1, false, mvpMat, 0);\n // This multiplies the modelview matrix by the projection matrix, and stores the result in the MVP matrix\n Matrix.multiplyMM(mvpMat, 0, projMat, 0, mvpMat, 0);\n // Pass in the combined matrix.\n GLES20.glUniformMatrix4fv(mvpHandle, 1, false, mvpMat, 0);\n // Pass in the light position in eye space.\n GLES20.glUniform3f(lightHandle, lightEye[0], lightEye[1], lightEye[2]);\n // Draw the cube.\n GLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, 36);\n\n }", "public void draw()\n\t{\n\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, texture_id);\n\t\tdrawMesh(gl);\n\t}", "public void setMaterial(Material mat)\r\n\t{\r\n\t\tgl.glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT, mat.ambient);\r\n\t\tgl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, mat.diffuse);\r\n\t\tgl.glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, mat.specular);\r\n\t\tgl.glMaterialf(GL_FRONT_AND_BACK, GL_SHININESS, 0.8F);\r\n\t\tgl.glColor3f(mat.diffuse[0],mat.diffuse[1],mat.diffuse[2]);\r\n\t}", "public void ApplyMaterial(TF3D_Material mat)\n\t{\n\t\tif (mat.typ == F3D.MAT_TYPE_TEXTURE)\n\t\t{\n\n\t\t\tthis.ResetMaterial();\n\t\t\t\n\t\t\tif (mat.bAlphaTest)\n\t\t\t{\n\t\t\t\tglEnable(GL_ALPHA_TEST);\n\t\t\t} else\n\t\t\t{\n\t\t\t\tglDisable(GL_ALPHA_TEST);\n\t\t\t}\n\n\t\t\tif (mat.bDepthTest)\n\t\t\t{\n\t\t\t\tglEnable(GL_DEPTH_TEST);\n\t\t\t} else\n\t\t\t{\n\t\t\t\tglDisable(GL_DEPTH_TEST);\n\t\t\t}\n\n\t\t\tif (mat.bFaceCulling)\n\t\t\t{\n\t\t\t\tglEnable(GL_CULL_FACE);\n\t\t\t} else\n\t\t\t{\n\t\t\t\tglDisable(GL_CULL_FACE);\n\t\t\t}\n\n\t\t\tif (F3D.Config.use_gl_light)\n\t\t\t{\n\t\t\t\tglMaterial(GL_FRONT_AND_BACK, GL_AMBIENT, F3D.GetBuffer.Float(mat.colors.ambient));\n\t\t\t\tglMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE, F3D.GetBuffer.Float(mat.colors.diffuse));\n\t\t\t\tglMaterial(GL_FRONT_AND_BACK, GL_SPECULAR, F3D.GetBuffer.Float(mat.colors.specular));\n\t\t\t\tglMaterial(GL_FRONT_AND_BACK, GL_EMISSION, F3D.GetBuffer.Float(mat.colors.emissive));\n\t\t\t\tglMaterialf(GL_FRONT, GL_SHININESS, mat.colors.shinisess);\n\n\t\t\t} else\n\t\t\t{\n\t\t\t\tglColor4f(mat.colors.diffuse[0], mat.colors.diffuse[1], mat.colors.diffuse[2], mat.colors.diffuse[3]);\n\t\t\t}\n\n\t\t\tfor (int u = 0; u < F3D.MAX_TMU; u++)\n\t\t\t{\n\t\t\t\tif (mat.texture_unit[u].bEvent)\n\t\t\t\t{\n\t\t\t\t\tF3D.MaterialEvents.Apply(u, mat.texture_unit[u].event_id);\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tF3D.MaterialEvents.ResetEvent(u);\n\t\t\t\t}\n\n\t\t\t\tif (mat.texture_unit[u].bTexture)\n\t\t\t\t{\n\t\t\t\t\tF3D.Textures.ActivateLayer(u);\n\t\t\t\t\tF3D.Textures.Bind(mat.texture_unit[u].texture_id);\n\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tF3D.Textures.DeactivateLayer(u);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\t// SHADER\n\t\tif (mat.typ == F3D.MAT_TYPE_SHADER)\n\t\t{\n\n\t\t\tif (mat.bAlphaTest)\n\t\t\t{\n\t\t\t\tglEnable(GL_ALPHA_TEST);\n\t\t\t} else\n\t\t\t{\n\t\t\t\tglDisable(GL_ALPHA_TEST);\n\t\t\t}\n\n\t\t\tif (mat.bDepthTest)\n\t\t\t{\n\t\t\t\tglEnable(GL_DEPTH_TEST);\n\t\t\t} else\n\t\t\t{\n\t\t\t\tglDisable(GL_DEPTH_TEST);\n\t\t\t}\n\n\t\t\tif (mat.bFaceCulling)\n\t\t\t{\n\t\t\t\tglEnable(GL_CULL_FACE);\n\t\t\t} else\n\t\t\t{\n\t\t\t\tglDisable(GL_CULL_FACE);\n\t\t\t}\n\n\t\t\t\n\t\t\t\tglMaterial(GL_FRONT_AND_BACK, GL_AMBIENT, F3D.GetBuffer.Float(mat.colors.ambient));\n\t\t\t\tglMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE, F3D.GetBuffer.Float(mat.colors.diffuse));\n\t\t\t\tglMaterial(GL_FRONT_AND_BACK, GL_SPECULAR, F3D.GetBuffer.Float(mat.colors.specular));\n\t\t\t\tglMaterial(GL_FRONT_AND_BACK, GL_EMISSION, F3D.GetBuffer.Float(mat.colors.emissive));\n\t\t\t\tglMaterialf(GL_FRONT, GL_SHININESS, mat.colors.shinisess);\n\n\t\t\t\n\n\t\t\tif (mat.use_shader)\n\t\t\t{\n\t\t\t\tF3D.Shaders.UseProgram(mat.shader_id);\n\t\t\t}\n\t\t\t\n\t\t\tfor (int u = 0; u < F3D.MAX_TMU; u++)\n\t\t\t{\n\t\t\t\tif (mat.texture_unit[u].bEvent)\n\t\t\t\t{\n\t\t\t\t\tF3D.MaterialEvents.Apply(u, mat.texture_unit[u].event_id);\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tF3D.MaterialEvents.ResetEvent(u);\n\t\t\t\t}\n\n\t\t\t\tif (mat.texture_unit[u].bTexture)\n\t\t\t\t{\n\t\t\t\t\tF3D.Textures.ActivateLayer(u);\n\t\t\t\t\tF3D.Textures.Bind(mat.texture_unit[u].texture_id);\n\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tF3D.Textures.DeactivateLayer(u);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\t\n\t}", "public void addMesh(Mesh mesh, Genericmaterial material)\n\t{\n\t\tmeshes.add(mesh);\n\t\tmats.add(material);\n\t\tif (transfh != null) {\n\t\t\taddMeshToBoundingbox(mesh);\n\t\t}\n\t}", "public void drawCube() {\r\n GLES20.glUseProgram(program);\r\n\r\n GLES20.glUniform3fv(lightPosParam, 1, lightPosInEyeSpace, 0);\r\n\r\n // Set the Model in the shader, used to calculate lighting\r\n GLES20.glUniformMatrix4fv(modelParam, 1, false, model, 0);\r\n\r\n // Set the ModelView in the shader, used to calculate lighting\r\n GLES20.glUniformMatrix4fv(modelViewParam, 1, false, modelView, 0);\r\n\r\n // Set the position of the cube\r\n GLES20.glVertexAttribPointer(positionParam, COORDS_PER_VERTEX, GLES20.GL_FLOAT, false, 0, vertices);\r\n\r\n // Set the ModelViewProjection matrix in the shader.\r\n GLES20.glUniformMatrix4fv(modelViewProjectionParam, 1, false, modelViewProjection, 0);\r\n\r\n // Set the normal positions of the cube, again for shading\r\n GLES20.glVertexAttribPointer(normalParam, 3, GLES20.GL_FLOAT, false, 0, normals);\r\n GLES20.glVertexAttribPointer(colorParam, 4, GLES20.GL_FLOAT, false, 0, isLookingAtObject(this) ? cubeFoundColors : colors);\r\n\r\n GLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, 36);\r\n checkGLError(\"Drawing cube\");\r\n }", "private void materialSetup(GL gl)\n {\n\tfloat white[] = { 1.0f, 1.0f, 1.0f, 1.0f };\n\tfloat black[] = { 0.0f, 0.0f, 0.0f, 1.0f };\n\tfloat dim[] = { 0.1f, 0.1f, 0.1f, 1.0f };\n\t\n\t// Set up material and light\n\tgl.glMaterialfv(GL.GL_FRONT_AND_BACK, GL.GL_AMBIENT, dim, 0);\n\tgl.glMaterialfv(GL.GL_FRONT_AND_BACK, GL.GL_DIFFUSE, white, 0);\n\tgl.glMaterialfv(GL.GL_FRONT_AND_BACK, GL.GL_SPECULAR, dim, 0);\n\tgl.glMaterialf(GL.GL_FRONT_AND_BACK, GL.GL_SHININESS, 5);\n\n\t// Set light color\n \tgl.glLightfv(GL.GL_LIGHT0, GL.GL_AMBIENT, dim, 0);\n \tgl.glLightfv(GL.GL_LIGHT0, GL.GL_DIFFUSE, white, 0);\n \tgl.glLightfv(GL.GL_LIGHT0, GL.GL_SPECULAR, black, 0);\n\n\t// Turn on light and lighting\n\tgl.glEnable(GL.GL_LIGHT0);\n\tgl.glEnable(GL.GL_LIGHTING);\n\n\t// Allow glColor() to affect current diffuse material\n\tgl.glColorMaterial(GL.GL_FRONT_AND_BACK, GL.GL_DIFFUSE);\n\tgl.glEnable(GL.GL_COLOR_MATERIAL);\n }", "private void initMesh() {\n\t\tfloat[] vertices = { -1, -1, 0, 1, -1, 0, -1, 1, 0, 1, 1, 0 };\n\t\tfloat[] texCoords = { 0, 0, 1, 0, 0, 1, 1, 1 };\n\t\tint[] indices = { 0, 1, 2, 3 };\n\t\tmesh = new StaticMesh(gl, vertices, null, texCoords, indices);\n\t\tmesh.setPositionIndex(shader.getAttributeLocation(\"aVertexPosition\"));\n\t\tmesh.setNormalIndex(-1);\n\t\tmesh.setTexCoordIndex(shader.getAttributeLocation(\"aTextureCoord\"));\n\t\tmesh.setBeginMode(BeginMode.TRIANGLE_STRIP);\n\t}", "@Override\n\tpublic void render3D(Shader shader, RenderingEngine engine) {\n\t\t\n\t}", "protected void initRender() {\n glActiveTexture(GL_TEXTURE0);\n // Bind the texture\n glBindTexture(GL_TEXTURE_2D, texture.getId());\n\n // Draw the mesh\n glBindVertexArray(vaoId);\n glEnableVertexAttribArray(0);\n glEnableVertexAttribArray(1);\n }", "public void draw(float[] mvpMatrix, int note) {\n GLES30.glUseProgram(mProgram);\n MyGLRenderer.checkGlError(\"glUseProgram\");\n\n // get handle to vertex shader's vPosition member\n mPositionHandle = GLES30.glGetAttribLocation(mProgram, \"vPosition\");\n\n // Enable a handle to the triangle vertices\n GLES30.glEnableVertexAttribArray(mPositionHandle);\n\n // Prepare the triangle coordinate data\n //Matrix.multiplyMV(vertexBuffer, 0, scaleMatrix, 0, vertexBuffer, 0);\n GLES30.glVertexAttribPointer(mPositionHandle, COORDS_PER_VERTEX,\n GLES30.GL_FLOAT, false,\n vertexStride, vertexBuffer);\n \n // get handle to fragment shader's vColor member\n //mColorHandle = GLES30.glGetUniformLocation(mProgram, \"vColor\");\n\n mTextureUniformHandle = GLES30.glGetUniformLocation(mProgram, \"u_Texture\");\n mTextureCoordinateHandle = GLES30.glGetAttribLocation(mProgram, \"a_TexCoordinate\");\n \n // Set the active texture unit to texture unit 1. (0 reserved for FBO?)\n GLES30.glActiveTexture(GLES30.GL_TEXTURE0);\n \n // Bind the texture to this unit.\n GLES30.glBindTexture(GLES30.GL_TEXTURE_2D, mTextureDataHandles[note]);\n \n // Tell the texture uniform sampler to use this texture in the shader by binding to texture unit 0.\n GLES30.glUniform1i(mTextureUniformHandle, 0);\n \n // Set color for drawing the triangle\n //GLES30.glUniform4fv(mColorHandle, 1, color, 0);\n\n // Pass in the texture coordinate information\n mCubeTextureCoordinates.position(0);\n GLES30.glVertexAttribPointer(mTextureCoordinateHandle, mTextureCoordinateDataSize, GLES30.GL_FLOAT, false, \n \t\t0, mCubeTextureCoordinates);\n \n GLES30.glEnableVertexAttribArray(mTextureCoordinateHandle);\n \n \n // get handle to shape's transformation matrix\n mMVPMatrixHandle = GLES30.glGetUniformLocation(mProgram, \"uMVPMatrix\");\n MyGLRenderer.checkGlError(\"glGetUniformLocation\");\n\n // Apply the projection and view transformation\n GLES30.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mvpMatrix, 0);\n MyGLRenderer.checkGlError(\"glUniformMatrix4fv\");\n\n // Draw the square\n GLES30.glDrawElements(GLES30.GL_TRIANGLES, drawOrder.length,\n GLES30.GL_UNSIGNED_SHORT, drawListBuffer);\n\n // Disable vertex array\n GLES30.glDisableVertexAttribArray(mPositionHandle);\n }", "public void render(\n int positionAttribute,\n int colorAttribute,\n int normalAttribute,\n boolean doWireframeRendering) {\n GLES20.glDisable(GLES20.GL_CULL_FACE);\n\n // TODO : make sure the buffer is NOT released before the Indexes are bound!!\n /*\n * draw using the IBO - index buffer object,\n * and the revised vertex data that has\n * corrected normals for the body.\n */\n if ((vbo[0] > 0) && (ibo[0] > 0)) {\n GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, vbo[0]);\n // associate the attributes with the bound buffer\n GLES20.glVertexAttribPointer(positionAttribute,\n POSITION_DATA_SIZE_IN_ELEMENTS,\n GLES20.GL_FLOAT,\n false,\n STRIDE_IN_BYTES,\n 0); // offset\n GLES20.glEnableVertexAttribArray(positionAttribute);\n\n GLES20.glVertexAttribPointer(normalAttribute, NORMAL_DATA_SIZE_IN_ELEMENTS, GLES20.GL_FLOAT, false,\n STRIDE_IN_BYTES, POSITION_DATA_SIZE_IN_ELEMENTS * BYTES_PER_FLOAT);\n GLES20.glEnableVertexAttribArray(normalAttribute);\n\n GLES20.glVertexAttribPointer(colorAttribute, COLOR_DATA_SIZE_IN_ELEMENTS, GLES20.GL_FLOAT, false,\n STRIDE_IN_BYTES, (POSITION_DATA_SIZE_IN_ELEMENTS + NORMAL_DATA_SIZE_IN_ELEMENTS) * BYTES_PER_FLOAT);\n GLES20.glEnableVertexAttribArray(colorAttribute);\n\n // Draw\n int todo;\n if (doWireframeRendering) {\n todo = GLES20.GL_LINES;\n } else {\n todo = GLES20.GL_TRIANGLES;\n }\n\n /*\n * draw using the IBO - index buffer object\n */\n GLES20.glBindBuffer(GLES20.GL_ELEMENT_ARRAY_BUFFER, ibo[0]);\n GLES20.glDrawElements(\n todo, /* GLES20.GL_TRIANGLES, */\n mTriangleIndexCount,\n GLES20.GL_UNSIGNED_SHORT,\n 1);\n GLES20.glBindBuffer(GLES20.GL_ELEMENT_ARRAY_BUFFER, 0); // release\n GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, 0); // release\n }\n // Debug: Use culling to remove back faces.\n GLES20.glEnable(GLES20.GL_CULL_FACE);\n }", "public Shape(TriangleMesh mesh) {\n super(mesh);\n this.mesh = mesh;\n setVisuals(\"purple\");\n }", "public Shape(MeshView mv) {\n Mesh m = mv.getMesh();\n\n if (m instanceof TriangleMesh) {\n this.mesh = (TriangleMesh) m;\n super.setMesh(m);\n } else {\n throw new IllegalArgumentException(\"Constructing Shape from invalid kind of mesh: \" + m);\n }\n\n setVisuals(\"purple\");\n }", "private void drawLight() {\n final int pointMVPMatrixHandle = GLES20.glGetUniformLocation(mPointProgramHandle, \"u_MVPMatrix\");\n final int pointPositionHandle = GLES20.glGetAttribLocation(mPointProgramHandle, \"a_Position\");\n\n // Pass in the position.\n GLES20.glVertexAttrib3f(pointPositionHandle, mLightPosInModelSpace[0], mLightPosInModelSpace[1], mLightPosInModelSpace[2]);\n\n // Since we are not using a buffer object, disable vertex arrays for this attribute.\n GLES20.glDisableVertexAttribArray(pointPositionHandle);\n\n // Pass in the transformation matrix.\n Matrix.multiplyMM(mMVPMatrix, 0, mViewMatrix, 0, mLightModelMatrix, 0);\n Matrix.multiplyMM(mTemporaryMatrix, 0, mProjectionMatrix, 0, mMVPMatrix, 0);\n System.arraycopy(mTemporaryMatrix, 0, mMVPMatrix, 0, 16);\n GLES20.glUniformMatrix4fv(pointMVPMatrixHandle, 1, false, mMVPMatrix, 0);\n\n // Draw the point.\n GLES20.glDrawArrays(GLES20.GL_POINTS, 0, 1);\n }", "public void simpleDraw(int posHandle, int colourHandle, int mvpHandle, float[] mvpMat, float[] viewMat, float[] projMat) {\n // Pass in the position information\n mCubeVertices.position(0);\n GLES20.glVertexAttribPointer(posHandle, 3, GLES20.GL_FLOAT, false,\n 0, mCubeVertices);\n GLES20.glEnableVertexAttribArray(posHandle);\n // Pass in the color information\n mCubeColours.position(0);\n GLES20.glVertexAttribPointer(colourHandle, 4, GLES20.GL_FLOAT, false,\n 0, mCubeColours);\n GLES20.glEnableVertexAttribArray(colourHandle);\n // This multiplies the view matrix by the model matrix, and stores the result in the MVP matrix\n Matrix.multiplyMM(mvpMat, 0, viewMat, 0, mModelMatrix, 0);\n // This multiplies the modelview matrix by the projection matrix, and stores the result in the MVP matrix\n Matrix.multiplyMM(mvpMat, 0, projMat, 0, mvpMat, 0);\n // Pass in the combined matrix.\n GLES20.glUniformMatrix4fv(mvpHandle, 1, false, mvpMat, 0);\n // Draw the cube.\n if(!sMesh){\n GLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, 36);\n }else{\n GLES20.glDrawArrays(GLES20.GL_LINES, 0, 36);\n }\n }", "public void draw() {\n\t\t\tfloat[] vertices = new float[mVertices.size()];\n\t\t\tfor (int i = 0; i < vertices.length; i++)\n\t\t\t\tvertices[i] = mVertices.get(i);\n\t\t\t\n\t\t\tfloat[] textureCoords = null;\n\t\t\tif (mTextureID != 0) {\n\t\t\t\ttextureCoords = new float[mTextureCoords.size()];\n\t\t\t\tfor (int i = 0; i < textureCoords.length; i++)\n\t\t\t\t\ttextureCoords[i] = mTextureCoords.get(i);\n\t\t\t}\n\t\t\t\n\t\t\tshort[] indices = new short[mIndices.size()];\n\t\t\tfor (int i = 0; i < indices.length; i++)\n\t\t\t\tindices[i] = mIndices.get(i);\n\t\t\t\n\t\t\t// Get OpenGL\n\t\t\tGL10 gl = GameGraphics2D.this.mGL;\n\t\t\t\n\t\t\t// Set render state\n\t\t\tgl.glDisable(GL10.GL_LIGHTING);\n\t\t\tgl.glEnable(GL10.GL_DEPTH_TEST);\n\t\t\tgl.glEnable(GL10.GL_BLEND);\n\n\t\t\tif (mBlendingMode == BLENDING_MODE.ALPHA)\n\t\t\t\tgl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);\n\t\t\telse if (mBlendingMode == BLENDING_MODE.ADDITIVE)\n\t\t\t\tgl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE);\n\t\t\t\n\t\t\tif (mTextureID != 0)\n\t\t\t\tgl.glEnable(GL10.GL_TEXTURE_2D);\n\t\t\telse\n\t\t\t\tgl.glDisable(GL10.GL_TEXTURE_2D);\n\t\t\t\n\t\t\t// Draw the batch of textured triangles\n\t\t\tgl.glColor4f(Color.red(mColour) / 255.0f,\n\t\t\t\t\t\t Color.green(mColour) / 255.0f,\n\t\t\t\t\t\t Color.blue(mColour) / 255.0f,\n\t\t\t\t\t\t Color.alpha(mColour) / 255.0f);\n\t\t\t\n\t\t\tif (mTextureID != 0) {\n\t\t\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID);\n\t\t\t\tgl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, GameGraphics.getFloatBuffer(textureCoords));\n\t\t\t}\n\t\t\t\n\t\t\tgl.glVertexPointer(3, GL10.GL_FLOAT, 0, GameGraphics.getFloatBuffer(vertices));\n\t\t\tgl.glDrawElements(GL10.GL_TRIANGLES, indices.length,\n\t\t\t\t\tGL10.GL_UNSIGNED_SHORT, GameGraphics.getShortBuffer(indices));\n\t\t}", "public void render(int i, Shader shader){\n\t\ttex[i].bind();\n\t\tshader.enable();\n\t\tshader.setUniformMat4f(\"ml_matrix\", Matrix4f.translate(position));\n\t\tVAO.render();\n\t\tshader.disable();\n\t\ttex[i].unbind();\n\t}", "public void drawFloor() {\r\n GLES20.glUseProgram(program);\r\n\r\n // Set ModelView, MVP, position, normals, and color.\r\n GLES20.glUniform3fv(lightPosParam, 1, lightPosInEyeSpace, 0);\r\n GLES20.glUniformMatrix4fv(modelParam, 1, false, model, 0);\r\n GLES20.glUniformMatrix4fv(modelViewParam, 1, false, modelView, 0);\r\n GLES20.glUniformMatrix4fv(modelViewProjectionParam, 1, false, modelViewProjection, 0);\r\n GLES20.glVertexAttribPointer(positionParam, COORDS_PER_VERTEX, GLES20.GL_FLOAT, false, 0, vertices);\r\n GLES20.glVertexAttribPointer(normalParam, 3, GLES20.GL_FLOAT, false, 0, normals);\r\n GLES20.glVertexAttribPointer(colorParam, 4, GLES20.GL_FLOAT, false, 0, colors);\r\n\r\n GLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, 6);\r\n\r\n checkGLError(\"drawing floor\");\r\n }", "@Override\n\tpublic void render(Entity camera, Graphics graphics, EntityManager entityManager)\n\t{\n\t\tgraphics.bindFrameBuffer(frameBuffer);\n\t\tgraphics.setViewport(0, 0, colorBuffer.getTexture().width(), colorBuffer.getTexture().height());\n\t\tgraphics.drawBuffers(colorBuffer, depthBuffer);\n\t\n\t\tgraphics.setClearColor(0.0f, 0.1f, 0.12f, 0.0f);\n\t\tgraphics.clearBuffers();\n\t\t\n\t\tdrawShader.bind(graphics);\n\n\t\tGL11.glEnable(GL11.GL_DEPTH_TEST);\n\t\tGL11.glDepthFunc(GL11.GL_LESS);\n\t\tGL11.glEnable(GL11.GL_CULL_FACE);\n\t\tGL11.glCullFace(GL11.GL_BACK);\n\t\tGL11.glEnable(GL11.GL_BLEND);\n\t\tGL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);\n\t\t\n\t\t// View-Perspective\n\t\t\n\t\tCameraComponent cameraComponent = camera.getComponent(PerspectiveCameraComponent.class);\n\t\tTransformComponent cameraTransform = camera.getComponent(TransformComponent.class);\n\t\t\n\t\tMatrix4f view = cameraTransform.getViewMatrix();\n\t\tMatrix4f perspective = cameraComponent.projection;\n\t\tMatrix4f model = new Matrix4f();\n\t\t\n\t\tUniform modelUniform = graphics.getUniform(drawShader, \"model\");\n\n\t\tgraphics.setUniform(graphics.getUniform(drawShader, \"cameraPosition\"), cameraTransform.position);\n\t\t\n\t\tgraphics.setUniform(graphics.getUniform(drawShader, \"ambientColor\"), new Vector3f(1.0f, 1.0f, 1.0f));\n\t\tgraphics.setUniform(graphics.getUniform(drawShader, \"ambientIntensity\"), 0.0f);\n\t\t\n\t\tgraphics.setUniform(graphics.getUniform(drawShader, \"view\"), view);\n\t\tgraphics.setUniform(graphics.getUniform(drawShader, \"perspective\"), perspective);\n\t\t\n\t\t// Directional Lights\n\t\t\n\t\tIterator<Long> dirLightEntityIterator = entityManager.getComponentTable().getEntityIterator(DirectionalLightComponent.class);\n\t\t\n\t\tif(dirLightEntityIterator != null)\n\t\t{\n\t\t\tint dirLightCount = 0;\n\t\t\twhile(dirLightEntityIterator.hasNext())\n\t\t\t{\n\t\t\t\tLong entityID = dirLightEntityIterator.next();\n\t\t\t\t\n\t\t\t\tDirectionalLightComponent dirLight = entityManager.getComponent(DirectionalLightComponent.class, entityID);\n\t\t\t\t\n\t\t\t\tgraphics.setUniform(graphics.getUniform(drawShader, \"dirLights[\" + dirLightCount + \"].direction\"), dirLight.direction);\n\t\t\t\tgraphics.setUniform(graphics.getUniform(drawShader, \"dirLights[\" + dirLightCount + \"].color\"), dirLight.color);\n\t\t\t\tgraphics.setUniform(graphics.getUniform(drawShader, \"dirLights[\" + dirLightCount + \"].intensity\"), dirLight.intensity);\n\t\t\t\t\n\t\t\t\tdirLightCount++;\n\t\t\t}\n\t\t\t\n\t\t\tgraphics.setUniform(graphics.getUniform(drawShader, \"dirLightCount\"), dirLightCount);\n\t\t}\n\t\t\n\t\t// Spot Lights\n\t\t\n\t\tIterator<Long> spotLightEntityIterator = entityManager.getComponentTable().getEntityIterator(SpotLightComponent.class);\n\t\n\t\tif(spotLightEntityIterator != null)\n\t\t{\n\t\t\tint spotLightCount = 0;\n\t\t\twhile(spotLightEntityIterator.hasNext())\n\t\t\t{\n\t\t\t\tLong entityID = spotLightEntityIterator.next();\n\t\t\t\t\n\t\t\t\tSpotLightComponent spotLight = entityManager.getComponent(SpotLightComponent.class, entityID);\n\t\t\t\tTransformComponent tansform = entityManager.getComponent(TransformComponent.class, entityID);\n\t\t\t\t\n\t\t\t\tgraphics.setUniform(graphics.getUniform(drawShader, \"spotLights[\" + spotLightCount + \"].position\"), tansform.position);\n\t\t\t\tgraphics.setUniform(graphics.getUniform(drawShader, \"spotLights[\" + spotLightCount + \"].direction\"), spotLight.direction);\n\t\t\t\tgraphics.setUniform(graphics.getUniform(drawShader, \"spotLights[\" + spotLightCount + \"].attenuation\"), spotLight.attenuation);\n\t\t\t\tgraphics.setUniform(graphics.getUniform(drawShader, \"spotLights[\" + spotLightCount + \"].color\"), spotLight.color);\n\t\t\t\tgraphics.setUniform(graphics.getUniform(drawShader, \"spotLights[\" + spotLightCount + \"].radius\"), spotLight.radius);\n\t\t\t\tgraphics.setUniform(graphics.getUniform(drawShader, \"spotLights[\" + spotLightCount + \"].intensity\"), spotLight.intensity);\n\t\t\t\t\n\t\t\t\tspotLightCount++;\n\t\t\t}\n\t\t\t\n\t\t\tgraphics.setUniform(graphics.getUniform(drawShader, \"spotLightCount\"), spotLightCount);\n\t\t}\n\t\t\n\t\t// Point Lights\n\t\t\n\t\tIterator<Long> pointLightEntityIterator = entityManager.getComponentTable().getEntityIterator(PointLightComponent.class);\n\t\n\t\tif(pointLightEntityIterator != null)\n\t\t{\n\t\t\tint pointLightCount = 0;\n\t\t\twhile(pointLightEntityIterator.hasNext())\n\t\t\t{\n\t\t\t\tLong entityID = pointLightEntityIterator.next();\n\t\t\t\t\n\t\t\t\tPointLightComponent pointLight = entityManager.getComponent(PointLightComponent.class, entityID);\n\t\t\t\tTransformComponent tansform = entityManager.getComponent(TransformComponent.class, entityID);\n\t\t\t\t\n\t\t\t\tgraphics.setUniform(graphics.getUniform(drawShader, \"pointLights[\" + pointLightCount + \"].position\"), tansform.position);\n\t\t\t\tgraphics.setUniform(graphics.getUniform(drawShader, \"pointLights[\" + pointLightCount + \"].attenuation\"), pointLight.attenuation);\n\t\t\t\tgraphics.setUniform(graphics.getUniform(drawShader, \"pointLights[\" + pointLightCount + \"].color\"), pointLight.color);\n\t\t\t\tgraphics.setUniform(graphics.getUniform(drawShader, \"pointLights[\" + pointLightCount + \"].intensity\"), pointLight.intensity);\n\t\t\t\t\n\t\t\t\tpointLightCount++;\n\t\t\t}\n\t\t\t\n\t\t\tgraphics.setUniform(graphics.getUniform(drawShader, \"pointLightCount\"), pointLightCount);\n\t\t}\n\t\t\n\t\t// Render Entities\n\t\t\n\t\tIterator<Long> iterator = entityManager.getComponentTable().getEntityIterator(PhongRenderComponent.class);\n\t\t\n\t\twhile(iterator.hasNext())\n\t\t{\n\t\t\tlong entityID = iterator.next();\n\t\t\t\n\t\t\t// Material\n\t\t\t\n\t\t\tPhongMaterialComponent materialComponent = entityManager.getComponent(PhongMaterialComponent.class, entityID);\n//\n//\t\t\tgraphics.setUniform(graphics.getUniform(drawShader, \"material.diffuse\"), 0);\n//\t\t\tgraphics.setUniform(graphics.getUniform(drawShader, \"material.normal\"), 1);\n//\t\t\t\n//\t\t\tgraphics.setActiveTextureSlot(0);\n//\t\t\tgraphics.bindTexture(material.diffuse);\n//\t\t\t\n//\t\t\tgraphics.setActiveTextureSlot(1);\n//\t\t\tgraphics.bindTexture(material.normal);\n//\t\t\t\n//\t\t\tgraphics.setUniform(graphics.getUniform(drawShader, \"material.intensity\"), material.intensity);\n//\t\t\tgraphics.setUniform(graphics.getUniform(drawShader, \"material.exponent\"), material.exponent);\n\t\t\t\n\t\t\t// Mesh\n\t\t\t\n\t\t\tTransformComponent \t\ttransform \t= entityManager.getComponent(TransformComponent.class, entityID);\n\t\t\tModelComponent \t\t\tmesh \t\t= entityManager.getComponent(ModelComponent.class, entityID);\n\t\t\t\n\t\t\ttransform.getModelMatrix(model);\n\t\t\tgraphics.setUniform(modelUniform, model);\n\t\t\t\n\t\t\t\n\t\t\tTexture diffuseTexture = null;\n\t\t\tTexture normalTexture = null;\n\t\t\tfloat specularExponent = 0.0f;\n\t\t\tfloat specularIntensity = 0.0f;\n\t\t\t\n\t\t\t// Draw sub-meshes\n\t\t\t\n\t\t\tfor(Mesh subMesh : mesh.model.meshes)\n\t\t\t{\n\t\t\t\tgraphics.bindBuffer(subMesh.vertexBuffer);\n\t\t\t\tgraphics.bindBuffer(subMesh.indexBuffer);\n\t\t\t\t\n\t\t\t\t// Attribute Layout\n\t\t\t\t// TODO: investigate moving to begin()\n\t\t\t\t\n\t\t\t\tGL20.glEnableVertexAttribArray(0);\t// Position\n\t\t\t\tGL20.glEnableVertexAttribArray(1); // TexCoord\n\t\t\t\tGL20.glEnableVertexAttribArray(2); // Normal\n\t\t\t\tGL20.glVertexAttribPointer(0, 3, GL11.GL_FLOAT, false, 8 * Float.BYTES, 0);\n\t\t\t\tGL20.glVertexAttribPointer(1, 2, GL11.GL_FLOAT, false, 8 * Float.BYTES, 3 * Float.BYTES);\n\t\t\t\tGL20.glVertexAttribPointer(2, 3, GL11.GL_FLOAT, false, 8 * Float.BYTES, 5 * Float.BYTES);\n\t\t\t\t\n\t\t\t\tMaterial material = subMesh.material;\n\t\t\t\t\n\t\t\t\tif(material == null || material.diffuse == null)\n\t\t\t\t\tdiffuseTexture = materialComponent.diffuse;\n\t\t\t\telse\n\t\t\t\t\tdiffuseTexture = material.diffuse;\n\t\t\t\t\t\n\t\t\t\tif(material == null || material.normal == null)\n\t\t\t\t\tnormalTexture = materialComponent.normal;\n\t\t\t\telse\n\t\t\t\t\tnormalTexture = material.normal;\n\t\t\t\t\n\t\t\t\tif(material == null)\n\t\t\t\t\tspecularExponent = materialComponent.exponent;\n\t\t\t\telse\n\t\t\t\t\tspecularExponent = material.exponent;\n\t\t\t\t\n\t\t\t\tif(material == null)\n\t\t\t\t\tspecularIntensity = materialComponent.intensity;\n\t\t\t\telse\n\t\t\t\t\tspecularIntensity = material.intensity;\n\t\t\t\t\n\t\t\t\tgraphics.setUniform(graphics.getUniform(drawShader, \"material.diffuse\"), 0);\n\t\t\t\tgraphics.setUniform(graphics.getUniform(drawShader, \"material.normal\"), 1);\n\t\t\t\t\n\t\t\t\tgraphics.setActiveTextureSlot(0);\n\t\t\t\tgraphics.bindTexture(diffuseTexture);\n\t\t\t\t\n\t\t\t\tgraphics.setActiveTextureSlot(1);\n\t\t\t\tgraphics.bindTexture(normalTexture);\n\t\t\t\t\n\t\t\t\tgraphics.setUniform(graphics.getUniform(drawShader, \"material.intensity\"), specularIntensity);\n\t\t\t\tgraphics.setUniform(graphics.getUniform(drawShader, \"material.exponent\"), specularExponent);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tgraphics.drawElements(DrawMode.TRIANGLES, subMesh.indexSize);\n\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tdrawShader.unbind(graphics);\n\t\t\n\t\tgraphics.unbindFrameBuffer();\n\t\t\n\t\tgraphics.setViewport(0, 0, window.getWidth(), window.getHeight());\n\t\tgraphics.setClearColor(0.0f, 1.0f, 1.0f, 1.0f);\n\t\tgraphics.clearBuffers();\n\n\t\tGL11.glDisable(GL11.GL_DEPTH_TEST);\n\t\tGL11.glDisable(GL11.GL_CULL_FACE);\n\t\tGL11.glDisable(GL11.GL_BLEND);\n\t\t\n\t\t// Render quad\n\t\t\n\t\tquadShader.bind(graphics);\n\t\t\n\t\tgraphics.bindBuffer(renderQuadVBO);\n\t\tgraphics.bindBuffer(renderQuadIBO);\n\t\t\n\t\tGL20.glDisableVertexAttribArray(2);\n\t\tGL20.glDisableVertexAttribArray(3);\n\t\tGL20.glVertexAttribPointer(0, 2, GL11.GL_FLOAT, false, 4 * Float.BYTES, 0);\n\t\tGL20.glVertexAttribPointer(1, 2, GL11.GL_FLOAT, false, 4 * Float.BYTES, 2 * Float.BYTES);\n\t\t\n\t\tgraphics.setActiveTextureSlot(0);\n\t\tgraphics.bindTexture(colorBuffer.getTexture());\n\t\t\n\t\tgraphics.drawElements(DrawMode.TRIANGLES, 6);\n\t\t\n\t\tquadShader.unbind(graphics);\n\t}", "private void configureMaterials() {\n quadMaterial = new Material(assetManager,\n \"Common/MatDefs/Misc/Unshaded.j3md\");\n quadMaterial.setColor(\"Color\", ColorRGBA.Green.clone());\n RenderState ars = quadMaterial.getAdditionalRenderState();\n ars.setWireframe(true);\n }", "@Override\r\n public void simpleUpdate(float tpf) {\r\n// if (firstload == true) {\r\n// MainGUI.Splash.setVisible(false);\r\n// MainGUI.mjf.setVisible(true);\r\n// }\r\n light1.setDirection(\r\n new Vector3f(\r\n cam.getDirection().x,\r\n cam.getDirection().y,\r\n cam.getDirection().z));\r\n\r\n if (GUI.shapeList.isEmpty()) {\r\n rootNode.detachAllChildren();\r\n drawAxis();\r\n }\r\n if(GUI.ShapeStack.getSelectedValue() == null && !GUI.shapeList.isEmpty())\r\n {\r\n rootNode.detachAllChildren();\r\n drawAxis();\r\n for(int ii = 0 ; ii < GUI.shapeList.size(); ii++)\r\n {\r\n Shape s = GUI.shapeList.get(ii);\r\n Geometry g = s.generateGraphics();\r\n Material m = new Material(assetManager,\r\n \"Common/MatDefs/Light/Lighting.j3md\");\r\n\r\n m.setBoolean(\"UseMaterialColors\", true);\r\n m.setColor(\"Diffuse\", ColorRGBA.LightGray);\r\n m.setColor(\"Specular\", ColorRGBA.LightGray);\r\n m.setFloat(\"Shininess\", 128); // [0,128]\r\n\r\n g.setMaterial(m);\r\n rootNode.attachChild(g); \r\n }\r\n }\r\n// com.jme3.scene.shape.Box boxMesh = new com.jme3.scene.shape.Box((float) 10 / 2, (float) 10 / 2, (float) 10 / 2);\r\n// Geometry boxGeo = new Geometry(\"Shiny rock\", boxMesh);\r\n// boxGeo.setLocalTranslation((float) 0, (float) 0, (float) 0);\r\n// TangentBinormalGenerator.generate(boxMesh);\r\n// Geometry g = boxGeo;\r\n// Material m = new Material(assetManager,\r\n// \"Common/MatDefs/Light/Lighting.j3md\");\r\n//\r\n// m.setBoolean(\"UseMaterialColors\", true);\r\n// m.setColor(\"Diffuse\", ColorRGBA.LightGray);\r\n// m.setColor(\"Specular\", ColorRGBA.LightGray);\r\n// m.setFloat(\"Shininess\", 128); // [0,128]\r\n//\r\n// g.setMaterial(m);\r\n// rootNode.attachChild(g);\r\n\r\n// if (MainGUI.ShapeJList.getSelectedValue() != null) {\r\n// rootNode.detachAllChildren();\r\n// drawAxis();\r\n// for (int i = 0; i < MainGUI.allShapes.size(); i++) {\r\n// Shape s = MainGUI.allShapes.get(i);\r\n// Geometry g = s.draw();\r\n// Material m = new Material(assetManager,\r\n// \"Common/MatDefs/Light/Lighting.j3md\");\r\n//\r\n// m.setBoolean(\"UseMaterialColors\", true);\r\n// m.setColor(\"Diffuse\", ColorRGBA.LightGray);\r\n// m.setColor(\"Specular\", ColorRGBA.LightGray);\r\n// m.setFloat(\"Shininess\", 128f); // [0,128]\r\n//\r\n// if (i == MainGUI.ShapeJList.getSelectedIndex()) {\r\n// m = new Material(assetManager,\r\n// \"Common/MatDefs/Light/Lighting.j3md\");\r\n//\r\n// m.setBoolean(\"UseMaterialColors\", true);\r\n// m.setColor(\"Diffuse\", ColorRGBA.Orange);\r\n// m.setColor(\"Specular\", ColorRGBA.Orange);\r\n// m.setFloat(\"Shininess\", 128f); // [0,128]\r\n//\r\n// }\r\n// g.setMaterial(m);\r\n// rootNode.attachChild(g);\r\n//\r\n// }\r\n// }\r\n// if (!MainGUI.allShapes.isEmpty() && MainGUI.ShapeJList.getSelectedValue() == null) {\r\n// rootNode.detachAllChildren();\r\n// drawAxis();\r\n// for (int i = 0; i < MainGUI.allShapes.size(); i++) {\r\n// Shape s = MainGUI.allShapes.get(i);\r\n// Geometry g = s.draw();\r\n// Material m = new Material(assetManager,\r\n// \"Common/MatDefs/Light/Lighting.j3md\");\r\n//\r\n// m.setBoolean(\"UseMaterialColors\", true);\r\n// m.setColor(\"Diffuse\", ColorRGBA.LightGray);\r\n// m.setColor(\"Specular\", ColorRGBA.LightGray);\r\n// m.setFloat(\"Shininess\", 128); // [0,128]\r\n//\r\n// g.setMaterial(m);\r\n// rootNode.attachChild(g);\r\n// }\r\n// }\r\n firstload = false;\r\n }", "public void renderWorld(boolean renderWithLight);", "synchronized private void draw3DObjects(GL10 gl) {\n\t\tmeshRenderer_.draw(gl);\r\n\t}", "void onMeshUpdate(MeshOrganizer mesh);", "public void createMesh(GL2 gl){\r\n\t\tfor(int x = 0; x < chunkSize; x++){\r\n\t\t\tfor(int y = 0; y < chunkHeight; y++){\r\n\t\t\t\tfor(int z = 0; z < chunkSize; z++){\r\n\t\t\t\t\tif(y + pos[1]*chunkHeight <= ChunkManager.map2D(x + pos[0]*chunkSize, z + pos[2]*chunkSize)){\r\n\t\t\t\t\t\tblocks[x][y][z] = (byte) (2.7*(y+pos[1]*chunkHeight)/13+1); // Initialize each block\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tblocks[x][y][z] = 0;\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\tvertexCount = 0;\r\n\t\t// Allocate the buffers (Change to one buffer, or use short/byte buffer for normals and color)\r\n\t\tvertexData = Buffers.newDirectFloatBuffer(chunkSize*chunkSize*chunkSize*18*3);\r\n\t\tnormalData = Buffers.newDirectFloatBuffer(chunkSize*chunkHeight*chunkSize*18*3);\r\n\t\tcolorsData = Buffers.newDirectFloatBuffer(chunkSize*chunkSize*chunkSize*18*3);\r\n\t\tfor(int x = 0; x < chunkSize; x++){\r\n\t\t\tfor(int y = 0; y < chunkHeight; y++){\r\n\t\t\t\tfor(int z = 0; z < chunkSize; z++){\r\n\t\t\t\t\tif(BlockType.isActive(blocks[x][y][z])){\r\n\t\t\t\t\t\tcreateCube(x, y, z); // If the cube is active, add it to the Buffer\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// correct the buffer size, and rewind\r\n\t\tnormalData.flip();\r\n\t\tvertexData.flip();\r\n\t\tcolorsData.flip();\r\n\t\tgl.glGenBuffers(3, buffer, 0); // allocate the buffers and get IDs\r\n\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, buffer[0]);\r\n\t\tgl.glBufferData(GL.GL_ARRAY_BUFFER, vertexCount*3*4, vertexData, GL.GL_DYNAMIC_DRAW);\r\n\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, buffer[1]);\r\n\t\tgl.glBufferData(GL.GL_ARRAY_BUFFER, vertexCount*3*4, normalData, GL.GL_DYNAMIC_DRAW);\r\n\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, buffer[2]);\r\n\t\tgl.glBufferData(GL.GL_ARRAY_BUFFER, vertexCount*3*4, colorsData, GL.GL_DYNAMIC_DRAW);\r\n\t\t// set buffer as null now that it's done being used, hope it will be garbage collected\r\n\t\tvertexData = null;\r\n\t\tnormalData = null;\r\n\t\tcolorsData = null;\t\t\r\n\t}", "public void drawTexturedCube(int posHandle, int colourHandle, int normalHandle, int mvpHandle, int mvHandle, int lightHandle, int texHandle, float[] mvpMat, float[] viewMat, float[] projMat, float[] lightEye) {\n // Pass in the position information\n mCubeVertices.position(0);\n GLES20.glVertexAttribPointer(posHandle, 3, GLES20.GL_FLOAT, false,\n 0, mCubeVertices);\n GLES20.glEnableVertexAttribArray(posHandle);\n // Pass in the color information\n mCubeColours.position(0);\n GLES20.glVertexAttribPointer(colourHandle, 4, GLES20.GL_FLOAT, false,\n 0, mCubeColours);\n GLES20.glEnableVertexAttribArray(colourHandle);\n // Pass in the normal information\n mCubeNormals.position(0);\n GLES20.glVertexAttribPointer(normalHandle, 3, GLES20.GL_FLOAT, false,\n 0, mCubeNormals);\n GLES20.glEnableVertexAttribArray(normalHandle);\n // Pass in the texture coordinate information\n mCubeTextureCoordinates.position(0);\n GLES20.glVertexAttribPointer(texHandle, 2, GLES20.GL_FLOAT, false,\n 0, mCubeTextureCoordinates);\n GLES20.glEnableVertexAttribArray(texHandle);\n // This multiplies the view matrix by the model matrix, and stores the result in the MVP matrix\n Matrix.multiplyMM(mvpMat, 0, viewMat, 0, mModelMatrix, 0);\n // Pass in the modelview matrix.\n GLES20.glUniformMatrix4fv(mvHandle, 1, false, mvpMat, 0);\n // This multiplies the modelview matrix by the projection matrix, and stores the result in the MVP matrix\n Matrix.multiplyMM(mvpMat, 0, projMat, 0, mvpMat, 0);\n // Pass in the combined matrix.\n GLES20.glUniformMatrix4fv(mvpHandle, 1, false, mvpMat, 0);\n // Pass in the light position in eye space.\n GLES20.glUniform3f(lightHandle, lightEye[0], lightEye[1], lightEye[2]);\n // Draw the cube.\n GLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, 36);\n }", "public static void setMesh(){\n if(sMesh){\n sMesh = false;\n }else{\n sMesh = true;\n }\n }", "public void setTriangleMesh(TriangleMesh tMesh) {\r\n this.triangleMesh = tMesh;\r\n // Trigger onRepaint\r\n repaint();\r\n }", "private void drawDynamic() {\n GLES20.glUniformMatrix4fv(mMVMatrixHandle, 1, false, mMVPMatrix, 0);\n\n // This multiplies the modelview matrix by the projection matrix, and stores the result in the MVP matrix\n // (which now contains model * view * projection).\n Matrix.multiplyMM(mTemporaryMatrix, 0, mProjectionMatrix, 0, mMVPMatrix, 0);\n System.arraycopy(mTemporaryMatrix, 0, mMVPMatrix, 0, 16);\n\n // Pass in the combined matrix.\n GLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mMVPMatrix, 0);\n\n // Pass in the light position in eye space.\n GLES20.glUniform3f(mLightPosHandle, mLightPosInEyeSpace[0], mLightPosInEyeSpace[1], mLightPosInEyeSpace[2]);\n }", "void glAttachShader(int program, int shader);", "public abstract Color3f traceLight(Vector3f pos, Vector3f normal,\n\t Material m, List<Shape> objects);", "public void draw(float[] mvpMatrix) {\n\t\tGLES20.glUseProgram(program);\n\t\t\n\t\t//get handle to vertex shader's vPosition memer\n\t\tint positionHandle = GLES20.glGetAttribLocation(program, \"vPosition\");\n\t\t\n\t\t//enalge a handle to the triangle vertices\n\t\tGLES20.glEnableVertexAttribArray(positionHandle);\n\t\t\n\t\t//preper the triangle coordintate data\n\t\tGLES20.glVertexAttribPointer(positionHandle, \n\t\t\t\tCOORDS_PER_VERTEX, \n\t\t\t\tGLES20.GL_FLOAT, \n\t\t\t\tfalse, \n\t\t\t\tvertexStride, \n\t\t\t\tvertexBuffer);\n\t\t\n\t\t//get handle to fragment shader's vColor member\n\t\tint colorHandle = GLES20.glGetUniformLocation(program, \"vColor\");\n\t\t\n\t\t//set color for drawing the triangle\n\t\tGLES20.glUniform4fv(colorHandle, 1, color, 0);\n\t\t\t\t\n\t\t//get handle to shape's transformation matrix\n\t\tmMVPMatrixHandle = GLES20.glGetUniformLocation(program, \"uMVPMatrix\");\n\t\t\t\t\n\t\t// pass the projection and view transformation to the shder\n\t\tGLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mvpMatrix, 0);\n\t\t\t\t\n\t\t//draw the triangle\n\t\tGLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, vertexCount);\n\t\t\n\t\t//disable vertex array\n\t\tGLES20.glDisableVertexAttribArray(positionHandle);\n\t}", "public Sphere (final Material material) {\n super(material);\n\n this.c = new Point3(0,0,0);\n this.r = 1;\n }", "public void setLighting(GL3 gl) {\n\t\t // Set the lighting properties\n\t\t\n\t\t// get sunlight vector coords\n\t\tfloat xSun = terrain.getSunlight().getX();\n\t\tfloat ySun = terrain.getSunlight().getY();\n\t\tfloat zSun = terrain.getSunlight().getZ();\n\t\t\n/*\t\t// check fps\n\t\tPoint3D torchPos;\n\t\tif (camera.getPerson().isFps()) {\n\t\t\ttorchPos = new Point3D(camera.getGlobalPosition().getX(), camera.getGlobalPosition().getY(), camera.getGlobalPosition().getZ());\n*/\n\t\tPoint3D torchPos;\n\t\t// check fps\n\t\tif (person.isFps()) {\n\t\t\ttorchPos = new Point3D(person.getCamera().getGlobalPosition().getX(),\n\t\t\t\t\tperson.getCamera().getGlobalPosition().getY(),\n\t\t\t\t\tperson.getCamera().getGlobalPosition().getZ());\n\t\t} else { \n\t\t\ttorchPos = new Point3D(person.getGlobalPosition().getX(),\n\t\t\t\t\tperson.getGlobalPosition().getY() + 0.2f, \n\t\t\t\t\tperson.getGlobalPosition().getZ());\n\t\t}\n\t\t\n Shader.setPoint3D(gl, \"sunlight\", new Point3D(xSun,ySun,zSun)); // set sunlight vector to passed in vector \n Shader.setColor(gl, \"lightIntensity\", Color.WHITE);\n \n // Set the material properties\n Shader.setColor(gl, \"ambientCoeff\", Color.WHITE);\n Shader.setColor(gl, \"diffuseCoeff\", new Color(0.5f, 0.5f, 0.5f));\n Shader.setFloat(gl, \"phongExp\", 16f);\n \n // for torch light\n Shader.setFloat(gl, \"cutoff\", 90f); // in degrees\n Shader.setPoint3D(gl, \"posTorch\", torchPos);\n Shader.setFloat(gl, \"attenuationFactor\", 40f); \n Shader.setColor(gl, \"lightIntensityTorch\", Color.YELLOW); \n \n if (day) {\n \t// light properties for day\n Shader.setColor(gl, \"specularCoeff\", new Color(0.8f, 0.8f, 0.8f));\n \tShader.setColor(gl, \"ambientIntensity\", new Color(0.2f, 0.2f, 0.2f));\n Shader.setPoint3D(gl, \"dirTorch\", new Point3D(0,0,0)); // set torchDir vector \n } else { \n \t// light properties for night \n Shader.setColor(gl, \"specularCoeff\", new Color(0.5f, 0.5f, 0.5f));\n \tShader.setColor(gl, \"ambientIntensity\", new Color(0.01f, 0.01f, 0.01f));\n Shader.setPoint3D(gl, \"dirTorch\", new Point3D(0,0,1)); // set torchDir vector \n }\n\t}", "public void onUpdateColor() {\n getVertexBufferObject().onUpdateColor(this);\n }", "@Override\n public void display(GLAutoDrawable drawable) {\n // Get the OpenGL context\n gl = drawable.getGL().getGL2();\n\n // Clear some GL buffers\n gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);\n gl.glLoadIdentity();\n\n // Translate by saved values and set render mode\n gl.glTranslatef(tr_x, tr_y, tr_z);\n gl.glPolygonMode(GL_FRONT_AND_BACK, render_mode);\n\n // Array of light position floats\n // Convert to byte buffer and then float buffer\n float[] light_pos = {1.0f, 1.0f, 1.0f, 1.0f};\n ByteBuffer lbb = ByteBuffer.allocateDirect(16);\n lbb.order(ByteOrder.nativeOrder());\n FloatBuffer fb = lbb.asFloatBuffer();\n fb.put(light_pos);\n fb.position(0);\n\n // Set light on and send position if lights are meant to be on\n if (lights_on) {\n gl.glEnable(GL_LIGHT0);\n gl.glLightfv(GL_LIGHT0, GL_POSITION, fb);\n gl.glColorMaterial(GL_FRONT, GL_DIFFUSE);\n gl.glEnable(GL_COLOR_MATERIAL);\n } else {\n gl.glDisable(GL_LIGHT0);\n }\n\n // Create some more arrays for float buffers\n float[] ambient;\n float[] diffuse;\n float[] specular;\n\n // Use values based on selected material\n if (material % 3 == 0) {\n ambient = new float[]{0.96f, 0.96f, 0.96f, 1.0f};\n diffuse = new float[]{0.96f, 0.96f, 0.96f, 1.0f};\n specular = new float[]{0.96f, 0.96f, 0.96f, 1.0f};\n } else if (material % 3 == 1) {\n ambient = new float[]{1.0f, 0.843f, 0, 1.0f};\n diffuse = new float[]{1.0f, 0.843f, 0, 1.0f};\n specular = new float[]{1.0f, 0.843f, 0, 1.0f};\n } else {\n ambient = new float[]{0.804f, 0.5216f, 0.247f, 1.0f};\n diffuse = new float[]{0.804f, 0.5216f, 0.247f, 1.0f};\n specular = new float[]{0.804f, 0.5216f, 0.247f, 1.0f};\n }\n\n // Ambient settings for GL_LIGHT0\n fb.put(ambient);\n fb.position(0);\n// gl.glLightfv(GL_LIGHT0, GL_AMBIENT, fb);\n\n // Diffuse settings for GL_LIGHT0\n fb.put(diffuse);\n fb.position(0);\n// gl.glLightfv(GL_LIGHT0, GL_DIFFUSE, fb);\n\n // Specular settings for GL_LIGHT0\n fb.put(specular);\n fb.position(0);\n// gl.glLightfv(GL_LIGHT0, GL_SPECULAR, fb);\n\n // Settings for the ambient lighting\n fb.put(new float[]{0.3f, 0.3f, 0.3f, 1.0f});\n fb.position(0);\n// gl.glEnable(GL_LIGHTING);\n// gl.glLightModelfv(GL_LIGHT_MODEL_AMBIENT, fb);\n\n // Rotate based on saved values\n gl.glRotatef(rt_x, 1, 0, 0);\n gl.glRotatef(rt_y, 0, 1, 0);\n gl.glRotatef(rt_z, 0, 0, 1);\n\n //gl.glColor3f( 1f,0f,0f ); //applying red \n // Begin triangle rendering\n gl.glBegin(GL_POINTS);\n\n if (values != null && values.isVisible()) {\n // Loop over faces, rendering each vertex for each face\n for (int i = 0; i < values.face_list.length; i++) {\n // Set the normal for a vertex and then make the vertex\n gl.glColor3f(0.5f, 0.0f, 1.0f); //applying purpura \n// gl.glNormal3f(values.face_list[i].vertex_list[0].normal.x,\n// values.face_list[i].vertex_list[0].normal.y,\n// values.face_list[i].vertex_list[0].normal.z);\n gl.glVertex3f(values.face_list[i].vertex_list[0].x,\n values.face_list[i].vertex_list[0].y,\n values.face_list[i].vertex_list[0].z);\n\n // And again\n gl.glColor3f(0.5f, 0.0f, 1.0f); //applying red \n// gl.glNormal3f(values.face_list[i].vertex_list[1].normal.x,\n// values.face_list[i].vertex_list[1].normal.y,\n// values.face_list[i].vertex_list[1].normal.z);\n gl.glVertex3f(values.face_list[i].vertex_list[1].x,\n values.face_list[i].vertex_list[1].y,\n values.face_list[i].vertex_list[1].z);\n\n // Third time's the charm\n gl.glColor3f(0.5f, 0.0f, 1.0f); //applying red \n// gl.glNormal3f(values.face_list[i].vertex_list[2].normal.x,\n// values.face_list[i].vertex_list[2].normal.y,\n// values.face_list[i].vertex_list[2].normal.z);\n gl.glVertex3f(values.face_list[i].vertex_list[2].x,\n values.face_list[i].vertex_list[2].y,\n values.face_list[i].vertex_list[2].z);\n }\n\n if (values.face_list.length == 0) {\n for (int i = 0; i < values.vertex_list.length; i++) {\n gl.glColor3f(1f, 0f, 0f); //applying red \n gl.glVertex3f(values.vertex_list[i].x,\n values.vertex_list[i].y,\n values.vertex_list[i].z);\n }\n }\n }\n\n float[] d1f = {0.2f, 0.5f, 0.8f, 1.0f};\n FloatBuffer d1 = FloatBuffer.wrap(d1f);\n\n if (valuesB != null && !valuesB.isEmpty()) {\n for (Reader figura : valuesB) {\n if (figura.isVisible()) {\n FloatBuffer d3U = figura.getColor() == null ? d1 : figura.getColor();\n for (int i = 0; i < figura.vertex_list.length; i++) {\n gl.glColor3fv(d3U); //applying red \n// gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, d2);\n gl.glVertex3f(figura.vertex_list[i].x,\n figura.vertex_list[i].y,\n figura.vertex_list[i].z);\n }\n }\n }\n }\n\n try{\n if (resultadoICPClasico != null && !resultadoICPClasico.isEmpty() && resultadoICPVisible) {\n\n for (Point3d point3d : resultadoICPClasico) {\n gl.glColor3d(1.0f, 1.1f, 0.0f); //applying amarillo? \n // gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, d1);\n gl.glVertex3d(point3d.getX(), point3d.getY(), point3d.getZ());\n }\n }\n }catch(java.util.ConcurrentModificationException ex){\n log.warn(\"Solo si use archivos externos? \"+ex.getMessage()); \n }catch(Exception ex){\n log.warn(\"Otro? \"+ex.getMessage()); \n }\n\n // End rendering\n gl.glEnd();\n gl.glLoadIdentity();\n }", "public void draw(float[] mvpMatrix) {\n // Add program to OpenGL environment\n GLES20.glUseProgram(mProgram);\n\n // get handle to vertex shader's vPosition member\n mPositionHandle = GLES20.glGetAttribLocation(mProgram, \"vPosition\");\n\n // Enable a handle to the triangle vertices\n GLES20.glEnableVertexAttribArray(mPositionHandle);\n\n // Prepare the triangle coordinate data\n GLES20.glVertexAttribPointer(\n mPositionHandle, COORDS_PER_VERTEX,\n GLES20.GL_FLOAT, false,\n vertexStride, vertexBuffer);\n\n // get handle to fragment shader's vColor member\n mColorHandle = GLES20.glGetUniformLocation(mProgram, \"vColor\");\n\n // Set color for drawing the triangle\n GLES20.glUniform4fv(mColorHandle, 1, color, 0);\n\n // get handle to shape's transformation matrix\n mMVPMatrixHandle = GLES20.glGetUniformLocation(mProgram, \"uMVPMatrix\");\n MyGLRenderer.checkGlError(\"glGetUniformLocation\");\n\n // Apply the projection and view transformation\n GLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mvpMatrix, 0);\n MyGLRenderer.checkGlError(\"glUniformMatrix4fv\");\n\n // Draw the triangle\n GLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, vertexCount);\n\n // Disable vertex array\n GLES20.glDisableVertexAttribArray(mPositionHandle);\n }", "void SetUpMeshArrays(int PosHandle, int TexHandle, int NormalHandle)\n\t{\n\t\tm_VertexBuffer.position(m_MeshVerticesDataPosOffset);\n\t GLES20.glVertexAttribPointer(PosHandle, \n\t \t\t\t\t\t\t\t3, \n\t \t\t\t\t\t\t\tGLES20.GL_FLOAT, \n\t \t\t\t\t\t\t\tfalse,\n\t \t\t\t\t\t\t\tm_MeshVerticesDataStrideBytes, \n\t \t\t\t\t\t\t\tm_VertexBuffer);\n\t \n\t GLES20.glEnableVertexAttribArray(PosHandle);\n\t \n\t \n\t if (m_MeshHasUV)\n\t {\n\t \t// Set up Vertex Texture Data stream to shader \n\t \tm_VertexBuffer.position(m_MeshVerticesDataUVOffset);\n\t \tGLES20.glVertexAttribPointer(TexHandle, \n\t \t\t\t\t\t\t\t\t2, \n\t \t\t\t\t\t\t\t\tGLES20.GL_FLOAT, \n\t \t\t\t\t\t\t\t\tfalse,\n\t \t\t\t\t\t\t\t\tm_MeshVerticesDataStrideBytes, \n\t \t\t\t\t\t\t\t\tm_VertexBuffer);\n\t \tGLES20.glEnableVertexAttribArray(TexHandle);\n\t }\n\t \n\t if (m_MeshHasNormals)\n\t {\n\t \t\n\t \t// Set up Vertex Texture Data stream to shader\n\t \tm_VertexBuffer.position(m_MeshVerticesDataNormalOffset);\n\t \tGLES20.glVertexAttribPointer(NormalHandle, \n\t \t\t\t\t\t\t\t\t3, \n\t \t\t\t\t\t\t\t\tGLES20.GL_FLOAT, \n\t \t\t\t\t\t\t\t\tfalse,\n\t \t\t\t\t\t\t\t\tm_MeshVerticesDataStrideBytes, \n\t \t\t\t\t\t\t\t\tm_VertexBuffer);\n\t \tGLES20.glEnableVertexAttribArray(NormalHandle);\n\t } \n\t \n\t \n\t \n\t}", "@Override\n\tpublic void onDrawFrame(GL10 gl) {\n\t\tgl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); \n\t\t//set vertices shared by all cubes\n\t\t//set vertexpointer(3memberXYZ,FloatData,3Float*4Byte,dataBuffer)\n\t\tgl.glVertexPointer(3, GL10.GL_FLOAT, 12, vertices);\n\t\t//set normals shared by all cubes\n\t\t//normalpointer(dataTYPE,3float*4bytes,dataBuffer)\n\t\tgl.glNormalPointer(GL10.GL_FLOAT, 12, normals);\n\n\t\t//set light parameters\n\t\tgl.glLoadIdentity();\n\t\t//RGBA ambient light colors\n\t\tfloat[] ambientColor = { 0.1f, 0.11f, 0.1f, 1f }; \n\t\t//glLightModelfv(ambientLight, array with color, offset to color)\n\t\tgl.glLightModelfv(GL10.GL_LIGHT_MODEL_AMBIENT, ambientColor, 0);\n\t\t//position from where the light comes to the origin\n\t\tfloat[] pos = {3, 0, 2, 0};\n\t\t//set source1 position \n\t\t//glLightfv(source id, parameter, data array, offset);\n\t\tgl.glLightfv(GL10.GL_LIGHT0, GL10.GL_POSITION, pos, 0);\n\n\t\t//enable lighting\n\t\tgl.glEnable(GL10.GL_LIGHTING);\n\t\t//enable source 1\n\t\tgl.glEnable(GL10.GL_LIGHT0);\n\t\t//light shade model interpolate\n\t\tgl.glShadeModel(GL10.GL_SMOOTH);\n\t\t//enable material\n\t\tgl.glEnable(GL10.GL_COLOR_MATERIAL);\n\t\t\n\t\t//1st cube will use default color, so disable color array\n\t\tgl.glDisableClientState(GL10.GL_COLOR_ARRAY);\n\t\t//set default render color for 2nd cube\n\t\tgl.glColor4f(0, 1, 0.5f, 1);\n\t\t\t\t\n\t\t//transform 1st cube\n\t\tgl.glLoadIdentity();\n\t\tgl.glTranslatef(0, 0, -8);\n\t\tgl.glScalef(0.3f, 0.3f, 0.3f);\t\n\t\tgl.glRotatef(angle, 1, 1, 0);\n\t\t\t\t\n\t\t//draw first cube\n\t\tgl.glDrawElements(GL10.GL_TRIANGLES, 36, GL10.GL_UNSIGNED_SHORT, index);\n\t\t//GL10.glDrawElements(DrawType,36 indices,shorData,dataBuffer)\n\t\t\n\t\t//second cube with Vertexcolor\n\t\t//enable color array\n\t\tgl.glEnableClientState(GL10.GL_COLOR_ARRAY);\n\t\t//glcolorpointer(4members RGBA,dataType,4floats*4bytes,dataBuffer)\n\t\tgl.glColorPointer(4, GL10.GL_FLOAT, 16, colors);\n\t\t\t\t\n\t\t//set transformation for second cube\n\t\tgl.glLoadIdentity();\n\t\tgl.glTranslatef(0, 0, -8);\n\t\tgl.glRotatef(angle, 0, 1, 0);\n\t\t//Draw second cube\n\t\tgl.glDrawElements(GL10.GL_TRIANGLES, 36, GL10.GL_UNSIGNED_SHORT, index);\n\t\t\n\t\t//third cube will use texture, disable color array\n\t\tgl.glDisableClientState(GL10.GL_COLOR_ARRAY);\n\t\t//set default color to solid white\n\t\tgl.glColor4f(1, 1, 1, 1);\n\t\t//enable texture coordinates array\n\t\tgl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);\n\t\t//enable 2D texture for bind\n\t\tgl.glEnable(GL10.GL_TEXTURE_2D);\n\t\t//set texturecoord pointer\n\t\tgl.glTexCoordPointer(2, GL10.GL_FLOAT, 8, texturemap); \n\t\t//bind texture\n\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, textureId);\n\t\t\n\t\t//translate 3rd cube\n\t\tgl.glLoadIdentity();\n\t\tgl.glTranslatef(-5, -1, -7);\n\t\tgl.glRotatef(-angle, 0, 1, 0);\n\t\t//draw 3rd cube\n\t\tgl.glDrawElements(GL10.GL_TRIANGLES, 36, GL10.GL_UNSIGNED_SHORT, index);\n\t\t//unbind texture so other cubes dont use texture\n\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, 0);\n\t\t//disable texture state if not next frame first cube \n\t\t//will try to use the texture\n\t\tgl.glDisableClientState(GL10.GL_TEXTURE_COORD_ARRAY);\n\t\tgl.glDisable(GL10.GL_TEXTURE_2D);\n\t\tangle++;\n\t}", "public void build_buffers(float[] color /*RGBA*/) {\n int i;\n int offset = 0;\n final float[] vertexData = new float[\n mVertices.size() / 3\n * STRIDE_IN_FLOATS];\n\n float vx, vy, vz;\n\n /*\n * loop to generate vertices.\n */\n for (i = 0; i < mVertices.size(); i += 3) {\n\n vertexData[offset++] = mVertices.get(i + 0);\n vertexData[offset++] = mVertices.get(i + 1);\n vertexData[offset++] = mVertices.get(i + 2);\n\n vertexData[offset++] = 0.0f; // set normal to zero for now\n vertexData[offset++] = 0.0f;\n vertexData[offset++] = 0.0f;\n\n if (mHaveMaterialColor) {\n vertexData[offset++] = mColors.get(i + 0);\n vertexData[offset++] = mColors.get(i + 1);\n vertexData[offset++] = mColors.get(i + 2);\n vertexData[offset++] = 1.0f; // TODO: unwire the alpha?\n } else {\n // color value\n vertexData[offset++] = color[0];\n vertexData[offset++] = color[1];\n vertexData[offset++] = color[2];\n vertexData[offset++] = color[3];\n }\n }\n\n // calculate the normal,\n // set it in the packed VBO.\n // If current normal is non-zero, average it with previous value.\n\n int v1i, v2i, v3i;\n for (i = 0; i < mIndices.size(); i += 3) {\n v1i = mIndices.get(i + 0) - 1;\n v2i = mIndices.get(i + 1) - 1;\n v3i = mIndices.get(i + 2) - 1;\n\n v1[0] = mVertices.get(v1i * 3 + 0);\n v1[1] = mVertices.get(v1i * 3 + 1);\n v1[2] = mVertices.get(v1i * 3 + 2);\n\n v2[0] = mVertices.get(v2i * 3 + 0);\n v2[1] = mVertices.get(v2i * 3 + 1);\n v2[2] = mVertices.get(v2i * 3 + 2);\n\n v3[0] = mVertices.get(v3i * 3 + 0);\n v3[1] = mVertices.get(v3i * 3 + 1);\n v3[2] = mVertices.get(v3i * 3 + 2);\n\n n = XYZ.getNormal(v1, v2, v3);\n\n vertexData[v1i * STRIDE_IN_FLOATS + 3 + 0] = n[0] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v1i * STRIDE_IN_FLOATS + 3 + 1] = n[1] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v1i * STRIDE_IN_FLOATS + 3 + 2] = n[2] * NORMAL_BRIGHTNESS_FACTOR;\n\n vertexData[v2i * STRIDE_IN_FLOATS + 3 + 0] = n[0] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v2i * STRIDE_IN_FLOATS + 3 + 1] = n[1] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v2i * STRIDE_IN_FLOATS + 3 + 2] = n[2] * NORMAL_BRIGHTNESS_FACTOR;\n\n vertexData[v3i * STRIDE_IN_FLOATS + 3 + 0] = n[0] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v3i * STRIDE_IN_FLOATS + 3 + 1] = n[1] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v3i * STRIDE_IN_FLOATS + 3 + 2] = n[2] * NORMAL_BRIGHTNESS_FACTOR;\n\n }\n\n /*\n * debug - print out list of formated vertex data\n */\n// for (i = 0; i < vertexData.length; i+= STRIDE_IN_FLOATS) {\n// vx = vertexData[i + 0];\n// vy = vertexData[i + 1];\n// vz = vertexData[i + 2];\n// String svx = String.format(\"%6.2f\", vx);\n// String svy = String.format(\"%6.2f\", vy);\n// String svz = String.format(\"%6.2f\", vz);\n//\n// Log.w(\"data \", i + \" x y z \"\n// + svx + \" \" + svy + \" \" + svz + \" and color = \"\n// + vertexData[i + 6] + \" \" + vertexData[i + 7] + \" \" + vertexData[i + 8]);\n// }\n\n final FloatBuffer vertexDataBuffer = ByteBuffer\n .allocateDirect(vertexData.length * BYTES_PER_FLOAT)\n .order(ByteOrder.nativeOrder())\n .asFloatBuffer();\n vertexDataBuffer.put(vertexData).position(0);\n\n if (vbo[0] > 0) {\n GLES20.glDeleteBuffers(1, vbo, 0);\n }\n GLES20.glGenBuffers(1, vbo, 0);\n\n if (vbo[0] > 0) {\n GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, vbo[0]);\n GLES20.glBufferData(GLES20.GL_ARRAY_BUFFER, vertexDataBuffer.capacity() * BYTES_PER_FLOAT,\n vertexDataBuffer, GLES20.GL_STATIC_DRAW);\n\n // GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, 0);\n } else {\n // errorHandler.handleError(ErrorHandler.ErrorType.BUFFER_CREATION_ERROR, \"glGenBuffers\");\n throw new RuntimeException(\"error on buffer gen\");\n }\n\n /*\n * create the buffer for the indices\n */\n offset = 0;\n int x;\n final short[] indexData = new short[mIndices.size()];\n for (x = 0; x < mIndices.size(); x++) {\n\n short index = mIndices.get(x).shortValue();\n indexData[offset++] = --index;\n }\n mTriangleIndexCount = indexData.length;\n\n /*\n * debug - print out list of formated vertex data\n */\n// short ix, iy, iz;\n// for (i = 0; i < indexData.length; i += 3) {\n// ix = indexData[i + 0];\n// iy = indexData[i + 1];\n// iz = indexData[i + 2];\n//\n// Log.w(\"data \", i + \" i1 i2 i3 \"\n// + ix + \" \" + iy + \" \" + iz );\n// }\n\n final ShortBuffer indexDataBuffer = ByteBuffer\n .allocateDirect(indexData.length * BYTES_PER_SHORT).order(ByteOrder.nativeOrder())\n .asShortBuffer();\n indexDataBuffer.put(indexData).position(0);\n\n if (ibo[0] > 0) {\n GLES20.glDeleteBuffers(1, ibo, 0);\n }\n GLES20.glGenBuffers(1, ibo, 0);\n if (ibo[0] > 0) {\n GLES20.glBindBuffer(GLES20.GL_ELEMENT_ARRAY_BUFFER, ibo[0]);\n GLES20.glBufferData(GLES20.GL_ELEMENT_ARRAY_BUFFER,\n indexDataBuffer.capacity()\n * BYTES_PER_SHORT, indexDataBuffer, GLES20.GL_STATIC_DRAW);\n GLES20.glBindBuffer(GLES20.GL_ELEMENT_ARRAY_BUFFER, 0);\n GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, 0);\n } else {\n // errorHandler.handleError(ErrorHandler.ErrorType.BUFFER_CREATION_ERROR, \"glGenBuffers\");\n throw new RuntimeException(\"error on buffer gen\");\n }\n }", "protected final float addDiffuse(SoftwareMaterial kMaterial,\r\n SoftwareVertexProperty kVertexProperty,\r\n Vector3f kDirection) {\r\n\r\n Color3f kDiffuse = kVertexProperty.getDiffuse();\r\n if (null == kDiffuse) {\r\n kDiffuse = kMaterial.diffuse;\r\n }\r\n\r\n float fDdN = kDirection.dot(m_kNormal);\r\n if (fDdN < 0.0f) {\r\n float fDiffAmpl = -m_fAttenuate * m_fSpot * fDdN;\r\n m_kColor.x += fDiffAmpl * diffuse.x * kDiffuse.x;\r\n m_kColor.y += fDiffAmpl * diffuse.y * kDiffuse.y;\r\n m_kColor.z += fDiffAmpl * diffuse.z * kDiffuse.z;\r\n }\r\n return fDdN;\r\n }", "public void draw(float[] vpMatrix, float[] mvMatrix, float[] positions, float[] sizes,\n float[] colors, boolean render3d) {\n // Add program to OpenGL ES environment\n GLES30.glUseProgram(mProgram);\n\n // get the handles to the attribute\n vertexAttr = GLES30.glGetAttribLocation(mProgram, \"a_vertex\");\n posAttr = GLES30.glGetAttribLocation(mProgram, \"a_position\");\n int sizeAttr = GLES30.glGetAttribLocation(mProgram, \"a_size\");\n int coloAttr = GLES30.glGetAttribLocation(mProgram, \"a_color\");\n int texAttr = GLES30.glGetAttribLocation(mProgram, \"a_texCoord\");\n int normalAttr = GLES30.glGetAttribLocation(mProgram, \"a_normal\");\n\n // load vertices\n if (render3d) {\n GLES30.glEnableVertexAttribArray(vertexAttr);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, mVertex3dVBO);\n GLES30.glVertexAttribPointer(vertexAttr, COORDS_PER_VERTEX,\n GLES30.GL_FLOAT, false,\n vertexStride, 0);\n GLES30.glVertexAttribDivisor(vertexAttr, 0);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, 0);\n\n GLES30.glEnableVertexAttribArray(texAttr);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, mTex3dCoordVBO);\n GLES30.glVertexAttribPointer(texAttr, 2,\n GLES30.GL_FLOAT, false,\n 2 * 4, 0);\n GLES30.glVertexAttribDivisor(texAttr, 0);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, 0);\n\n GLES30.glEnableVertexAttribArray(normalAttr);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, mNormal3dVBO);\n GLES30.glVertexAttribPointer(normalAttr, 3,\n GLES30.GL_FLOAT, false,\n 3 * 4, 0);\n GLES30.glVertexAttribDivisor(normalAttr, 0);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, 0);\n } else {\n GLES30.glEnableVertexAttribArray(vertexAttr);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, mVertexVBO);\n GLES30.glVertexAttribPointer(vertexAttr, COORDS_PER_VERTEX,\n GLES30.GL_FLOAT, false,\n vertexStride, 0);\n GLES30.glVertexAttribDivisor(vertexAttr, 0);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, 0);\n\n GLES30.glEnableVertexAttribArray(texAttr);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, mTexCoordVBO);\n GLES30.glVertexAttribPointer(texAttr, 2,\n GLES30.GL_FLOAT, false,\n 2 * 4, 0);\n GLES30.glVertexAttribDivisor(texAttr, 0);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, 0);\n\n GLES30.glEnableVertexAttribArray(normalAttr);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, mNormal2dVBO);\n GLES30.glVertexAttribPointer(normalAttr, 3,\n GLES30.GL_FLOAT, false,\n 3 * 4, 0);\n GLES30.glVertexAttribDivisor(normalAttr, 0);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, 0);\n }\n\n\n ByteBuffer bb = ByteBuffer.allocateDirect(positions.length * 4);\n bb.order(ByteOrder.nativeOrder());\n FloatBuffer fb = bb.asFloatBuffer();\n fb.put(positions);\n fb.position(0);\n\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, mPosVBO);\n GLES30.glBufferData(GLES30.GL_ARRAY_BUFFER, positions.length * 4, null, GLES30.GL_DYNAMIC_DRAW);\n GLES30.glBufferSubData(GLES30.GL_ARRAY_BUFFER, 0, positions.length * 4, fb);\n\n GLES30.glEnableVertexAttribArray(posAttr);\n GLES30.glVertexAttribPointer(posAttr, COORDS_PER_VERTEX, GLES30.GL_FLOAT,\n false, vertexStride, 0);\n GLES30.glVertexAttribDivisor(posAttr, 1);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, 0);\n\n\n ByteBuffer bb2 = ByteBuffer.allocateDirect(sizes.length * 4);\n bb2.order(ByteOrder.nativeOrder());\n FloatBuffer sb = bb2.asFloatBuffer();\n sb.put(sizes);\n sb.position(0);\n\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, mSizeVBO);\n GLES30.glBufferData(GLES30.GL_ARRAY_BUFFER, sizes.length * 4, null, GLES30.GL_DYNAMIC_DRAW);\n GLES30.glBufferSubData(GLES30.GL_ARRAY_BUFFER, 0, sizes.length * 4, sb);\n\n GLES30.glEnableVertexAttribArray(sizeAttr);\n GLES30.glVertexAttribPointer(sizeAttr, 3, GLES30.GL_FLOAT,\n false, 3 * 4, 0);\n GLES30.glVertexAttribDivisor(sizeAttr, 1);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, 0);\n\n\n ByteBuffer bb3 = ByteBuffer.allocateDirect(colors.length * 4);\n bb3.order(ByteOrder.nativeOrder());\n FloatBuffer cb = bb3.asFloatBuffer();\n cb.put(colors);\n cb.position(0);\n\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, mColorVBO);\n GLES30.glBufferData(GLES30.GL_ARRAY_BUFFER, colors.length * 4, null, GLES30.GL_DYNAMIC_DRAW);\n GLES30.glBufferSubData(GLES30.GL_ARRAY_BUFFER, 0, colors.length * 4, cb);\n\n GLES30.glEnableVertexAttribArray(coloAttr);\n GLES30.glVertexAttribPointer(coloAttr, 4, GLES30.GL_FLOAT,\n false, 4 * 4, 0);\n GLES30.glVertexAttribDivisor(sizeAttr, 1);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, 0);\n\n\n // get handle to fragment shader's uTexture member\n int mTextureUniformHandle = GLES30.glGetUniformLocation(mProgram, \"u_texture\");\n // Set the active texture unit to texture unit 0.\n GLES30.glActiveTexture(GLES30.GL_TEXTURE0);\n // Bind the texture to this unit.\n GLES30.glBindTexture(GLES30.GL_TEXTURE_CUBE_MAP, mTextureDataHandle);\n // Tell the texture uniform sampler to use this texture in the shader by binding to texture unit 0.\n GLES30.glUniform1i(mTextureUniformHandle, 0);\n\n\n // get handle to shape's transformation matrix\n mMVPMatrixHandle = GLES30.glGetUniformLocation(mProgram, \"a_mvpMatrix\");\n // Pass the projection and view transformation to the shader\n GLES30.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, vpMatrix, 0);\n\n // get handle to shape's transformation matrix\n mMVMatrixHandle = GLES30.glGetUniformLocation(mProgram, \"u_mvMatrix\");\n // Pass the projection and view transformation to the shader\n GLES30.glUniformMatrix4fv(mMVMatrixHandle, 1, false, mvMatrix, 0);\n\n // set the light position\n mLightPosHandle = GLES30.glGetUniformLocation(mProgram, \"u_lightPos\");\n GLES30.glUniform3f(mLightPosHandle, 100.0f, 10.0f, 10.0f);\n\n// int mRenderHandle = GLES30.glGetUniformLocation(mProgram, \"u_renderMode\");\n// GLES30.glUniform1ui(mRenderHandle, (render3d) ? 1 : 0);\n int mRenderHandle = GLES30.glGetUniformLocation(mProgram, \"u_renderMode\");\n// Log.d(\"asdf\", \"render mode: \" + render3d + ((render3d) ? 1 : 0));\n GLES30.glUniform1f(mRenderHandle, ((render3d) ? 1.0f : 0.0f));\n\n\n// GLES30.glDrawArraysInstanced(GLES30.GL_TRIANGLES, 0, 6, numInstances);\n if (render3d) {\n GLES30.glDrawArraysInstanced(GLES30.GL_TRIANGLES, 0, 36, numInstances);\n } else {\n GLES30.glDrawElementsInstanced(GLES30.GL_TRIANGLES, drawOrder.length, GLES30.GL_UNSIGNED_SHORT, orderBuffer, numInstances);\n }\n\n GLES30.glDisableVertexAttribArray(mPosVBO);\n GLES30.glDisableVertexAttribArray(mVertexVBO);\n }", "public void onSurfaceCreated(int vertexShader, int gridShader, int passthroughShader) {\r\n \tstuff();\r\n program = GLES20.glCreateProgram();\r\n GLES20.glAttachShader(program, vertexShader);\r\n if (this instanceof GLSelectableObject) {\r\n GLES20.glAttachShader(program, passthroughShader);\r\n } else {\r\n GLES20.glAttachShader(program, gridShader);\r\n }\r\n GLES20.glLinkProgram(program);\r\n GLES20.glUseProgram(program);\r\n\r\n checkGLError(\"Floor program\");\r\n\r\n modelParam = GLES20.glGetUniformLocation(program, \"u_Model\");\r\n modelViewParam = GLES20.glGetUniformLocation(program, \"u_MVMatrix\");\r\n modelViewProjectionParam = GLES20.glGetUniformLocation(program, \"u_MVP\");\r\n lightPosParam = GLES20.glGetUniformLocation(program, \"u_LightPos\");\r\n\r\n positionParam = GLES20.glGetAttribLocation(program, \"a_Position\");\r\n normalParam = GLES20.glGetAttribLocation(program, \"a_Normal\");\r\n colorParam = GLES20.glGetAttribLocation(program, \"a_Color\");\r\n\r\n GLES20.glEnableVertexAttribArray(positionParam);\r\n GLES20.glEnableVertexAttribArray(normalParam);\r\n GLES20.glEnableVertexAttribArray(colorParam);\r\n\r\n checkGLError(\"Floor program params\");\r\n Matrix.setIdentityM(model, 0);\r\n Matrix.translateM(model, 0, -xPos, -yPos, -zPos); // Floor appears\r\n // below user.\r\n\r\n }", "public void draw() {\n // añadimos el programa al entorno de opengl\n GLES20.glUseProgram(mProgram);\n\n // obtenemos el identificador de los sombreados del los vertices a vPosition\n positionHandle = GLES20.glGetAttribLocation(mProgram, \"vPosition\");\n\n // habilitamos el manejo de los vertices del triangulo\n GLES20.glEnableVertexAttribArray(positionHandle);\n\n // Preparamos los datos de las coordenadas del triangulo\n GLES20.glVertexAttribPointer(positionHandle, COORDS_PER_VERTEX,\n GLES20.GL_FLOAT, false,\n vertexStride, vertexBuffer);\n\n // Obtenemos el identificador del color del sombreado de los fragmentos\n colorHandle = GLES20.glGetUniformLocation(mProgram, \"vColor\");\n\n // Establecemos el color para el dibujo del triangulo\n GLES20.glUniform4fv(colorHandle, 1, color, 0);\n\n // SE dibuja el triangulo\n GLES20.glDrawArrays(GLES20.GL_LINE_LOOP, 0, vertexCount);\n\n // Deshabilitamos el arreglo de los vertices (que dibuje una sola vez)\n GLES20.glDisableVertexAttribArray(positionHandle);\n }", "GLMesh(BindStates bindStates, IOpenGL opengl)\n {\n this.bindStates = bindStates;\n this.opengl = opengl;\n }", "private void drawStatic() {\n Matrix.multiplyMM(mMVPMatrix, 0, mViewMatrix, 0, mModelMatrix, 0);\n\n // Pass in the modelview matrix.\n GLES20.glUniformMatrix4fv(mMVMatrixHandle, 1, false, mMVPMatrix, 0);\n\n // This multiplies the modelview matrix by the projection matrix, and stores the result in the MVP matrix\n // (which now contains model * view * projection).\n Matrix.multiplyMM(mTemporaryMatrix, 0, mProjectionMatrix, 0, mMVPMatrix, 0);\n System.arraycopy(mTemporaryMatrix, 0, mMVPMatrix, 0, 16);\n\n // Pass in the combined matrix.\n GLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mMVPMatrix, 0);\n\n // Pass in the light position in eye space.\n GLES20.glUniform3f(mLightPosHandle, mLightPosInEyeSpace[0], mLightPosInEyeSpace[1], mLightPosInEyeSpace[2]);\n }", "public void render() {\r\n glPushMatrix();\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOVertexHandle);\r\n glVertexPointer(3, GL_FLOAT, 0, 0l);\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOColorHandle);\r\n glColorPointer(3, GL_FLOAT, 0, 0l);\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOTextureHandle);\r\n glBindTexture(GL_TEXTURE_2D, 1);\r\n glTexCoordPointer(2, GL_FLOAT, 0, 0l);\r\n glDrawArrays(GL_QUADS, 0, CHUNK_SIZE * CHUNK_SIZE * CHUNK_SIZE * 24);\r\n glPopMatrix();\r\n }", "public void render() \r\n\t{\r\n \tE3DRenderTree renderTree = new E3DRenderTree(getEngine());\r\n \trenderTree.getTriangleHandler().add(this);\r\n \trenderTree.render();\r\n\t}", "@Override\n\tpublic void create() {\n\t\tthis.mesh = new Mesh(VertexDataType.VertexArray, false, 4, 6, \n\t\t\t\tnew VertexAttribute(VertexAttributes.Usage.Position, 3, \"attr_position\"));\n\n\t\tmesh.setVertices(new float[] {\n\t\t\t\t-8192f, -512f, 0,\n\t\t\t\t8192f, -512f, 0,\n\t\t\t\t8192f, 512f, 0,\n\t\t\t\t-8192f, 512f, 0\n\t\t});\n\t\tmesh.setIndices(new short[] {0, 1, 2, 2, 3, 0});\n\n\t\t// creates the camera\n\t\tcamera = new OrthographicCamera(CoordinateConverter.getCameraWidth(), CoordinateConverter.getCameraHeight());\n\n\t\t// Sets the positions of the camera\n\t\tcamera.position.set(CoordinateConverter.getCameraWidth()/2, CoordinateConverter.getCameraHeight()/2, 0);\n\t\tcamera.update();\n\n\t\t// Sets how much of the map that is shown on the screen\n\t\tglViewport = new Rectangle(0, 0, CoordinateConverter.getCameraWidth(), CoordinateConverter.getCameraHeight());\n\t\t\n\t}", "public void draw(float[] mvpMatrix) {\n\n // Add program to OpenGL ES environment\n GLES20.glUseProgram(mProgram);\n\n // get handle to vertex shader's vPosition member\n mPositionHandle = GLES20.glGetAttribLocation(mProgram, \"vPosition\");\n\n // Enable a handle to the triangle vertices\n GLES20.glEnableVertexAttribArray(mPositionHandle);\n\n // Prepare the triangle coordinate data\n GLES20.glVertexAttribPointer(mPositionHandle, COORDS_PER_VERTEX,\n GLES20.GL_FLOAT, false,\n vertexStride, vertexBuffer);\n\n // get handle to fragment shader's vColor member\n mColorHandle = GLES20.glGetUniformLocation(mProgram, \"vColor\");\n\n // Set color for drawing the triangle\n GLES20.glUniform4fv(mColorHandle, 1, color, 0);\n\n // get handle to shape's transformation matrix\n mMVPMatrixHandle = GLES20.glGetUniformLocation(mProgram, \"uMVPMatrix\");\n\n // Pass the projection and view transformation to the shader\n GLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mvpMatrix, 0);\n\n // Draw the triangle\n GLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, vertexCount);\n\n // Disable vertex array\n GLES20.glDisableVertexAttribArray(mPositionHandle);\n }", "public ColladaSkinnedMesh(String name, TriMesh target, \n int[] vertexIndices) \n {\n super (name, target);\n\n this.vertexIndices = vertexIndices;\n }", "private void mkMesh()\n\t{\n\t\t/* this initialises the the two FloatBuffer objects */\n\t\n\t\tfloat vertices[] = {\n\t\t\t-0.5f, -0.5f, 0.0f,\t\t// V1 - bottom left\n\t\t\t-0.5f, 0.5f, 0.0f,\t\t// V2 - top left\n\t\t\t 0.5f, -0.5f, 0.0f,\t\t// V3 - bottom right\n\t\t\t 0.5f, 0.5f, 0.0f\t\t\t// V4 - top right\n\t\t\t};\n\t\tfloat texture[] = { \t\t\n\t\t\t// Mapping coordinates for the vertices\n\t\t\t0.0f, 1.0f,\t\t// top left\t\t(V2)\n\t\t\t0.0f, 0.0f,\t\t// bottom left\t(V1)\n\t\t\t1.0f, 1.0f,\t\t// top right\t(V4)\n\t\t\t1.0f, 0.0f\t\t// bottom right\t(V3)\n\t\t\t};\n\t\t/* cache the number of floats in the vertices data */\n\t\tvertexCount = vertices.length;\n\t\t\n\t\t// a float has 4 bytes so we allocate for each coordinate 4 bytes\n\t\tByteBuffer byteBuffer = ByteBuffer.allocateDirect(vertices.length * 4);\n\t\tbyteBuffer.order(ByteOrder.nativeOrder());\n\t\t\n\t\t// allocates the memory from the byte buffer\n\t\tvertexBuffer = byteBuffer.asFloatBuffer();\n\t\t\n\t\t// fill the vertexBuffer with the vertices\n\t\tvertexBuffer.put(vertices);\n\t\t\n\t\t// set the cursor position to the beginning of the buffer\n\t\tvertexBuffer.position(0);\n\t\t\n\t\tbyteBuffer = ByteBuffer.allocateDirect(texture.length * 4);\n\t\tbyteBuffer.order(ByteOrder.nativeOrder());\n\t\ttextureBuffer = byteBuffer.asFloatBuffer();\n\t\ttextureBuffer.put(texture);\n\t\ttextureBuffer.position(0);\n\t}", "public void renderModel(Model model) {\n\n //Bind and render the model\n bindModel(model);\n glDrawArrays(GL_TRIANGLES, 0, model.getVerticesSize());\n unbindModel();\n }", "@Override\n public void draw(GL2 pGl, Camera pCamera) {\n modelRender.render(pGl, model);\n\n }", "@Override\n public void render() {\n Gdx.gl.glClearColor(0, 0, 0, 1);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n // Then we start our shapeRenderer batch, this time with ShapeType.Line\n shapeRenderer.begin(ShapeType.Line);\n // A Simple white line\n shapeRenderer.setColor(Color.WHITE);\n shapeRenderer.line(0, 0, 100, 100);\n // We can set different colors using two methods. We can use constants like so.\n shapeRenderer.setColor(Color.MAGENTA);\n shapeRenderer.line(10, 0, 110, 100);\n // We can also set a color using RGBA values\n shapeRenderer.setColor(0, 1, 0, 1);\n shapeRenderer.line(20, 0, 120, 100);\n // We can also do fancy things like gradients\n shapeRenderer.line(30, 0, 130, 100, Color.BLUE, Color.RED);\n // The last interesting thing we can do is draw a bunch of connected line segments using polyline\n // First we set up the list of vertices, where the even positions are x coordinates, and the odd positions are the y coordinates\n float[] verticies = {100, 200, 300, 300, 200, 300, 300, 200};\n shapeRenderer.polyline(verticies);\n // Finally, as always, we end the batch\n shapeRenderer.end();\n }", "private Mesh createMesh(final int pTrianglesCount) {\n\t\tfinal int pSpeed \t\t\t= 20;\n\t\tfinal int pVertexCount\t \t= Mesh.VERTEX_SIZE * pTrianglesCount * 3; \t\n\t\tfinal float pColor \t\t\t= new Color(0f,0f,0f).getABGRPackedFloat();\n\t\tfinal float pSegmentWidth \t= CAMERA_WIDTH/pTrianglesCount;\n\t\tfinal float[] pBufferData \t= new float[pVertexCount];\t\n\t\t\n\t\tmHeightOffsetCurrent = new float[pVertexCount];\t\t\n\t\t\n\t\t//create triangles \n\t\t// A--B\n\t\t// \\ |\n\t\t// \\|\n\t\t// C\n\t\t//\n\t\tint i = 0;\n\t\tfloat x = 0f;\n\t\tfinal float pInitialHeight = 400;\n\t\tfor (int triangleIndex = 0;triangleIndex<pTrianglesCount;triangleIndex++){\n\t\t\t //first triangle \n\t\t\t pBufferData[(i * Mesh.VERTEX_SIZE) + Mesh.VERTEX_INDEX_X] = x;\n\t\t\t pBufferData[(i * Mesh.VERTEX_SIZE) + Mesh.VERTEX_INDEX_Y] = pInitialHeight;\n\t\t\t pBufferData[(i * Mesh.VERTEX_SIZE) + Mesh.COLOR_INDEX] = pColor;\n\t\t\t \n\t\t\t pBufferData[((i+1) * Mesh.VERTEX_SIZE) + Mesh.VERTEX_INDEX_X] = x+pSegmentWidth;\n\t\t\t pBufferData[((i+1) * Mesh.VERTEX_SIZE) + Mesh.VERTEX_INDEX_Y] = pInitialHeight;\n\t\t\t pBufferData[((i+1) * Mesh.VERTEX_SIZE) + Mesh.COLOR_INDEX] = pColor;\n\t\t\t \n\t\t\t pBufferData[((i+2) * Mesh.VERTEX_SIZE) + Mesh.VERTEX_INDEX_X] = x+pSegmentWidth;\n\t\t\t pBufferData[((i+2) * Mesh.VERTEX_SIZE) + Mesh.VERTEX_INDEX_Y] = 0;\t\n\t\t\t pBufferData[((i+2) * Mesh.VERTEX_SIZE) + Mesh.COLOR_INDEX] = pColor;\t\n\t\t\t \n\t\t\t i = i+3;\n\t\t\t x = x+pSegmentWidth;\n\t\t }\n\t\t \n\t\tfinal VertexBufferObjectManager VBOM = getVertexBufferObjectManager();\n\t\tfinal HighPerformanceMeshVertexBufferObject pMeshVBO = new HighPerformanceMeshVertexBufferObject(VBOM, pBufferData, pBufferData.length, DrawType.DYNAMIC, true, Mesh.VERTEXBUFFEROBJECTATTRIBUTES_DEFAULT);\n\t\t\n//\t\tpMesh = new Mesh(0, 0,pVertexCount,DrawMode.TRIANGLES,pMeshVBO){\t\t\n//\t\t\t\n//\t\t\tfloat progress_x = 0;\n//\t\t\t\n//\t\t\t@Override\n//\t\t protected void onManagedUpdate(final float pSecondsElapsed) { \n//\t\t\t\tsuper.onManagedUpdate(pSecondsElapsed);\n//\t\t\t\tdrawBySine(pSecondsElapsed);\n//\t\t this.mMeshVertexBufferObject.setDirtyOnHardware(); // include this line\n//\t\t progress_x+=(pSpeed*pSecondsElapsed);\n//\t\t };\n//\t\t\t\n//\t\t\tvoid drawBySine(final float pSecondsElapsed){\n//\t\t\t\tfinal float[] pBuff = pMeshVBO.getBufferData();\n//\t\t\t\tfor (int i = 0;i<((pTrianglesCount)*3);i++){ //FIRST part of triangles \n//\t\t\t\t\tif (i%3==0||i==0||((i-1)%3==0)){\n//\t\t\t\t\t\t//every vertex (v0) of triangle must be connected to previous triangle at second vertex (v1) to prevent stairs\n//\t\t\t\t\t\tif (i%3==0&&i>0){ \n//\t\t\t\t\t\t\tmHeightOffsetCurrent[i] = mHeightOffsetCurrent[i-2];\n//\t\t\t\t\t\t} else { \n//\t\t\t\t\t\t\tmHeightOffsetCurrent[i] = getNormalizedSine(i+progress_x, mTouchY, pTrianglesCount*3);\n//\t\t\t\t\t\t}\n//\t\t\t\t\t} \n//\t\t\t\t\tpBuff[(i * Mesh.VERTEX_SIZE) + Mesh.VERTEX_INDEX_Y] = mHeightOffsetCurrent[i];\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\t\n//\t\t\tfloat getNormalizedSine(float x, float halfY, float maxX) {\t\n//\t\t\t double factor = (2 * Math.PI) / maxX;\n//\t\t\t return (float) ((Math.sin(x * factor) * halfY) + halfY);\n//\t\t\t}\n//\t\t\t\n//\t\t};\n\t\treturn pMesh;\n\t}", "@Override\r\n public Shape createShape(RenderContext ctx) {\n float v[] = { -1, -1, 1, 1, -1, 1, 1, 1, 1, -1, 1, 1, // front face\r\n -1, -1, -1, -1, -1, 1, -1, 1, 1, -1, 1, -1, // left face\r\n -1, -1, 1, -1, -1, -1, 1, -1, -1, 1, -1, 1 }; // bottom face\r\n\r\n // The vertex normals\r\n float n[] = { 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, // front face\r\n -1, 0, 0, -1, 0, 0, -1, 0, 0, -1, 0, 0, // left face\r\n 0, -1, 0, 0, -1, 0, 0, -1, 0, 0, -1, 0 }; // bottom face\r\n\r\n // The vertex colors\r\n float c[] = { 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, //\r\n 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, //\r\n 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1 };\r\n\r\n // Texture coordinates\r\n float uv[] = { 0, 0, 1, 0, 1, 1, 0, 1, //\r\n 0, 0, 1, 0, 1, 1, 0, 1, //\r\n 0, 0, 1, 0, 1, 1, 0, 1 };\r\n\r\n // The triangles (three vertex indices for each triangle)\r\n int indices[] = { 0, 2, 3, 0, 1, 2, // front face\r\n 4, 6, 7, 4, 5, 6, // left face\r\n 8, 10, 11, 8, 9, 10 }; // bottom face\r\n\r\n // Construct a data structure that stores the vertices, their\r\n // attributes, and the triangle mesh connectivity\r\n VertexData vertexData = ctx.makeVertexData(12);\r\n vertexData.addElement(c, VertexData.Semantic.COLOR, 3);\r\n vertexData.addElement(v, VertexData.Semantic.POSITION, 3);\r\n vertexData.addElement(n, VertexData.Semantic.NORMAL, 3);\r\n vertexData.addElement(uv, VertexData.Semantic.TEXCOORD, 2);\r\n vertexData.addIndices(indices);\r\n\r\n return new jrtr.Shape(vertexData);\r\n }", "public void render(int modelID) {\r\n\t\tRenderData model = models.get(modelID);\r\n\t\tif(model == null)\r\n\t\t\tthrow new IllegalArgumentException(\"no model exists for model id \" + modelID);\r\n\t\tglBindVertexArray(model.vao);\r\n\t\tglBindBuffer(GL_ELEMENT_ARRAY_BUFFER, model.indices);\r\n\t\tsetTexture(textureUnit, model.texture);\r\n\t\tglDrawElements(GL_TRIANGLES, model.vertexCount, GL_UNSIGNED_INT, 0);\r\n\t}", "public void drawMainRotor(float[] mvpMatrix)\n\t{\n GLES20.glUseProgram(chopperProgram);\n int error = GLES20.glGetError();\n if (error != GLES20.GL_NO_ERROR)\n {\n System.out.println(\"StigChopper -- drawMainRotor: Use Program Error: \" + error);\n }\n\n // get handle to vertex shader's vPosition member\n mPositionHandle = GLES20.glGetAttribLocation(chopperProgram, \"vPosition\");\n if (mPositionHandle < 0)\n {\n System.out.println(\"StigChopper -- rotors: Failed to get mPositionHandle\");\n }\n\n // get handle to shape's transformation matrix\n mMVPMatrixHandle = GLES20.glGetUniformLocation(chopperProgram, \"uMVPMatrix\");\n\n // Enable a handle to the cube vertices\n GLES20.glEnableVertexAttribArray(mPositionHandle);\n\n // Prepare the cube coordinate data\n GLES20.glVertexAttribPointer(mPositionHandle, COORDS_PER_VERTEX,\n\t\t\t\t\t\t\t\t\t GLES20.GL_FLOAT, false,\n\t\t\t\t\t\t\t\t\t vertexStride, mainRotorVertexBuffer);\n\n // get handle to vertex shader's vColor member\n if (vertexColor)\n {\n mColorHandle = GLES20.glGetAttribLocation(chopperProgram, \"vColor\");\n if (mColorHandle < 0)\n {\n System.out.println(\"StigChopper: Failed to get vColor\");\n }\n GLES20.glEnableVertexAttribArray(mColorHandle);\n\n GLES20.glVertexAttribPointer(mColorHandle, COLORS_PER_VERTEX,\n\t\t\t\t\t\t\t\t\t\t GLES20.GL_FLOAT, false, colorStride, triColBuffer);\n }\n else\n {\n mColorHandle = GLES20.glGetUniformLocation(chopperProgram, \"vColor\");\n\t\t\tGLES20.glUniform4f(mColorHandle,1.0f,1.0f,0.0f,0.7f);\n }\n\n // Pass the projection and view transformation to the shader\n GLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mvpMatrix, 0);\n\n\t\tGLES20.glLineWidth(lineWidth);\n GLES20.glDrawElements(GLES20.GL_LINES, mainRotorDrawListBuffer.capacity(),\n\t\t\t\t\t\t\t GLES20.GL_UNSIGNED_INT, mainRotorDrawListBuffer);\n int drawError = GLES20.glGetError();\n if (drawError != GLES20.GL_NO_ERROR)\n {\n System.out.println(\"StigChopper: Rotor Draw Elements Error: \" + drawError + \", color: \" + vertexColor + \", text: \" + textures);\n }\n\n // Disable vertex array\n GLES20.glDisableVertexAttribArray(mPositionHandle);\n if (vertexColor)\n {\n GLES20.glDisableVertexAttribArray(mColorHandle);\n }\n\t}", "public void renderScene() {\n\t\tscene.ready=false;\n\t\tscene.num_points=0;\n\t\tscene.num_triangles=0;\n\t\tscene.num_tri_vertices=0;\n\t\tscene.list_of_triangles.clear(); // reset the List of Triangles (for z-sorting purposes)\n\t\tscene.num_objects_visible=0;\n\t\ttotal_cost=0;\n\t\tupdateLighting();\n\t\tfor (int i=0; i<num_vobjects;i++) {\n\t\t\tif (vobject[i].potentially_visible) {\n\t\t\t\tif (checkVisible(i)) {\n\t\t\t\t\tscene.num_objects_visible++;\n\t\t\t\t\tcalculateRelativePoints(i);\n\t\t\t\t\tif (scene.dot_field) {defineDots(i);} \n\t\t\t\t\tif (scene.wireframe) {defineTriangles(i);}\n\t\t\t\t\tif (scene.solid_poly) {defineTriangles(i);}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\t\tif (scene.z_sorted) {Collections.sort(scene.list_of_triangles);}\n\t\tscene.ready=true;\n\t}", "@Override\n\t\tpublic void render()\n\t\t{\n\t\t\tif(color.alpha() > 0)\n\t\t\t{\n\t\t\t\tbind();\n\t\t\t\tGL11.glBindTexture(GL11.GL_TEXTURE_2D, 0);\n\t\t\t\tGL11.glBegin(GL11.GL_TRIANGLE_STRIP);\n\t\t\t\t\tfloat screenWidth = WindowManager.controller().width();\n\t\t\t\t\tfloat screenHeight = WindowManager.controller().height();\n\t\t\t\t\tGL11.glVertex2f(0, 0);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, 0);\n\t\t\t\t\tGL11.glVertex2f(0, screenHeight);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, screenHeight);\n\t\t\t\tGL11.glEnd();\n\t\t\t\trelease();\n\t\t\t}\n\t\t}", "public void\n\t setColorMaterialElt( boolean value )\n\t \n\t {\n//\t if (ivState.lightModel == LightModel.BASE_COLOR.getValue()) value = false;\n//\t ivState.colorMaterial = value;\n\t }", "public interface RenderMesh extends NvDisposeable{\n\n void initlize(MeshParams params);\n\n void draw();\n\n public static class MeshParams{\n public int posAttribLoc;\n public int norAttribLoc;\n public int texAttribLoc;\n public int tanAttribLoc = -1; // tangent attribution is diabled default.\n }\n}", "public Sphere(Point3D c, double r, Color color, Material material)\r\n\t{\r\n\t\tthis(c,r, color);\r\n\t\tsuper._material = material;\r\n\t}", "public void draw(float[] mvpMatrix) {\n // Add program to OpenGL environment\n GLES20.glUseProgram(mProgram);\n\n // get handle to vertex shader's vPosition member\n mPositionHandle = GLES20.glGetAttribLocation(mProgram, \"vPosition\");\n\n // Enable a handle to the triangle vertices\n GLES20.glEnableVertexAttribArray(mPositionHandle);\n\n // Prepare the triangle coordinate data\n GLES20.glVertexAttribPointer(\n mPositionHandle, COORDS_PER_VERTEX,\n GLES20.GL_FLOAT, false,\n vertexStride, vertexBuffer);\n\n // get handle to fragment shader's vColor member\n mColorHandle = GLES20.glGetUniformLocation(mProgram, \"vColor\");\n\n // Set color for drawing the triangle\n GLES20.glUniform4fv(mColorHandle, 1, color, 0);\n\n // get handle to shape's transformation matrix\n mMVPMatrixHandle = GLES20.glGetUniformLocation(mProgram, \"uMVPMatrix\");\n MyGLRenderer.checkGlError(\"glGetUniformLocation\");\n\n // Apply the projection and view transformation\n GLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mvpMatrix, 0);\n MyGLRenderer.checkGlError(\"glUniformMatrix4fv\");\n\n // Draw the square\n GLES20.glDrawElements(\n GLES20.GL_TRIANGLES, drawOrder.length,\n GLES20.GL_UNSIGNED_SHORT, drawListBuffer);\n\n // Disable vertex array\n GLES20.glDisableVertexAttribArray(mPositionHandle);\n }", "public void renderPart(String part, PoseStack matrixStackIn, VertexConsumer bufferIn, int packedLightIn, int packedOverlayIn, float red, float green, float blue, float alpha) {\n }", "public void drawBale() {\n\t\tvertexData.position(0);\n\t\tglVertexAttribPointer(mPositionHandle, POSITION_COMPONENT_COUNT,\n\t\t\t\tGL_FLOAT, false, 0, vertexData);\n\n\t\tglEnableVertexAttribArray(mPositionHandle);\n\n\t\t// Pass in the color information\n\t\tcolorData.position(0);\n\t\tglVertexAttribPointer(mColorHandle, COLOR_COMPONENT_COUNT,\n\t\t\t\tGL_FLOAT, false, 0, colorData);\n\n\t\tglEnableVertexAttribArray(mColorHandle);\n\t\t\n\t\t// Pass in the texture coordinate information\n textureData.position(0);\n GLES20.glVertexAttribPointer(mTextureCoordHandle, TEXTURE_COMPONENT_COUNT, GLES20.GL_FLOAT, false, \n \t\t0, textureData);\n \n GLES20.glEnableVertexAttribArray(mTextureCoordHandle);\n\n\t\t// This multiplies the view matrix by the model matrix, and stores the\n\t\t// result in the MVP matrix\n\t\t// (which currently contains model * view).\n\t\tmultiplyMM(mMVPMatrix, 0, mViewMatrix, 0, mModelMatrix, 0);\n\n\t\t// Pass in the modelview matrix.\n\t\tglUniformMatrix4fv(mMVMatrixHandle, 1, false, mMVPMatrix, 0);\n\n\t\t// This multiplies the modelview matrix by the projection matrix, and\n\t\t// stores the result in the MVP matrix\n\t\t// (which now contains model * view * projection).\n\t\tMatrix.multiplyMM(mMVPMatrix, 0, mProjectionMatrix, 0, mMVPMatrix, 0);\n\n\t\t// Pass in the combined matrix.\n\t\tglUniformMatrix4fv(mMVPMatrixHandle, 1, false, mMVPMatrix, 0);\n\n\t\t// Draw the cube.\n\t\tglDrawArrays(GL_TRIANGLES, 0, 60);\n\t\tglDrawArrays(GL_TRIANGLE_FAN, 60, 12);\n\t\tglDrawArrays(GL_TRIANGLE_FAN, 72, 12);\n\t}", "private void setGeometry() {\n this.setCullHint(Spatial.CullHint.Dynamic);\n this.setLocalTranslation(realPosition);\n //attach geometry to this object\n // mat.setColor(\"Color\", colors[r.nextInt(colors.length)]);\n if (!companyTextures.containsKey(this.company)) {\n mat.setTexture(\"ColorMap\", Colors.get(r.nextInt(Colors.size())));\n } else {\n mat.setTexture(\"ColorMap\", companyTextures.get(this.company));\n }\n geom.setMaterial(mat);\n this.attachChild(geom.clone());\n }", "public void drawTriangles(float[] mvpMatrix)\n\t{\n // Add program to OpenGL ES environment\n //GLES20.glUseProgram(mTriProgram);\n GLES20.glUseProgram(chopperProgram);\n int error = GLES20.glGetError();\n if (error != GLES20.GL_NO_ERROR)\n {\n System.out.println(\"StigChopper: Use Tri Program Error: \" + error);\n }\n\n // get handle to vertex shader's vPosition member\n mPositionHandle = GLES20.glGetAttribLocation(chopperProgram, \"vPosition\");\n if (mPositionHandle < 0)\n {\n System.out.println(\"StigChopper: Failed to get mPositionHandle\");\n }\n\n // get handle to shape's transformation matrix\n mMVPMatrixHandle = GLES20.glGetUniformLocation(chopperProgram, \"uMVPMatrix\");\n\n // Pass the projection and view transformation to the shader\n GLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mvpMatrix, 0);\n\n // Enable a handle to the cube vertices\n GLES20.glEnableVertexAttribArray(mPositionHandle);\n\n // Prepare the cube coordinate data\n GLES20.glVertexAttribPointer(mPositionHandle, COORDS_PER_VERTEX,\n\t\t\t\t\t\t\t\t\t GLES20.GL_FLOAT, false,\n\t\t\t\t\t\t\t\t\t vertexStride, triVertexBuffer);\n\n // get handle to vertex shader's vColor member\n if (vertexColor)\n {\n mColorHandle = GLES20.glGetAttribLocation(chopperProgram, \"vColor\");\n if (mColorHandle < 0)\n {\n System.out.println(\"StigChopper: Failed to get vColor\");\n }\n GLES20.glEnableVertexAttribArray(mColorHandle);\n\n GLES20.glVertexAttribPointer(mColorHandle, COLORS_PER_VERTEX,\n\t\t\t\t\t\t\t\t\t\t GLES20.GL_FLOAT, false, colorStride, triColBuffer);\n }\n else\n {\n mColorHandle = GLES20.glGetUniformLocation(chopperProgram, \"vColor\");\n\t\t\tGLES20.glUniform4f(mColorHandle,color[0],color[1],color[2],color[3]);\n }\n\n if (StigChopper.textures)\n {\n mTextureUniformHandle = GLES20.glGetUniformLocation(chopperProgram, \"u_texture\");\n if (mTextureUniformHandle < 0)\n {\n System.out.println(\"StigChopper: Failed to get texture uniform\");\n }\n\n mTextureCoordinateHandle = GLES20.glGetAttribLocation(chopperProgram, \"a_texCoordinate\");\n if (mTextureCoordinateHandle < 0)\n {\n System.out.println(\"StigChopper: Failed to get texture coordinates.\");\n }\n GLES20.glEnableVertexAttribArray(mTextureCoordinateHandle);\n\n // Prepare the uv coordinate data.\n GLES20.glVertexAttribPointer(mTextureCoordinateHandle, 2,\n\t\t\t\t\t\t\t\t\t\t GLES20.GL_FLOAT, false, 8, triUvBuffer);\n\n // Set the active texture unit to texture unit 0.\n GLES20.glActiveTexture(GLES20.GL_TEXTURE0);\n\n // Bind the texture to this unit.\n GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, -1);\n\n\t\t\t// Tell the texture uniform sampler to use this texture in the shader by binding to texture unit 0.\n\t\t\tGLES20.glUniform1i(mTextureUniformHandle, 0);\n }\n\n GLES20.glDrawElements(GLES20.GL_TRIANGLES, triDrawListBuffer.capacity(),\n\t\t\t\t\t\t\t GLES20.GL_UNSIGNED_INT, triDrawListBuffer);\n int drawError = GLES20.glGetError();\n if (drawError != GLES20.GL_NO_ERROR)\n {\n System.out.println(\"StigChopper:Triangle Draw Elements Error: \" + drawError + \", color: \" + vertexColor + \", text: \" + textures);\n }\n\n if (StigChopper.textures)\n {\n // Disable texture array\n GLES20.glDisableVertexAttribArray(mTextureCoordinateHandle);\n }\n\n // Disable vertex array\n GLES20.glDisableVertexAttribArray(mPositionHandle);\n if (vertexColor)\n {\n GLES20.glDisableVertexAttribArray(mColorHandle);\n }\n\t}", "protected final void addSpecular(SoftwareMaterial kMaterial,\r\n SoftwareVertexProperty kVertexProperty,\r\n Vector3f kDirection, float fDdN) {\r\n\r\n Color3f kSpecular = kVertexProperty.getSpecular();\r\n if (null == kSpecular) {\r\n kSpecular = kMaterial.specular;\r\n }\r\n\r\n m_kReflect.scaleAdd( -2.0f * fDdN, m_kNormal, kDirection);\r\n float fRdU = m_kReflect.dot(m_kView);\r\n if (fRdU < 0.0f) {\r\n fRdU = (float) Math.pow( -fRdU, kMaterial.shininess);\r\n float fSpecAmpl = m_fAttenuate * m_fSpot * fRdU; //Correct method ?\r\n //float fSpecAmpl = 2 * kMaterial.shininess * m_fAttenuate * m_fSpot * fRdU;\r\n m_kColor.x += fSpecAmpl * specular.x * kSpecular.x;\r\n m_kColor.y += fSpecAmpl * specular.y * kSpecular.y;\r\n m_kColor.z += fSpecAmpl * specular.z * kSpecular.z;\r\n }\r\n }", "public abstract void render(GL2 gl);", "public void linkToRenderer(Renderer renderer, int id) {\n renderer.addUniform(new UniformMatrix4(renderer.getShader(),\"shadowMatrix[\" + id + \"]\",biasShadowBoxMatrix));\n\n }", "@Override\n public void render(MatrixStack matrices, VertexConsumer vertexConsumer, int light, int overlay,\n float red, float green, float blue, float alpha) {\n this.renderDynamic(false, 0, matrices, vertexConsumer, light, overlay, red, green, blue,\n alpha);\n }", "public void setAsMaterial(Material mat) throws IOException {\n assert (mat.getMaterialDef().getAssetName() != null);\n setName(\"MyMaterial\");\n setMatDefName(mat.getMaterialDef().getAssetName());\n createBaseMaterialFile();\n materialParameters.clear();\n Collection<MatParam> params = mat.getParams();\n for (Iterator<MatParam> it = params.iterator(); it.hasNext();) {\n MatParam matParam = it.next();\n materialParameters.put(matParam.getName(), new MaterialProperty(matParam));\n }\n additionalRenderStates.put(\"Wireframe\", new MaterialProperty(\"OnOff\", \"Wireframe\", mat.getAdditionalRenderState().isWireframe() ? \"On\" : \"Off\"));\n additionalRenderStates.put(\"DepthWrite\", new MaterialProperty(\"OnOff\", \"DepthWrite\", mat.getAdditionalRenderState().isDepthWrite() ? \"On\" : \"Off\"));\n additionalRenderStates.put(\"DepthTest\", new MaterialProperty(\"OnOff\", \"DepthTest\", mat.getAdditionalRenderState().isDepthTest() ? \"On\" : \"Off\"));\n additionalRenderStates.put(\"ColorWrite\", new MaterialProperty(\"OnOff\", \"ColorWrite\", mat.getAdditionalRenderState().isColorWrite() ? \"On\" : \"Off\"));\n additionalRenderStates.put(\"PointSprite\", new MaterialProperty(\"OnOff\", \"PointSprite\", mat.getAdditionalRenderState().isPointSprite() ? \"On\" : \"Off\"));\n additionalRenderStates.put(\"FaceCull\", new MaterialProperty(\"FaceCullMode\", \"FaceCull\", mat.getAdditionalRenderState().getFaceCullMode().name()));\n additionalRenderStates.put(\"Blend\", new MaterialProperty(\"BlendMode\", \"Blend\", mat.getAdditionalRenderState().getBlendMode().name()));\n additionalRenderStates.put(\"AlphaTestFalloff\", new MaterialProperty(\"Float\", \"AlphaTestFalloff\", mat.getAdditionalRenderState().getAlphaFallOff() + \"\"));\n additionalRenderStates.put(\"PolyOffset\", new MaterialProperty(\"Float,Float\", \"PolyOffset\", mat.getAdditionalRenderState().getPolyOffsetUnits() + \" \" + mat.getAdditionalRenderState().getPolyOffsetFactor()));\n checkWithMatDef();\n setAsText(getUpdatedContent());\n }", "public SceneLight(String name, int light_number, \n\t\t\tColor4f ambient, Color4f diffuse, Color4f specular, \n\t\t\tdouble posx,double posy,double posz,\n\t\t\tdouble directionx,double directiony,double directionz,\n\t\t\tfloat spot_Cutoff,float intensity, \n\t\t\tfloat constant_attenuation_constant,float linear_attenuation_constant,\n\t\t\tfloat quad_attenuation_constant){\n\t\t\n\t\tthis.name=name;\n\t\tthis.light_number=light_number;\n\t\tposition=new Vector3d(posx,posy,posz);\n\t\tdirection=new Vector3d(directionx,directiony,directionz);\n\t\tthis.ambient=ambient;\n\t\tthis.diffuse=diffuse;\n\t\tthis.specular=specular;\n\t\tthis.spot_Cutoff=spot_Cutoff;\n\t\tthis.intensity=intensity;\n\t\tthis.constant_attenuation_constant=constant_attenuation_constant;\n\t\tthis.linear_attenuation_constant=linear_attenuation_constant;\n\t\tthis.quad_attenuation_constant=quad_attenuation_constant;\n\t}", "public QuadMesh\n (boolean isBeingSplit,\n Matrix4f cubeMatrix, \n\t\tVector3f color,\n\t\tboolean inAtmosphere, \n\t\tVector3f meshOffset, \n\t\tboolean inFrustum, \n\t\tfloat arcLengthOverSize, \n\t\tVector3f center, \n\t\tfloat intensity, \n\t\tTexture2D Heightmap, \n\t\tString f ,\n\t\tQuadMesh p, \n\t\tVector3f v1, \n\t\tVector3f v2, \n\t\tVector3f v3, \n\t\tVector3f v4,\n\t\tfloat size,\n\t\tint x, \n\t\tint y, \n\t\tboolean hasChildren, \n\t\tArrayList<QuadMesh> children, \n\t\tBoundingSphere sphere, \n\t\tGeometry mesh, \n\t\tVector3f faceIndex, \n\t\tfloat centerOff,\n\t\tGeometry bsp)\t\n{\n\t\tfirst = v1;\n\t\tsecond = v2;\n\t\tthird = v3;\n\t\tfourth = v4;\n\t\twidth = size;\n\t\tindex1 = x;\n\t\tindex2 = y;\n\t\tthis.hasChildren = hasChildren;\n\t\tthis.children = children;\n\t\tparent = p;\n\t\tface = f;\n\t\tthis.sphere = sphere;\n\t\tthis.mesh = mesh;\n\t\tthis.faceIndex = faceIndex;\n\t\tthis.centerOff = centerOff;\n\t\tthis.Heightmap = Heightmap;\n\t\tthis.intensity = intensity;\n\t\tthis.arcLengthOverSize = arcLengthOverSize;\n\t\tthis.center = center;\n\t\tthis.inFrustum = inFrustum;\n\t\tthis.meshOffset = meshOffset;\n\t\tthis.inAtmosphere = inAtmosphere;\n\t\tthis.color = color;\n\t\tthis.cubeMatrix = cubeMatrix;\n\t\tthis.bsp = bsp;\n\n\t\n\t}", "public Mesh() {\r\n \tthis.surfaceAreaMethods.add(Object3D.MESH_SA);\r\n \tthis.volumeMethods.add(Object3D.MESH_VOL);\r\n \t\r\n vertices = new ArrayList<Vertex>();\r\n tris = new ArrayList<Triangle>();\r\n }", "public Sphere(final Material m) {\n super(m);\n this.c = new Point3(0,0,0);\n this.r = 1;\n }", "public abstract Color3f colorOf(SoftwareMaterial kMaterial,\r\n SoftwareVertexProperty kVertexProperty,\r\n Point3f kEye);", "public void linkToDepthRenderer(Renderer renderer) {\n renderer.addUniform(new UniformMatrix4(renderer.getShader(),\"viewMatrix\",shadowBoxMatrix));\n }", "@Override\n\tpublic void onDraw(final GL10 pGL, final Camera pCamera) {\n\t\tif(this.mColorEnabled) {\n\t\t\tpGL.glClearColor(this.mRed, this.mGreen, this.mBlue, this.mAlpha);\n\t\t\tpGL.glClear(GL10.GL_COLOR_BUFFER_BIT);\n\t\t}\n\t}", "@Override\r\n public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)\r\n {\n \tif (f3 <= -180F) { f3 += 360F; }\r\n \telse if (f3 >= 180F) { f3 -= 360F; }\r\n \t\r\n \tGlStateManager.pushMatrix();\r\n \tGlStateManager.enableBlend();\r\n \tGlStateManager.blendFunc(SourceFactor.SRC_ALPHA, DestFactor.ONE_MINUS_SRC_ALPHA);\r\n \tGlStateManager.scale(this.scale, this.scale, this.scale);\r\n \tGlStateManager.translate(0F, this.offsetY, 0F);\r\n \t\r\n \t//main body\r\n \tsetRotationAngles(f, f1, f2, f3, f4, f5, entity);\r\n \tthis.BodyMain.render(f5);\r\n \t\r\n \t//light part\r\n \tGlStateManager.disableLighting();\r\n \tGlStateManager.enableCull();\r\n \tOpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, 240F, 240F);\r\n \tthis.GlowBodyMain.render(f5);\r\n \tGlStateManager.disableCull();\r\n \tGlStateManager.enableLighting();\r\n \t\r\n \tGlStateManager.disableBlend();\r\n \tGlStateManager.popMatrix();\r\n }", "public void render() {\n\t\tRenderUtil.clearScreen();\n\t\t\n\t\tEntityShader.getInstance().updateLights(testLight);\n\t\t\n\t\ttestLight.render();\n\t\t\n\t\tsky.render();\n\t\t\t\t\n\t\ttestEntity.render();\t\t\n\t\ttestEntity2.render();\n\t\t\t\t\n\t\tSystem.out.println(\"Entity: \" + testEntity.getPositon().toString());\n\t\tSystem.out.println(\"Camera: \" + Camera.getInstance().getPosition().toString());\n\t\tSystem.out.println(\"Look: \" + Camera.getInstance().getForward().toString());\n\t\tSystem.out.println(\"Light: \" + testLight.getPosition().toString());\n\t\twindow.render();\n\t}", "public void setVertexColorA(E3DVector4F vertexColor){\r\n\t\tthis.vertices[0].setVertexColor(vertexColor);\r\n\t}", "public Mesh(ArrayList<Vertex> inputVertices, ArrayList<Triangle> inputFaces) {\r\n \tthis.surfaceAreaMethods.add(Object3D.MESH_SA);\r\n \tthis.volumeMethods.add(Object3D.MESH_VOL);\r\n \t\r\n vertices = inputVertices;\r\n tris = inputFaces;\r\n }", "@Override\r\n\tpublic void onDrawFrame(GL10 gl) {\n\t\tgl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);\r\n\r\n\t\tgl.glMatrixMode(GL10.GL_PROJECTION);\r\n\t\tgl.glLoadIdentity();\r\n\t\tgl.glLightfv(GL10.GL_LIGHT0, GL10.GL_POSITION,\r\n\t\t\t\tnew float[] { 5, 5, 5, 1 }, 0);\r\n\r\n\t\tgl.glRotatef(anglez, 0, 0, 1);\r\n\t\tgl.glRotatef(angley, 0, 1, 0);\r\n\t\tgl.glRotatef(anglex, 1, 0, 0);\r\n\t\tanglez += 0.1;\r\n\t\tangley += 0.2;\r\n\t\tanglex += 0.3;\r\n\r\n\t\tgl.glEnableClientState(GL10.GL_VERTEX_ARRAY);\r\n\t\t// gl.glEnableClientState(GL10.GL_NORMAL_ARRAY);\r\n\t\tgl.glEnableClientState(GL10.GL_COLOR_ARRAY);\r\n\r\n\t\tgl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexesBuffer);\r\n\t\tgl.glColorPointer(4, GL10.GL_FLOAT, 0, colorBuffer);\r\n\t\tgl.glDrawElements(GL10.GL_TRIANGLES, triangleBuffer.remaining(),\r\n\t\t\t\tGL10.GL_UNSIGNED_BYTE, triangleBuffer);\r\n\r\n\t\tgl.glDisableClientState(GL10.GL_VERTEX_ARRAY);\r\n\t\tgl.glDisableClientState(GL10.GL_COLOR_ARRAY);\r\n\t\tgl.glFinish();\r\n\r\n\t}", "public void render(){ \r\n\t\tGL11.glPushMatrix();\r\n\t\tGL11.glTranslatef(x, y, z);\r\n\t\tGL11.glColor4f(Color.x, Color.y, Color.z, (float)(Math.random())); //Color.vx\r\n\t\tVGO v=getModel();\r\n\t\tv.orientPlain(r);\r\n\t\tv.orient(base);\r\n\t\t\r\n\t\ttFling+=0.01f;\r\n\t\tif(tFling>5){\r\n\t\t\ttHide=tActive;\r\n\t\t\ttActive+=0.1f;\r\n\t\t\tif(tHide>=1){\r\n\t\t\t\ttHide=0f;\r\n\t\t\t\ttActive=0.1f;\r\n\t\t\t}\r\n\t\t\ttFling=0f;\r\n\t\t}\r\n\t\t\r\n\t\tv.render();//tHide,tActive,tFling,1);\r\n\t\tGL11.glPopMatrix();\r\n\t}", "public static void bgfx_update_dynamic_vertex_buffer(@NativeType(\"bgfx_dynamic_vertex_buffer_handle_t\") short _handle, @NativeType(\"uint32_t\") int _startVertex, @NativeType(\"bgfx_memory_t const *\") BGFXMemory _mem) {\n nbgfx_update_dynamic_vertex_buffer(_handle, _startVertex, _mem.address());\n }", "@Override\n public void onSurfaceCreated(GL10 gl, EGLConfig config) {\n GLES20.glClearColor(0.15f, 0.15f, 0.15f, 0.15f);\n\n // Position the eye behind the origin.\n final float eyeX = 0.0f;\n final float eyeY = 0.0f;\n final float eyeZ = 1.5f;\n\n // We are looking toward the distance\n final float lookX = 0.0f;\n final float lookY = 0.0f;\n final float lookZ = -5.0f;\n\n // Set our up vector. This is where our head would be pointing were we holding the camera.\n final float upX = 0.0f;\n final float upY = 1.0f;\n final float upZ = 0.0f;\n\n Matrix.setLookAtM(mViewMatrix, 0, eyeX, eyeY, eyeZ, lookX,\n lookY, lookZ, upX, upY, upZ);\n\n String fragmentShader = \"precision mediump float; \\n\"\n // This is the color from the vertex shader interpolated across the\n + \"varying vec4 v_Color; \\n\"\n // triangle per fragment.\n + \"void main() \\n\"\n + \"{ \\n\"\n + \" gl_FragColor = v_Color; \\n\"\n + \"} \\n\";\n String vertexShader = \"uniform mat4 u_MVPMatrix; \\n\"\n // Per-vertex position information we will pass in.\n + \"attribute vec4 a_Position; \\n\"\n\n // Per-vertex color information we will pass in.\n + \"attribute vec4 a_Color; \\n\"\n\n // This will be passed into the fragment shader.\n + \"varying vec4 v_Color; \\n\"\n\n + \"void main() \\n\"\n + \"{ \\n\"\n\n // Pass the color through to the fragment shader.\n + \" v_Color = a_Color; \\n\"\n\n // gl_Position is a special variable used to store the final position.\n // Multiply the vertex by the matrix to get the final point in\n // normalized screen coordinates.\n + \" gl_Position = u_MVPMatrix \\n\"\n + \" * a_Position; \\n\"\n + \"} \\n\";\n\n program = new GLProgram(vertexShader, fragmentShader);\n\n String positionVariableName = \"a_Position\";\n program.declareAttribute(positionVariableName);\n\n String colorVariableName = \"a_Color\";\n program.declareAttribute(colorVariableName);\n\n program.declareUniform(U_MVP_MATRIX);\n\n // Tell OpenGL to use this program when rendering.\n program.activate();\n\n // This triangle is red, green, and blue.\n final float[] triangle1VerticesData = {\n // X, Y, Z,\n // R, G, B, A\n -0.5f, -0.25f, 0.0f,\n 0.5f, -0.25f, 0.0f,\n 0.0f, 0.559016994f, 0.0f,\n };\n\n final float[] triangleColorData = {\n 1.0f, 0.0f, 0.0f, 1.0f,\n 0.0f, 1.0f, 0.0f, 1.0f,\n 0.0f, 0.0f, 1.0f, 1.0f,\n };\n\n VertexArray mTriangleVertices = new VertexArray(triangle1VerticesData,\n program.getVariableHandle(positionVariableName), true);\n /*\n Store our model data in a float buffer.\n */\n ColorArray mTriangleColors = new ColorArray(triangleColorData,\n program.getVariableHandle(colorVariableName), true);\n\n positionVbo = new VertexBufferObject(mTriangleVertices);\n colorVbo = new VertexBufferObject(mTriangleColors);\n }", "public void setVertexA(E3DTexturedVertex vertex){\r\n\t\tthis.vertices[0] = vertex;\r\n\t\tneedNormalRecalc = true;\r\n\t\tneedPlaneEquationRecalc = true;\r\n\t}", "void render(Object rendererTool);", "public Mesh(float[] positions, float[] textureCoords, float[] normals, int[] indices, int[] jointIndices, float[] weights) {\n vertexCount = indices.length;\n\n this.positions = positions;\n this.textureCoords = textureCoords;\n this.normals = normals;\n this.indices = indices;\n this.jointIndices = jointIndices;\n this.weights = weights;\n\n material = new Material();\n\n //Set vertices\n vertices = new Vector3f[positions.length/3];\n for(int i = 0; i<positions.length; i+=3) {\n vertices[i/3] = new Vector3f(positions[i], positions[i+1], positions[i+2]);\n }\n\n //Set faces\n faces = new Face[indices.length/3];\n for(int i = 0; i<indices.length; i+=3) {\n Vector3f[] faceVertices = new Vector3f[3];\n for(int j = 0; j<3; j++) {\n faceVertices[j] = vertices[indices[i+j]];\n }\n faces[i/3] = new Face(faceVertices);\n }\n }", "public void setUniform(String uniformName, Material material) {\n setUniform(uniformName + \".color\", material.getColor());\n setUniform(uniformName + \".hasTexture\", material.isTextured() ? 1 : 0);\n setUniform(uniformName + \".reflectance\", material.getReflectance());\n }", "public Sphere (final Point3 c, final double r, final Material material) {\n super(material);\n\n this.c = c;\n this.r = r;\n }" ]
[ "0.71650803", "0.7157477", "0.63142854", "0.607505", "0.5929368", "0.59091735", "0.57387143", "0.5696099", "0.56955874", "0.5686993", "0.567738", "0.55782205", "0.5518637", "0.55047077", "0.5443271", "0.5431425", "0.54278207", "0.53878677", "0.5377618", "0.5345807", "0.53356135", "0.53352076", "0.5325861", "0.52898675", "0.52620447", "0.5225206", "0.5218599", "0.5212655", "0.52068275", "0.52002895", "0.51927346", "0.51896673", "0.5169419", "0.51497674", "0.5132999", "0.5121281", "0.51211065", "0.51063174", "0.5105229", "0.50694776", "0.50598764", "0.5010405", "0.501038", "0.50079846", "0.50053084", "0.5004187", "0.49851558", "0.49784425", "0.4970836", "0.49601084", "0.49597126", "0.4954003", "0.49529946", "0.49518582", "0.49502498", "0.49400252", "0.4919423", "0.49092615", "0.4902603", "0.48995405", "0.48894608", "0.4866034", "0.48602125", "0.4859762", "0.4858418", "0.48552683", "0.485233", "0.483072", "0.48240012", "0.48212942", "0.48200876", "0.48074964", "0.47876447", "0.4768722", "0.47678825", "0.475408", "0.47410414", "0.47266382", "0.472272", "0.4721016", "0.470644", "0.4698851", "0.4694527", "0.46913677", "0.46913195", "0.46713504", "0.466951", "0.46659914", "0.46640775", "0.46632427", "0.4661278", "0.46588302", "0.46479017", "0.4646939", "0.46433514", "0.4635069", "0.46271485", "0.4615164", "0.46115255", "0.46099374" ]
0.74003917
0
Queries the shader program for all variables and locations, and adds them to itself
@Override public void initShaderProgram(util.ShaderProgram shaderProgram, Map<String, String> shaderVarsToVertexAttribs) { Objects.requireNonNull(glContext); GL3 gl = glContext.getGL().getGL3(); shaderLocations = shaderProgram.getAllShaderVariables(gl); this.shaderVarsToVertexAttribs = new HashMap<String, String>(shaderVarsToVertexAttribs); shaderLocationsSet = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void updatePointerVariables() {\n mPositionHandle = GLES20.glGetAttribLocation(mProgram, \"vPosition\");\n colorUniformHandle = GLES20.glGetUniformLocation(mProgram, \"vColor\");\n textureUniformHandle = GLES20.glGetUniformLocation(mProgram, \"s_texture\");\n textureCoordinateHandle = GLES20.glGetAttribLocation(mProgram, \"a_texCoord\");\n mMVPMatrixHandle = GLES20.glGetUniformLocation(mProgram, \"uMVPMatrix\");\n\n MyGLRenderer.checkGlError(\"updatePointerVariables\");\n }", "@Override\n\tprotected void getAllUniformLocations() {\n\t\tlocation_transformationMatrix = super.getUniformLocation(\"transformationMatrix\");\n\t\tlocation_projectionMatrix = super.getUniformLocation(\"projectionMatrix\");\n\t\tlocation_viewMatrix = super.getUniformLocation(\"viewMatrix\");\n\t\tlocation_outputR = super.getUniformLocation(\"outputR\");\n\t\tlocation_outputG = super.getUniformLocation(\"outputG\");\n\t\tlocation_outputB = super.getUniformLocation(\"outputB\");\n\t\t\n\t}", "@Override\r\n\tpublic void add(ShaderVar var) {\n\t\t\r\n\t}", "private void initVariables(){\n int counter = 1;\n for (int vCount = 0; vCount < vertexCount; vCount++){\n for (int pCount = 0; pCount < positionCount; pCount++){\n variables[vCount][pCount] = counter++;\n }\n }\n }", "protected void begin()\t{\n\t\t glUseProgram(programID);\n\t\t shadUniLoc.put(UNIFORM_TRANS, \n\t\t\t\t glGetUniformLocation(programID, UNIFORM_TRANS));\n\t}", "protected void updateUniforms()\n\t{\n\t\tsuper.updateUniforms();\n\t\tfor (int i = 0; i < getTexCoordCount(); i++)\n\t\t{\n\t\t\tint loc = shader.getUniformLocation(U_TEXTURE + i);\n\t\t\tif (loc != -1)\n\t\t\t\tshader.setUniformi(loc, i);\n\t\t}\n\t}", "public void init () {\n\t\tshaderProgram.addUniform(TEXTURE_UNIFORM_KEY);\n\t\tshaderProgram.addUniform(SCALING_UNIFORM_KEY);\n\t\tshaderProgram.addUniform(TRANSLATION_UNIFORM_KEY);\n\t\tshaderProgram.addUniform(POSITION_UNIFORM_KEY);\n\t}", "@Override\n\tprotected void init() {\n\t\tShaderProgram shaderProgram = new ShaderProgram(\"aufgabe2\");\n\t\tglUseProgram(shaderProgram.getId());\n\t\tfloat [] vertex_data = {\n\t\t\t\t-0.5f,-0.5f,\n\t\t\t\t0.5f,-0.5f,\n\t\t\t\t0.0f,0.5f,\n\t\t};\n\t\tfloat[] frag_data = { 1f, 0f, 0f, 0f, 1f, 0f, 0f, 0f, 1f };\n\t\t// Koordinaten, VAO, VBO, ... hier anlegen und im Grafikspeicher ablegen\n\t\tint vaoId = glGenVertexArrays();\n\t\tglBindVertexArray(vaoId);\n\t\tint vboId = glGenBuffers();\n\t\tglBindBuffer(GL_ARRAY_BUFFER, vboId);\n\t\tglBufferData(GL_ARRAY_BUFFER,vertex_data, GL_STATIC_DRAW);\n\t\tglVertexAttribPointer(0, 2, GL_FLOAT,false, 0, 0);\n\t\tglEnableVertexAttribArray(0);\n\t\tint vboId2 = glGenBuffers();\n\t\tglBindBuffer(GL_ARRAY_BUFFER, vboId2);\n\t\tglBufferData(GL_ARRAY_BUFFER,frag_data, GL_STATIC_DRAW);\n\t\tglVertexAttribPointer(1, 3, GL_FLOAT, false, 0, 0);\n\t\tglEnableVertexAttribArray(1);\n\t}", "int glGetUniformLocation(int program, String name);", "void glAttachShader(int program, int shader);", "public void init() {\n createVertexShader(vertexShader(true));\n createFragmentShader(fragShader.SHADER_STRING);\n\n /* Binds the code and checks that everything has been done correctly. */\n link();\n\n createUniform(\"worldMatrix\");\n createUniform(\"modelMatrix\");\n createUniform(\"normalMatrix\");\n\n /* Initialization of the shadow map matrix uniform. */\n createUniform(\"directionalShadowMatrix\");\n\n /* Create uniform for material. */\n createMaterialUniform(\"material\");\n createUniform(\"texture_sampler\");\n /* Initialization of the light's uniform. */\n createUniform(\"camera_pos\");\n createUniform(\"specularPower\");\n createUniform(\"ambientLight\");\n createPointLightListUniform(\"pointLights\", LightModel.MAX_POINTLIGHT);\n createSpotLightUniformList(\"spotLights\", LightModel.MAX_SPOTLIGHT);\n createDirectionalLightUniform(\"directionalLight\");\n createUniform(\"shadowMapSampler\");\n createUniform(\"bias\");\n }", "@Override\r\n\tpublic vec3 plus(ShaderVar var) {\n\t\treturn null;\r\n\t}", "public void d() {\n super.d();\n int glGetUniformLocation = GLES20.glGetUniformLocation(this.x, \"target\");\n GLES20.glActiveTexture(33984);\n GLES20.glBindTexture(3553, this.f1221a);\n GLES20.glUniform1i(glGetUniformLocation, 0);\n int glGetUniformLocation2 = GLES20.glGetUniformLocation(this.x, \"source\");\n GLES20.glActiveTexture(33985);\n GLES20.glBindTexture(3553, this.f1222b);\n GLES20.glUniform1i(glGetUniformLocation2, 1);\n int glGetUniformLocation3 = GLES20.glGetUniformLocation(this.x, \"field\");\n GLES20.glActiveTexture(33986);\n GLES20.glBindTexture(3553, this.c);\n GLES20.glUniform1i(glGetUniformLocation3, 2);\n int glGetUniformLocation4 = GLES20.glGetUniformLocation(this.x, \"source_size\");\n float[] fArr = this.d;\n GLES20.glUniform2f(glGetUniformLocation4, fArr[0], fArr[1]);\n int glGetUniformLocation5 = GLES20.glGetUniformLocation(this.x, \"target_size\");\n float[] fArr2 = this.e;\n GLES20.glUniform2f(glGetUniformLocation5, fArr2[0], fArr2[1]);\n int glGetUniformLocation6 = GLES20.glGetUniformLocation(this.x, \"field_size\");\n float[] fArr3 = this.f;\n GLES20.glUniform2f(glGetUniformLocation6, fArr3[0], fArr3[1]);\n int glGetUniformLocation7 = GLES20.glGetUniformLocation(this.x, \"full_size\");\n float[] fArr4 = this.g;\n GLES20.glUniform2f(glGetUniformLocation7, fArr4[0], fArr4[1]);\n GLES20.glUniform1f(GLES20.glGetUniformLocation(this.x, \"jump\"), this.h);\n GLES20.glUniformMatrix4fv(GLES20.glGetUniformLocation(this.x, \"region\"), 1, false, this.i, 0);\n }", "void glUseProgram(int program);", "protected abstract void initializeUniforms();", "private void initialize() {\n ShaderProgram.pedantic = false;\r\n\r\n shader = CustomShaderLoader.createShader();\r\n if (!shader.isCompiled()) {\r\n System.err.println(shader.getLog());\r\n System.exit(0);\r\n }\r\n if (shader.getLog().length() != 0)\r\n System.out.println(shader.getLog());\r\n }", "private void updateVars()\n {\n\n }", "int glGetAttribLocation(int program, String name);", "@Override\n\tpublic void glSetup(Context cx) {\n\t\tmShader = ShaderHelper.glGenerateShader(cx, \"vertex_shader\",\n\t\t\t\t\"scene_enhance_fragment_shader\", \"aPosition\", \"uMVPMatrix\",\n\t\t\t\t\"uTexture\", \"uTextureCurve\");\n\n\t}", "public abstract void setUniforms(GameObject gameObject);", "int glCreateProgram();", "public void setup(){\n\t\t gl.glEnable(GL.GL_BLEND);\n\t\t gl.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA);\n\t\t for (int i = 0; i< cubes.length; i++){\n\t\t cubes[i] = this.s.new Cube(\n\t\t \t\tMath.round(p.random(-100, 100)), \n\t\t \t\tMath.round(p.random(-100, 100)), \n\t\t \t\t5,//Math.round(random(-100, 100)),\n\t\t \t\tMath.round(p.random(-10, 10)), \n\t\t \t\t\tMath.round(p.random(-10, 10)), \n\t\t\t\t\tMath.round( p.random(-10, 10))\n\t\t );\n\t\t cubRotation[i]=new Vector3D();\n\t\t cubRotationFactor[i]=new Vector3D();\n\t\t cubRotationFactor[i].x = (float)Math.random()/2f;\n\t\t cubRotationFactor[i].y = (float)Math.random()/2f;\n\t\t cubRotationFactor[i].z = (float)Math.random()/2f;\n\t\t \n\t\t cubColor[i]=new Vector3D();\n\t\t cubColor[i].x = (float)Math.random();\n\t\t cubColor[i].y = (float)Math.random();\n\t\t cubColor[i].z = (float)Math.random();\n\t\t }\n\t\t \n\t\t try {\n\t\t\togl.makeProgram(\n\t\t\t\t\t\t\"glass\",\n\t\t\t\t\t\tnew String[] {},\n\t\t\t\t\t\tnew String[] {\"SpecularColor1\",\"SpecularColor2\",\"SpecularFactor1\",\"SpecularFactor2\",\"LightPosition\"}, //\"GlassColor\",\n\t\t\t\t\t\togl.loadGLSLShaderVObject(\t\"resources/robmunro/perform/ol5/glass_c.vert\" ), \n\t\t\t\t\t\togl.loadGLSLShaderFObject(\t\"resources/robmunro/perform/ol5/glass_c.frag\"\t)\n\t\t\t\t);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t}", "public void addVertexShader(String fileName);", "public static void updateVars() {\n IntVar tempo;\n for (Vars vars: getArrayutcc() ){\n tempo = (IntVar) Store.getModelStore().findVariable(vars.varname);\n vars.vinf = tempo.value();\n }\n\n }", "private synchronized void updateVariables() throws DebugException {\n\t\tif (lastUpdated == target.getSuspendCount()\n\t\t\t\t|| (variables != null && oldLineNumber == lineNumber))\n\t\t\treturn;\n\t\t\n\t\tSynchronizer frontend = target.getFrontend();\n\t\tif (frontend != null) {\n\t\t\t// get local variables\n\t\t\tString localsSausage = frontend.GetLocals(thread.getID(),frameNumber);\n\t\t\tString[] locals;\n\t\t\tif (localsSausage == null || localsSausage.equals(\"--\")\n\t\t\t\t\t|| localsSausage.equals(\"\"))\n\t\t\t\tlocals = new String[0];\n\t\t\telse\n\t\t\t\tlocals = localsSausage.split(\" \");\n\t\t\t// get parameters\n\t\t\tString paramsSausage = frontend.GetParameters(thread.getID(),frameNumber);\n\t\t\tString[] params;\n\t\t\tif (paramsSausage == null || paramsSausage.equals(\"--\")\n\t\t\t\t\t|| paramsSausage.equals(\"\"))\n\t\t\t\tparams = new String[0];\n\t\t\telse\n\t\t\t\tparams = paramsSausage.split(\" \");\n\t\t\t// get static fields of the current class\n\t\t\tString className;\n\t\t\ttry {\n\t\t\t\tclassName = methodName.substring(0, methodName.lastIndexOf('.'));\n\t\t\t} catch (StringIndexOutOfBoundsException e) {\n\t\t\t\tclassName = \"\";\n\t\t\t}\n\t\t\tString staticsSausage = frontend.PtypeFieldsOnly(thread.getID(),frameNumber,\n\t\t\t\t\tclassName,true);\n\t\t\tString[] statics;\n\t\t\tif (staticsSausage == null || staticsSausage.equals(\"--\")\n\t\t\t\t\t|| staticsSausage.equals(\"\"))\n\t\t\t\tstatics = new String[0];\n\t\t\telse\n\t\t\t\tstatics = staticsSausage.split(\" \");\n\t\t\t// determine if \"this\" is valid\n\t\t\tboolean _this = true;\n\t\t\tif (frontend.PtypeFieldsOnly(thread.getID(),frameNumber,\"this\",false).equals(\"--\"))\n\t\t\t\t_this = false;\n\t\t\t\n\t\t\t// create variable objects\n\t\t\tIVariable[] tempVariables = new EmonicVariable[locals.length + params.length\n\t\t\t + statics.length + (_this ? 1 : 0)];\n\n\t\t\tif (variables == null || variables.length != tempVariables.length) {\n\t\t\t\t// something changed\n\t\t\t\tint index = 0;\n\t\t\t\tif (_this) {\n\t\t\t\t\ttempVariables[0] = new EmonicVariable(this,\"this\",null);\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t\tArrays.sort(locals);\n\t\t\t\tfor (int i=0; i<locals.length; i++) {\n\t\t\t\t\ttempVariables[i+index] = new EmonicVariable(this,locals[i],null);\n\t\t\t\t}\n\t\t\t\tindex+=locals.length;\n\t\t\t\tArrays.sort(params);\n\t\t\t\tfor (int i=0; i<params.length; i++) {\n\t\t\t\t\ttempVariables[i+index] = new EmonicVariable(this,params[i],null);\n\t\t\t\t}\n\t\t\t\tindex+=params.length;\n\t\t\t\tArrays.sort(statics);\n\t\t\t\tfor (int i=0; i<statics.length; i++) {\n\t\t\t\t\ttempVariables[i+index] = new EmonicVariable(this,statics[i],null);\n\t\t\t\t}\n\t\t\t\tvariables = tempVariables;\n\t\t\t} \n\t\t}\n\t\tlastUpdated = target.getSuspendCount();\n//\t\toldLineNumber = lineNumber;\n\t}", "protected void applyTextureUniforms () {\n final boolean wasPendantic = ShaderProgram.pedantic;\n ShaderProgram.pedantic = false; // Allow shaders that don't use all the textures.\n for (int i = 0; i < textureUnitUniforms.length; i++)\n getShader().setUniformi(textureUnitUniforms[i], i);\n ShaderProgram.pedantic = wasPendantic;\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 }", "private void addVertexVisitConstraint(){\n\n for (int vertex=0; vertex < vertexCount; vertex++){\n Integer[] pos = new Integer[variables.length];\n for (int position =0; position < positionCount; position++){\n pos[position] = variables[position][vertex];\n }\n addExactlyOne(pos);\n }\n }", "void glLinkProgram(int program);", "@Override\n\tpublic void init () {\n\t\tframeBuffers = new FrameBuffer[getPassQuantity()];\n\t\tpassShaderProviders = new ShaderProvider[getPassQuantity()];\n\n\t\tfor (int i = 0; i < getPassQuantity(); i++) {\n\t\t\tinit(i);\n\t\t}\n\t}", "void glShaderSource(int shader, String string);", "void glUniform1i(int location, int x);", "private void computeSets(DLProgram datalogGlobal){\n\t\t\n\t\tDLVInvocation invocation = DLVWrapper.getInstance().createInvocation(dlvPath);\n\t\tDLVInputProgram inputProgram = new DLVInputProgramImpl();\n\n\t\ttry {\t\t\t\n\t\t\tDLProgramStorer storer = new DLProgramStorerImpl();\n\t\t\tStringBuilder target = new StringBuilder();\n\t\t\tstorer.store(datalogGlobal, target);\n \n\t\t\t//Add to DLV input program the contents of global program. \n\t\t\tString datalogGlobalText = target.toString();\n\t\t\tinputProgram.addText(datalogGlobalText);\n\t\t\t\n\t\t\t//inputProgram.addText(\"triple(c1,\\\"hasModule\\\",m1,\\\"g\\\").\" + \n\t\t\t// \" inst(c1,\\\"Context\\\",\\\"g\\\").\"+ \n\t\t\t// \"triple(c1,\\\"hasModule\\\",m2,\\\"g\\\").\" + \n\t\t\t// \"triple(X, \\\"hasModule\\\", m3, \\\"g\\\") :- inst(X,\\\"Context\\\",\\\"g\\\").\");\n\t\t\t\n\t\t\t//Set input program for current invocation.\n\t\t\tinvocation.setInputProgram(inputProgram);\n\t\t\t\n\t\t\t//Filter for \\triple and \\inst predicates. \n\t\t\t//System.out.println(inputProgram.getCompleteText());\n\t\t\tList<String> filters = new LinkedList<String>();\n\t\t\tfilters.add(\"tripled\");\n\t\t\tfilters.add(\"instd\");\n\t\t\tinvocation.setFilter(filters, true);\n\t\t\t\n\t\t\t//List of computed models, used to check at least a model is computed.\n\t\t\tfinal List<Model> models = new ArrayList<Model>();\n\t\t\t\n\t\t\t//Model handler: retrieves contexts and associations in the computed model(s).\n\t\t\tinvocation.subscribe(new ModelHandler() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void handleResult(DLVInvocation paramDLVInvocation,\n\t\t\t\t\t\tModelResult modelResult) {\n\t\t\t\t\t\n\t\t\t\t\t//System.out.print(\"{ \");\n\t\t\t\t\tModel model = (Model) modelResult;\n\t\t\t\t\tmodels.add(model);\n\n\t\t\t\t\t//model.beforeFirst();\n\t\t\t\t\t//while (model.hasMorePredicates()) {}\n\n\t\t\t\t\t//Predicate predicate = model.nextPredicate();\n\t\t\t\t\tPredicate predicate = model.getPredicate(\"instd\");\n\t\t\t\t\tif (predicate != null){\n\t\t\t\t\t\t//System.out.println(predicate.name() + \": \");\n\t\t\t\t\t\twhile (predicate.hasMoreLiterals()) {\n\n\t\t\t\t\t\t\tLiteral literal = predicate.nextLiteral();\n\t\t\t\t\t\t\tif (literal.getAttributeAt(1).toString().equals(\"\\\"Context\\\"\")) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//Add context to list of inferred contexts.\n\t\t\t\t\t\t\t\tcontextsSet.add(literal.getAttributeAt(0).toString());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//System.out.print(literal);\n\t\t\t\t\t\t\t\t//System.out.println(\", \");\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tpredicate = model.getPredicate(\"tripled\");\n\t\t\t\t\tif (predicate != null){\n\t\t\t\t\t\t//System.out.println(predicate.name() + \": \");\n\t\t\t\t\t\twhile (predicate.hasMoreLiterals()) {\n\n\t\t\t\t\t\t\t//Add module association for each context.\n\t\t\t\t\t\t\tLiteral literal = predicate.nextLiteral();\n\t\t\t\t\t\t\tif (literal.getAttributeAt(1).toString().equals(\"\\\"hasModule\\\"\")) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tString[] association = new String[2];\n\t\t\t\t\t\t\t\tassociation[0] = literal.getAttributeAt(0).toString();\n\t\t\t\t\t\t\t\tassociation[1] = literal.getAttributeAt(2).toString();\n\t\t\t\t\t\t\t\thasModuleAssociations.add(association);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//System.out.print(literal);\n\t\t\t\t\t\t\t\t//System.out.println(\", \");\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"}\");\n\t\t\t\t\t//System.out.println();\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\tlong startTime = System.currentTimeMillis();\n\t\t\t\n\t\t\tinvocation.run();\n\t\t\tinvocation.waitUntilExecutionFinishes();\n\t\t\t\n\t\t\tlong endTime = System.currentTimeMillis();\n\t\t\tglobalModelComputationTime = endTime - startTime;\n\t\t\t\n\t\t\t//System.out.println(\"Global computation time: \" + globalModelComputationTime + \" ms.\");\n\t\t\t\n\t\t\tList<DLVError> k = invocation.getErrors();\n\t\t\tif (k.size() > 0)\n\t\t\t\tSystem.err.println(k);\n\t\t\t\n\t\t\t//System.out.println(\"Number of computed models: \" + models.size());\n\t\t\tif(models.size() == 0) \n\t\t\t\tSystem.err.println(\"[!] No models for global context program.\");\n\t\t\t\n\t\t\t//for (String[] a : hasModuleAssociations) {\n\t\t\t//\tSystem.out.println(a[0] + \" -> \" + a[1]);\n\t\t\t//}\n\t\t\t\n\t\t\t//System.out.println(\"Contexts: \");\n\t\t\t//for (String s : contextsSet) {\n\t\t\t//\tSystem.out.println(s);\n\t\t\t//\tfor(String[] a : hasModuleAssociations){\n\t\t\t//\t\tif(a[0].equals(s))\n\t\t\t//\t\tSystem.out.println(\" -> \" + a[1]);\t\n\t\t\t//\t}\n\t\t\t//}\n\t\t} catch (DLVInvocationException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void updateValues() {\n\t\tlightResistances = new float[width][height];\n\t\twalls = new boolean[width][height];\n\n\t\tfor (int x = 0; x < width; x++) {\n\t\t\tfor (int y = 0; y < height; y++) {\n\t\t\t\tlightResistances[x][y] = map[x][y].getLighting();\n\t\t\t\twalls[x][y] = map[x][y].isWall();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\t\tpublic ShaderProgram get() {\n\t\t\t\tvar source = sources.values().stream().findFirst().orElseThrow();\n\t\t\t\tvar newShader = new ShaderProgram().attachSources(source);\n\t\t\t\tnewShader.upload();\n\t\t\t\tshaders.put(name, newShader);\n\t\t\t\treturn newShader;\n\t\t\t}", "@Override\n public void onSurfaceCreated(GL10 glUnused, EGLConfig config) {\n glClearColor(0.0f, 0.0f, 0.0f, 0.0f);\n \n String vertexShaderSource = TextResourceReader.readTextFileFromResource(context, R.raw.simple_vertex_shader);\n String fragmentShaderSource = TextResourceReader.readTextFileFromResource(context, R.raw.simple_fragment_shader);\n \n int vertexShaderId = ShaderHelper.compileVertexShader(vertexShaderSource);\n int fragmentShaderId = ShaderHelper.compileFragmentShader(fragmentShaderSource);\n \n program = ShaderHelper.linkProgram(vertexShaderId, fragmentShaderId);\n \n if(LoggerConfig.ON){\n \tShaderHelper.validateProgram(program);\n }\n glUseProgram(program);\n uColorLocation = glGetUniformLocation(program, U_COLOR);\n aPositionLocation = glGetAttribLocation(program, A_POSITION);\n \n vertexData.position(0);\n glVertexAttribPointer(aPositionLocation, POSITION_COMPONENT_COUNT, GL_FLOAT, false, 0, vertexData);\n glEnableVertexAttribArray(aPositionLocation); \n }", "private void addVertexPositionConstraint(){\n for (int vertex=0; vertex < vertexCount; vertex++){\n addExactlyOne(variables[vertex]);\n }\n }", "@Override\n public int glGetUniformLocation(final int program, final String name) {\n return GL20.glGetUniformLocation(program, name + \"\\0\");\n }", "public void draw() {\n // añadimos el programa al entorno de opengl\n GLES20.glUseProgram(mProgram);\n\n // obtenemos el identificador de los sombreados del los vertices a vPosition\n positionHandle = GLES20.glGetAttribLocation(mProgram, \"vPosition\");\n\n // habilitamos el manejo de los vertices del triangulo\n GLES20.glEnableVertexAttribArray(positionHandle);\n\n // Preparamos los datos de las coordenadas del triangulo\n GLES20.glVertexAttribPointer(positionHandle, COORDS_PER_VERTEX,\n GLES20.GL_FLOAT, false,\n vertexStride, vertexBuffer);\n\n // Obtenemos el identificador del color del sombreado de los fragmentos\n colorHandle = GLES20.glGetUniformLocation(mProgram, \"vColor\");\n\n // Establecemos el color para el dibujo del triangulo\n GLES20.glUniform4fv(colorHandle, 1, color, 0);\n\n // SE dibuja el triangulo\n GLES20.glDrawArrays(GLES20.GL_LINE_LOOP, 0, vertexCount);\n\n // Deshabilitamos el arreglo de los vertices (que dibuje una sola vez)\n GLES20.glDisableVertexAttribArray(positionHandle);\n }", "public final void applyChanges(GL gl)\r\n {\r\n \r\n for (int i = 0; i < _nUniforms; i++)\r\n {\r\n GPUUniform uniform = _createdUniforms[i];\r\n if (uniform != null) //Texture Samplers return null\r\n {\r\n uniform.applyChanges(gl);\r\n }\r\n }\r\n \r\n for (int i = 0; i < _nAttributes; i++)\r\n {\r\n GPUAttribute attribute = _createdAttributes[i];\r\n if (attribute != null)\r\n {\r\n attribute.applyChanges(gl);\r\n }\r\n }\r\n }", "public void addFragmentShader(String fileName);", "public ShaderProgram getShader () {\n return shader;\n }", "@Override\r\n\tpublic void multLocal(ShaderVar var) {\n\t}", "public void dispose()\r\n {\r\n \r\n //ILogger::instance()->logInfo(\"Deleting program %s\", _name.c_str());\r\n \r\n // if (_manager != NULL) {\r\n // _manager->compiledProgramDeleted(_name);\r\n // }\r\n \r\n for (int i = 0; i < _nUniforms; i++)\r\n {\r\n if (_createdUniforms[i] != null)\r\n _createdUniforms[i].dispose();\r\n }\r\n \r\n for (int i = 0; i < _nAttributes; i++)\r\n {\r\n if (_createdAttributes[i] != null)\r\n _createdAttributes[i].dispose();\r\n }\r\n \r\n _createdAttributes = null;\r\n _createdUniforms = null;\r\n \r\n if (!_gl.deleteProgram(this))\r\n {\r\n ILogger.instance().logError(\"GPUProgram: Problem encountered while deleting program.\");\r\n }\r\n }", "public static void initializeVariables() {\n // System.out.println(\"initializeVariables()\");\n for (int i = 1; i <= 20; i++) {\n\n\n List<Variable> variablecopies = new LinkedList<Variable>();\n List<Integer> siteList = new LinkedList<Integer>();\n\n Variable var = null;\n if (i % 2 == 0) {\n for (int j = 1; j <= 10; j++) {\n sites.get(j).addVariable(i, 10 * i);\n var = sites.get(j).getVariable(i);\n siteList.add(j);\n variablecopies.add(var);\n }\n } else {\n for (int j = 1; j <= 10; j++) {\n if (j == 1 + i % 10) {\n sites.get(j).addVariable(i, 10 * i);\n var = sites.get(j).getVariable(i);\n variablecopies.add(var);\n siteList.add(j);\n }\n }\n }\n variable_site_map.put(i, siteList);\n variable_copies_map.put(i, variablecopies);\n }\n }", "@Override\n public void recordSolution() {\n for (int i = 0; i < variables.length; i++) {\n values[i] = variables[i].getValue();\n }\n }", "void updateJOGLTexLocs(GL4 g){\n joglTexLocs = new int[texs.size()];\n\n for (int i = 0; i < joglTexLocs.length; i++) {\n joglTexLocs[i] = texs.get(i).getTextureObject(g);\n\n }\n }", "public void setLocals (ArrayList<Coordinates> locals) {\n ArrayList<Coordinates> newLocals = new ArrayList<Coordinates>();\n\n for(Coordinates aux : locals)\n newLocals.add(aux);\n\n this.locals = newLocals;\n }", "public void drawCube() {\r\n GLES20.glUseProgram(program);\r\n\r\n GLES20.glUniform3fv(lightPosParam, 1, lightPosInEyeSpace, 0);\r\n\r\n // Set the Model in the shader, used to calculate lighting\r\n GLES20.glUniformMatrix4fv(modelParam, 1, false, model, 0);\r\n\r\n // Set the ModelView in the shader, used to calculate lighting\r\n GLES20.glUniformMatrix4fv(modelViewParam, 1, false, modelView, 0);\r\n\r\n // Set the position of the cube\r\n GLES20.glVertexAttribPointer(positionParam, COORDS_PER_VERTEX, GLES20.GL_FLOAT, false, 0, vertices);\r\n\r\n // Set the ModelViewProjection matrix in the shader.\r\n GLES20.glUniformMatrix4fv(modelViewProjectionParam, 1, false, modelViewProjection, 0);\r\n\r\n // Set the normal positions of the cube, again for shading\r\n GLES20.glVertexAttribPointer(normalParam, 3, GLES20.GL_FLOAT, false, 0, normals);\r\n GLES20.glVertexAttribPointer(colorParam, 4, GLES20.GL_FLOAT, false, 0, isLookingAtObject(this) ? cubeFoundColors : colors);\r\n\r\n GLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, 36);\r\n checkGLError(\"Drawing cube\");\r\n }", "private void drawDynamic() {\n GLES20.glUniformMatrix4fv(mMVMatrixHandle, 1, false, mMVPMatrix, 0);\n\n // This multiplies the modelview matrix by the projection matrix, and stores the result in the MVP matrix\n // (which now contains model * view * projection).\n Matrix.multiplyMM(mTemporaryMatrix, 0, mProjectionMatrix, 0, mMVPMatrix, 0);\n System.arraycopy(mTemporaryMatrix, 0, mMVPMatrix, 0, 16);\n\n // Pass in the combined matrix.\n GLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mMVPMatrix, 0);\n\n // Pass in the light position in eye space.\n GLES20.glUniform3f(mLightPosHandle, mLightPosInEyeSpace[0], mLightPosInEyeSpace[1], mLightPosInEyeSpace[2]);\n }", "public void setLighting(GL3 gl) {\n\t\t // Set the lighting properties\n\t\t\n\t\t// get sunlight vector coords\n\t\tfloat xSun = terrain.getSunlight().getX();\n\t\tfloat ySun = terrain.getSunlight().getY();\n\t\tfloat zSun = terrain.getSunlight().getZ();\n\t\t\n/*\t\t// check fps\n\t\tPoint3D torchPos;\n\t\tif (camera.getPerson().isFps()) {\n\t\t\ttorchPos = new Point3D(camera.getGlobalPosition().getX(), camera.getGlobalPosition().getY(), camera.getGlobalPosition().getZ());\n*/\n\t\tPoint3D torchPos;\n\t\t// check fps\n\t\tif (person.isFps()) {\n\t\t\ttorchPos = new Point3D(person.getCamera().getGlobalPosition().getX(),\n\t\t\t\t\tperson.getCamera().getGlobalPosition().getY(),\n\t\t\t\t\tperson.getCamera().getGlobalPosition().getZ());\n\t\t} else { \n\t\t\ttorchPos = new Point3D(person.getGlobalPosition().getX(),\n\t\t\t\t\tperson.getGlobalPosition().getY() + 0.2f, \n\t\t\t\t\tperson.getGlobalPosition().getZ());\n\t\t}\n\t\t\n Shader.setPoint3D(gl, \"sunlight\", new Point3D(xSun,ySun,zSun)); // set sunlight vector to passed in vector \n Shader.setColor(gl, \"lightIntensity\", Color.WHITE);\n \n // Set the material properties\n Shader.setColor(gl, \"ambientCoeff\", Color.WHITE);\n Shader.setColor(gl, \"diffuseCoeff\", new Color(0.5f, 0.5f, 0.5f));\n Shader.setFloat(gl, \"phongExp\", 16f);\n \n // for torch light\n Shader.setFloat(gl, \"cutoff\", 90f); // in degrees\n Shader.setPoint3D(gl, \"posTorch\", torchPos);\n Shader.setFloat(gl, \"attenuationFactor\", 40f); \n Shader.setColor(gl, \"lightIntensityTorch\", Color.YELLOW); \n \n if (day) {\n \t// light properties for day\n Shader.setColor(gl, \"specularCoeff\", new Color(0.8f, 0.8f, 0.8f));\n \tShader.setColor(gl, \"ambientIntensity\", new Color(0.2f, 0.2f, 0.2f));\n Shader.setPoint3D(gl, \"dirTorch\", new Point3D(0,0,0)); // set torchDir vector \n } else { \n \t// light properties for night \n Shader.setColor(gl, \"specularCoeff\", new Color(0.5f, 0.5f, 0.5f));\n \tShader.setColor(gl, \"ambientIntensity\", new Color(0.01f, 0.01f, 0.01f));\n Shader.setPoint3D(gl, \"dirTorch\", new Point3D(0,0,1)); // set torchDir vector \n }\n\t}", "private static int createProgram(int[] shaderIds){\n int shaderProgramId = glCreateProgram();\n\n for(int shader: shaderIds){\n if(shader != -1){\n glAttachShader(shaderProgramId, shader);\n }\n }\n glLinkProgram(shaderProgramId);\n\n int[] linkResult = {0};\n glGetProgramiv(shaderProgramId, GL_LINK_STATUS, linkResult);\n if(linkResult[0] == GL_FALSE){\n System.err.println(\"Failed to link shader program.\");\n String log = glGetProgramInfoLog(shaderProgramId);\n System.err.println(\"Log: \");\n System.err.println(log);\n }\n\n glValidateProgram(shaderProgramId);\n\n int[] validationResult = {0};\n glGetProgramiv(shaderProgramId, GL_VALIDATE_STATUS, validationResult);\n if(validationResult[0] == GL_FALSE){\n System.err.println(\"Failed to validate shader program.\");\n String log = glGetProgramInfoLog(shaderProgramId);\n System.err.println(\"Log: \");\n System.err.println(log);\n }\n\n return shaderProgramId;\n }", "private void clearLocals() {\n this.map = null;\n this.inputName = null;\n }", "public ShaderProgram loadShader(String vsProcess, String fsProcess);", "@Override\n public void cleanup(final Program program) {\n int positionHandle = GLES20.glGetAttribLocation(program.handle, A_POSITION);\n GLES20.glDisableVertexAttribArray(positionHandle);\n }", "ShaderProgram(Context context, int vertexShaderResourceId, int fragmentShaderResourceId, ShaderType type) {\n\t\t// Compile the shaders and link the program.\n\t\tmProgram = ShaderHelper.getInstance().buildProgram(TextResourceReader.readTextFileFromResource(context, vertexShaderResourceId),\n\t\t\tTextResourceReader.readTextFileFromResource(context, fragmentShaderResourceId));\n\t}", "public void drawTriangles(float[] mvpMatrix)\n\t{\n // Add program to OpenGL ES environment\n //GLES20.glUseProgram(mTriProgram);\n GLES20.glUseProgram(chopperProgram);\n int error = GLES20.glGetError();\n if (error != GLES20.GL_NO_ERROR)\n {\n System.out.println(\"StigChopper: Use Tri Program Error: \" + error);\n }\n\n // get handle to vertex shader's vPosition member\n mPositionHandle = GLES20.glGetAttribLocation(chopperProgram, \"vPosition\");\n if (mPositionHandle < 0)\n {\n System.out.println(\"StigChopper: Failed to get mPositionHandle\");\n }\n\n // get handle to shape's transformation matrix\n mMVPMatrixHandle = GLES20.glGetUniformLocation(chopperProgram, \"uMVPMatrix\");\n\n // Pass the projection and view transformation to the shader\n GLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mvpMatrix, 0);\n\n // Enable a handle to the cube vertices\n GLES20.glEnableVertexAttribArray(mPositionHandle);\n\n // Prepare the cube coordinate data\n GLES20.glVertexAttribPointer(mPositionHandle, COORDS_PER_VERTEX,\n\t\t\t\t\t\t\t\t\t GLES20.GL_FLOAT, false,\n\t\t\t\t\t\t\t\t\t vertexStride, triVertexBuffer);\n\n // get handle to vertex shader's vColor member\n if (vertexColor)\n {\n mColorHandle = GLES20.glGetAttribLocation(chopperProgram, \"vColor\");\n if (mColorHandle < 0)\n {\n System.out.println(\"StigChopper: Failed to get vColor\");\n }\n GLES20.glEnableVertexAttribArray(mColorHandle);\n\n GLES20.glVertexAttribPointer(mColorHandle, COLORS_PER_VERTEX,\n\t\t\t\t\t\t\t\t\t\t GLES20.GL_FLOAT, false, colorStride, triColBuffer);\n }\n else\n {\n mColorHandle = GLES20.glGetUniformLocation(chopperProgram, \"vColor\");\n\t\t\tGLES20.glUniform4f(mColorHandle,color[0],color[1],color[2],color[3]);\n }\n\n if (StigChopper.textures)\n {\n mTextureUniformHandle = GLES20.glGetUniformLocation(chopperProgram, \"u_texture\");\n if (mTextureUniformHandle < 0)\n {\n System.out.println(\"StigChopper: Failed to get texture uniform\");\n }\n\n mTextureCoordinateHandle = GLES20.glGetAttribLocation(chopperProgram, \"a_texCoordinate\");\n if (mTextureCoordinateHandle < 0)\n {\n System.out.println(\"StigChopper: Failed to get texture coordinates.\");\n }\n GLES20.glEnableVertexAttribArray(mTextureCoordinateHandle);\n\n // Prepare the uv coordinate data.\n GLES20.glVertexAttribPointer(mTextureCoordinateHandle, 2,\n\t\t\t\t\t\t\t\t\t\t GLES20.GL_FLOAT, false, 8, triUvBuffer);\n\n // Set the active texture unit to texture unit 0.\n GLES20.glActiveTexture(GLES20.GL_TEXTURE0);\n\n // Bind the texture to this unit.\n GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, -1);\n\n\t\t\t// Tell the texture uniform sampler to use this texture in the shader by binding to texture unit 0.\n\t\t\tGLES20.glUniform1i(mTextureUniformHandle, 0);\n }\n\n GLES20.glDrawElements(GLES20.GL_TRIANGLES, triDrawListBuffer.capacity(),\n\t\t\t\t\t\t\t GLES20.GL_UNSIGNED_INT, triDrawListBuffer);\n int drawError = GLES20.glGetError();\n if (drawError != GLES20.GL_NO_ERROR)\n {\n System.out.println(\"StigChopper:Triangle Draw Elements Error: \" + drawError + \", color: \" + vertexColor + \", text: \" + textures);\n }\n\n if (StigChopper.textures)\n {\n // Disable texture array\n GLES20.glDisableVertexAttribArray(mTextureCoordinateHandle);\n }\n\n // Disable vertex array\n GLES20.glDisableVertexAttribArray(mPositionHandle);\n if (vertexColor)\n {\n GLES20.glDisableVertexAttribArray(mColorHandle);\n }\n\t}", "public void cleanUp(){\n for(ShaderProgram sp : shaderlist){\n sp.cleanup();\n }\n }", "private void addVerticesToGraph()\n\t{\n\t\tString vertexName;\n\n\t\tMap<Long, IOFSwitch> switches = this.floodlightProvider.getSwitches();\n\t\tfor(IOFSwitch s :switches.values())\n\t\t{\n\t\t\tvertexName =Long.toString(s.getId());\n\t\t\tm_graph.addVertex(vertexName);\t\t\t \t\t\t \n\t\t}\n\t\tSystem.out.println(m_graph);\n\t}", "public Variable[] getLocals();", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "Variables createVariables();", "private void setAllLocalResults() {\n TreeMap<FlworKey, List<FlworTuple>> keyValuePairs = mapExpressionsToOrderedPairs();\n // get only the values(ordered tuples) and save them in a list for next() calls\n keyValuePairs.forEach((key, valueList) -> valueList.forEach((value) -> _localTupleResults.add(value)));\n\n _child.close();\n if (_localTupleResults.size() == 0) {\n this._hasNext = false;\n } else {\n this._hasNext = true;\n }\n }", "public void initGLState() {\n\n\t\tm.setPerspective(fovy, aspect, zNear, zFar);\n\t\tglMatrixMode(GL_PROJECTION);\n\t\tglLoadIdentity();\n\n\t\tm.get(fb);\n\n\t\tglLoadMatrixf(fb);\n\n\t\tglMatrixMode(GL_MODELVIEW);\n\t\tglLoadIdentity();\n\n\t\t/* Smooth-Shading soll benutzt werden */\n\t\tglEnable(GL_NORMALIZE);\n\t\tglShadeModel(GL_SMOOTH);\n\t\tinitLighting();\n\t}", "public void updateVariables(){\n Map<String, Integer> specialParameter = myLogic.getSpecialParameterToDisplay();\n liveScore.setText(Double.toString(myLogic.getScore()));\n for (String parameter: specialParameter.keySet()) {\n numLives.setText(parameter + specialParameter.get(parameter));\n }\n myMoney.setText(Double.toString(myLogic.getCash()));\n }", "protected void applyMatrices () {\n combinedMatrix.set(projectionMatrix).mul(transformMatrix);\n getShader().setUniformMatrix(\"u_projTrans\", combinedMatrix);\n }", "@Override\n public Void visitVariableAntecedent(GraafvisParser.VariableAntecedentContext ctx) {\n variables.add(ctx.HID().getText());\n return null;\n }", "@Override\n public int glGetAttribLocation(final int program, final String name) {\n return GL20.glGetAttribLocation(program, name + \"\\0\");\n }", "protected void initParams(){\n super.initParams();\n muMoiveFilterTextureLoc = GLES20.glGetUniformLocation(mProgramHandle, \"movieFilterTexture\");\n GlUtil.checkLocation(muMoiveFilterTextureLoc, \"movieFilterTexture\");\n }", "static synchronized void updateVariables(HashMap<String, String> newVars) {\n // Remove the old one.\n for (String newName : newVars.keySet()) {\n for (String oldName : localState.keySet()) {\n if (newName.startsWith(oldName) || oldName.startsWith(newName)) {\n localState.remove(oldName);\n }\n }\n }\n // Add the new one.\n localState.putAll(newVars);\n }", "public void fillHeuristicData(){\n int[] temp;\n initHeuristic();\n for(int i = 0; i< variableLength; i++){\n temp=variables.clone();\n temp[i]=0;\n validateClauses(i,temp);\n temp[i]=1;\n validateClauses(i,temp);\n }\n }", "private void updateStackLocalVariables(Vector<Long> nextInstrsId,\n VerificationInstruction currentInstr,\n Frame frame,\n Vector allInst) throws Exception {\n VerificationInstruction inst = null;\n LocalVariables localVar = frame.getLocalVariables();\n OperandStack stack = frame.getOperandStack();\n boolean changed = true;\n for (int loop = 0; loop < nextInstrsId.size(); loop++) {\n long id = nextInstrsId.elementAt(loop);\n if (id == -1) {\n int nextInstOffset = currentInstr.getOffSet() + currentInstr.length();\n inst = (VerificationInstruction) MethodInfo.findInstruction(nextInstOffset,\n allInst);\n nextInstrsId.remove(loop);\n nextInstrsId.add(loop, inst.getInstructionId());\n } else {\n inst = (VerificationInstruction) MethodInfo.findInstruction(id,\n allInst);\n }\n //if already not visited then do the adding otherwise merge\n changed = true;\n if (inst.isVisited()) {\n Debug_print(\">>>>>>>>>>>> merging with inst \", inst.toStringSpecial());\n changed = inst.merge(currentInstr, localVar, stack);\n } else {\n inst.set(localVar, stack);\n inst.setVisited(true);\n }\n if (changed) {\n inst.setChangeBit(changed);\n }\n }\n }", "public void fixupVariables(List<QName> vars, int globalsSize)\n {\n // no-op\n }", "public void resetVariables(){\n\t\tthis.queryTriplets.clear();\n\t\tthis.variableList.clear();\n\t\tthis.prefixMap.clear();\n\t}", "private void stats ( ) {\n\n nodes = 0;\n depth = 0;\n\n parse(((GPIndividual)program).trees[0].child);\n\n }", "public void setLocals(LocalDebugInfo[] locals);", "protected void end()\t{\n\t\tglUseProgram(0);\n\t}", "private void setup() {\n\t\tpopulateEntitiesLists();\n\t\t// rayHandler.setCombinedMatrix(batch.getProjectionMatrix());\n\t\tambientColor = Color.CLEAR;\n\t\tsetAmbientAlpha(.3f);\n\t\tfpsLogger = new FPSLogger();\n\t\tdynamicEntities = new ArrayList<DynamicEntity>();\n\t\tfont.getData().setScale(DEBUG_FONT_SCALE);\n\t}", "protected abstract void getAllUniformLocations();", "private static void setupProperties(ShaderProgram shader, Map<String, Object> properties, SpriteComponent spriteComponent){\n /*for (Map.Entry<String, Object> shaderProperty : shaderComponent.shaderProperties.entrySet()) {\n shader.setUniformf(shaderProperty.getKey(), shaderProperty.getValue());\n }*/\n shader.setUniformf(\"u_viewportInverse\", new Vector2(1f / spriteComponent.sprite.getTexture().getWidth(),\n 1f / spriteComponent.sprite.getTexture().getHeight()));\n shader.setUniformf(\"u_offset\", 1f);\n shader.setUniformf(\"u_step\", Math.min(1f, spriteComponent.sprite.getTexture().getWidth() / 70f));\n if(properties.containsKey(ShaderComponent.COLOR)) {\n shader.setUniformf(\"u_color\", ((Color)properties.get(ShaderComponent.COLOR)));\n //shader.setUniformf(\"u_color\", new Vector3(1f, 0, 0));\n } else {\n Logger.warning(\"Shader's color is not defined!\");\n shader.setUniformf(\"u_color\", new Vector3(1f, 1f, 1f));\n }\n }", "private void drawStatic() {\n Matrix.multiplyMM(mMVPMatrix, 0, mViewMatrix, 0, mModelMatrix, 0);\n\n // Pass in the modelview matrix.\n GLES20.glUniformMatrix4fv(mMVMatrixHandle, 1, false, mMVPMatrix, 0);\n\n // This multiplies the modelview matrix by the projection matrix, and stores the result in the MVP matrix\n // (which now contains model * view * projection).\n Matrix.multiplyMM(mTemporaryMatrix, 0, mProjectionMatrix, 0, mMVPMatrix, 0);\n System.arraycopy(mTemporaryMatrix, 0, mMVPMatrix, 0, 16);\n\n // Pass in the combined matrix.\n GLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mMVPMatrix, 0);\n\n // Pass in the light position in eye space.\n GLES20.glUniform3f(mLightPosHandle, mLightPosInEyeSpace[0], mLightPosInEyeSpace[1], mLightPosInEyeSpace[2]);\n }", "public void renderScene() {\n\t\tscene.ready=false;\n\t\tscene.num_points=0;\n\t\tscene.num_triangles=0;\n\t\tscene.num_tri_vertices=0;\n\t\tscene.list_of_triangles.clear(); // reset the List of Triangles (for z-sorting purposes)\n\t\tscene.num_objects_visible=0;\n\t\ttotal_cost=0;\n\t\tupdateLighting();\n\t\tfor (int i=0; i<num_vobjects;i++) {\n\t\t\tif (vobject[i].potentially_visible) {\n\t\t\t\tif (checkVisible(i)) {\n\t\t\t\t\tscene.num_objects_visible++;\n\t\t\t\t\tcalculateRelativePoints(i);\n\t\t\t\t\tif (scene.dot_field) {defineDots(i);} \n\t\t\t\t\tif (scene.wireframe) {defineTriangles(i);}\n\t\t\t\t\tif (scene.solid_poly) {defineTriangles(i);}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\t\tif (scene.z_sorted) {Collections.sort(scene.list_of_triangles);}\n\t\tscene.ready=true;\n\t}", "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 apply() {\n\t\tif (! defaultFragmentShader.exists() || ! defaultVertexShader.exists()) {\n\t\t\tthrow new IllegalArgumentException(\"No default shader exists.\");\n\t\t}\n\t\t\n\t}", "@Override\r\n\tpublic void sub(ShaderVar var) {\n\t\t\r\n\t}", "private FontRenderer prepareShader() {\n\t\tFontShaderProgram.INSTANCE.sendFloat(\"width\", .46f * (1 + size / 100f));\n\t\tFontShaderProgram.INSTANCE.sendFloat(\"edge\", .2f * (1f / (size * 2)));\n\t\tFontShaderProgram.INSTANCE.sendVec4(\"fontColor\", color);\n\t\t\n\t\treturn this;\n\t}", "public final void onUnused(GL gl)\r\n {\r\n //ILogger::instance()->logInfo(\"GPUProgram %s unused\", _name.c_str());\r\n \r\n for (int i = 0; i < _nUniforms; i++)\r\n {\r\n if (_createdUniforms[i] != null) //Texture Samplers return null\r\n {\r\n _createdUniforms[i].unset();\r\n }\r\n }\r\n \r\n for (int i = 0; i < _nAttributes; i++)\r\n {\r\n if (_createdAttributes[i] != null)\r\n {\r\n _createdAttributes[i].unset(gl);\r\n }\r\n }\r\n }", "void addingGlobalData() {\n\n }", "void collect(){\r\n\t\tif (getValues() != null){\r\n\t\t\tfor (Variable var : getValues().getVariables()){\r\n\t\t\t\tdefSelect(var);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void store(FloatBuffer buf){\n\t\tambient.store(buf);\n\t\tdiffuse.store(buf);\n\t\tspecular.store(buf);\n\t\tposition.store(buf);\n\t\tbuf.put(range);\n\t\tdirection.store(buf);\n\t\tbuf.put(spot);\n\t\tatt.store(buf);\n\t\tbuf.put(pad);\n\t}", "public void clearVars() {\n setLatitude (FLOATNULL);\n setLongitude (FLOATNULL);\n setDepth (FLOATNULL);\n setTemperatureMin (FLOATNULL);\n setTemperatureMax (FLOATNULL);\n setSalinityMin (FLOATNULL);\n setSalinityMax (FLOATNULL);\n setOxygenMin (FLOATNULL);\n setOxygenMax (FLOATNULL);\n setNitrateMin (FLOATNULL);\n setNitrateMax (FLOATNULL);\n setPhosphateMin (FLOATNULL);\n setPhosphateMax (FLOATNULL);\n setSilicateMin (FLOATNULL);\n setSilicateMax (FLOATNULL);\n setChlorophyllMin (FLOATNULL);\n setChlorophyllMax (FLOATNULL);\n }", "private void buildStageVariableMaps(List<StageVariable> allStageVars) throws IGCConnectivityException, IGCParsingException {\n for (StageVariable stageVar : allStageVars) {\n String rid = stageVar.getId();\n // If the modification details are empty, likely we did not get this from a search but from paging\n // within a stage itself (cache miss), and therefore must retrieve the details of each variable one-by-one\n // as well\n if (stageVar.getModifiedBy() == null) {\n log.debug(\"...... retrieving stage variable by RID: {}\", rid);\n stageVar = igcRestClient.getAssetWithSubsetOfProperties(rid, \"stage_variable\", DataStageConstants.getStageVariableSearchProperties());\n }\n log.debug(\"...... caching RID: {}\", rid);\n varMap.put(rid, stageVar);\n String stageRid = stageVar.getStage().getId();\n Set<String> stageVars = stageToVarsMap.getOrDefault(stageRid, null);\n if (stageVars != null) {\n stageVars.add(rid);\n stageToVarsMap.put(stageRid, stageVars);\n } else {\n log.error(\"Stage variables were null for stage RID: {}\", stageRid);\n }\n }\n }", "private void initRendering() {\n\t\tmActivity.showDebugMsg(\" initRendering\");\n\t\tGLES20.glClearColor(0.0f, 0.0f, 0.0f, Vuforia.requiresAlpha() ? 0.0f : 1.0f);\n\n\t\tfor (Texture t : mTextures) {\n\t\t\tGLES20.glGenTextures(1, t.mTextureID, 0);\n\t\t\tGLES20.glBindTexture(GLES20.GL_TEXTURE_2D, t.mTextureID[0]);\n\t\t\tGLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_LINEAR);\n\t\t\tGLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_LINEAR);\n\t\t\tGLES20.glTexImage2D(GLES20.GL_TEXTURE_2D, 0, GLES20.GL_RGBA, t.mWidth, t.mHeight, 0, GLES20.GL_RGBA,\n\t\t\t\t\tGLES20.GL_UNSIGNED_BYTE, t.mData);\n\t\t}\n\n\t\tshaderProgramID = ArUtils.createProgramFromShaderSrc(\n\t\t\t\tShaders.CUBE_MESH_VERTEX_SHADER,\n\t\t\t\tShaders.CUBE_MESH_FRAGMENT_SHADER);\n\n\t\tvertexHandle = GLES20.glGetAttribLocation(shaderProgramID,\n\t\t\t\t\"vertexPosition\");\n\t\ttextureCoordHandle = GLES20.glGetAttribLocation(shaderProgramID,\n\t\t\t\t\"vertexTexCoord\");\n\t\tmvpMatrixHandle = GLES20.glGetUniformLocation(shaderProgramID,\n\t\t\t\t\"modelViewProjectionMatrix\");\n\t\ttexSampler2DHandle = GLES20.glGetUniformLocation(shaderProgramID,\n\t\t\t\t\"texSampler2D\");\n\n\t\tif (!mModelIsLoaded) {\n\t\t\t//object = new Teapot();\n\t\t\tobject = mActivity.get3DObject();\n\t\t\tobjectScaleFloat *= object.getDefScale();\n\t\t\t//minObjectScale *= object.getDefScale();\n\t\t\t//maxObjectScale *= object.getDefScale();\n\n\t\t\tmActivity.showDebugMsg(\"Loading model Teapot\");\n\t\t\t// Hide the Loading Dialog\n\t\t\t//mActivity.loadingDialogHandler.sendEmptyMessage(LoadingDialogHandler.HIDE_DIALOG);\n\t\t}\n\n\t}", "void init_embedding() {\n\n\t\tg_heir = new int[50]; // handles up to 8^50 points\n\t\tg_levels = 0; // stores the point-counts at the associated levels\n\n\t\t// reset the embedding\n\n\t\tint N = m_gm.getNodeCount();\n\t\tif (areUsingSubset) {\n\t\t\tN = included_points.size();\n\t\t}\n\t\t\n\t\tm_embed = new float[N*g_embedding_dims];\n\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tfor (int j = 0; j < g_embedding_dims; j++) {\n\t\t\t\tm_embed[i * (g_embedding_dims) + j] = ((float) (myRandom\n\t\t\t\t\t\t.nextInt(10000)) / 10000.f) - 0.5f;\n\t\t\t}\n\t\t}\n\n\t\t// calculate the heirarchy\n\t\tg_levels = fill_level_count(N, g_heir, 0);\n\t\tg_levels = 1;\n\t\t\n\t\t// generate vector data\n\n\t\tg_current_level = g_levels - 1;\n\t\tg_vel = new float[g_embedding_dims * N];\n\t\tg_force = new float[g_embedding_dims * N];\n\n\t\t// compute the index sets\n\n\t\tg_idx = new IndexType[N * (V_SET_SIZE + S_SET_SIZE)];\n\t\tfor (int i = 0; i < g_idx.length; i++) {\n\n\t\t\tg_idx[i] = new IndexType();\n\t\t}\n\n\t\tg_done = false; // controls the movement of points\n\t\tg_interpolating = false; // specifies if we are interpolating yet\n\n\t\tg_cur_iteration = 0; // total number of iterations\n\t\tg_stop_iteration = 0; // total number of iterations since changing\n\t\t\t\t\t\t\t\t// levels\n\t}", "public void updateVarView() { \t\t\n if (this.executionHandler == null || this.executionHandler.getProgramExecution() == null) {\n \treturn;\n }\n HashMap<Identifier, Value> vars = this.executionHandler.getProgramExecution().getVariables();\n \n //insert Tree items \n this.varView.getVarTree().removeAll(); \n \t\tIterator<Map.Entry<Identifier, Value>> it = vars.entrySet().iterator();\t\t\n \t\twhile (it.hasNext()) {\n \t\t\tMap.Entry<Identifier, Value> entry = it.next();\n \t\t\tString type = entry.getValue().getType().toString();\n \t\t\tString id = entry.getKey().toString();\n \t\t\tValue tmp = entry.getValue();\n \t\t\tthis.checkValue(this.varView.getVarTree(), type, id, tmp);\n \t\t} \n \t}", "private void printShaderLogInfo(int id) \r\n {\r\n IntBuffer infoLogLength = ByteBuffer.allocateDirect(4)\r\n .order(ByteOrder.nativeOrder()).asIntBuffer();\r\n glGetShader(id, GL_INFO_LOG_LENGTH, infoLogLength);\r\n if (infoLogLength.get(0) > 0) \r\n {\r\n infoLogLength.put(0, infoLogLength.get(0)-1);\r\n }\r\n\r\n ByteBuffer infoLog = ByteBuffer.allocateDirect(infoLogLength.get(0))\r\n .order(ByteOrder.nativeOrder());\r\n glGetShaderInfoLog(id, infoLogLength, infoLog);\r\n\r\n String infoLogString =\r\n Charset.forName(\"US-ASCII\").decode(infoLog).toString();\r\n if (infoLogString.trim().length() > 0)\r\n {\r\n ErrorHandler.handle(\"shader log:\\n\"+infoLogString);\r\n }\r\n }", "public void onSurfaceCreated(GL10 glUnused, EGLConfig config) {\n\t\tGLES20.glBlendFunc(GLES20.GL_SRC_ALPHA, GLES20.GL_ONE_MINUS_SRC_ALPHA);\n\t\tmVertexShader = RawResourceReader.readTextFileFromRawResource(mContext,\n\t\t\t\tde.moliso.shelxle.R.raw.atoms_vetrex_shader);\n\t\tmFragmentShader = RawResourceReader.readTextFileFromRawResource(\n\t\t\t\tmContext, de.moliso.shelxle.R.raw.atoms_fragment_shader);\n\n\t\tmProgram = createProgram(mVertexShader, mFragmentShader);\n\t\tif (mProgram == 0) {\n\t\t\treturn;\n\t\t}\n\t\ttry{\n\t\t\tversionName = mContext.getPackageManager().getPackageInfo(mContext.getPackageName(), 0).versionName;\n\t\t}catch (NameNotFoundException e){\n\t\t\t//wurst\n\t\t}\n\t\ttexturH = GLES20.glGetUniformLocation(mProgram, \"text\");\n\t\tellipsoidH = GLES20.glGetUniformLocation(mProgram, \"eli\");\n\t\tlichtH = GLES20.glGetUniformLocation(mProgram, \"lighting\");\n\n\t\tvertexAttr1 = GLES20.glGetAttribLocation(mProgram, \"vertex\");\n\n\t\tnormalAttr1 = GLES20.glGetAttribLocation(mProgram, \"normal\");\n\t\tmatrixUniform1 = GLES20.glGetUniformLocation(mProgram, \"matrix\");\n\t\tinvmatrixUniform1 = GLES20.glGetUniformLocation(mProgram, \"invmatrix\");\n\t\tcolorUniform1 = GLES20.glGetUniformLocation(mProgram, \"col\");\n\n\t\tmTextureLoc = GLES20.glGetUniformLocation(mProgram, \"textureSampler\");\n\t\tMatrix.setIdentityM(mv, 0);\n\t\tMatrix.scaleM(mv, 0, 9.0f, 9.0f, 9.0f);\n\n\t\t// Matrix.setLookAtM(mVMatrix, 0, 0, 0, -5, 0f, 0f, 0f, 0f, 1.0f, 0.0f);\n\n\t}", "public void prepare(){\n\t\tGL11.glEnable(GL11.GL_DEPTH_TEST);\n\t\tGL11.glClear( GL11.GL_COLOR_BUFFER_BIT|GL11.GL_DEPTH_BUFFER_BIT );\n\t\tGL11.glClearColor(1, 0, 0, 1);\n\t\t\n\t}", "protected void loadFloat(int location, float value){\r\n\t\tGL20.glUniform1f(location, value);\r\n\t}", "public void resetLocals()\n {\n maxLocalSize = 0;\n localCnt = localIntCnt = localDoubleCnt = localStringCnt = localItemCnt = 0;\n locals = lastLocal = new LocalVariable(null, null, null);\n }" ]
[ "0.601132", "0.5978716", "0.58284074", "0.5734785", "0.5715806", "0.5695663", "0.5637511", "0.5422744", "0.54203176", "0.5397135", "0.5386221", "0.53845876", "0.53742", "0.53540784", "0.5338137", "0.5304492", "0.52989614", "0.5230583", "0.51441395", "0.51355284", "0.51057166", "0.5100264", "0.5093677", "0.5074018", "0.5009758", "0.49963254", "0.49537048", "0.4951493", "0.49421853", "0.4939118", "0.49121603", "0.489947", "0.48973456", "0.48929745", "0.48815164", "0.48719642", "0.4867356", "0.48618907", "0.48617443", "0.48337162", "0.48044932", "0.4799185", "0.47980878", "0.47961035", "0.47892034", "0.47873533", "0.47849607", "0.4782805", "0.4779989", "0.47709972", "0.47686446", "0.47648585", "0.47646666", "0.47528082", "0.47147766", "0.4710392", "0.47089288", "0.46969575", "0.46926656", "0.46906582", "0.46543676", "0.464435", "0.46337155", "0.4633089", "0.4632047", "0.46294656", "0.46227786", "0.46207905", "0.46148828", "0.46122035", "0.46104735", "0.46084222", "0.45970464", "0.4589478", "0.45874244", "0.4581512", "0.45758083", "0.45698315", "0.45657477", "0.45599377", "0.4536695", "0.4527289", "0.45271036", "0.45224172", "0.45079213", "0.45073527", "0.45065528", "0.45025408", "0.45023662", "0.4501262", "0.44966838", "0.44965735", "0.4494512", "0.44925532", "0.4480942", "0.4475511", "0.44692075", "0.44682345", "0.44606006", "0.4452431" ]
0.6436027
0
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof DiccionarioAplicacionEntity)) { return false; } DiccionarioAplicacionEntity other = (DiccionarioAplicacionEntity) object; if ((this.diccionarioAplicacionPK == null && other.diccionarioAplicacionPK != null) || (this.diccionarioAplicacionPK != null && !this.diccionarioAplicacionPK.equals(other.diccionarioAplicacionPK))) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public int getId(){ return id; }", "public int getId() {return id;}", "public int getId() {return Id;}", "public int getId(){return id;}", "public void setId(long id) {\n id_ = id;\n }", "private int getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId(){return id;}", "public int id() {return id;}", "public long getId(){return this.id;}", "public int getId(){\r\n return this.id;\r\n }", "@Override public String getID() { return id;}", "public Long id() { return this.id; }", "public Integer getId() { return id; }", "@Override\n\tpublic Integer getId() {\n return id;\n }", "@Override\n public Long getId () {\n return id;\n }", "@Override\n public long getId() {\n return id;\n }", "public Long getId() {return id;}", "public Long getId() {return id;}", "public String getId(){return id;}", "@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}", "public Integer getId() { return this.id; }", "@Override\r\n public int getId() {\n return id;\r\n }", "@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}", "public int getId() {\n return id;\n }", "public long getId() { return _id; }", "public int getId() {\n/* 35 */ return this.id;\n/* */ }", "public long getId() { return id; }", "public long getId() { return id; }", "public void setId(Long id) \n {\n this.id = id;\n }", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "public void setId(String id) {\n this.id = id;\n }", "@Override\n\tpublic void setId(Long id) {\n\t}", "public Long getId() {\n return id;\n }", "public long getId() { return this.id; }", "public int getId()\n {\n return id;\n }", "public void setId(int id){\r\n this.id = id;\r\n }", "@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}", "protected abstract String getId();", "@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}", "public int getID() {return id;}", "public int getID() {return id;}", "public String getId() { return id; }", "public String getId() { return id; }", "public String getId() { return id; }", "public int getId ()\r\n {\r\n return id;\r\n }", "@Override\n public int getField(int id) {\n return 0;\n }", "public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }", "public int getId(){\r\n return localId;\r\n }", "void setId(int id) {\n this.id = id;\n }", "@Override\n public Integer getId() {\n return id;\n }", "@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "@Override\n public int getId() {\n return id;\n }", "@Override\n public int getId() {\n return id;\n }", "public void setId(int id)\n {\n this.id=id;\n }", "@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }", "@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}", "public int getId()\r\n {\r\n return id;\r\n }", "public void setId(Long id){\n this.id = id;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "private void clearId() {\n \n id_ = 0;\n }", "final protected int getId() {\n\t\treturn id;\n\t}", "public abstract Long getId();", "public void setId(Long id) \r\n {\r\n this.id = id;\r\n }", "@Override\n public long getId() {\n return this.id;\n }", "public String getId(){ return id.get(); }", "@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }", "public Long getId() \n {\n return id;\n }", "@Override\n\tpublic void setId(int id) {\n\n\t}", "public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }", "@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}", "public int getID(){\n return id;\n }", "public int getId()\n {\n return id;\n }", "public String getID(){\n return Id;\n }" ]
[ "0.6896886", "0.6838461", "0.67056817", "0.66419715", "0.66419715", "0.6592331", "0.6579151", "0.6579151", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.65624106", "0.65624106", "0.65441847", "0.65243006", "0.65154546", "0.6487427", "0.6477893", "0.6426692", "0.6418966", "0.6416817", "0.6401561", "0.63664836", "0.63549376", "0.63515353", "0.6347672", "0.6324549", "0.6319196", "0.6301484", "0.62935394", "0.62935394", "0.62832105", "0.62710917", "0.62661785", "0.6265274", "0.6261401", "0.6259253", "0.62559646", "0.6251244", "0.6247282", "0.6247282", "0.6245526", "0.6238957", "0.6238957", "0.6232451", "0.62247443", "0.6220427", "0.6219304", "0.6211484", "0.620991", "0.62023336", "0.62010616", "0.6192621", "0.61895776", "0.61895776", "0.61893976", "0.61893976", "0.61893976", "0.6184292", "0.618331", "0.61754644", "0.6173718", "0.6168409", "0.6166131", "0.6161708", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.61556244", "0.61556244", "0.61430943", "0.61340135", "0.6128617", "0.6127841", "0.61065215", "0.61043483", "0.61043483", "0.6103568", "0.61028486", "0.61017346", "0.6101399", "0.6098963", "0.6094214", "0.6094", "0.6093529", "0.6093529", "0.6091623", "0.60896", "0.6076881", "0.60723215", "0.6071593", "0.6070138", "0.6069936", "0.6069529" ]
0.0
-1
Represents a persistent communications link between two parties. This isolates the client code from issues with transport reuse, while allowing for efficient persistent links with supported transports. Although the most common case is for channels to use a single transport in both directions, channels with different inbound and outbound transports are also supported, as are inbound and outboundonly channels.
public interface Channel { /** * Get a duplex connection for this channel. This method must be called for each request-response message exchange. * @param msgProps message specific properties * @param xmlOptions XML formatting options * @return connection * @throws IOException on I/O error * @throws WsConfigurationException on configuration error */ DuplexConnection getDuplex(MessageProperties msgProps, XmlOptions xmlOptions) throws IOException, WsConfigurationException; /** * Get a send-only connection for this channel. This method must be called for each message to be sent without a * response. * @param msgProps message specific properties * @param xmlOptions XML formatting options * @return connection * @throws IOException on I/O error * @throws WsConfigurationException on configuration error */ OutConnection getOutbound(MessageProperties msgProps, XmlOptions xmlOptions) throws IOException, WsConfigurationException; /** * Get a receive-only connection for this channel. This method must be called for each message to be received, and * will wait for a message to be available before returning. * * @return connection * @throws IOException on I/O error * @throws WsConfigurationException on configuration error */ InConnection getInbound() throws IOException, WsConfigurationException; /** * Close the channel. Implementations should disconnect and free any resources allocated to the channel. * @throws IOException on I/O error */ void close() throws IOException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ChannelConnection {\n public Channel getChannel();\n public Connector getConnector();\n}", "public interface Link<T> {\n\n /**\n * Resolve the link and get the underlying object.\n *\n * @return the target of the link, not null\n * @throws DataNotFoundException if the link is not resolved\n */\n T resolve();\n\n /**\n * Get the type of the object that this link targets.\n *\n * @return the type of the object, not null\n */\n Class<T> getTargetType();\n\n // TODO - do we want a method to generate a resolved version of a config object e.g. new ResolvedConfigLink(resolver.resolve())\n}", "@objid (\"1bb2731c-131f-497d-9749-1f4f1e705acb\")\n Link getChannel();", "@objid (\"590a2bf3-2953-41dc-8b02-1f07ac23249c\")\n void setChannel(Link value);", "public interface IThingPeerData {\r\n\r\n}", "public interface Message\n\t{\n\t\tpublic static final String LINK_ID = \"aether.message.link.id\";\n }", "public PhysicalLink() {\n\n }", "public interface Node\n{\n /**\n * Method to be signaled with a received message\n *\n * @param receiverThread <code>TCPReceiverThread</code> of the receiver associated with the message. Contains\n * a socket connection to the message sender.\n * @param data <code>Event</code> of the incoming message.\n */\n public void onEvent(TCPReceiverThread receiverThread, Event event) throws IOException;\n\n// public void onEvent(TCPReceiverThread receiverThread, byte[] data) throws IOException;\n\n\n /**\n * Method to register a connection between the current node and another. To register a\n * connection, we must create a new Link and add it to our list of connected nodes.\n *\n * @param receiverThread <code>TCPReceiverThread</code> of the receiver thread associated with the node that\n * is being registered.\n * @param sourceID <code>String</code> identifier of the Node creating the Link.\n * @param targetID <code>String</code> identifier of the Node the created Link is to.\n */\n public void registerConnection(TCPReceiverThread receiverThread, String sourceID, String targetID);\n\n /**\n * Method to deregister a node from the current node (ie., sever the link)\n *\n * @param ID <<code>String</code> of the ID to be associated with the link to be deregistered.\n */\n public void deregisterConnection(String ID);\n\n /**\n * Method to return the current Node's ID\n *\n * @return <code>String</code> of the current Node's identifier.\n */\n public String getID();\n\n}", "public UdpClientLink(final InetSocketAddress local, final InetSocketAddress remote, final SctpChannel so)\n\t\t\tthrows IOException {\n\t\tso.setLink(this);\n\t\tthis.local = local;\n\t\tthis.remote = remote;\n\t\tthis.udpSocket = new DatagramSocket(local.getPort(), local.getAddress());\n\n\t\t// Listening thread\n\t\treceive(remote, so);\n\t}", "@Override\n public boolean isConnectable() {\n return true;\n }", "public DoublyLink() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public interface Transport {\n\n /**\n * This method returns id of the current transport\n * @return\n */\n String id();\n\n /**\n * This methos returns Id of the upstream node\n * @return\n */\n String getUpstreamId();\n\n /**\n * This method returns random\n *\n * @param id\n * @param exclude\n * @return\n */\n String getRandomDownstreamFrom(String id, String exclude);\n\n /**\n * This method returns consumer that accepts messages for delivery\n * @return\n */\n Consumer<VoidMessage> outgoingConsumer();\n\n /**\n * This method returns flow of messages for parameter server\n * @return\n */\n Publisher<INDArrayMessage> incomingPublisher();\n\n /**\n * This method starts this Transport instance\n */\n void launch();\n\n /**\n * This method will start this Transport instance\n */\n void launchAsMaster();\n\n /**\n * This method shuts down this Transport instance\n */\n void shutdown();\n\n /**\n * This method will send message to the network, using tree structure\n * @param message\n */\n void propagateMessage(VoidMessage message, PropagationMode mode) throws IOException;\n\n /**\n * This method will send message to the node specified by Id\n *\n * @param message\n * @param id\n */\n void sendMessage(VoidMessage message, String id);\n\n /**\n * This method will send message to specified node, and will return its response\n *\n * @param message\n * @param id\n * @param <T>\n * @return\n */\n <T extends ResponseMessage> T sendMessageBlocking(RequestMessage message, String id) throws InterruptedException;\n\n /**\n * This method will send message to specified node, and will return its response\n *\n * @param message\n * @param id\n * @param <T>\n * @return\n */\n <T extends ResponseMessage> T sendMessageBlocking(RequestMessage message, String id, long waitTime, TimeUnit timeUnit) throws InterruptedException;\n\n /**\n * This method will be invoked for all incoming messages\n * PLEASE NOTE: this method is mostly suited for tests\n *\n * @param message\n */\n void processMessage(VoidMessage message);\n\n\n /**\n * This method allows to set callback instance, which will be called upon restart event\n * @param callback\n */\n void setRestartCallback(RestartCallback callback);\n\n /**\n * This methd allows to set callback instance for various\n * @param cls\n * @param callback\n * @param <T1> RequestMessage class\n * @param <T2> ResponseMessage class\n */\n <T extends RequestMessage> void addRequestConsumer(Class<T> cls, Consumer<T> consumer);\n\n /**\n * This method will be called if mesh update was received\n *\n * PLEASE NOTE: This method will be called ONLY if new mesh differs from current one\n * @param mesh\n */\n void onMeshUpdate(MeshOrganizer mesh);\n\n /**\n * This method will be called upon remap request\n * @param id\n */\n void onRemap(String id);\n\n /**\n * This method returns total number of nodes known to this Transport\n * @return\n */\n int totalNumberOfNodes();\n\n\n /**\n * This method returns ID of the root node\n * @return\n */\n String getRootId();\n\n /**\n * This method checks if all connections required for work are established\n * @return true\n */\n boolean isConnected();\n\n /**\n * This method checks if this node was properly introduced to driver\n * @return\n */\n boolean isIntroduced();\n\n /**\n * This method checks connection to the given node ID, and if it's not connected - establishes connection\n * @param id\n */\n void ensureConnection(String id);\n}", "public interface Linkage {\n /*\n * Save Operation\n * 1. Add\n * 2. Update\n *\n * The parameter vector means that whether it's double direction\n * 1. vector = true, source -> target, target -> source\n * 2. vector = false, source <-> target\n * The key point is that `linkKey` calculation are different between these two.\n */\n Future<JsonArray> link(JsonArray linkage, boolean vector);\n\n /*\n * Delete Operation\n * 1. Remove\n * Here the criteria is condition to remove previous linkage\n */\n Future<Boolean> unlink(JsonObject criteria);\n\n /*\n * Fetch Operation\n */\n Future<JsonArray> fetch(JsonObject criteria);\n}", "public Link(Node from, Node to) {\n\t this.from = from;\n\t this.to = to;\n\t}", "LinkLayer getLinkLayer();", "public interface ILinkFactory extends Serializable{\n public ILink<ISlotableItem> getLink(ISlotableItem source, ISlotableItem target);\n public ILink<Pair<ISlotableItem,Object>> getLink(ISlotableItem source, Object srcInterface, ISlotableItem target, Object trgInterface);\n}", "Link createLink();", "public interface PublicTransport {\n /**\n * Returns the target end station of the public transport vehicle.\n *\n * @return target station\n */\n String directsTo();\n\n /**\n * Inverts the direction of transport line (e.g.when the vehicle arrives\n * the end station).\n */\n void changeDirection();\n}", "public interface ILiveStreamConnection {\n\n\n\t/**\n\t * Returns this connection unique id\n\t *\n\t * @return the UUID associated with this connection\n\t */\n\tUUID getId();\n\n\tStreamType getStreamType();\n\n\tCameraConfiguration getCameraConfig();\n\n\tvoid addAxisMoveListener(IAxisChangeListener axisMoveListener);\n\n\tvoid removeAxisMoveListener(IAxisChangeListener axisMoveListener);\n\n\tvoid addDataListenerToStream(IDataListener listener) throws LiveStreamException;\n\n\tvoid removeDataListenerFromStream(IDataListener listener);\n}", "public interface Channel {\n\n\t/**\n\t * Call this to send an article to its destination.\n\t * @param article the article to send\n\t */\t\n\tvoid accept(Article article);\n}", "public interface EventChannel {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the systemData property: The system metadata relating to Event Channel resource.\n *\n * @return the systemData value.\n */\n SystemData systemData();\n\n /**\n * Gets the source property: Source of the event channel. This represents a unique resource in the partner's\n * resource model.\n *\n * @return the source value.\n */\n EventChannelSource source();\n\n /**\n * Gets the destination property: Represents the destination of an event channel.\n *\n * @return the destination value.\n */\n EventChannelDestination destination();\n\n /**\n * Gets the provisioningState property: Provisioning state of the event channel.\n *\n * @return the provisioningState value.\n */\n EventChannelProvisioningState provisioningState();\n\n /**\n * Gets the partnerTopicReadinessState property: The readiness state of the corresponding partner topic.\n *\n * @return the partnerTopicReadinessState value.\n */\n PartnerTopicReadinessState partnerTopicReadinessState();\n\n /**\n * Gets the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this timer expires\n * while the corresponding partner topic is never activated, the event channel and corresponding partner topic are\n * deleted.\n *\n * @return the expirationTimeIfNotActivatedUtc value.\n */\n OffsetDateTime expirationTimeIfNotActivatedUtc();\n\n /**\n * Gets the filter property: Information about the filter for the event channel.\n *\n * @return the filter value.\n */\n EventChannelFilter filter();\n\n /**\n * Gets the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to remove any\n * ambiguity of the origin of creation of the partner topic for the customer.\n *\n * @return the partnerTopicFriendlyDescription value.\n */\n String partnerTopicFriendlyDescription();\n\n /**\n * Gets the inner com.azure.resourcemanager.eventgrid.fluent.models.EventChannelInner object.\n *\n * @return the inner object.\n */\n EventChannelInner innerModel();\n\n /** The entirety of the EventChannel definition. */\n interface Definition\n extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {\n }\n /** The EventChannel definition stages. */\n interface DefinitionStages {\n /** The first stage of the EventChannel definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the EventChannel definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, partnerNamespaceName.\n *\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerNamespaceName Name of the partner namespace.\n * @return the next definition stage.\n */\n WithCreate withExistingPartnerNamespace(String resourceGroupName, String partnerNamespaceName);\n }\n /**\n * The stage of the EventChannel definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }\n /** The stage of the EventChannel definition allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel definition allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel definition allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel definition allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel definition allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }\n /**\n * Begins update for the EventChannel resource.\n *\n * @return the stage of resource update.\n */\n EventChannel.Update update();\n\n /** The template for EventChannel update. */\n interface Update\n extends UpdateStages.WithSource,\n UpdateStages.WithDestination,\n UpdateStages.WithExpirationTimeIfNotActivatedUtc,\n UpdateStages.WithFilter,\n UpdateStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n EventChannel apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n EventChannel apply(Context context);\n }\n /** The EventChannel update stages. */\n interface UpdateStages {\n /** The stage of the EventChannel update allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel update allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel update allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel update allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel update allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @return the refreshed resource.\n */\n EventChannel refresh();\n\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @param context The context to associate with this operation.\n * @return the refreshed resource.\n */\n EventChannel refresh(Context context);\n}", "public abstract boolean SourceSinkSide( Communicator comm);", "@Override\r\n\tpublic boolean isSymmetricLink(Entity source, Entity target)\r\n\t{\r\n\t\treturn (directedGraph.findEdge(source, target) != null)\r\n\t\t\t\t&& (directedGraph.findEdge(target, source) != null);\r\n\t}", "public interface Channels {\n \n public void createChannel();\n\n}", "public void testLinkPersists() {\n\t\tJabberMessage msg = new JabberMessage();\n\t\tmsg.setMessage(\"Hello There! http://google.com/fwd.txt This is a test\");\n\t\tmsg.setId(1);\n\t\tmsg.setUsername(\"Test\");\n\t\tmsg.setTimestamp(\"NOW!\");\n\t\tLink link;\n\t\ttry {\n\t\t\tlh.putLink(msg);\n\t\t\tlink = dao.getLink(\"http://google.com/fwd.txt\");\n\t\t\tassert(link.getCount() == 1);\n\t\t\tif (link.getCount() != 1) {\n\t\t\t\tfail(\"Link count meant to be 1 but is:\" + link.getCount());\n\t\t\t}\n\t\t}catch (Exception e) {\n\t\t\tfail();\n\t\t}\n\t\tfail(\"I'm bad at logic\");\n\t}", "SimpleLink createSimpleLink();", "@Override\n public void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent e) {\n Channel channel = ctx.getChannel();\n //session.setAttachment(new Player(session));\n Client client = new Client(channel);\n channel.setAttachment(client);\n engine.addClient(client);\n }", "public interface SubscriptionTransport\n{\n\tpublic static interface Callback\n\t{\n\n\t\tpublic abstract void onConnected();\n\n\t\tpublic abstract void onFailure(Throwable throwable);\n\n\t\tpublic abstract void onMessage(OperationServerMessage operationservermessage);\n\t}\n\n\tpublic static interface Factory\n\t{\n\n\t\tpublic abstract SubscriptionTransport create(Callback callback);\n\t}\n\n\n\tpublic abstract void connect();\n\n\tpublic abstract void disconnect(OperationClientMessage operationclientmessage);\n\n\tpublic abstract void send(OperationClientMessage operationclientmessage);\n}", "public interface IRouteChannel {\n\n /**发送消息及时刷新,*/\n public void writeAndFlush(Object msg);\n /**发送消息,先不刷新*/\n public void write(Object msg);\n /**刷新消息*/\n public void flush();\n\n /**关闭连接*/\n public void close();\n}", "public Connection(Channel channel) {\r\n this.channel = channel;\r\n }", "public interface Client extends Endpoint, Channel, Resetable {\n\n /**\n * reconnect.\n */\n void reconnect() throws RemotingException;\n\n\n}", "public interface ServerTextChannel extends TextableRegularServerChannel, ServerTextChannelAttachableListenerManager {\n\n /**\n * Gets the default auto archive duration for threads that will be created in this channel.\n *\n * @return The default auto archive duration for this channel.\n */\n int getDefaultAutoArchiveDuration();\n\n /**\n * Gets the topic of the channel.\n *\n * @return The topic of the channel.\n */\n String getTopic();\n\n /**\n * Creates an updater for this channel.\n *\n * @return An updater for this channel.\n */\n default ServerTextChannelUpdater createUpdater() {\n return new ServerTextChannelUpdater(this);\n }\n\n /**\n * Updates the topic of the channel.\n *\n * <p>If you want to update several settings at once, it's recommended to use the\n * {@link ServerTextChannelUpdater} from {@link #createUpdater()} which provides a better performance!\n *\n * @param topic The new topic of the channel.\n * @return A future to check if the update was successful.\n */\n default CompletableFuture<Void> updateTopic(String topic) {\n return createUpdater().setTopic(topic).update();\n }\n\n @Override\n default Optional<ServerTextChannel> getCurrentCachedInstance() {\n return getApi().getServerById(getServer().getId()).flatMap(server -> server.getTextChannelById(getId()));\n }\n\n @Override\n default CompletableFuture<ServerTextChannel> getLatestInstance() {\n Optional<ServerTextChannel> currentCachedInstance = getCurrentCachedInstance();\n if (currentCachedInstance.isPresent()) {\n return CompletableFuture.completedFuture(currentCachedInstance.get());\n } else {\n CompletableFuture<ServerTextChannel> result = new CompletableFuture<>();\n result.completeExceptionally(new NoSuchElementException());\n return result;\n }\n }\n\n /**\n * Creates a thread for a message in this ServerTextChannel.\n *\n * @param message The message to create the thread for.\n * @param name The Thread name.\n * @param autoArchiveDuration Duration in minutes to automatically archive the thread after recent activity.\n * @return The created ServerThreadChannel.\n */\n default CompletableFuture<ServerThreadChannel> createThreadForMessage(Message message, String name,\n AutoArchiveDuration autoArchiveDuration) {\n return createThreadForMessage(message, name, autoArchiveDuration.asInt());\n }\n\n /**\n * Creates a thread for a message in this ServerTextChannel.\n *\n * @param message The message to create the thread for.\n * @param name The Thread name.\n * @param autoArchiveDuration Duration in minutes to automatically archive the thread after recent activity.\n * @return The created ServerThreadChannel.\n */\n default CompletableFuture<ServerThreadChannel> createThreadForMessage(Message message, String name,\n Integer autoArchiveDuration) {\n return new ServerThreadChannelBuilder(message, name).setAutoArchiveDuration(autoArchiveDuration).create();\n }\n\n /**\n * Creates a thread which is not related to a message.\n *\n * <p>Creating a private thread requires the server to be boosted.\n * The 3 day and 7 day archive durations require the server to be boosted.\n * The server features will indicate if that is possible for the server.\n *\n * @param channelType A ChannelType for a thread.\n * @param name The thread name.\n * @param autoArchiveDuration Duration in minutes to automatically archive the thread after recent activity.\n * @return The created ServerThreadChannel.\n */\n default CompletableFuture<ServerThreadChannel> createThread(ChannelType channelType, String name,\n Integer autoArchiveDuration) {\n return createThread(channelType, name, autoArchiveDuration, null);\n }\n\n /**\n * Creates a thread which is not related to a message.\n *\n * <p>Creating a private thread requires the server to be boosted.\n * The 3 day and 7 day archive durations require the server to be boosted.\n * The server features will indicate if that is possible for the server.\n *\n * @param channelType A ChannelType for a thread.\n * @param name The thread name.\n * @param autoArchiveDuration Duration in minutes to automatically archive the thread after recent activity.\n * @return The created ServerThreadChannel.\n */\n default CompletableFuture<ServerThreadChannel> createThread(ChannelType channelType, String name,\n AutoArchiveDuration autoArchiveDuration) {\n return createThread(channelType, name, autoArchiveDuration.asInt(), null);\n }\n\n /**\n * Creates a thread which is not related to a message.\n *\n * <p>Creating a private thread requires the server to be boosted.\n * The 3 day and 7 day archive durations require the server to be boosted.\n * The server features will indicate if that is possible for the server.\n *\n * @param channelType A ChannelType for a thread.\n * @param name The thread name.\n * @param autoArchiveDuration Duration in minutes to automatically archive the thread after recent activity.\n * @param inviteable Whether non-moderators can add other non-moderators to a thread;\n * only available when creating a private thread.\n * @return The created ServerThreadChannel.\n */\n default CompletableFuture<ServerThreadChannel> createThread(ChannelType channelType, String name,\n Integer autoArchiveDuration,\n Boolean inviteable) {\n return new ServerThreadChannelBuilder(this, channelType, name)\n .setAutoArchiveDuration(autoArchiveDuration)\n .setInvitableFlag(inviteable).create();\n }\n\n /**\n * Creates a thread which is not related to a message.\n *\n * <p>Creating a private thread requires the server to be boosted.\n * The 3 day and 7 day archive durations require the server to be boosted.\n * The server features will indicate if that is possible for the server.\n *\n * @param channelType A ChannelType for a thread.\n * @param name The thread name.\n * @param autoArchiveDuration Duration in minutes to automatically archive the thread after recent activity.\n * @param inviteable Whether non-moderators can add other non-moderators to a thread;\n * only available when creating a private thread.\n * @return The created ServerThreadChannel.\n */\n default CompletableFuture<ServerThreadChannel> createThread(ChannelType channelType, String name,\n AutoArchiveDuration autoArchiveDuration,\n Boolean inviteable) {\n return createThread(channelType, name, autoArchiveDuration.asInt(), inviteable);\n }\n\n /**\n * Gets the public archived threads.\n *\n * <p>Returns archived threads in the channel that are public.\n * When called on a SERVER_TEXT_CHANNEL, returns threads of type SERVER_PUBLIC_THREAD.\n * When called on a SERVER_NEWS_CHANNEL returns threads of type SERVER_NEWS_THREAD.\n * Threads are ordered by archive_timestamp, in descending order.\n * Requires the READ_MESSAGE_HISTORY permission.\n *\n * @return The ArchivedThreads.\n */\n default CompletableFuture<ArchivedThreads> getPublicArchivedThreads() {\n return getPublicArchivedThreads(null, null);\n }\n\n /**\n * Gets the public archived threads.\n *\n * <p>Returns archived threads in the channel that are public.\n * When called on a SERVER_TEXT_CHANNEL, returns threads of type SERVER_PUBLIC_THREAD.\n * When called on a SERVER_NEWS_CHANNEL returns threads of type SERVER_NEWS_THREAD.\n * Threads are ordered by archive_timestamp, in descending order.\n * Requires the READ_MESSAGE_HISTORY permission.\n *\n * @param before Get public archived threads before the thread with this id.\n * @return The ArchivedThreads.\n */\n default CompletableFuture<ArchivedThreads> getPublicArchivedThreads(long before) {\n return getPublicArchivedThreads(before, null);\n }\n\n /**\n * Gets the public archived threads.\n *\n * <p>Returns archived threads in the channel that are public.\n * When called on a SERVER_TEXT_CHANNEL, returns threads of type SERVER_PUBLIC_THREAD.\n * When called on a SERVER_NEWS_CHANNEL returns threads of type SERVER_NEWS_THREAD.\n * Threads are ordered by archive_timestamp, in descending order.\n * Requires the READ_MESSAGE_HISTORY permission.\n *\n * @param limit The maximum amount of public archived threads.\n * @return The ArchivedThreads.\n */\n default CompletableFuture<ArchivedThreads> getPublicArchivedThreads(int limit) {\n return getPublicArchivedThreads(null, limit);\n }\n\n /**\n * Gets the public archived threads.\n *\n * <p>Returns archived threads in the channel that are public.\n * When called on a SERVER_TEXT_CHANNEL, returns threads of type SERVER_PUBLIC_THREAD.\n * When called on a SERVER_NEWS_CHANNEL returns threads of type SERVER_NEWS_THREAD.\n * Threads are ordered by archive_timestamp, in descending order.\n * Requires the READ_MESSAGE_HISTORY permission.\n *\n * @param before Get public archived threads before the thread with this id.\n * @param limit The maximum amount of public archived threads.\n * @return The ArchivedThreads.\n */\n CompletableFuture<ArchivedThreads> getPublicArchivedThreads(Long before, Integer limit);\n\n /**\n * Gets the private archived threads.\n *\n * <p>Returns archived threads in the channel that are of type SERVER_PRIVATE_THREAD.\n * Threads are ordered by archive_timestamp, in descending order.\n * Requires both the READ_MESSAGE_HISTORY and MANAGE_THREADS permissions.\n *\n * @return The ArchivedThreads.\n */\n default CompletableFuture<ArchivedThreads> getPrivateArchivedThreads() {\n return getPrivateArchivedThreads(null, null);\n }\n\n /**\n * Gets the private archived threads.\n *\n * <p>Returns archived threads in the channel that are of type SERVER_PRIVATE_THREAD.\n * Threads are ordered by archive_timestamp, in descending order.\n * Requires both the READ_MESSAGE_HISTORY and MANAGE_THREADS permissions.\n *\n * @param before Get private archived threads before the thread with this id.\n * @return The ArchivedThreads.\n */\n default CompletableFuture<ArchivedThreads> getPrivateArchivedThreads(long before) {\n return getPrivateArchivedThreads(before, null);\n }\n\n /**\n * Gets the private archived threads.\n *\n * <p>Returns archived threads in the channel that are of type SERVER_PRIVATE_THREAD.\n * Threads are ordered by archive_timestamp, in descending order.\n * Requires both the READ_MESSAGE_HISTORY and MANAGE_THREADS permissions.\n *\n * @param limit The maximum amount of private archived threads.\n * @return The ArchivedThreads.\n */\n default CompletableFuture<ArchivedThreads> getPrivateArchivedThreads(int limit) {\n return getPrivateArchivedThreads(null, limit);\n }\n\n /**\n * Gets the private archived threads.\n *\n * <p>Returns archived threads in the channel that are of type SERVER_PRIVATE_THREAD.\n * Threads are ordered by archive_timestamp, in descending order.\n * Requires both the READ_MESSAGE_HISTORY and MANAGE_THREADS permissions.\n *\n * @param before Get private archived threads before the thread with this id.\n * @param limit The maximum amount of private archived threads.\n * @return The ArchivedThreads.\n */\n CompletableFuture<ArchivedThreads> getPrivateArchivedThreads(Long before, Integer limit);\n\n /**\n * Gets the joined private archived threads.\n *\n * <p>Returns archived threads in the channel that are of type SERVER_PRIVATE_THREAD, and the user has joined.\n *\n * @return The ArchivedThreads.\n */\n default CompletableFuture<ArchivedThreads> getJoinedPrivateArchivedThreads() {\n return getJoinedPrivateArchivedThreads(null, null);\n }\n\n /**\n * Gets the joined private archived threads.\n *\n * <p>Returns archived threads in the channel that are of type SERVER_PRIVATE_THREAD, and the user has joined.\n *\n * @param before Get the joined private archived threads before the thread with this id.\n * @return The ArchivedThreads.\n */\n default CompletableFuture<ArchivedThreads> getJoinedPrivateArchivedThreads(long before) {\n return getJoinedPrivateArchivedThreads(before, null);\n }\n\n /**\n * Gets the joined private archived threads.\n *\n * <p>Returns archived threads in the channel that are of type SERVER_PRIVATE_THREAD, and the user has joined.\n *\n * @param limit The maximum amount of private archived threads.\n * @return The ArchivedThreads.\n */\n default CompletableFuture<ArchivedThreads> getJoinedPrivateArchivedThreads(int limit) {\n return getJoinedPrivateArchivedThreads(null, limit);\n }\n\n /**\n * Gets the joined private archived threads.\n *\n * <p>Returns archived threads in the channel that are of type SERVER_PRIVATE_THREAD, and the user has joined.\n *\n * @param before Get the joined private archived threads before the thread with this id.\n * @param limit The maximum amount of private archived threads.\n * @return The ArchivedThreads.\n */\n CompletableFuture<ArchivedThreads> getJoinedPrivateArchivedThreads(Long before, Integer limit);\n}", "public interface CommunicationUser {\n\t\n\t/**\n\t * Provide communication API that allows for communication with other object in the simulator.\n\t * Method is a callback for the registration of the object in {@link CommunicationModel}\n\t * @param api the access to the communication infrastructure \n\t */\n\tvoid setCommunicationAPI(CommunicationAPI api);\n\t\n\t/**\n\t * Get position. The position is required to determine the entities you can communicate with \n\t * @return positing on the communication user or <code>null</code> if object is not positioned \n\t */\n\tPoint getPosition();\n\t\n\t/**\n\t * Get the distance in which you want to communicate. \n\t * @return\n\t */\n\tdouble getRadius();\n\t\n\t/**\n\t * Get the connection reliability. This is probability (0,1] that the message is send/received.\n\t * When two entities communicate the probability of message delivery is a product of their reliability. \n\t * @return\n\t */\n\tdouble getReliability();\n\t\n\t/**\n\t * Receive the message. Multiple messages might be delivered during one tick of the simulator. \n\t * The simple implementation of handling multiple messages is provided in {@link Mailbox} \n\t * @param message delivered\n\t */\n\tvoid receive(Message message);\n}", "public static interface PersistentConnection$Delegate\n{\n\n\tpublic abstract void onAuthStatus(boolean flag);\n\n\tpublic abstract void onConnect();\n\n\tpublic abstract void onDataUpdate(String s, Object obj, boolean flag, Tag tag);\n\n\tpublic abstract void onDisconnect();\n\n\tpublic abstract void onRangeMergeUpdate(Path path, List list, Tag tag);\n\n\tpublic abstract void onServerInfoUpdate(Map map);\n}", "public interface ReplicationChannel {\n\n void handleReplicationEvents(ReplicationEventQueueWorkItem event);\n\n void destroy();\n\n void reload(CentralConfigDescriptor newDescriptor, CentralConfigDescriptor oldDescriptor);\n\n ChannelType getChannelType();\n\n String getOwner();\n}", "public interface ChannelManager {\n int createChannel(String channel, long ttlInSeconds);\n int publishToChannel(String channel, String msg);\n}", "LinkRelation createLinkRelation();", "public interface Protocol {\n\n\n /**\n * Get the last line of text, which has been read from the socket.\n * @return the last line of text, which has been read from the socket.\n */\n String getCurrentLine();\n\n /**\n * Write to the Socket.\n * @param line to write to the socket.\n */\n void putLine(String line);\n\n /**\n * Change the state of the protocol.\n * @param state new state of the protocol.\n */\n void setState(State state);\n\n /**\n * Get the current state of the protocol.\n * @return the current state of the protocol.\n */\n State getState();\n\n\n}", "public abstract P getAsPeer() throws DataException;", "@objid (\"42f8450d-1aca-4f83-a91e-9f7e7fc3c5c7\")\n NaryLink getNaryChannel();", "public PhysicalLink(Device deviceSource, int portSource, Device deviceDestination, int portDestination) {\n this.deviceSource = deviceSource;\n this.deviceDestination = deviceDestination;\n this.portSource = portSource;\n this.portDestination = portDestination;\n }", "protected com.ibm.ivj.ejb.associations.interfaces.SingleLink getPeopleLink() {\n\tif (peopleLink == null)\n\t\tpeopleLink = new ChangeLogToPeopleLink(this);\n\treturn peopleLink;\n}", "public LocalChannel() {\n\t\t}", "public interface CommunicationDevice {\n String getAddress();\n\n CommunicationSocket createCommunicationSocket(UUID uuid) throws IOException;\n}", "public Channel(Name alias) {\n this(alias, CHANNEL);\n }", "public interface Link<C> {\n \n /**\n * @param context an arbitrary context.\n * @return <code>true</code> if this instance accepts the given context.\n */\n public boolean accepts(C context);\n }", "public interface FastTransportable extends Transportable\n{\n// Stream unique identifier\n// public final static long SUID = ..;\n\n// Bisogna far generare in maniera automatica questi due metodi\n// Serializza l'oggetto\n public void writeObject( Container.ContainerOutputStream cos ) throws SerializationException;\n// inizializza l'istanza dell'oggetto\n public void readObject( Container.ContainerInputStream cis ) throws SerializationException;\n\n// ...insieme a questo, dipende dal tipo effettivo dell'oggetto.\n public int sizeOf(); // dimensione dell'oggetto.\n\n}", "public Channel(String alias) {\n this(DSL.name(alias), CHANNEL);\n }", "public TransitionTo<CircularRef1> getLink() {\n return linkToCR1;\n }", "interface NotifyClient extends Remote {\n\n\t/**\n\t * An identity has been assigned to this node.\n\t * \n\t * @param id\n\t * the identity\n\t * @param oldNode\n\t * the last node the identity was assigned to, or {@code null} if\n\t * this is a new node assignment\n\t * @throws IOException\n\t * if there is a communication problem\n\t */\n\tvoid added(Identity id, Node oldNode) throws IOException;\n\n\t/**\n\t * \n\t * An identity has been removed from this node.\n\t * \n\t * @param id\n\t * the identity\n\t * @param newNode\n\t * the new node the identity is assigned to, or {@code null} if\n\t * the identity is being removed from the map\n\t * @throws IOException\n\t * if there is a communication problem\n\t */\n\tvoid removed(Identity id, Node newNode) throws IOException;\n\n\t/**\n\t * An identity has been selected for relocation from this node.\n\t * \n\t * @param id\n\t * the identity\n\t * @param newNodeId\n\t * the ID of the new node the identity will be relocated to\n\t * @throws IOException\n\t * if there is a communication problem\n\t */\n\tvoid prepareRelocate(Identity id, long newNodeId) throws IOException;\n}", "private void attachNetworkLink(IMachine machine, Link link) {\n INetworkAdapter adapter = machine.getNetworkAdapter((long) (link.getInterfaceOrder() -1));\n adapter.setAdapterType(NetworkAdapterType.I82540EM); // TODO comprobar que sea el \"menos raro\"\n if (link.isEnabled()) {\n adapter.setCableConnected(Boolean.TRUE);\n adapter.setEnabled(Boolean.TRUE);\n }\n\n // Set network type params\n Network network = link.getNetwork();\n switch (network.getType()) { // TODO: ¿evitar switch?\n case EXTERNAL_NATTED:\n adapter.setAttachmentType(NetworkAttachmentType.NAT);\n break;\n case EXTERNAL_BRIDGED:\n adapter.setAttachmentType(NetworkAttachmentType.Bridged);\n adapter.setBridgedInterface(this.vmDriverSpec.getBridgedInterface());\n break;\n case SWITCH:\n adapter.setAttachmentType(NetworkAttachmentType.Internal);\n adapter.setInternalNetwork(link.getNetwork().getName()); // TODO: realmente seria el nombre en VirtualBoxNetwork\n break;\n case HUB: // caso particular de modo interno con modo promiscuo activado por defecto\n adapter.setAttachmentType(NetworkAttachmentType.Internal);\n adapter.setInternalNetwork(link.getNetwork().getName()); // TODO: realmente seria el nombre en VirtualBoxNetwork\n adapter.setPromiscModePolicy(NetworkAdapterPromiscModePolicy.AllowAll); // Activar modo promiscuo\n break;\n }\n\n String interfaceName = \"eth\" + (link.getInterfaceOrder() - 1); // TODO verificar que siempre sera eth_\n if (link.getIpAddress() != null) {\n machine.setGuestPropertyValue(\"/DSBOX/\" + interfaceName + \"/type\", \"static\");\n machine.setGuestPropertyValue(\"/DSBOX/\" + interfaceName + \"/address\", link.getIpAddress());\n if (link.getNetMask() != null) {\n machine.setGuestPropertyValue(\"/DSBOX/\" + interfaceName + \"/netmask\", link.getNetMask());\n } else {\n machine.setGuestPropertyValue(\"/DSBOX/\" + interfaceName + \"/netmask\", \"24\");\n }\n if (link.getBroadcast() != null) {\n machine.setGuestPropertyValue(\"/DSBOX/\" + interfaceName + \"/broadcast\", link.getBroadcast());\n }\n }\n }", "public void testAddRelay2ToAnAlreadyConnectedChannel() throws Exception {\n // Create and connect a channel.\n a=new JChannel();\n a.connect(SFO_CLUSTER);\n System.out.println(\"Channel \" + a.getName() + \" is connected. View: \" + a.getView());\n\n // Add RELAY2 protocol to the already connected channel.\n RELAY2 relayToInject = createRELAY2(SFO);\n // Util.setField(Util.getField(relayToInject.getClass(), \"local_addr\"), relayToInject, a.getAddress());\n\n a.getProtocolStack().insertProtocolAtTop(relayToInject);\n for(Protocol p=relayToInject; p != null; p=p.getDownProtocol())\n p.setAddress(a.getAddress());\n relayToInject.setProtocolStack(a.getProtocolStack());\n relayToInject.configure();\n relayToInject.handleView(a.getView());\n\n // Check for RELAY2 presence\n RELAY2 ar=a.getProtocolStack().findProtocol(RELAY2.class);\n assert ar != null;\n\n waitUntilRoute(SFO, true, 10000, 500, a);\n\n assert !ar.printRoutes().equals(\"n/a (not site master)\") : \"This member should be site master\";\n\n Route route=getRoute(a, SFO);\n System.out.println(\"Route at sfo to sfo: \" + route);\n assert route != null;\n }", "public OSLink( rcNode creator, HashMap hAttrs) {\n rcSource = creator;\n szSourcePort = (OSPort)hAttrs.get( \"SourcePort\");\n szDestPort = (String)hAttrs.get( \"DestinationPort\");\n szDestName =(String) hAttrs.get( \"DestinationName\");\n }", "@ArchTypeComponent(\n patterns = {@Pattern(name=\"testLayered\", kind = \"Layered\", role=\"Layer{1}\")}\n )\npublic interface ServerConnector { \n \n /** Send the on-the-wire string to the server side. \n * \n * @param onTheWireFormat the observation in the adopted \n * on-the-wire format. \n * @return a future that will eventually tell the status \n * of the transmission. \n */ \n public FutureResult sendToServer(String onTheWireFormat) throws IOException; \n \n /** Send a query for a set of observations to the server. \n * \n * @param query the query for observations. Use one of \n * those defined in the forwarder.query sub package as \n * these are the ONLY ones the server understands. \n * @param reponseType define the type of the \n * returned observations, either as a list of \n * StandardTeleObserations or as PHMR documents. \n * @return a future with the query result as one big \n * string that needs deserializing before it can \n * by understood. \n * @throws IOException \n * @throws Net4CareException \n * @throws UnknownCPRException \n */ \n\tpublic FutureResultWithAnswer queryToServer(Query query) throws IOException, Net4CareException; \n\t \n }", "public interface BoundChannel extends CloseableChannel {\n /**\n * Get the local address that this channel is bound to.\n *\n * @return the local address\n */\n SocketAddress getLocalAddress();\n\n /**\n * Get the local address of a given type, or {@code null} if the address is not of that\n * type.\n *\n * @param type the address type class\n * @param <A> the address type\n * @return the local address, or {@code null} if unknown\n */\n <A extends SocketAddress> A getLocalAddress(Class<A> type);\n\n /** {@inheritDoc} */\n ChannelListener.Setter<? extends BoundChannel> getCloseSetter();\n}", "public interface LinkActyContract {\n interface Model {\n }\n\n interface View {\n }\n\n interface Presenter {\n DoubleNode deleteDoubleNode(DoubleNode node1, int n);\n }\n}", "public interface SocketWrap {\n void connect() throws IOException;\n\n void sendMessage(SocketPackage socketPackage);\n\n void close() throws IOException;\n\n void receiveDataAndHandle() throws IOException;\n\n boolean isConnect();\n\n}", "public SolidifyPackage getLinkPackage() {\n\t\tif (linkPackage == null) {\n\t\t\tlinkPackage = new SolidifyPackage(this,\n\t\t\t\t\tSolidifyPackage.SOLIDIFY_PACKAGE_LINK,\n\t\t\t\t\tSolidifyPackage.SOLIDIFY_PACKAGE_LINK_DISPLAYNAME);\n\t\t\tlinkPackage.setStereotype(getStereotype());\n\t\t}\n\t\treturn linkPackage;\n\t}", "public interface SocketControl {\n\n /**\n * 获取服务的IP和端口\n * @return 格式:ip:port,如127.0.0.1:8080\n */\n String getIpPort();\n\n /**\n * 获取服务的ServiceId\n * @return 服务的ServiceId\n */\n String getServiceId();\n\n /**\n * 获取服务的InstanceId\n * @return 服务的InstanceId\n */\n String getInstanceId();\n\n\n /**\n * 获取模块名称,也可以直接调用getIpPort()\n * @return 模块名称\n */\n String getModelName();\n\n\n /**\n * 模块下连接的标示\n * @param channel 管道对象\n * @return uk\n */\n String getUniqueKey(Channel channel);\n\n\n /**\n * 模块下连接的标示\n * @param ctx 管道对象\n * @return uk\n */\n String getUniqueKey(ChannelHandlerContext ctx);\n\n\n /**\n * 绑定key\n * @param ctx 当前连接对象\n * @param key key\n */\n void bindKey(ChannelHandlerContext ctx,String key);\n\n /**\n * 绑定key\n * @param ctx 当前连接对象\n * @param key key\n */\n void bindKey(Channel ctx,String key);\n\n /**\n * 获取key\n * @param ctx 当前链接对象\n * @return key\n */\n String getKey(Channel ctx);\n\n /**\n * 获取key\n * @param ctx 当前链接对象\n * @return key\n */\n String getKey(ChannelHandlerContext ctx);\n\n\n /**\n * 重置心跳时间\n * @param ctx 当前连接对象\n * @param heartTime 心跳时间(秒)\n */\n void resetHeartTime(Channel ctx,int heartTime);\n\n\n\n}", "public interface connect {\n\t\t/**\n\t\t * 连接 获取推送\n\t\t */\n\t\tpublic String connect = \"/user/connect\";\n\n\t}", "@Override\r\n\tpublic int getLinkDestinationId() {\n\t\treturn destination.getNodeId();\r\n\t}", "void setLink(DependencyLink newLink);", "public JmtEdge connect(JmtCell source, JmtCell target, boolean forced) {\r\n \t\t// If one of parameter is null, returns null\r\n \t\tif (source == null || target == null) {\r\n \t\t\treturn null;\r\n \t\t}\r\n \t\t// Retrives source and target keys to create connection\r\n \t\tObject sourceKey = ((CellComponent) source.getUserObject()).getKey();\r\n \t\tObject targetKey = ((CellComponent) target.getUserObject()).getKey();\r\n \t\t// Initializes correct layout for routing edges\r\n \t\tMap map = new Hashtable();\r\n \t\tGraphConstants.setRouting(map, GraphConstants.ROUTING_SIMPLE);\r\n \t\tGraphConstants.setRouting(map, JmtGraphConstants.ROUTING_JMT);\r\n \t\tGraphConstants.setLineEnd(map, GraphConstants.ARROW_CLASSIC);\r\n \t\tGraphConstants.setEndFill(map, true);\r\n \t\tMap<Object, Map> viewMap = new Hashtable<Object, Map>();\r\n \t\tJmtEdge connection = new JmtEdge(sourceKey, targetKey, this);\r\n \t\tviewMap.put(connection, map);\r\n \t\tObject[] insert = new Object[] { connection };\r\n \t\tConnectionSet cs = new ConnectionSet();\r\n \t\t// Finds sourcePort\r\n \t\tIterator it;\r\n \t\tit = source.getChildren().iterator();\r\n \t\tDefaultPort tmpPort, sourcePort, targetPort;\r\n \t\tsourcePort = null;\r\n \t\twhile (it.hasNext()) {\r\n \t\t\ttmpPort = (DefaultPort) it.next();\r\n \t\t\tif (tmpPort instanceof OutputPort) {\r\n \t\t\t\tsourcePort = tmpPort;\r\n \t\t\t}\r\n \t\t}\r\n \t\t// Finds targetPort\r\n \t\tit = target.getChildren().iterator();\r\n \t\ttargetPort = null;\r\n \t\twhile (it.hasNext()) {\r\n \t\t\ttmpPort = (DefaultPort) it.next();\r\n \t\t\tif (tmpPort instanceof InputPort) {\r\n \t\t\t\ttargetPort = tmpPort;\r\n \t\t\t}\r\n \t\t}\r\n \t\tif (sourcePort != null && targetPort != null) {\r\n \t\t\tcs.connect(connection, sourcePort, true);\r\n \t\t\tcs.connect(connection, targetPort, false);\r\n \t\t\t// Adds connection to the graph only if it can be created into data\r\n \t\t\t// structure\r\n \t\t\tif (model.setConnected(sourceKey, targetKey, true) || forced) {\r\n \t\t\t\tgraph.getModel().insert(insert, viewMap, cs, null, null);\r\n \t\t\t\treturn connection;\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn null;\r\n \t}", "public Object getDestination() {\n/* 339 */ return this.peer.getTarget();\n/* */ }", "public interface DataRelayClient {\n\n /**\n * Send data in a loop over UDP\n */\n public void streamData(String pathToFile) throws IOException;\n\n /**\n * Receive data in a loop via UDP\n */\n public void receiveData() throws IOException;\n\n /**\n * Initialize TCP connection\n */\n public void initializeTCP() throws IOException;\n /**\n * Initialize UDP connection\n */\n public void initializeUDP() throws IOException;\n\n /**\n * Get client ID from the server\n */\n public void setID() throws IOException;\n\n /**\n * Check if client is first to connect\n */\n public boolean isFirstToConnect() throws IOException;\n\n /**\n * Initialize the client\n */\n public void initialize() throws Exception;\n}", "public interface LinkOpt extends Link {\n\n}", "public boolean addLink(LinkData link) {\n log.debug(\"Adding link {}\", link);\n\n KVLink rcLink = new KVLink(link.getSrc().getDpid(),\n link.getSrc().getPortNumber(),\n link.getDst().getDpid(),\n link.getDst().getPortNumber());\n\n // XXX This method is called only by discovery,\n // which means what we are trying to write currently is the truth\n // so we can force write here\n //\n // TODO: We need to check for errors\n rcLink.setStatus(KVLink.STATUS.ACTIVE);\n rcLink.forceCreate();\n\n return true; // Success\n }", "public void connect(Integer tagId, Integer linkId);", "public interface Message {\n Device getTargetDevice();\n Device getSourceDevice();\n}", "public Link getLink() {\r\n return link;\r\n }", "public interface ConnectionExchangeInterface\n{\n\n /*\n * The Connection entity is the top level element to describe the information needed to create a connector to an asset.\n */\n\n /**\n * Create a new metadata element to represent the connection.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param assetManagerIsHome ensure that only the asset manager can update this element\n * @param externalIdentifierProperties optional properties used to define an external identifier\n * @param connectionProperties properties to store\n *\n * @return unique identifier of the new metadata element\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n String createConnection(String userId,\n String assetManagerGUID,\n String assetManagerName,\n boolean assetManagerIsHome,\n ExternalIdentifierProperties externalIdentifierProperties,\n ConnectionProperties connectionProperties) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /**\n * Create a new metadata element to represent a connection using an existing metadata element as a template.\n * The template defines additional classifications and relationships that should be added to the new asset.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param assetManagerIsHome ensure that only the asset manager can update this element\n * @param externalIdentifierProperties optional properties used to define an external identifier\n * @param templateGUID unique identifier of the metadata element to copy\n * @param templateProperties properties that override the template\n *\n * @return unique identifier of the new metadata element\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n String createConnectionFromTemplate(String userId,\n String assetManagerGUID,\n String assetManagerName,\n boolean assetManagerIsHome,\n String templateGUID,\n ExternalIdentifierProperties externalIdentifierProperties,\n TemplateProperties templateProperties) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /**\n * Update the metadata element representing a connection.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param connectionGUID unique identifier of the metadata element to update\n * @param connectionExternalIdentifier unique identifier of the connection in the external asset manager\n * @param isMergeUpdate should the new properties be merged with existing properties (true) or completely replace them (false)?\n * @param effectiveTime when should the elements be effected for - null is anytime; new Date() is now\n * @param forLineage return elements marked with the Memento classification?\n * @param forDuplicateProcessing do not merge elements marked as duplicates?\n * @param connectionProperties new properties for this element\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n void updateConnection(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String connectionGUID,\n String connectionExternalIdentifier,\n boolean isMergeUpdate,\n ConnectionProperties connectionProperties,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /**\n * Create a relationship between a connection and a connector type.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param assetManagerIsHome ensure that only the asset manager can update this relationship\n * @param connectionGUID unique identifier of the connection in the external asset manager\n * @param connectorTypeGUID unique identifier of the connector type in the external asset manager\n * @param effectiveFrom the date when this element is active - null for active now\n * @param effectiveTo the date when this element becomes inactive - null for active until deleted\n * @param effectiveTime when should the elements be effected for - null is anytime; new Date() is now\n * @param forLineage return elements marked with the Memento classification?\n * @param forDuplicateProcessing do not merge elements marked as duplicates?\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n void setupConnectorType(String userId,\n String assetManagerGUID,\n String assetManagerName,\n boolean assetManagerIsHome,\n String connectionGUID,\n String connectorTypeGUID,\n Date effectiveFrom,\n Date effectiveTo,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /**\n * Remove a relationship between a connection and a connector type.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param connectionGUID unique identifier of the connection in the external asset manager\n * @param connectorTypeGUID unique identifier of the connector type in the external asset manager\n * @param effectiveTime when should the elements be effected for - null is anytime; new Date() is now\n * @param forLineage return elements marked with the Memento classification?\n * @param forDuplicateProcessing do not merge elements marked as duplicates?\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n void clearConnectorType(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String connectionGUID,\n String connectorTypeGUID,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /**\n * Create a relationship between a connection and an endpoint.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param assetManagerIsHome ensure that only the asset manager can update this relationship\n * @param connectionGUID unique identifier of the connection in the external asset manager\n * @param endpointGUID unique identifier of the endpoint in the external asset manager\n * @param effectiveFrom the date when this element is active - null for active now\n * @param effectiveTo the date when this element becomes inactive - null for active until deleted\n * @param effectiveTime when should the elements be effected for - null is anytime; new Date() is now\n * @param forLineage return elements marked with the Memento classification?\n * @param forDuplicateProcessing do not merge elements marked as duplicates?\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n void setupEndpoint(String userId,\n String assetManagerGUID,\n String assetManagerName,\n boolean assetManagerIsHome,\n String connectionGUID,\n String endpointGUID,\n Date effectiveFrom,\n Date effectiveTo,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /**\n * Remove a relationship between a connection and an endpoint.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param connectionGUID unique identifier of the connection in the external asset manager\n * @param endpointGUID unique identifier of the endpoint in the external asset manager\n * @param effectiveTime when should the elements be effected for - null is anytime; new Date() is now\n * @param forLineage return elements marked with the Memento classification?\n * @param forDuplicateProcessing do not merge elements marked as duplicates?\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n void clearEndpoint(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String connectionGUID,\n String endpointGUID,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /**\n * Create a relationship between a virtual connection and an embedded connection.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param assetManagerIsHome ensure that only the asset manager can update this relationship\n * @param connectionGUID unique identifier of the virtual connection in the external asset manager\n * @param properties properties describing how to use the embedded connection such as: Which order should this connection be processed;\n * What additional properties should be passed to the embedded connector via the configuration properties;\n * What does this connector signify?\n * @param embeddedConnectionGUID unique identifier of the embedded connection in the external asset manager\n * @param effectiveTime when should the elements be effected for - null is anytime; new Date() is now\n * @param forLineage return elements marked with the Memento classification?\n * @param forDuplicateProcessing do not merge elements marked as duplicates?\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n void setupEmbeddedConnection(String userId,\n String assetManagerGUID,\n String assetManagerName,\n boolean assetManagerIsHome,\n String connectionGUID,\n String embeddedConnectionGUID,\n EmbeddedConnectionProperties properties,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /**\n * Remove a relationship between a virtual connection and an embedded connection.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param connectionGUID unique identifier of the virtual connection in the external asset manager\n * @param embeddedConnectionGUID unique identifier of the embedded connection in the external asset manager\n * @param effectiveTime when should the elements be effected for - null is anytime; new Date() is now\n * @param forLineage return elements marked with the Memento classification?\n * @param forDuplicateProcessing do not merge elements marked as duplicates?\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n void clearEmbeddedConnection(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String connectionGUID,\n String embeddedConnectionGUID,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /**\n * Create a relationship between an asset and its connection.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param assetManagerIsHome ensure that only the asset manager can update this relationship\n * @param assetGUID unique identifier of the asset\n * @param connectionGUID unique identifier of the connection\n * @param properties summary of the asset that is stored in the relationship between the asset and the connection.\n * @param effectiveTime when should the elements be effected for - null is anytime; new Date() is now\n * @param forLineage return elements marked with the Memento classification?\n * @param forDuplicateProcessing do not merge elements marked as duplicates?\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n void setupAssetConnection(String userId,\n String assetManagerGUID,\n String assetManagerName,\n boolean assetManagerIsHome,\n String assetGUID,\n String connectionGUID,\n AssetConnectionProperties properties,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /**\n * Remove a relationship between an asset and its connection.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param assetGUID unique identifier of the asset\n * @param connectionGUID unique identifier of the connection\n * @param effectiveTime when should the elements be effected for - null is anytime; new Date() is now\n * @param forLineage return elements marked with the Memento classification?\n * @param forDuplicateProcessing do not merge elements marked as duplicates?\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n void clearAssetConnection(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String assetGUID,\n String connectionGUID,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /**\n * Remove the metadata element representing a connection. This will delete all anchored\n * elements such as comments.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param connectionGUID unique identifier of the metadata element to remove\n * @param connectionExternalIdentifier unique identifier of the connection in the external asset manager\n * @param effectiveTime when should the elements be effected for - null is anytime; new Date() is now\n * @param forLineage return elements marked with the Memento classification?\n * @param forDuplicateProcessing do not merge elements marked as duplicates?\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n void removeConnection(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String connectionGUID,\n String connectionExternalIdentifier,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /**\n * Retrieve the list of asset metadata elements that contain the search string.\n * The search string is treated as a regular expression.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param searchString string to find in the properties\n * @param startFrom paging start point\n * @param pageSize maximum results that can be returned\n * @param effectiveTime when should the elements be effected for - null is anytime; new Date() is now\n * @param forLineage return elements marked with the Memento classification?\n * @param forDuplicateProcessing do not merge elements marked as duplicates?\n *\n * @return list of matching metadata elements\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n List<ConnectionElement> findConnections(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String searchString,\n int startFrom,\n int pageSize,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /**\n * Retrieve the list of asset metadata elements with a matching qualified or display name.\n * There are no wildcards supported on this request.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param name name to search for\n * @param startFrom paging start point\n * @param pageSize maximum results that can be returned\n * @param effectiveTime when should the elements be effected for - null is anytime; new Date() is now\n * @param forLineage return elements marked with the Memento classification?\n * @param forDuplicateProcessing do not merge elements marked as duplicates?\n *\n * @return list of matching metadata elements\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n List<ConnectionElement> getConnectionsByName(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String name,\n int startFrom,\n int pageSize,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /**\n * Retrieve the list of assets created on behalf of the named asset manager.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param startFrom paging start point\n * @param pageSize maximum results that can be returned\n * @param effectiveTime when should the elements be effected for - null is anytime; new Date() is now\n * @param forLineage return elements marked with the Memento classification?\n * @param forDuplicateProcessing do not merge elements marked as duplicates?\n *\n * @return list of matching metadata elements\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n List<ConnectionElement> getConnectionsForAssetManager(String userId,\n String assetManagerGUID,\n String assetManagerName,\n int startFrom,\n int pageSize,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /**\n * Retrieve the connection metadata element with the supplied unique identifier.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param connectionGUID unique identifier of the requested metadata element\n * @param effectiveTime when should the elements be effected for - null is anytime; new Date() is now\n * @param forLineage return elements marked with the Memento classification?\n * @param forDuplicateProcessing do not merge elements marked as duplicates?\n *\n * @return matching metadata element\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n ConnectionElement getConnectionByGUID(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String connectionGUID,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /*\n * The Endpoint entity describes the location of the resource.\n */\n\n /**\n * Create a new metadata element to represent the endpoint.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param assetManagerIsHome ensure that only the asset manager can update this element\n * @param externalIdentifierProperties optional properties used to define an external identifier\n * @param endpointProperties properties to store\n *\n * @return unique identifier of the new metadata element\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n String createEndpoint(String userId,\n String assetManagerGUID,\n String assetManagerName,\n boolean assetManagerIsHome,\n ExternalIdentifierProperties externalIdentifierProperties,\n EndpointProperties endpointProperties) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /**\n * Create a new metadata element to represent an endpoint using an existing metadata element as a template.\n * The template defines additional classifications and relationships that should be added to the new endpoint.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param assetManagerIsHome ensure that only the asset manager can update this element\n * @param externalIdentifierProperties optional properties used to define an external identifier\n * @param templateGUID unique identifier of the metadata element to copy\n * @param templateProperties properties that override the template\n *\n * @return unique identifier of the new metadata element\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n String createEndpointFromTemplate(String userId,\n String assetManagerGUID,\n String assetManagerName,\n boolean assetManagerIsHome,\n String templateGUID,\n ExternalIdentifierProperties externalIdentifierProperties,\n TemplateProperties templateProperties) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /**\n * Update the metadata element representing an endpoint.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param endpointGUID unique identifier of the metadata element to update\n * @param endpointExternalIdentifier unique identifier of the endpoint in the external asset manager\n * @param isMergeUpdate should the new properties be merged with existing properties (true) or completely replace them (false)?\n * @param endpointProperties new properties for this element\n * @param effectiveTime when should the elements be effected for - null is anytime; new Date() is now\n * @param forLineage return elements marked with the Memento classification?\n * @param forDuplicateProcessing do not merge elements marked as duplicates?\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n void updateEndpoint(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String endpointGUID,\n String endpointExternalIdentifier,\n boolean isMergeUpdate,\n EndpointProperties endpointProperties,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /**\n * Remove the metadata element representing an endpoint. This will delete the endpoint and all categories\n * and terms.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param endpointGUID unique identifier of the metadata element to remove\n * @param endpointExternalIdentifier unique identifier of the endpoint in the external asset manager\n * @param effectiveTime when should the elements be effected for - null is anytime; new Date() is now\n * @param forLineage return elements marked with the Memento classification?\n * @param forDuplicateProcessing do not merge elements marked as duplicates?\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n void removeEndpoint(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String endpointGUID,\n String endpointExternalIdentifier,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /**\n * Retrieve the list of endpoint metadata elements that contain the search string.\n * The search string is treated as a regular expression.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param searchString string to find in the properties\n * @param startFrom paging start point\n * @param pageSize maximum results that can be returned\n * @param effectiveTime when should the elements be effected for - null is anytime; new Date() is now\n * @param forLineage return elements marked with the Memento classification?\n * @param forDuplicateProcessing do not merge elements marked as duplicates?\n *\n * @return list of matching metadata elements\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n List<EndpointElement> findEndpoints(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String searchString,\n int startFrom,\n int pageSize,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /**\n * Retrieve the list of endpoint metadata elements with a matching qualified or display name.\n * There are no wildcards supported on this request.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param name name to search for\n * @param startFrom paging start point\n * @param pageSize maximum results that can be returned\n * @param effectiveTime when should the elements be effected for - null is anytime; new Date() is now\n * @param forLineage return elements marked with the Memento classification?\n * @param forDuplicateProcessing do not merge elements marked as duplicates?\n *\n * @return list of matching metadata elements\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n List<EndpointElement> getEndpointsByName(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String name,\n int startFrom,\n int pageSize,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /**\n * Retrieve the list of glossaries created on behalf of the named asset manager.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param startFrom paging start point\n * @param pageSize maximum results that can be returned\n * @param effectiveTime when should the elements be effected for - null is anytime; new Date() is now\n * @param forLineage return elements marked with the Memento classification?\n * @param forDuplicateProcessing do not merge elements marked as duplicates?\n *\n * @return list of matching metadata elements\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n List<EndpointElement> getEndpointsForAssetManager(String userId,\n String assetManagerGUID,\n String assetManagerName,\n int startFrom,\n int pageSize,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /**\n * Retrieve the endpoint metadata element with the supplied unique identifier.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param endpointGUID unique identifier of the requested metadata element\n * @param effectiveTime when should the elements be effected for - null is anytime; new Date() is now\n * @param forLineage return elements marked with the Memento classification?\n * @param forDuplicateProcessing do not merge elements marked as duplicates?\n *\n * @return matching metadata element\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n EndpointElement getEndpointByGUID(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String endpointGUID,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n\n /*\n * The ConnectorType entity describes a specific connector implementation.\n */\n\n\n /**\n * Create a new metadata element to represent the root of a connectorType.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param assetManagerIsHome ensure that only the asset manager can update this element\n * @param externalIdentifierProperties optional properties used to define an external identifier\n * @param connectorTypeProperties properties to store\n *\n * @return unique identifier of the new metadata element\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n String createConnectorType(String userId,\n String assetManagerGUID,\n String assetManagerName,\n boolean assetManagerIsHome,\n ExternalIdentifierProperties externalIdentifierProperties,\n ConnectorTypeProperties connectorTypeProperties) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /**\n * Create a new metadata element to represent a connectorType using an existing metadata element as a template.\n * The template defines additional classifications and relationships that should be added to the new connectorType.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param assetManagerIsHome ensure that only the asset manager can update this element\n * @param externalIdentifierProperties optional properties used to define an external identifier\n * @param templateGUID unique identifier of the metadata element to copy\n * @param templateProperties properties that override the template\n *\n * @return unique identifier of the new metadata element\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n String createConnectorTypeFromTemplate(String userId,\n String assetManagerGUID,\n String assetManagerName,\n boolean assetManagerIsHome,\n String templateGUID,\n ExternalIdentifierProperties externalIdentifierProperties,\n TemplateProperties templateProperties) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /**\n * Update the metadata element representing a connectorType.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param connectorTypeGUID unique identifier of the metadata element to update\n * @param connectorTypeExternalIdentifier unique identifier of the connectorType in the external asset manager\n * @param isMergeUpdate should the new properties be merged with existing properties (true) or completely replace them (false)?\n * @param connectorTypeProperties new properties for this element\n * @param effectiveTime when should the elements be effected for - null is anytime; new Date() is now\n * @param forLineage return elements marked with the Memento classification?\n * @param forDuplicateProcessing do not merge elements marked as duplicates?\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n void updateConnectorType(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String connectorTypeGUID,\n String connectorTypeExternalIdentifier,\n boolean isMergeUpdate,\n ConnectorTypeProperties connectorTypeProperties,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /**\n * Remove the metadata element representing a connectorType. This will delete the connectorType and all categories\n * and terms.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param connectorTypeGUID unique identifier of the metadata element to remove\n * @param connectorTypeExternalIdentifier unique identifier of the connectorType in the external asset manager\n * @param effectiveTime when should the elements be effected for - null is anytime; new Date() is now\n * @param forLineage return elements marked with the Memento classification?\n * @param forDuplicateProcessing do not merge elements marked as duplicates?\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n void removeConnectorType(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String connectorTypeGUID,\n String connectorTypeExternalIdentifier,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /**\n * Retrieve the list of connectorType metadata elements that contain the search string.\n * The search string is treated as a regular expression.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param searchString string to find in the properties\n * @param startFrom paging start point\n * @param pageSize maximum results that can be returned\n * @param effectiveTime when should the elements be effected for - null is anytime; new Date() is now\n * @param forLineage return elements marked with the Memento classification?\n * @param forDuplicateProcessing do not merge elements marked as duplicates?\n *\n * @return list of matching metadata elements\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n List<ConnectorTypeElement> findConnectorTypes(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String searchString,\n int startFrom,\n int pageSize,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /**\n * Retrieve the list of connectorType metadata elements with a matching qualified or display name.\n * There are no wildcards supported on this request.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param name name to search for\n * @param startFrom paging start point\n * @param pageSize maximum results that can be returned\n * @param effectiveTime when should the elements be effected for - null is anytime; new Date() is now\n * @param forLineage return elements marked with the Memento classification?\n * @param forDuplicateProcessing do not merge elements marked as duplicates?\n *\n * @return list of matching metadata elements\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n List<ConnectorTypeElement> getConnectorTypesByName(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String name,\n int startFrom,\n int pageSize,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /**\n * Retrieve the list of glossaries created on behalf of the named asset manager.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param startFrom paging start point\n * @param pageSize maximum results that can be returned\n * @param effectiveTime when should the elements be effected for - null is anytime; new Date() is now\n * @param forLineage return elements marked with the Memento classification?\n * @param forDuplicateProcessing do not merge elements marked as duplicates?\n *\n * @return list of matching metadata elements\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n List<ConnectorTypeElement> getConnectorTypesForAssetManager(String userId,\n String assetManagerGUID,\n String assetManagerName,\n int startFrom,\n int pageSize,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /**\n * Retrieve the connectorType metadata element with the supplied unique identifier.\n *\n * @param userId calling user\n * @param assetManagerGUID unique identifier of software capability representing the caller\n * @param assetManagerName unique name of software capability representing the caller\n * @param openMetadataGUID unique identifier of the requested metadata element\n * @param effectiveTime when should the elements be effected for - null is anytime; new Date() is now\n * @param forLineage return elements marked with the Memento classification?\n * @param forDuplicateProcessing do not merge elements marked as duplicates?\n *\n * @return matching metadata element\n *\n * @throws InvalidParameterException one of the parameters is invalid\n * @throws UserNotAuthorizedException the user is not authorized to issue this request\n * @throws PropertyServerException there is a problem reported in the open metadata server(s)\n */\n ConnectorTypeElement getConnectorTypeByGUID(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String openMetadataGUID,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n}", "@Link Network network();", "public interface Link<T> extends ITable<T>, List<T>, RandomAccess {\r\n /**\r\n * Set number of the linked objects \r\n * @param newSize new number of linked objects (if it is greater than original number, \r\n * than extra elements will be set to null)\r\n */\r\n public void setSize(int newSize);\r\n \r\n /**\r\n * Returns <tt>true</tt> if there are no related object\r\n *\r\n * @return <tt>true</tt> if there are no related object\r\n */\r\n boolean isEmpty();\r\n\r\n /**\r\n * Get related object by index\r\n * @param i index of the object in the relation\r\n * @return referenced object\r\n */\r\n public T get(int i);\r\n\r\n /**\r\n * Get related object by index without loading it.\r\n * Returned object can be used only to get it OID or to compare with other objects using\r\n * <code>equals</code> method\r\n * @param i index of the object in the relation\r\n * @return stub representing referenced object\r\n */\r\n public Object getRaw(int i);\r\n\r\n /**\r\n * Replace i-th element of the relation\r\n * @param i index in the relartion\r\n * @param obj object to be included in the relation \r\n * @return the element previously at the specified position.\r\n */\r\n public T set(int i, T obj);\r\n\r\n /**\r\n * Assign value to i-th element of the relation.\r\n * Unlike Link.set methos this method doesn't return previous value of the element\r\n * and so is faster if previous element value is not needed (it has not to be fetched from the database)\r\n * @param i index in the relartion\r\n * @param obj object to be included in the relation \r\n */\r\n public void setObject(int i, T obj);\r\n\r\n /**\r\n * Remove object with specified index from the relation\r\n * Unlike Link.remove methos this method doesn't return removed element and so is faster \r\n * if it is not needed (it has not to be fetched from the database)\r\n * @param i index in the relartion\r\n */\r\n public void removeObject(int i);\r\n\r\n /**\r\n * Insert new object in the relation\r\n * @param i insert poistion, should be in [0,size()]\r\n * @param obj object inserted in the relation\r\n */\r\n public void insert(int i, T obj);\r\n\r\n /**\r\n * Add all elements of the array to the relation\r\n * @param arr array of obects which should be added to the relation\r\n */\r\n public void addAll(T[] arr);\r\n \r\n /**\r\n * Add specified elements of the array to the relation\r\n * @param arr array of obects which should be added to the relation\r\n * @param from index of the first element in the array to be added to the relation\r\n * @param length number of elements in the array to be added in the relation\r\n */\r\n public void addAll(T[] arr, int from, int length);\r\n\r\n /**\r\n * Add all object members of the other relation to this relation\r\n * @param link another relation\r\n */\r\n public boolean addAll(Link<T> link);\r\n\r\n /**\r\n * Return array with relation members. Members are not loaded and \r\n * size of the array can be greater than actual number of members. \r\n * @return array of object with relation members used in implementation of Link class\r\n */\r\n public Object[] toRawArray(); \r\n\r\n /**\r\n * Get all relation members as array.\r\n * The runtime type of the returned array is that of the specified array. \r\n * If the index fits in the specified array, it is returned therein. \r\n * Otherwise, a new array is allocated with the runtime type of the \r\n * specified array and the size of this index.<p>\r\n *\r\n * If this index fits in the specified array with room to spare\r\n * (i.e., the array has more elements than this index), the element\r\n * in the array immediately following the end of the index is set to\r\n * <tt>null</tt>. This is useful in determining the length of this\r\n * index <i>only</i> if the caller knows that this index does\r\n * not contain any <tt>null</tt> elements.)<p>\r\n * @return array of object with relation members\r\n */\r\n public <T> T[] toArray(T[] arr);\r\n\r\n /**\r\n * Checks if relation contains specified object instance\r\n * @param obj specified object\r\n * @return <code>true</code> if object is present in the collection, <code>false</code> otherwise\r\n */\r\n public boolean containsObject(T obj);\r\n\r\n /**\r\n * Check if i-th element of Link is the same as specified obj\r\n * @param i element index\r\n * @param obj object to compare with\r\n * @return <code>true</code> if i-th element of Link reference the same object as \"obj\"\r\n */\r\n public boolean containsElement(int i, T obj);\r\n\r\n /**\r\n * Get index of the specified object instance in the relation. \r\n * This method use comparison by object identity (instead of equals() method) and\r\n * is significantly faster than List.indexOf() method\r\n * @param obj specified object instance\r\n * @return zero based index of the object or -1 if object is not in the relation\r\n */\r\n public int indexOfObject(Object obj);\r\n\r\n /**\r\n * Get index of the specified object instance in the relation\r\n * This method use comparison by object identity (instead of equals() method) and\r\n * is significantly faster than List.indexOf() method\r\n * @param obj specified object instance\r\n * @return zero based index of the object or -1 if object is not in the relation\r\n */\r\n public int lastIndexOfObject(Object obj);\r\n\r\n /**\r\n * Remove all members from the relation\r\n */\r\n public void clear();\r\n\r\n /**\r\n * Get iterator through link members\r\n * This iterator supports remove() method.\r\n * @return iterator through linked objects\r\n */\r\n public Iterator<T> iterator();\r\n\r\n /**\r\n * Replace all direct references to linked objects with stubs. \r\n * This method is needed tyo avoid memory exhaustion in case when \r\n * there is a large numebr of objectys in databasse, mutually\r\n * refefencing each other (each object can directly or indirectly \r\n * be accessed from other objects).\r\n */\r\n public void unpin();\r\n \r\n /**\r\n * Replace references to elements with direct references.\r\n * It will impove spped of manipulations with links, but it can cause\r\n * recursive loading in memory large number of objects and as a result - memory\r\n * overflow, because garbage collector will not be able to collect them\r\n */\r\n public void pin(); \r\n}", "public int getLinkCapacity() {\n return LinkCapacity;\n }", "@objid (\"5451d474-f72f-46a9-b8b5-35997413d584\")\npublic interface CommunicationChannel extends UmlModelElement {\n /**\n * The metaclass simple name.\n */\n @objid (\"6e808325-1178-4f5a-9ca8-269f71745b8d\")\n public static final String MNAME = \"CommunicationChannel\";\n\n /**\n * The metaclass qualified name.\n */\n @objid (\"20f1621a-db2d-4fb3-8e34-8502c8d522e0\")\n public static final String MQNAME = \"Standard.CommunicationChannel\";\n\n /**\n * Getter for relation 'CommunicationChannel->StartToEndMessage'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"d089f797-963a-472b-9102-e08e9087b6cd\")\n EList<CommunicationMessage> getStartToEndMessage();\n\n /**\n * Filtered Getter for relation 'CommunicationChannel->StartToEndMessage'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"066dba33-47f2-4d51-911f-d869593b015d\")\n <T extends CommunicationMessage> List<T> getStartToEndMessage(java.lang.Class<T> filterClass);\n\n /**\n * Getter for relation 'CommunicationChannel->Channel'\n * \n * Metamodel description:\n * <i>References the Link the communication channel represents.</i>\n */\n @objid (\"1bb2731c-131f-497d-9749-1f4f1e705acb\")\n Link getChannel();\n\n /**\n * Setter for relation 'CommunicationChannel->Channel'\n * \n * Metamodel description:\n * <i>References the Link the communication channel represents.</i>\n */\n @objid (\"590a2bf3-2953-41dc-8b02-1f07ac23249c\")\n void setChannel(Link value);\n\n /**\n * Getter for relation 'CommunicationChannel->Start'\n * \n * Metamodel description:\n * <i>Node starting the channel.</i>\n */\n @objid (\"afa7354b-88c4-40d5-b8dd-215055f8955c\")\n CommunicationNode getStart();\n\n /**\n * Setter for relation 'CommunicationChannel->Start'\n * \n * Metamodel description:\n * <i>Node starting the channel.</i>\n */\n @objid (\"c3f1412d-ca73-479b-8bf7-561601b3f34c\")\n void setStart(CommunicationNode value);\n\n /**\n * Getter for relation 'CommunicationChannel->NaryChannel'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"42f8450d-1aca-4f83-a91e-9f7e7fc3c5c7\")\n NaryLink getNaryChannel();\n\n /**\n * Setter for relation 'CommunicationChannel->NaryChannel'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"92b2c0f0-fd35-4625-a34a-228b33b2cc4d\")\n void setNaryChannel(NaryLink value);\n\n /**\n * Getter for relation 'CommunicationChannel->EndToStartMessage'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"20dbaa0c-b05b-4a47-a12e-306a021a47aa\")\n EList<CommunicationMessage> getEndToStartMessage();\n\n /**\n * Filtered Getter for relation 'CommunicationChannel->EndToStartMessage'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"1842961e-730c-46db-8ef2-47e5d4f8ba30\")\n <T extends CommunicationMessage> List<T> getEndToStartMessage(java.lang.Class<T> filterClass);\n\n /**\n * Getter for relation 'CommunicationChannel->End'\n * \n * Metamodel description:\n * <i>Node at the end of the channel.</i>\n */\n @objid (\"a401b5aa-a324-4104-b9f3-8aa6e8adc133\")\n CommunicationNode getEnd();\n\n /**\n * Setter for relation 'CommunicationChannel->End'\n * \n * Metamodel description:\n * <i>Node at the end of the channel.</i>\n */\n @objid (\"cfed1cf5-bd4d-45f7-9acf-65e9e11fac88\")\n void setEnd(CommunicationNode value);\n\n}", "protected void mutateAddLink() {\n\t\t// Make sure network is not fully connected\n\n\t\t// Sum number of connections\n\t\tint totalconnections = numGenes();\n\n\t\t// Find number of each type of node\n\t\tint in = population.numInputs;\n\t\tint out = population.numOutputs;\n\t\tint hid = numNodes() - (in + out);\n\n\t\t// Find the number of possible connections.\n\t\t// Links cannot end with an input\n\t\tint fullyconnected = 0;\n\t\tfullyconnected = (in + out + hid) * (out + hid);\n\n\t\tif (totalconnections == fullyconnected)\n\t\t\treturn;\n\n\t\t// Pick 2 nodes for a new connection and submit it\n\t\tNNode randomstart;\n\t\tNNode randomend;\n\t\tdo {\n\t\t\trandomstart = getRandomNode();\n\t\t\trandomend = getRandomNode();\n\t\t} while (randomend.type == NNode.INPUT\n\t\t\t\t|| hasConnection(randomstart.ID, randomend.ID));\n\n\t\tint newgeneinno = population\n\t\t\t\t.getInnovation(randomstart.ID, randomend.ID);\n\t\tGene newgene = new Gene(newgeneinno, randomstart.ID, randomend.ID,\n\t\t\t\tBraincraft.randomWeight(), true);\n\t\tpopulation.registerGene(newgene);\n\t\tsubmitNewGene(newgene);\n\n\t\tif (Braincraft.gatherStats)\n\t\t\tBraincraft.genetics.add(\"link creation mutation \" + ID + \" \"\n\t\t\t\t\t+ newgene.innovation + \" \" + randomstart.ID + \" \"\n\t\t\t\t\t+ randomend.ID);\n\t}", "@objid (\"cd72633c-53d3-4556-b5de-b52113e3a225\")\n void setLink(Link value);", "LINK createLINK();", "public interface ArchiveClient extends Serializable {\n\n Partition getPartition(String topic, String host, int port, int partition);\n\n// ReplayArchive open(Map conf);\n\n void close();\n\n BrokerArchive getBroker(String host, int port);\n\n public interface Partition extends Serializable {\n\n public List<MessageAndOffset> fetch(long offset, int maxSize);\n\n public long[] getOffsetsBefore(long time, int maxNumOffsets);\n\n public void send(long offset, MessageAndOffset messageAndOffset);\n\n public void send(Map<Long, MessageAndOffset> messagesAndOffsets);\n\n }\n\n public interface BrokerArchive extends Closeable {\n\n List<MessageAndOffset> fetch(FetchRequest request);\n\n void send(String topic, int partition, long offset, MessageAndOffset messageAndOffset);\n\n void open();\n\n void close();\n\n }\n\n}", "public interface ChannelConfiguration {\n\n\t/**\n\t * Channel manager should use driver in listening mode\n\t */\n\tpublic static final long LISTEN_FOR_UPDATE = -1;\n\n\t/**\n\t * ChannelManager should use driver in comand mode, with no periodic reading or listening.\n\t */\n\tpublic static final long NO_READ_NO_LISTEN = 0;\n\n\t/**\n\t * Get the ChannelLocator associated with this ChannelConfiguration\n\t * \n\t * @return ChannelLocator\n\t */\n\tpublic ChannelLocator getChannelLocator();\n\n\t/**\n\t * Get the DeviceLocator associated with this ChannelConfiguration\n\t * \n\t * @return DeviceLocator\n\t */\n\tpublic DeviceLocator getDeviceLocator();\n\n\t/**\n\t * Direction of the Channel, <br>\n\t * INPUT = read the values from channel <br>\n\t * OUTPUT = write values at the channel\n\t */\n\tpublic enum Direction {\n\t\tDIRECTION_INPUT, /* from gateways point of view */\n\t\tDIRECTION_OUTPUT, DIRECTION_INOUT\n\t}\n\n\t/**\n\t * Get the sampling period (in milliseconds)\n\t * @return the sampling period in ms\n\t */\n\tpublic long getSamplingPeriod();\n\n\t/**\n\t * \n\t * @return the Direction of Channel\n\t */\n\tpublic Direction getDirection();\n}", "public Link(DvText meaning, DvText type, DvEHRURI target) {\n if(meaning == null) {\n throw new IllegalArgumentException(\"null meaning\");\n }\n if(type == null) {\n throw new IllegalArgumentException(\"null type\");\n }\n if(target == null) {\n throw new IllegalArgumentException(\"null target\");\n }\n this.meaning = meaning;\n this.type = type;\n this.target = target;\n }", "NodeConnection createNodeConnection();", "public void _linkClient(ModelElement client1);", "protected Channel createChannel() throws IOException, TimeoutException, NoSuchAlgorithmException {\n LOGGER.debug(\"Creating channel\");\n Channel channel = connectionProducer.getConnection(config).createChannel();\n LOGGER.debug(\"Created channel\");\n return channel;\n }", "Link(Object it, Link inp, Link inn) { e = it; p = inp; n = inn; }", "public EmbeddedChannel(ChannelId channelId, boolean hasDisconnect, ChannelConfig config, ChannelHandler... handlers) {\n/* 182 */ super(null, channelId);\n/* 183 */ this.metadata = metadata(hasDisconnect);\n/* 184 */ this.config = (ChannelConfig)ObjectUtil.checkNotNull(config, \"config\");\n/* 185 */ setup(true, handlers);\n/* */ }", "protected IAePartnerLinkType getPartnerLinkType() {\r\n return getDef().getPartnerLinkType();\r\n }", "NamedLinkDescriptor createNamedLinkDescriptor();", "public interface Server extends Endpoint, Resetable {\n\n /**\n * is bound.\n *\n * @return bound\n */\n boolean isBound();\n\n /**\n * get channels.\n *\n * @return channels\n */\n Collection<Channel> getChannels();\n\n /**\n * get channel.\n *\n * @param remoteAddress\n * @return channel\n */\n Channel getChannel(InetSocketAddress remoteAddress);\n\n}", "@objid (\"780bebb2-6884-4789-bdef-ca10444ad5fb\")\n Link getLink();", "@Option int getLocalPortForUdpLinkLayer();", "@Column(name=\"link\")\n\tpublic String getLink() {\n\t\treturn link;\n\t}", "public interface MessagingService {\n\n /**\n * Checks whether message receivers are registered for this channel.\n * \n * @param ccid the channel id\n * @return <code>true</code> if there are message receivers on this channel,\n * <code>false</code> if not.\n */\n boolean hasMessageReceiver(String ccid);\n\n /**\n * Passes the message to the registered message receiver.\n * \n * @param ccid the channel to pass the message on\n * @param serializedMessage the message to send (serialized SMRF message)\n */\n void passMessageToReceiver(String ccid, byte[] serializedMessage);\n\n /**\n * Check whether the messaging component is responsible to send messages on\n * this channel.<br>\n * \n * In scenarios with only one messaging component, this will always return\n * <code>true</code>. In scenarios in which channels are assigned to several\n * messaging components, only the component that the channel was assigned\n * to, returns <code>true</code>.\n * \n * @param ccid\n * the channel ID or cluster controller ID, respectively.\n * @return <code>true</code> if the messaging component is responsible for\n * forwarding messages on this channel, <code>false</code>\n * otherwise.\n */\n boolean isAssignedForChannel(String ccid);\n\n /**\n * Check whether the messaging component was responsible before but the\n * channel has been assigned to a new messaging component in the mean time.\n * \n * @param ccid the channel id\n * @return <code>true</code> if the messaging component was responsible\n * before but isn't any more, <code>false</code> if it either never\n * was responsible or still is responsible.\n */\n boolean hasChannelAssignmentMoved(String ccid);\n}", "public interface DdpConnection {\n\n void close() throws IOException;\n\n void sendMessage(String json) throws IOException;\n\n}", "public interface PersistentConnectionListener extends ArrangeableProxyListener {\n\n /**\n * Allows to keep the connection open and perform advanced operations on the Socket. Consider\n * WebSocket connections or Server-Sent Events.\n *\n * @param httpMessage Contains request and response.\n * @param inSocket Contains TCP connection to browser.\n * @param method May contain TCP connection to server.\n * @return True if connection is took over, false if not interested.\n */\n boolean onHandshakeResponse(\n HttpMessage httpMessage,\n Socket inSocket,\n @SuppressWarnings(\"deprecation\") ZapGetMethod method);\n}", "public interface RemoteCoordinator extends Remote, Identify {\n /**\n * a method to add a Peer to this RemoteCoordinator's list of available Peers\n * called by a MembershipManager\n *\n * @param peer the Uuid of the Peer to be added\n */\n void addPeer(Uuid peer) throws RemoteException;\n\n /**\n * a method to remove a Peer from this RemoteCoordinator's list of available Peers\n * called by a MembershipManager\n *\n * @param peer the Uuid of the Peer to be removed\n */\n void removePeer(Uuid peer) throws RemoteException;\n\n /**\n * a method to get the Uuid of a live Peer in this Coordinator's list of active Peers,\n * removing any dead Peers encountered along the way from the service\n *\n * @return the Uuid of a live Peer\n */\n Uuid getActivePeer() throws RemoteException, NotBoundException;\n\n /**\n * a method to get the list of active Peers from this RemoteCoordinator\n * called by the MembershipManager when bringing new RemoteCoordinators online\n *\n * @return the list of available Uuids from this RemoteCoordinator\n */\n List<Uuid> getActivePeers() throws RemoteException;\n\n /**\n * a method to set the map of active Peers for this RemoteCoordinator\n * called by the MembershipManager when bringing new RemoteCoordinators online\n */\n void setActivePeers(List<Uuid> activePeers) throws RemoteException;\n\n /**\n * a method to assign a JobId to a JobCoordinator\n * called by a User\n * delegates responsibility to its corresponding Coordinator method\n *\n * @param jobId the JobId of the Job being assigned\n * @return true if the job was successfully assigned, false otherwise\n * @throws RemoteException\n */\n boolean assignJob(JobId jobId) throws RemoteException;\n\n /**\n * a method to get an allocation of TaskManagers\n * called by a JobManager\n *\n * @param numRequested the number of TaskManagers being requested by the JobManager\n * @return a list of Uuids to be used by the calling JobManager as TaskManagers\n * @throws RemoteException\n */\n List<Uuid> getTaskManagers(int numRequested) throws RemoteException;\n}", "public IHyperLink attachLink()\n throws OculusException;", "@JSProperty(\"linkedTo\")\n double getLinkedTo();", "private LinkDescription buildLinkDescription(BgpLinkLsNlriVer4 bgpLink) {\n LinkDescription ld = null;\n checkNotNull(bgpLink);\n\n BgpDpid localNodeUri = new BgpDpid(bgpLink, BgpDpid.NODE_DESCRIPTOR_LOCAL);\n DeviceId srcDeviceID = deviceId(uri(localNodeUri.toString()));\n\n BgpDpid remoteNodeUri = new BgpDpid(bgpLink, BgpDpid.NODE_DESCRIPTOR_REMOTE);\n DeviceId dstDeviceID = deviceId(uri(remoteNodeUri.toString()));\n\n deviceProviderService.updatePorts(srcDeviceID, buildPortDescriptions(localNodeUri.toString()));\n\n deviceProviderService.updatePorts(dstDeviceID, buildPortDescriptions(remoteNodeUri.toString()));\n\n ConnectPoint src = new ConnectPoint(srcDeviceID, null);\n\n ConnectPoint dst = new ConnectPoint(dstDeviceID, null);\n\n ld = new DefaultLinkDescription(src, dst, Link.Type.INDIRECT);\n return ld;\n }", "public interface NetworkClientManager {\n\n /**\n * Get a NetworkClientConnection\n *\n * @return NetworkClientConnection instance\n */\n NetworkClientConnection getConnection();\n\n /**\n * Get a NetworkClientConnection from uriToNode\n * @param uriToNode\n * @return NetworkClientConnection instance\n */\n NetworkClientConnection getConnection(String uriToNode);\n\n}" ]
[ "0.5334721", "0.5245766", "0.5149766", "0.502435", "0.5024083", "0.49890953", "0.49846843", "0.49705383", "0.492991", "0.49282283", "0.4881108", "0.4830832", "0.48102313", "0.48023134", "0.47994626", "0.4788605", "0.47814053", "0.47785738", "0.4772831", "0.4765302", "0.4718259", "0.46911755", "0.46861553", "0.4668168", "0.46446475", "0.4637774", "0.4621184", "0.458122", "0.4561564", "0.45534778", "0.45427307", "0.45413953", "0.45366472", "0.45248187", "0.45223644", "0.45174557", "0.4510645", "0.45053786", "0.45023054", "0.44995442", "0.44966856", "0.44902274", "0.44774267", "0.4473566", "0.4458791", "0.44575828", "0.445229", "0.44405225", "0.44372368", "0.44371575", "0.44368908", "0.44367003", "0.44269595", "0.4423806", "0.44217297", "0.44187415", "0.4409216", "0.4403516", "0.4402964", "0.43987578", "0.43967032", "0.43927974", "0.43874756", "0.43864262", "0.43771377", "0.43763977", "0.43729964", "0.43676457", "0.43648106", "0.43553293", "0.43527013", "0.43493608", "0.43462545", "0.43428153", "0.4335419", "0.43257728", "0.43245333", "0.43210047", "0.43190345", "0.43081814", "0.4306739", "0.43067342", "0.43054685", "0.43050396", "0.42970335", "0.42829296", "0.42814443", "0.4276782", "0.42748424", "0.42714742", "0.42620182", "0.42611688", "0.4259338", "0.42580068", "0.42547497", "0.42543176", "0.4250109", "0.4248585", "0.4247438", "0.42472285" ]
0.48341766
11
Get a duplex connection for this channel. This method must be called for each requestresponse message exchange.
DuplexConnection getDuplex(MessageProperties msgProps, XmlOptions xmlOptions) throws IOException, WsConfigurationException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Channel\r\n{\r\n /**\r\n * Get a duplex connection for this channel. This method must be called for each request-response message exchange.\r\n * @param msgProps message specific properties\r\n * @param xmlOptions XML formatting options\r\n * @return connection\r\n * @throws IOException on I/O error\r\n * @throws WsConfigurationException on configuration error\r\n */\r\n DuplexConnection getDuplex(MessageProperties msgProps, XmlOptions xmlOptions) throws IOException, \r\n WsConfigurationException;\r\n \r\n /**\r\n * Get a send-only connection for this channel. This method must be called for each message to be sent without a\r\n * response.\r\n * @param msgProps message specific properties\r\n * @param xmlOptions XML formatting options\r\n * @return connection\r\n * @throws IOException on I/O error\r\n * @throws WsConfigurationException on configuration error\r\n */\r\n OutConnection getOutbound(MessageProperties msgProps, XmlOptions xmlOptions) throws IOException, \r\n WsConfigurationException;\r\n \r\n /**\r\n * Get a receive-only connection for this channel. This method must be called for each message to be received, and\r\n * will wait for a message to be available before returning.\r\n * \r\n * @return connection\r\n * @throws IOException on I/O error\r\n * @throws WsConfigurationException on configuration error\r\n */\r\n InConnection getInbound() throws IOException, WsConfigurationException;\r\n \r\n /**\r\n * Close the channel. Implementations should disconnect and free any resources allocated to the channel.\r\n * @throws IOException on I/O error\r\n */\r\n void close() throws IOException;\r\n}", "public Channel getChannel() throws ConnectException\n {\n return getChannel(null);\n }", "public ProxyConnection fetchConnection() {\n ProxyConnection connection = null;\n\n try {\n connection = connections.take();\n } catch (InterruptedException e) {\n LOGGER.log(Level.ERROR, \"Can't fetch a connection!\", e);\n }\n\n return connection;\n }", "SocketChannel getChannel();", "public Socket getConnection() {\n return connection;\n }", "public WarpConnection getConnection() {\r\n return(this.connection);\r\n }", "WebSocketConnection getWebSocketConnection();", "protected Channel connect() {\n\t\t\tif (channel == null) {\n\t\t\t\tinit();\n\t\t\t}\n\t\t\tSystem.out.println(\"channel === \"+channel);\n\t\t\tif (channel.isDone() && channel.isSuccess())\n\t\t\t\treturn channel.channel();\n\t\t\telse\n\t\t\t\tthrow new RuntimeException(\"Not able to establish connection to server\");\n\t\t}", "public Connection getConnection() {\n this.connect();\n return this.connection;\n }", "public Connection getConnection()\n\t{\n\t\treturn wConn;\n\t}", "public SocketChannel getChannel() {\n return channel;\n }", "public ChannelReestablish clone() {\n\t\tlong ret = bindings.ChannelReestablish_clone(this.ptr);\n\t\tif (ret < 1024) { return null; }\n\t\tChannelReestablish ret_hu_conv = new ChannelReestablish(null, ret);\n\t\tret_hu_conv.ptrs_to.add(this);\n\t\treturn ret_hu_conv;\n\t}", "public Connection getConnection() {\n \t\treturn this.connect;\n \t}", "public Socket getConnectionSocket()\n {\n return connectionSocket;\n }", "public Connection getConnection() {\r\n return connection;\r\n }", "public Connection getConnection() {\r\n return connection;\r\n }", "public Connection getConnection() {\n return connection;\n }", "public Connection takeConnection() {\n ProxyConnection proxyConnection = null;\n try {\n proxyConnection = connections.take();\n } catch (InterruptedException e) {\n logger.log(Level.ERROR, e);\n Thread.currentThread().interrupt();\n }\n return proxyConnection;\n }", "public Connection getConnection() {\n\t\treturn this.connection;\n\t}", "protected Channel getChannel()\n {\n return mChannel;\n }", "public Connection getConnection() {\r\n\tConnection result = null;\r\n\tif (isConnected()) {\r\n\t result = conn;\r\n\t}\r\n\treturn result;\r\n }", "public Channel connect() {\n\t\tChannelFuture channel = bootstrap.connect(new InetSocketAddress(host, port));\n\n\t\t// wait for the connection to establish\n\t\tchannel.awaitUninterruptibly();\n\n\t\tif (channel.isDone() && channel.isSuccess()) {\n\t\t\treturn channel.getChannel();\n\t\t} else {\n\t\t\tthrow new RuntimeException(\"Not able to establish connection to server\");\n\t\t}\n\t}", "public IChannel getChannel() {\n\t\treturn message.getChannel();\n\t}", "public static Connect getConnect() {\n\t\treturn connection;\n\t}", "public Connection getConnection(){\r\n\t\treturn connection;\r\n\t}", "public Connection getConnection()\n\t{\n\t\treturn connection;\n\t}", "public Connection getConnection() throws ResourceException\n {\n return (Connection)cm.allocateConnection(mcf, null);\n }", "public static Connector GetConnection(){\n\t\ttry{\n\t\t\tif(c_connection == null){\n\t\t\t\tc_connection = new Connector();\n\t\t\t}\n\t\t\treturn c_connection;\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\treturn null;\n\t\t}\n\t}", "@NonNull\n protected final Connection getConnection() {\n return mConnection;\n }", "protected IXConnection getConnection() {\n return eloCmisConnectionManager.getConnection(this.getCallContext());\n }", "public Connection getConnection(){\n\t\tif(connection == null){\r\n\t\t\tinitConnection();\r\n\t\t}\r\n\t\treturn connection;\r\n\t}", "Channel channel() {\n return channel;\n }", "@Override\n public Connection getConnection() {\n boolean createNewConnection = false;\n Connection returnConnection = null;\n synchronized (connections) { //Lock the arraylist\n if (connections.isEmpty()) { //Check if any connections available\n createNewConnection = true; //If not, create new one\n } else {\n returnConnection = connections.get(0); //Get first available one\n connections.remove(0); //And remove from list\n }\n }\n if (createNewConnection) { //If new connection needed\n returnConnection = createConnection();\n }\n return returnConnection;\n }", "public URLConnection getConnection(){\n return this.mConnection;\n }", "protected SocketChannel getSocket() {\n\t\treturn channel;\n\t}", "public Connection getConnection() {\n return conn;\n }", "public Connection getConnection() {\n return conn;\n }", "Connection getConnection() {\n\t\treturn connection;\n\t}", "public Connection getConn()\r\n\t{\r\n\t\treturn this.conn;\r\n\t}", "public SocketChannel getChannel() { return null; }", "public Channel getChannel()\n {\n return channel;\n }", "protected Connection getConnection () {\n \t\treturn connection;\n \t}", "public Connection getConn()\n\t{\n\t\treturn this.conn;\n\t}", "@Bean\n\tpublic DirectChannel requestChooserOutputChannel() {\n\t\treturn MessageChannels.direct().get();\n\t}", "public IConnection getConnection () { \n\t\treturn connection;\n\t}", "public URLConnection getConnection() {\n return this.urlConnection;\n }", "public ChannelDescriptor dup() {\n synchronized (refCounter) {\n refCounter.incrementAndGet();\n \n int newFileno = getNewFileno();\n \n if (DEBUG) getLogger(\"ChannelDescriptor\").info(\"Reopen fileno \" + newFileno + \", refs now: \" + refCounter.get());\n \n return new ChannelDescriptor(channel, newFileno, originalModes, fileDescriptor, refCounter, canBeSeekable);\n }\n }", "public static Connection getConn() {\n return conn;\n }", "public interface ChannelConnection {\n public Channel getChannel();\n public Connector getConnector();\n}", "public IRemoteConnection getConnection() {\n \t\treturn fSelectedConnection;\n \t}", "public Connection getConn() {\r\n return conn;\r\n }", "public ChannelGroup getConnections();", "public static Connection getConnection() {\n\n if (concount<conns-1) {\n concount++;\n } else {\n concount=0;\n }\n return con_pool[concount];\n }", "org.apache.drill.exec.proto.UserBitShared.RpcChannel getChannel();", "EzyChannel getChannel();", "public ChannelManager getChannelManager() {\n return channelMgr;\n }", "public Channel getChannel()\n\t{\n\t\treturn channel;\n\t}", "protected Connection getConnection() {\n return con;\n }", "public Connection getCon() {\r\n return con;\r\n }", "public static Connection getConnection() {\n return singleInstance.createConnection();\n }", "public static Connection getConnection() {\n\t\t\n\t\treturn conn;\n\t}", "public ServerConnection getServerConnection()\n {\n return m_oServerConnection;\n }", "private ManagedChannel connect() throws InterruptedException {\n for (int i = 0; i < 20; i++) {\n try {\n new Socket().connect(new InetSocketAddress(\"localhost\", 8081));\n break;\n } catch (IOException e) {\n Thread.sleep(500);\n }\n }\n channel = ManagedChannelBuilder.forAddress(\"localhost\", 8081)\n .usePlaintext()\n .build();\n return channel;\n }", "public ReadableByteChannel getByteChannel() throws IOException {\n InputStream source = getInputStream();\n \n if(source != null) {\n return Channels.newChannel(source);\n }\n return null;\n }", "public Channel getChannel() {\n return channel;\n }", "public Channel getChannel() {\r\n\t\treturn channel;\r\n\t}", "public Channel channel()\r\n/* 36: */ {\r\n/* 37: 68 */ return this.channel;\r\n/* 38: */ }", "ConnectionImpl getNewConnection() {\n if (injectedConnection != null) {\n return injectedConnection;\n }\n return new ConnectionImpl();\n }", "public static Connection getConnection() throws InterruptedException {\n\t\treturn instance.connectionPool.take();\n\t}", "public ConnectionConfig createConnection()\n {\n return _connectionConfig;\n }", "public static Comms connect() {\r\n\t\tComms client = null;\r\n\t\ttry(ServerSocket server = new ServerSocket(4444)) {\r\n\t\t\tclient = new Comms(server.accept());\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn client;\r\n\t}", "public ConnectionDTO getDto() {\n return dto;\n }", "private ManagedChannel getManagedChannel() {\n return ManagedChannelBuilder.forAddress(\"localhost\", mGrpcPortNum)\n .usePlaintext()\n .build();\n }", "protected Channel connect() {\n\t\tint port = 6501;\n\t\t\n\t\tSocket socket1 = null, socket2 = null, socket3 = null;\n\t\tboolean fullyConnected = false;\n\t\t\n\t\t// Make several attempts to connect to the server\\\n\t\tlog.debug(\"Attemping connections with server [\" + hostIP + \"] on ports \" + port + \" through \" + (port + 2) + \".\");\n\t\tfor(int attempts = 0; !fullyConnected && attempts < 3; attempts++) {\n\t\t\ttry {\n\t\t\t\t// Connecting to the server using the IP address and port\n\t\t\t\tif(socket1 == null) socket1 = new Socket(InetAddress.getByName(hostIP), port);\n\t\t\t\tif(socket2 == null) socket2 = new Socket(InetAddress.getByName(hostIP), port + 1);\n\t\t\t\tif(socket3 == null) socket3 = new Socket(InetAddress.getByName(hostIP), port + 2);\n\t\t\t\tif(socket1 != null && socket2 != null && socket3 != null) fullyConnected = true;\n\t\t\t}\n\t\t\tcatch(IOException e) {\n\t\t\t\tlog.debug(\"Attempt \" + (attempts + 1) + \" failed. \" + e);\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\t// Wait a short period before attempting to connect again\n\t\t\t\t\tThread.sleep(50);\n\t\t\t\t} catch (InterruptedException e2) {\n\t\t\t\t\tlog.error(e2.getStackTrace(), e2);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(socket1 == null || socket2 == null || socket3 == null) {\n\t\t\tlog.error(\"Connection timeout. (One or more sockets is null)\");\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\tlog.debug(\"Fully Connected:\");\n\t\t\tlog.debug(\"ADD socket [Local: \" + socket1.getLocalPort() + \" Remote: \" + socket1.getPort() + \"]\");\n\t\t\tlog.debug(\"RETRIEVE socket [Local: \" + socket2.getLocalPort() + \" Remote: \" + socket2.getPort() + \"]\");\n\t\t\tlog.debug(\"STREAM socket [Local: \" + socket3.getLocalPort() + \" Remote: \" + socket3.getPort() + \"]\");\n\t\t\tlog.debug(\"Creating channel...\");\n\t\t\tChannel channel = new Channel(socket1, socket2, socket3);\n\t\t\tlog.debug(\"Done.\");\n\t\t\treturn channel;\n\t\t}\n\t}", "@objid (\"1bb2731c-131f-497d-9749-1f4f1e705acb\")\n Link getChannel();", "public Connection getConnection(){\n try{\n if(connection == null || connection.isClosed()){\n connection = FabricaDeConexao.getConnection();\n return connection;\n } else return connection;\n } catch (SQLException e){throw new RuntimeException(e);}\n }", "protected Connection getConnection() {\r\n\t\treturn getProcessor().getConnection();\r\n\t}", "private SocketChannel getChannel(){\n if ( key == null ) {\n return getSocket().getChannel();\n } else {\n return (SocketChannel)key.channel();\n }\n }", "private Connection getConn(){\n \n return new util.ConnectionPar().getConn();\n }", "public java.util.List<io.grpc.channelz.v1.Channel> getChannelList() {\n return channel_;\n }", "public synchronized Connection getConnection() throws CouponSystemException {\n\t\tif (poolClosed) {\n\t\t\tthrow new CouponSystemException(\"getConnection failed ; pool closed\");\n\t\t}\n\t\twhile (connections.isEmpty()) {\n\t\t\ttry {\n\t\t\t\twait();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tIterator<Connection> it = connections.iterator();\n\t\tConnection con = it.next();\n\t\tit.remove();\n\t\treturn con;\n\t}", "public synchronized Connection incomingConnection(Socket s) throws IOException {\n\t\tlog.debug(\"incomming connection: \" + Settings.socketAddress(s));\n\t\tConnection c = new Connection(s);\n\t\tif (c != null)\n\t\t\tconnections.add(c);\n\t\treturn c;\n\n\t}", "public Connection(Channel channel) {\r\n this.channel = channel;\r\n }", "protected Channel createChannel() throws IOException, TimeoutException, NoSuchAlgorithmException {\n LOGGER.debug(\"Creating channel\");\n Channel channel = connectionProducer.getConnection(config).createChannel();\n LOGGER.debug(\"Created channel\");\n return channel;\n }", "java.lang.String getChannel();", "public Message getMessageWizardChannel() {\n\t\tMessage temp = null;\n\t\t\n\t\ttry {\n\t\t\t//se ia mesajul din buffer\n\t\t\ttemp = bufferWizardChannel.take();\t\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn temp;\n\t\t\n\t}", "public Connection getConn() {return conn;}", "private Channel connect(ChannelInitializer<SocketChannel> handler) {\n // Configure worker pools and buffer allocator\n EventLoopGroup workerGroup = new NioEventLoopGroup();\n Bootstrap b = new Bootstrap();\n b.group(workerGroup);\n b.channel(NioSocketChannel.class);\n b.option(ChannelOption.SO_KEEPALIVE, true);\n // TODO(user): Evaluate use of pooled allocator\n b.option(ChannelOption.ALLOCATOR, UnpooledByteBufAllocator.DEFAULT);\n\n // Install the handler\n b.handler(handler);\n\n // Connect and wait for connection to be available\n ChannelFuture channelFuture = b.connect(host, port);\n try {\n // Wait for the connection\n channelFuture.get(5, TimeUnit.SECONDS);\n channel = channelFuture.channel();\n ChannelFuture closeFuture = channel.closeFuture();\n closeFuture.addListener(new WorkerCleanupListener(b.group()));\n return channel;\n } catch (TimeoutException te) {\n throw new IllegalStateException(\"Timeout waiting for connection to \" + host + \":\" + port, te);\n } catch (Throwable t) {\n throw new IllegalStateException(\"Error connecting to \" + host + \":\" + port, t);\n }\n }", "public Connections getConnections();", "public Connection getMyConnection(){\n return myConnection;\n }", "public Object getCommunicationChannel()\r\n\t\t\tthrows PersistenceMechanismException {\n\t\treturn null;\r\n\t}", "public Channel getChannel(Long timeout) throws ConnectException\n {\n if (channel == null && connectFuture != null) //first call after connection attempt\n {\n NettyHelper.awaitUninterruptibly(connectFuture, timeout);\n if (!connectFuture.isSuccess())\n {\n ConnectException ce = NativeMessages.MESSAGES.couldNotConnectTo(url.getHost());\n ce.initCause(connectFuture.getCause());\n throw ce;\n }\n channel = connectFuture.getChannel();\n }\n return channel;\n }", "public @NonNull Builder setDuplexModes(@DuplexMode int duplexModes,\n @DuplexMode int defaultDuplexMode) {\n enforceValidMask(duplexModes,\n (currentMode) -> PrintAttributes.enforceValidDuplexMode(currentMode));\n PrintAttributes.enforceValidDuplexMode(defaultDuplexMode);\n mPrototype.mDuplexModes = duplexModes;\n mPrototype.mDefaults[PROPERTY_DUPLEX_MODE] = defaultDuplexMode;\n return this;\n }", "public Connexion getConnexion() {\n\t\treturn cx;\n\t}", "public ChannelDescriptor dup2(int fileno) {\n synchronized (refCounter) {\n refCounter.incrementAndGet();\n \n if (DEBUG) getLogger(\"ChannelDescriptor\").info(\"Reopen fileno \" + fileno + \", refs now: \" + refCounter.get());\n \n return new ChannelDescriptor(channel, fileno, originalModes, fileDescriptor, refCounter, canBeSeekable);\n }\n }", "public Connection ObtenirConnexion(){return cn;}", "public IRemoteConnection getRemoteConnection() {\n\t\tif (fRemoteConnectionWidget != null && !fRemoteConnectionWidget.isDisposed()) {\n\t\t\treturn fRemoteConnectionWidget.getConnection();\n\t\t}\n\t\treturn null;\n \t}", "public String getConnection()\n {\n return this.connection;\n }", "public static Connection createConnection() {\n\t\treturn new FabricaDeConexoes().getConnection();\n\t}", "public Connection getConnection();" ]
[ "0.62498593", "0.57988954", "0.5543668", "0.55131066", "0.55019796", "0.5499201", "0.5445937", "0.54177946", "0.5397444", "0.5282266", "0.5279584", "0.5260899", "0.5236794", "0.5195486", "0.51890403", "0.51890403", "0.5184254", "0.5183044", "0.517097", "0.5167839", "0.5167469", "0.5165182", "0.51424706", "0.5133127", "0.5124195", "0.51100415", "0.51014274", "0.5098443", "0.5095428", "0.5092931", "0.50833184", "0.5073915", "0.5063705", "0.502507", "0.50109243", "0.49827504", "0.49827504", "0.49652848", "0.49460706", "0.49348083", "0.49275476", "0.49241436", "0.49164653", "0.49018648", "0.48981482", "0.48906958", "0.48902094", "0.4884772", "0.48586625", "0.48577717", "0.4851915", "0.4851365", "0.4849226", "0.48202917", "0.48145103", "0.4813776", "0.48086885", "0.480618", "0.4805423", "0.4804745", "0.47824568", "0.47750115", "0.47734326", "0.47677562", "0.47564396", "0.474018", "0.47363913", "0.47125474", "0.47111917", "0.4705965", "0.470397", "0.46891698", "0.46841624", "0.46732333", "0.46421725", "0.46391812", "0.46377963", "0.46367076", "0.4627454", "0.4618852", "0.461725", "0.46127552", "0.45878857", "0.45778283", "0.45758823", "0.45606908", "0.4557", "0.45355856", "0.45349857", "0.45281747", "0.45253882", "0.45071077", "0.44995627", "0.44980225", "0.4496563", "0.44954035", "0.44945097", "0.4490518", "0.44897902", "0.44862223" ]
0.6308386
0
Get a sendonly connection for this channel. This method must be called for each message to be sent without a response.
OutConnection getOutbound(MessageProperties msgProps, XmlOptions xmlOptions) throws IOException, WsConfigurationException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SocketChannel getChannel() { return null; }", "public Channel getChannel() throws ConnectException\n {\n return getChannel(null);\n }", "public SocketChannel getChannel() {\n return channel;\n }", "protected SocketChannel getSocket() {\n\t\treturn channel;\n\t}", "protected Channel connect() {\n\t\t\tif (channel == null) {\n\t\t\t\tinit();\n\t\t\t}\n\t\t\tSystem.out.println(\"channel === \"+channel);\n\t\t\tif (channel.isDone() && channel.isSuccess())\n\t\t\t\treturn channel.channel();\n\t\t\telse\n\t\t\t\tthrow new RuntimeException(\"Not able to establish connection to server\");\n\t\t}", "public IChannel getChannel() {\n\t\treturn message.getChannel();\n\t}", "public Socket getConnectionSocket()\n {\n return connectionSocket;\n }", "SocketChannel getChannel();", "public Socket getConnection() {\n return connection;\n }", "public static ClientSocket getClientSocket() {\n return connectionToServer;\n }", "public WarpConnection getConnection() {\r\n return(this.connection);\r\n }", "protected Channel getChannel()\n {\n return mChannel;\n }", "public static Connect getConnect() {\n\t\treturn connection;\n\t}", "public interface Channel\r\n{\r\n /**\r\n * Get a duplex connection for this channel. This method must be called for each request-response message exchange.\r\n * @param msgProps message specific properties\r\n * @param xmlOptions XML formatting options\r\n * @return connection\r\n * @throws IOException on I/O error\r\n * @throws WsConfigurationException on configuration error\r\n */\r\n DuplexConnection getDuplex(MessageProperties msgProps, XmlOptions xmlOptions) throws IOException, \r\n WsConfigurationException;\r\n \r\n /**\r\n * Get a send-only connection for this channel. This method must be called for each message to be sent without a\r\n * response.\r\n * @param msgProps message specific properties\r\n * @param xmlOptions XML formatting options\r\n * @return connection\r\n * @throws IOException on I/O error\r\n * @throws WsConfigurationException on configuration error\r\n */\r\n OutConnection getOutbound(MessageProperties msgProps, XmlOptions xmlOptions) throws IOException, \r\n WsConfigurationException;\r\n \r\n /**\r\n * Get a receive-only connection for this channel. This method must be called for each message to be received, and\r\n * will wait for a message to be available before returning.\r\n * \r\n * @return connection\r\n * @throws IOException on I/O error\r\n * @throws WsConfigurationException on configuration error\r\n */\r\n InConnection getInbound() throws IOException, WsConfigurationException;\r\n \r\n /**\r\n * Close the channel. Implementations should disconnect and free any resources allocated to the channel.\r\n * @throws IOException on I/O error\r\n */\r\n void close() throws IOException;\r\n}", "public ChatConnection getChatConnection() {\n\t\treturn chatConnection;\n\t}", "public GetFreeMessage send()\n throws Exception\n {\n return (GetFreeMessage)super.send();\n }", "AsynchronousSocketChannel getOutgoingSocket() {\n return outgoingSocket;\n }", "@Override\n\t\t\tpublic Optional<INoChannelHandler> noChannelHandler() {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\n\t\t\tpublic Optional<INoChannelHandler> noChannelHandler() {\n\t\t\t\treturn null;\n\t\t\t}", "com.google.protobuf.ByteString\n getChannelBytes();", "@NonNull\n protected final Connection getConnection() {\n return mConnection;\n }", "private SocketChannel getChannel(){\n if ( key == null ) {\n return getSocket().getChannel();\n } else {\n return (SocketChannel)key.channel();\n }\n }", "Channel channel() {\n return channel;\n }", "public Connection takeConnection() {\n ProxyConnection proxyConnection = null;\n try {\n proxyConnection = connections.take();\n } catch (InterruptedException e) {\n logger.log(Level.ERROR, e);\n Thread.currentThread().interrupt();\n }\n return proxyConnection;\n }", "public Connection getConnection()\n\t{\n\t\treturn wConn;\n\t}", "public Connection getConnection() {\n \t\treturn this.connect;\n \t}", "public boolean getDisconnect() {\n return disconnect_;\n }", "WebSocketConnection getWebSocketConnection();", "public ChatWithServer.Req getChatWithServerReq() {\n return instance.getChatWithServerReq();\n }", "public ChannelServerConfiguration disableBind() {\n this.disableBind = true;\n return this;\n }", "public boolean getDisconnect() {\n return disconnect_;\n }", "public Connection getConnection() {\n this.connect();\n return this.connection;\n }", "public Channel getChannel()\n {\n return channel;\n }", "public SendOptions getDefaultSendOptions() {\n return defaultSendOptions;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic synchronized Connection outgoingConnection(Socket s) throws IOException {\n\t\tlog.debug(\"outgoing connection: \" + Settings.socketAddress(s));\n\t\tConnection c = new Connection(s);\n\t\tconnections.add(c);\n\t\tbroadConnections.add(c);\n\t\tJSONObject msg = new JSONObject();\n\t\tmsg.put(\"command\", AUTHENTICATE);\n\t\tmsg.put(\"secret\", Settings.getSecret());\n\t\tc.writeMsg(msg.toJSONString());\n\t\treturn c;\n\n\t}", "java.lang.String getChannel();", "public Boolean tcpReuseChannel();", "public ProxyConnection fetchConnection() {\n ProxyConnection connection = null;\n\n try {\n connection = connections.take();\n } catch (InterruptedException e) {\n LOGGER.log(Level.ERROR, \"Can't fetch a connection!\", e);\n }\n\n return connection;\n }", "public Channel getCurrentDataChannel() throws FtpNoConnectionException {\n if (dataChannel == null) {\n throw new FtpNoConnectionException(\"No Data Connection active\");\n }\n return dataChannel;\n }", "private ByteBuf getSendByteBuf(byte[] bytes){\n return Unpooled.unreleasableBuffer(Unpooled.copiedBuffer(\n bytes));\n }", "AsynchronousSocketChannel getClientSocket() {\n return clientSocket;\n }", "void send(IMessage message, IChannel channel);", "public Channel connect() {\n\t\tChannelFuture channel = bootstrap.connect(new InetSocketAddress(host, port));\n\n\t\t// wait for the connection to establish\n\t\tchannel.awaitUninterruptibly();\n\n\t\tif (channel.isDone() && channel.isSuccess()) {\n\t\t\treturn channel.getChannel();\n\t\t} else {\n\t\t\tthrow new RuntimeException(\"Not able to establish connection to server\");\n\t\t}\n\t}", "public ServerConnection getServerConnection()\n {\n return m_oServerConnection;\n }", "@java.lang.Override public boolean hasChannel() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "public Message getMessageMinerChannel() {\n\t\tMessage msg2=null;\n\t\ttry{\n\t\t\tmsg2=chann2.take();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn msg2;\n\t}", "public Object getCommunicationChannel()\r\n\t\t\tthrows PersistenceMechanismException {\n\t\treturn null;\r\n\t}", "protected Channel createChannel() throws IOException, TimeoutException, NoSuchAlgorithmException {\n LOGGER.debug(\"Creating channel\");\n Channel channel = connectionProducer.getConnection(config).createChannel();\n LOGGER.debug(\"Created channel\");\n return channel;\n }", "protected Connection getConnection() {\n return con;\n }", "public static Connection getConn() {\n return conn;\n }", "public Connection getConn()\r\n\t{\r\n\t\treturn this.conn;\r\n\t}", "public Connection getConn()\n\t{\n\t\treturn this.conn;\n\t}", "public EmbeddedChannel flushOutbound() {\n/* 444 */ if (checkOpen(true)) {\n/* 445 */ flushOutbound0();\n/* */ }\n/* 447 */ checkException(voidPromise());\n/* 448 */ return this;\n/* */ }", "public Channel getChannel()\n\t{\n\t\treturn channel;\n\t}", "public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "IMessage sendAndWait(IMessage message, IChannel channel) throws TimeoutException;", "public interface WriteOnlyChannel {\n /**\n * Write message packet\n * @param data message packet\n * @return True if success ele False\n */\n boolean write(byte[] data );\n}", "boolean getDisconnect();", "private Redis getRandomConnection(Set<SocketAddress> exclude) {\n List<Redis> available = connections.entrySet().stream()\n .filter(kv -> !exclude.contains(kv.getKey()) && kv.getValue() != null)\n .map(Map.Entry::getValue)\n .collect(Collectors.toList());\n\n if (available.size() == 0) {\n // signal no client\n return null;\n }\n\n return available.get(RANDOM.nextInt(available.size()));\n }", "@java.lang.Override public boolean hasChannel() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "public Channel getChannel() {\n return channel;\n }", "public TCPClientConnectionMessageCollector getMyMessageCollector()\n {\n return fMyMessageCollector;\n }", "public Connection getConnection() {\n\t\treturn this.connection;\n\t}", "public com.google.protobuf.ByteString\n getChannelBytes() {\n java.lang.Object ref = channel_;\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 channel_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "Socket connect() throws CommunicationException {\r\n\t\treturn connect(null);\r\n\t}", "public SodiumChannel getSodiumChannel() {\n\t\t\treturn sodiumChannel;\n\t\t}", "@Override\n public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "org.apache.drill.exec.proto.UserBitShared.RpcChannel getChannel();", "public Connection getConnection() {\r\n\tConnection result = null;\r\n\tif (isConnected()) {\r\n\t result = conn;\r\n\t}\r\n\treturn result;\r\n }", "protected Connection getConnection () {\n \t\treturn connection;\n \t}", "public Channel getChannel() {\r\n\t\treturn channel;\r\n\t}", "public com.google.protobuf.ByteString\n getChannelBytes() {\n java.lang.Object ref = channel_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n channel_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public JButton getSend() {\n\t\treturn send;\n\t}", "public Connection getConn() {\r\n return conn;\r\n }", "@java.lang.Override\n public boolean getDisableOmniSending() {\n return disableOmniSending_;\n }", "public boolean canTransmitMessages()\n {\n return true;\n }", "public static Comms connect() {\r\n\t\tComms client = null;\r\n\t\ttry(ServerSocket server = new ServerSocket(4444)) {\r\n\t\t\tclient = new Comms(server.accept());\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn client;\r\n\t}", "public TCPConnectionHandler getTCPConnection() {\r\n\t\treturn tcp;\r\n\t}", "public Connection getConnection() {\n return connection;\n }", "public Channel method_4121() {\n return null;\n }", "public com.google.protobuf.ByteString\n getChannelBytes() {\n java.lang.Object ref = channel_;\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 channel_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Byte getChannel() {\n return channel;\n }", "public Connection getConnection() {\r\n return connection;\r\n }", "public Connection getConnection() {\r\n return connection;\r\n }", "public com.google.protobuf.ByteString\n getChannelBytes() {\n java.lang.Object ref = channel_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n channel_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getTalkingToChan() {\n return talkingToChan;\n }", "public boolean isConnectionActive ()\r\n\t{\r\n\t\tsynchronized (this)\r\n\t\t{\r\n\t\t\treturn _bbCanSend;\r\n\t\t}\r\n\t}", "public Channel method_4090() {\n return null;\n }", "@java.lang.Override\n public boolean getDisableOmniSending() {\n return disableOmniSending_;\n }", "public final SignalConnection getSignalConnection() {\n return signalConnection;\n }", "public ObjectOutputStream returnMessage()\n {\n return outToClient;\n }", "public TCPConnectionManager getConnectDisconnectManager() {\n return connect_disconnect_manager;\n }", "public Message getMessageMinerChannel() {\n\t\t\n\t\tMessage temp = null;\t\n\t\ttry {\n\t\t\t//se ia mesajul din buffer\n\t\t\ttemp = bufferMinerChannel.take();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn temp;\n\t}", "@Override\n public Connection getConnection() {\n boolean createNewConnection = false;\n Connection returnConnection = null;\n synchronized (connections) { //Lock the arraylist\n if (connections.isEmpty()) { //Check if any connections available\n createNewConnection = true; //If not, create new one\n } else {\n returnConnection = connections.get(0); //Get first available one\n connections.remove(0); //And remove from list\n }\n }\n if (createNewConnection) { //If new connection needed\n returnConnection = createConnection();\n }\n return returnConnection;\n }", "public java.lang.String getChannel() {\n java.lang.Object ref = channel_;\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 channel_ = s;\n }\n return s;\n }\n }" ]
[ "0.5929248", "0.5772319", "0.54925305", "0.5478556", "0.54065704", "0.5404377", "0.5401009", "0.5399716", "0.5326189", "0.52310354", "0.52122176", "0.51727384", "0.5171331", "0.51637524", "0.51153225", "0.5076911", "0.5045669", "0.5029107", "0.5029107", "0.5005275", "0.49740446", "0.49677482", "0.4929993", "0.48871258", "0.48866507", "0.4885156", "0.4884386", "0.48816702", "0.48794642", "0.4862553", "0.48546907", "0.48445812", "0.48356205", "0.4835515", "0.48312572", "0.48303142", "0.4819212", "0.47972605", "0.47734207", "0.4771334", "0.4744572", "0.47417495", "0.47380826", "0.4736141", "0.47343528", "0.47337198", "0.47336867", "0.4727666", "0.4724138", "0.472407", "0.47239155", "0.472188", "0.4716851", "0.47136346", "0.4711388", "0.4711388", "0.4711388", "0.4711388", "0.4710039", "0.4705568", "0.46984076", "0.46982905", "0.46962506", "0.46938664", "0.46847394", "0.46840435", "0.46818653", "0.46798334", "0.46784914", "0.46729708", "0.46729708", "0.46729708", "0.46729708", "0.4671162", "0.4670483", "0.46654907", "0.4662195", "0.4662079", "0.46613288", "0.46599168", "0.4656807", "0.46566513", "0.46566007", "0.46538928", "0.46441197", "0.46402094", "0.46370512", "0.46360132", "0.46316034", "0.46316034", "0.46271488", "0.4626597", "0.46157447", "0.46120724", "0.4607929", "0.46050206", "0.46040517", "0.45978022", "0.45961776", "0.45947963", "0.45859015" ]
0.0
-1
Get a receiveonly connection for this channel. This method must be called for each message to be received, and will wait for a message to be available before returning.
InConnection getInbound() throws IOException, WsConfigurationException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Message receiveMessage() {\r\n\t\treturn messages.poll();\r\n\t}", "public Message getMessageMinerChannel() {\n\t\tMessage msg2=null;\n\t\ttry{\n\t\t\tmsg2=chann2.take();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn msg2;\n\t}", "public Channel getChannel() throws ConnectException\n {\n return getChannel(null);\n }", "public IChannel getChannel() {\n\t\treturn message.getChannel();\n\t}", "public ProxyConnection fetchConnection() {\n ProxyConnection connection = null;\n\n try {\n connection = connections.take();\n } catch (InterruptedException e) {\n LOGGER.log(Level.ERROR, \"Can't fetch a connection!\", e);\n }\n\n return connection;\n }", "public Message getMessageMinerChannel() {\n\t\t\n\t\tMessage temp = null;\t\n\t\ttry {\n\t\t\t//se ia mesajul din buffer\n\t\t\ttemp = bufferMinerChannel.take();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn temp;\n\t}", "SocketChannel getChannel();", "public Message<Object> receive() {\n\t\treturn null;\n\t}", "public DatagramPacket receive() {\n\t\treturn messageQueue.poll();\n\t}", "@Override\n public ReceiveMessageResult receiveMessage(ReceiveMessageRequest request) {\n request = beforeClientExecution(request);\n return executeReceiveMessage(request);\n }", "@Override\n public Connection getConnection() {\n boolean createNewConnection = false;\n Connection returnConnection = null;\n synchronized (connections) { //Lock the arraylist\n if (connections.isEmpty()) { //Check if any connections available\n createNewConnection = true; //If not, create new one\n } else {\n returnConnection = connections.get(0); //Get first available one\n connections.remove(0); //And remove from list\n }\n }\n if (createNewConnection) { //If new connection needed\n returnConnection = createConnection();\n }\n return returnConnection;\n }", "protected Channel connect() {\n\t\t\tif (channel == null) {\n\t\t\t\tinit();\n\t\t\t}\n\t\t\tSystem.out.println(\"channel === \"+channel);\n\t\t\tif (channel.isDone() && channel.isSuccess())\n\t\t\t\treturn channel.channel();\n\t\t\telse\n\t\t\t\tthrow new RuntimeException(\"Not able to establish connection to server\");\n\t\t}", "public synchronized Message receive() \r\n\tthrows IOException, SocketTimeoutException {\r\n\t\tbyte[] buffer = new byte[576];\r\n\t\tMessage msg = null;\r\n\t\twhile (msg == null) {\r\n\t\t\ttry {\r\n\t\t\t\tsocket.setSoTimeout(TIMEOUT);\r\n\t\t\t\tDatagramPacket response = new DatagramPacket(buffer,\r\n\t\t\t\t\t\tbuffer.length, this.socket.getInetAddress(),\r\n\t\t\t\t\t\tthis.socket.getLocalPort());\r\n\t\t\t\tsocket.receive(response);\r\n\t\t\t\tmsg = new Message(response.getData());\r\n\t\t\t\tmsg.setSender(response.getPort(), response.getAddress());\r\n\t\t\t} catch (MessageCorruptException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.sendConfirmation(msg.getSenderPort(), msg.getSenderHost());\r\n\r\n\t\tif (msg.getType().equals(\"%%start-fragments%%\"))\r\n\t\t\tmsg = receiveFragments();\r\n\r\n\t\treturn msg;\r\n\t}", "public synchronized Message receive() throws IOException {\n\n\t/* Check if we have permission to recieve. */\n\tcheckReceivePermission();\n\n\t/* Make sure the connection is still open. */\n\tensureOpen();\n\n\tif (((m_mode & Connector.READ) == 0) || (host != null)) {\n\n\t throw new IOException(\"Invalid connection mode\");\n\t}\n\n\tMessage message = null;\n\tint length = 0;\n\ttry {\n\n\t SMSPacket smsPacket = new SMSPacket();\n\n /*\n * Packet has been received and deleted from inbox.\n * Time to wake up receive thread.\n */\n // Pick up the SMS message from the message pool.\n length = receive0(m_iport, midletSuite.getID(),\n connHandle, smsPacket);\n\n\t if (length >= 0) {\n\t \tString type;\n\t \tboolean isTextMessage = true;\n\t \tif (smsPacket.messageType == GSM_BINARY) {\n\t\t\t\ttype = MessageConnection.BINARY_MESSAGE;\n\t\t\t\tisTextMessage = false;\n\t } else {\n\t\t\t\ttype = MessageConnection.TEXT_MESSAGE;\n\t\t\t\tisTextMessage = true;\n\t }\n\t message = newMessage(type,\n\t \tnew String(ADDRESS_PREFIX\n + new String(smsPacket.address)\n + \":\" + smsPacket.port));\n\t String messg = null;\n\t if (isTextMessage) {\n\t if (length > 0) {\n\t \tif (smsPacket.messageType == GSM_TEXT) {\n\t messg = new String(TextEncoder.toString(\n TextEncoder.decode(smsPacket.message)));\n\t \t} else {\n\t messg = new String(TextEncoder.toString(\n smsPacket.message));\n\n\t \t}\n\t } else {\n\t messg = new String(\"\");\n }\n\t ((TextObject)message).setPayloadText(messg);\n\t } else {\n if (length > 0) {\n\t ((BinaryObject)message).setPayloadData(\n smsPacket.message);\n } else {\n\t ((BinaryObject)message).setPayloadData(new byte[0]);\n }\n\t }\n\t ((MessageObject)message).setTimeStamp(smsPacket.sentAt);\n }\n\t} catch (InterruptedIOException ex) {\n length = 0;\n throw new InterruptedIOException(\"MessageConnection is closed\");\n } catch (IOException ex) {\n io2InterruptedIOExc(ex, \"receiving\");\n\t} finally {\n\t if (length < 0) {\n\t\tthrow new InterruptedIOException(\"Connection closed error\");\n\t }\n\t}\n\n\n\treturn message;\n }", "public synchronized ClientMessage readClientMessage(){\n while ( !currClient.isUpdatingClientMessage() ) {\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n currClient.setUpdateClientMessage(false);\n return currClient.getClientMessage();\n }", "public Connection takeConnection() {\n ProxyConnection proxyConnection = null;\n try {\n proxyConnection = connections.take();\n } catch (InterruptedException e) {\n logger.log(Level.ERROR, e);\n Thread.currentThread().interrupt();\n }\n return proxyConnection;\n }", "private SocketChannel getChannel(){\n if ( key == null ) {\n return getSocket().getChannel();\n } else {\n return (SocketChannel)key.channel();\n }\n }", "@Override\n public Receive createReceive() {\n return receiveBuilder()\n .match(StartMessage.class, this::handle)\n .match(BatchMessage.class, this::handle)\n .match(Terminated.class, this::handle)\n .match(RegistrationMessage.class, this::handle)\n .match(Availability.class, this::handle)\n .match(Result.class, this::handle)\n .matchAny(object -> this.log().info(\"Received unknown message: \\\"{}\\\"\", object.toString()))\n .build();\n }", "public byte[] receiveMessage() throws IllegalStateException {\r\n\t\t\tif ( currHostPort == null ) {\r\n\t\t\t\tthrow new IllegalStateException(\"No iterator element.\");\r\n\t\t\t}\r\n\t\t\tbyte[] pDat = null;\r\n\t\t\tbyte[] recvdata = new byte[512];\r\n\t\t\tdgpacket = new DatagramPacket(recvdata, 512);\r\n\t\t\ttry {\r\n\t\t\t\tsocket.receive(dgpacket);\r\n\t\t\t\tpLen = dgpacket.getLength();\r\n\t\t\t\tif ( pLen > 0) {\r\n\t\t\t\t\trecvdata = dgpacket.getData();\r\n\t\t\t\t\tpDat = new byte[pLen];\r\n\t\t\t\t\tSystem.arraycopy(recvdata, 0, pDat, 0, pLen);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\t\t\t\t\t// SocketException / InterruptedIOException / IOException\r\n\t\t\t\tpDat = null;\r\n\t\t\t}\r\n\t\t\treturn pDat;\r\n\t\t}", "public SocketChannel getChannel() {\n return channel;\n }", "public interface Channel\r\n{\r\n /**\r\n * Get a duplex connection for this channel. This method must be called for each request-response message exchange.\r\n * @param msgProps message specific properties\r\n * @param xmlOptions XML formatting options\r\n * @return connection\r\n * @throws IOException on I/O error\r\n * @throws WsConfigurationException on configuration error\r\n */\r\n DuplexConnection getDuplex(MessageProperties msgProps, XmlOptions xmlOptions) throws IOException, \r\n WsConfigurationException;\r\n \r\n /**\r\n * Get a send-only connection for this channel. This method must be called for each message to be sent without a\r\n * response.\r\n * @param msgProps message specific properties\r\n * @param xmlOptions XML formatting options\r\n * @return connection\r\n * @throws IOException on I/O error\r\n * @throws WsConfigurationException on configuration error\r\n */\r\n OutConnection getOutbound(MessageProperties msgProps, XmlOptions xmlOptions) throws IOException, \r\n WsConfigurationException;\r\n \r\n /**\r\n * Get a receive-only connection for this channel. This method must be called for each message to be received, and\r\n * will wait for a message to be available before returning.\r\n * \r\n * @return connection\r\n * @throws IOException on I/O error\r\n * @throws WsConfigurationException on configuration error\r\n */\r\n InConnection getInbound() throws IOException, WsConfigurationException;\r\n \r\n /**\r\n * Close the channel. Implementations should disconnect and free any resources allocated to the channel.\r\n * @throws IOException on I/O error\r\n */\r\n void close() throws IOException;\r\n}", "public Message receive() throws IOException, BadPacketException {\n // On the Macintosh, sockets *appear* to return the same ping reply\n // repeatedly if the connection has been closed remotely. This prevents\n // connections from dying. The following works around the problem. Note\n // that Message.read may still throw IOException below.\n // See note on _closed for more information.\n if (!isOpen())\n throw CONNECTION_CLOSED;\n\n Message m = null;\n while (m == null) {\n m = readAndUpdateStatistics();\n }\n return m;\n }", "public SocketChannel getChannel() { return null; }", "public VirtualChannelSelector getReadSelector() {\n return read_selector;\n }", "private Object receive() {\n\t\ttry {\n\t\t\t// verificamos si la conexion esta abierta\n\t\t\tif (!this.getConnection().isClosed())\n\t\t\t\t// retornamos los datos\n\t\t\t\treturn this.getInputStream().readObject();\n\t\t} catch (final IOException e) {\n\t\t\t// print the StackTrace\n\t\t\tthis.getLogger().error(e);\n\t\t} catch (final ClassNotFoundException e) {\n\t\t\t// print the StackTrace\n\t\t\tthis.getLogger().error(e);\n\t\t}\n\t\t// retornamos null\n\t\treturn null;\n\t}", "protected SocketChannel getSocket() {\n\t\treturn channel;\n\t}", "public Message getMessageWizardChannel() {\n\t\tMessage msg1=null;\n\t\ttry{\n\t\t\tmsg1=chann1.take();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn msg1;\n\t}", "LcapSocket getReceiveSocket() {\n return rcvSocket;\n }", "@Override\n\tpublic Receive createReceive() {\n\t\treturn receiveBuilder()\n\t\t\t\t.match(LargeMessage.class, this::handle)\n\t\t\t\t.match(byte[].class, this::handle)\n\t\t\t\t.match(BytesMessage.class, this::handle)\n\t\t\t\t.matchAny(object -> this.log().info(\"Received unknown message: \\\"{}\\\"\", object.toString()))\n\t\t\t\t.build();\n\t}", "public MessageConsumer getMessageConsumer() {\n return messageConsumer;\n }", "public static Connection getConnection() throws InterruptedException {\n\t\treturn instance.connectionPool.take();\n\t}", "DuplexConnection getDuplex(MessageProperties msgProps, XmlOptions xmlOptions) throws IOException, \r\n WsConfigurationException;", "@Override\r\n\tpublic List<message> getReadMessages(Integer receive_id) {\n\t\tList<message> messageList=null;\r\n\t\tString sql=\"select * from message where receive_id=? and isread=1\";\r\n\t\ttry {\r\n\t\t\tmessageList=getObjectList(conn, sql,receive_id);\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tif(messageList.size()==0) {\r\n\t\t\treturn null;\r\n\t\t}else\r\n\t\treturn messageList;\r\n\t}", "protected byte[] receive() throws CommunicationException {\n try {\n byte[] result = new byte[0];\n int count;\n do {\n byte[] frame = new byte[FRAME_SIZE];\n count = in.read(frame);\n result = Bytes.concat(result, Arrays.copyOf(frame, count));\n } while (count >= FRAME_SIZE);\n log.info(\"Receive: {} bytes | {} | {}\", result.length, BytesUtils.bytesToHex(result, ' '), new String(result));\n return result;\n } catch (IOException e) {\n throw new CommunicationException(\"Receiving error\", e);\n }\n }", "Channel channel() {\n return channel;\n }", "public Message getMessageWizardChannel() {\n\t\tMessage temp = null;\n\t\t\n\t\ttry {\n\t\t\t//se ia mesajul din buffer\n\t\t\ttemp = bufferWizardChannel.take();\t\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn temp;\n\t\t\n\t}", "private Message getMessage() {\n try {\n return (Message) socketInput.readObject();\n } catch (IOException e) {\n connected = false;\n if (!connectionIn)\n messageHandler.nodeDisconnected();\n this.close();\n } catch (ClassNotFoundException e) {\n throw new UnexpectedBehaviourException();\n }\n return null;\n }", "public Channel.Receiver getReceiver(String sName);", "public Message read() {\n synchronized (lock){\n while (!answerReady) {\n try {\n lock.wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n answerReady = false;\n return answer;\n }", "public IRemoteConnection getConnection() {\n \t\treturn fSelectedConnection;\n \t}", "private Redis selectClient(int keySlot, boolean readOnly) {\n // this command doesn't have keys, return any connection\n // NOTE: this means slaves may be used for no key commands regardless of slave config\n if (keySlot == -1) {\n return getRandomConnection(Collections.emptySet());\n }\n\n Redis[] clients = slots[keySlot];\n\n // if we haven't got config for this slot, try any connection\n if (clients == null || clients.length == 0) {\n return getRandomConnection(Collections.emptySet());\n }\n\n int index = 0;\n\n // always, never, share\n if (readOnly && slaves != RedisSlaves.NEVER && clients.length > 1) {\n // always use a slave for read commands\n if (slaves == RedisSlaves.ALWAYS) {\n index = RANDOM.nextInt(clients.length - 1) + 1;\n }\n // share read commands across master + slaves\n if (slaves == RedisSlaves.SHARE) {\n index = RANDOM.nextInt(clients.length);\n }\n }\n\n return clients[index];\n }", "public synchronized String[] readChallengerMessage() {\n while ( client1.getChallengerChoice() == null ){\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n return client1.getChallengerChoice();\n }", "protected Channel getChannel()\n {\n return mChannel;\n }", "public Socket getConnection() {\n return connection;\n }", "public ChatConnection getChatConnection() {\n\t\treturn chatConnection;\n\t}", "public ReadableByteChannel getByteChannel() throws IOException {\n InputStream source = getInputStream();\n \n if(source != null) {\n return Channels.newChannel(source);\n }\n return null;\n }", "private void receiveClientMessage() throws IOException {\n mRemoteClientMessage = lengthValueRead(in, ClientMessage.class);\n \n if (mRemoteClientMessage == null) {\n setExchangeStatus(Status.ERROR);\n setErrorMessage(\"Remote client message was not received.\");\n throw new IOException(\"Remote client message not received.\");\n }\n\n if (mRemoteClientMessage.messages == null) {\n setExchangeStatus(Status.ERROR);\n setErrorMessage(\"Remote client messages field was null\");\n throw new IOException(\"Remote client messages field was null\");\n }\n\n mMessagesReceived = mRemoteClientMessage.messages;\n }", "public Channel connect() {\n\t\tChannelFuture channel = bootstrap.connect(new InetSocketAddress(host, port));\n\n\t\t// wait for the connection to establish\n\t\tchannel.awaitUninterruptibly();\n\n\t\tif (channel.isDone() && channel.isSuccess()) {\n\t\t\treturn channel.getChannel();\n\t\t} else {\n\t\t\tthrow new RuntimeException(\"Not able to establish connection to server\");\n\t\t}\n\t}", "public Connection getConnection() {\n this.connect();\n return this.connection;\n }", "public synchronized Message receive(long timeout) throws JMSException {\n if (timeout < 0) {\n message = getConsumer().receive();\n } else {\n message = getConsumer().receive(timeout);\n }\n return message;\n }", "protected MessageConsumer getConsumer() throws JMSException {\n if (consumer == null) {\n consumer = createConsumer(session);\n }\n return consumer;\n }", "public Connection getConnection() {\r\n\tConnection result = null;\r\n\tif (isConnected()) {\r\n\t result = conn;\r\n\t}\r\n\treturn result;\r\n }", "public ChannelGroup getConnections();", "public TCPClientConnectionMessageCollector getMyMessageCollector()\n {\n return fMyMessageCollector;\n }", "public NetData recieve() throws Exception\n {\n NetData nd;\n\n\n try {\n if(reader.ready())\n {\n nd = new NetData(reader.readLine());\n }\n else\n {\n return null;\n }\n }\n catch (IOException ex)\n {\n xError.Report(xError.READ_FROM_SOCKET);\n throw new Exception();\n }\n xMessenger.miniMessege(\"<<<\"+ nd.toString());\n return nd;\n }", "private MessageChannel createMessageChannel(String channelName) {\n String url = \"ws://127.0.0.1:9439/channels/\" + channelName;\n\n MessageChannel channel = new ReceiverMessageChannel(channelName, url) {\n @Override\n public void onOpen(String data) {\n // TODO Auto-generated method stub\n\n log.e(\"Receiver default message channel open!!! \" + data);\n }\n\n @Override\n public void onClose(String data) {\n // TODO Auto-generated method stub\n\n log.e(\"Receiver default message channel close!!! \" + data);\n }\n\n @Override\n public void onError(String data) {\n // TODO Auto-generated method stub\n\n log.e(\"Receiver default message channel error!!! \" + data);\n }\n };\n\n return channel;\n }", "public Socket getConnectionSocket()\n {\n return connectionSocket;\n }", "public IRemoteConnection getRemoteConnection() {\n\t\tif (fRemoteConnectionWidget != null && !fRemoteConnectionWidget.isDisposed()) {\n\t\t\treturn fRemoteConnectionWidget.getConnection();\n\t\t}\n\t\treturn null;\n \t}", "public Connection getConnection() {\n \t\treturn this.connect;\n \t}", "public FermatMessage readNextMessage() {\n if(!pendingIncomingMessages.isEmpty()) {\n\n /*\n * Return the next message\n */\n return pendingIncomingMessages.iterator().next();\n\n }else {\n\n //TODO: CREATE A APPROPRIATE EXCEPTION\n throw new RuntimeException();\n }\n\n }", "public Boolean tcpReuseChannel();", "KafkaChannel buildChannel(String id, SelectionKey key, int maxReceiveSize) throws KafkaException;", "private Redis getRandomConnection(Set<SocketAddress> exclude) {\n List<Redis> available = connections.entrySet().stream()\n .filter(kv -> !exclude.contains(kv.getKey()) && kv.getValue() != null)\n .map(Map.Entry::getValue)\n .collect(Collectors.toList());\n\n if (available.size() == 0) {\n // signal no client\n return null;\n }\n\n return available.get(RANDOM.nextInt(available.size()));\n }", "private SigmaProtocolMsg receiveMsgFromProver() throws ClassNotFoundException, IOException {\n\t\tSerializable msg = null;\n\t\ttry {\n\t\t\t//receive the mesage.\n\t\t\tmsg = channel.receive();\n\t\t} catch (IOException e) {\n\t\t\tthrow new IOException(\"failed to receive the a message. The thrown message is: \" + e.getMessage());\n\t\t}\n\t\t//If the given message is not an instance of SigmaProtocolMsg, throw exception.\n\t\tif (!(msg instanceof SigmaProtocolMsg)){\n\t\t\tthrow new IllegalArgumentException(\"the given message should be an instance of SigmaProtocolMsg\");\n\t\t}\n\t\t//Return the given message.\n\t\treturn (SigmaProtocolMsg) msg;\n\t}", "public Socket awaitMessages(){\n Socket s = null;\n try { \n s = serverSocket.accept();\n\t } catch (IOException e) {\n System.out.println(\"Could not listen on port \" + portNumber);\n }\n return s;\n }", "public static Connection getConnection() {\n\n if (concount<conns-1) {\n concount++;\n } else {\n concount=0;\n }\n return con_pool[concount];\n }", "public String receive() {\n\t\tbyte[] data = new byte[1024];\n\t\tDatagramPacket packet = new DatagramPacket(data, data.length);\n\t\t\n\t\t//put data into packet\n\t\ttry {\n\t\t\t// receive data that is send to socket, which knows the port\n\t\t\t//socket will sit until it receives sth --> will freeze application\n\t\t\t// need for threads\n\t\t\tsocket.receive(packet);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString message = new String(packet.getData());\n\t\treturn message;\n\t}", "public MessageChannel getLastMessageChannel() {\n\t\treturn this.lastMessageChannel;\n\t}", "public Channel channel()\r\n/* 36: */ {\r\n/* 37: 68 */ return this.channel;\r\n/* 38: */ }", "@NonNull\n protected final Connection getConnection() {\n return mConnection;\n }", "public Ip4Packet receive() {\n\t\tif (recv_buffer==null) recv_buffer=new byte[RECV_BUFFER_SIZE];\n\t\tint len=recv(recv_buffer,0,0);\n\t\treturn Ip4Packet.parseIp4Packet(recv_buffer,0,len);\n\t}", "@Override\r\n\tpublic List<message> getNotReadMessages(Integer receive_id) {\n\t\tList<message> messageList=null;\r\n\t\tString sql=\"select * from message where receive_id=? and isread=0\";\r\n\t\ttry {\r\n\t\t\tmessageList=getObjectList(conn, sql,receive_id);\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tif(messageList.size()==0) {\r\n\t\t\treturn null;\r\n\t\t}else\r\n\t\treturn messageList;\r\n\t}", "public static Message obtain() {\n// synchronized (sPoolSync) {\n// if (sPool != null) {\n// Message m = sPool;\n// sPool = m.next;\n// m.next = null;\n// sPoolSize--;\n// return m;\n// }\n// }\n return new Message();\n }", "java.lang.String getChannel();", "public ChannelReestablish clone() {\n\t\tlong ret = bindings.ChannelReestablish_clone(this.ptr);\n\t\tif (ret < 1024) { return null; }\n\t\tChannelReestablish ret_hu_conv = new ChannelReestablish(null, ret);\n\t\tret_hu_conv.ptrs_to.add(this);\n\t\treturn ret_hu_conv;\n\t}", "abstract protected void receiveMessage(Message m);", "public Object getCommunicationChannel()\r\n\t\t\tthrows PersistenceMechanismException {\n\t\treturn null;\r\n\t}", "public SelectableChannel getHandle() {\n return this._handle;\n }", "public String recvMsg() {\n System.out.print(\"Recieving message: \");\n try {\n StringBuilder sb = new StringBuilder();\n String input = reader.readLine();\n \n sb.append(input);\n if(sb != null)\n \tSystem.out.println(sb.toString());\n return sb.toString();\n } catch (IOException e) {\n System.out.println(\"IOException at recvMsg()\");\n } catch (NullPointerException e) {\n System.out.println(\"NullPointerException at recvMsg()\");\n } catch (Exception e) {\n System.out.println(\"Exception at recvMsg(): \" + e.toString());\n }\n\n return null;\n }", "public ITCMessage readMessage() throws IOException;", "public synchronized Connection take() {\n\t\tConnection cp=null;\n\t\twhile(a.isEmpty()) {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"Server is full\");\n\t\t\t\twait();\n\t\t\t} catch (Exception e) {}\n\t\t}\n\t\tcp = a.get(0);\n\t\ta.remove(0);\n\t\treturn cp;\n\t}", "public ConnectivityState getState() {\n ConnectivityState stateCopy = this.state;\n if (stateCopy != null) {\n return stateCopy;\n }\n throw new UnsupportedOperationException(\"Channel state API is not implemented\");\n }", "@Override\n public Optional<TcpMessage> consumeMessage() throws IOException {\n System.out.println(\"Trying to consume a message...\");\n var json = inputMessageStream.readJson();\n\n socket.shutdownInput();\n if (json.isEmpty()) {\n return Optional.empty();\n }\n return Optional.of(new TcpMessage(JsonPayload.of(json)));\n // return Optional.of(new Message<>(new JsonPayload(json)));\n }", "public boolean canReceiveMessages()\n {\n return true;\n }", "private byte[] read(SelectionKey key) throws IOException {\n\t\tSocketChannel channel = (SocketChannel)key.channel();\n\t\treadBuffer.clear();\n\t\tint length = channel.read(readBuffer);\n\t\tbyte[] data = null;\n\n\t\t// Checking whether length is negative, to overcome java.lang.NegativeArraySizeException -- Aditya\n\t\tif (length == -1) {\n\t\t\tmClientStatus.remove(channel);\n\t\t\tclients--;\n\t\t\tchannel.close();\n\t\t\tkey.cancel();\n\t\t\tthrow new IOException(\"No data found\");\n\t\t}else {\n\t\t\treadBuffer.flip();\n\t\t\tdata = new byte[length];\n\t\t\treadBuffer.get(data, 0, length);\t\t\t\t\t\t\n\t\t}\n\t\treturn data;\n\t}", "public static @NonNull ChannelFactory<? extends Channel> clientChannelFactory() {\n return CURR_NETTY_TRANSPORT.clientChannelFactory();\n }", "AsynchronousSocketChannel getClientSocket() {\n return clientSocket;\n }", "private void receive() {\n\t\tMQGetMessageOptions gmo = new MQGetMessageOptions();\n\t\tif (keepMessages) {\n\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2\n\t\t\t\t\t| MQConstants.MQGMO_BROWSE_FIRST;\n\t\t} else {\n\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2;\n\t\t\tif (syncPoint) {\n\t\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_SYNCPOINT;\n\t\t\t}\n\t\t}\n\t\tgmo.matchOptions = MQConstants.MQMO_NONE;\n\t\tgmo.waitInterval = this.waitInterval;\n\n\t\ttry {\n\t\t\tint lastSeqNo = 0;\n\t\t\tlong lastTs = 0;\n\t\t\tint messagecounter = 0;\n\t\t\twhile (true) {\n\t\t\t\tif (!(qmgr.isConnected())) {\n\t\t\t\t\treconnectMq();\n\t\t\t\t}\n\t\t\t\tif (!(queue.isOpen())) {\n\t\t\t\t\treconnectMq();\n\t\t\t\t}\n\t\t\t\thaltFileExists();\n\t\t\t\tif (haltStatus) {\n\t\t\t\t\treadQueue = false;\n\t\t\t\t} else {\n\t\t\t\t\treadQueue = true;\n\t\t\t\t}\n\t\t\t\tint queueNotInhibited = queue.getInhibitGet();\n\t\t\t\tif (queueNotInhibited == MQConstants.MQQA_GET_INHIBITED) {\n\t\t\t\t\treadQueue = false;\n\t\t\t\t}\n\t\t\t\tproduceCounts();\n\t\t\t\tif (readQueue) {\n\t\t\t\t\tqueueDepth = queue.getCurrentDepth();\n\t\t\t\t\tif (queueDepth != 0) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\trcvMessage = new MQMessage();\n\t\t\t\t\t\t\tif (mqccsid != 0) {\n\t\t\t\t\t\t\t\trcvMessage.characterSet = mqccsid;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tqueue.get(rcvMessage, gmo);\n\t\t\t\t\t\t\trecordCountsRcvd++;\n\t\t\t\t\t\t\tstrLen = rcvMessage.getMessageLength();\n\t\t\t\t\t\t\tstrData = new byte[strLen];\n\t\t\t\t\t\t\trcvMessage.readFully(strData);\n\t\t\t\t\t\t\tmessagePutMs = rcvMessage.putDateTime.getTimeInMillis();\n\t\t\t\t\t\t\tseqNo = rcvMessage.messageSequenceNumber;\n\t\t\t\t\t\t\tif (lastTs == messagePutMs && seqNo == 1) {\n\t\t\t\t\t\t\t\tseqNo = lastSeqNo + seqNo;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmsgText = new String(strData);\n\t\t\t\t\t\t\tjsonOut = new JSONArray();\n\t\t\t\t\t\t\tjsonKey = new JSONObject();\n\t\t\t\t\t\t\tjsonValue = new JSONObject();\n\t\t\t\t\t\t\tjsonKey.put(\"key\", Long.toString(messagePutMs) + \"_\" + seqNo);\n\t\t\t\t\t\t\tjsonValue.put(\"value\", msgText);\n\t\t\t\t\t\t\tLOG.debug(\"MQ MsgKey: \" + Long.toString(messagePutMs) + \"_\" + seqNo);\n\t\t\t\t\t\t\tLOG.debug(\"MQ MsgValue: \" + msgText);\n\t\t\t\t\t\t\tjsonOut.put(jsonKey);\n\t\t\t\t\t\t\tjsonOut.put(jsonValue);\n\t\t\t\t\t\t\tmsgList.add(jsonOut.toString());\n\t\t\t\t\t\t\tlastTs = messagePutMs;\n\t\t\t\t\t\t\tlastSeqNo = seqNo;\n\t\t\t\t\t\t\tmessagecounter++;\n\t\t\t\t\t\t\t// move cursor to next message\n\t\t\t\t\t\t\tif (msgList.size() > maxUMsg / 2) {\n\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (msgList.size() > queueDepth) {\n\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (keepMessages) {\n\t\t\t\t\t\t\t\tgmo.options = MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2\n\t\t\t\t\t\t\t\t\t\t| MQConstants.MQGMO_WAIT | MQConstants.MQGMO_BROWSE_NEXT;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tgmo.options = MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2\n\t\t\t\t\t\t\t\t\t\t| MQConstants.MQGMO_WAIT;\n\t\t\t\t\t\t\t\tif (syncPoint) {\n\t\t\t\t\t\t\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_SYNCPOINT;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (MQException e) {\n\t\t\t\t\t\t\tif (e.reasonCode == MQConstants.MQRC_NO_MSG_AVAILABLE) {\n\t\t\t\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tnoMessagesCounter++;\n\t\t\t\t\t\t\t\tthreadWait();\n\t\t\t\t\t\t\t} else if (e.reasonCode == MQConstants.MQRC_SYNCPOINT_LIMIT_REACHED) {\n\t\t\t\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tnoMessagesCounter++;\n\t\t\t\t\t\t\t\tthreadWait();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\tCalendar.getInstance().getTime() + \" - MQ Reason Code: \" + e.reasonCode);\n\t\t\t\t\t\t\t\treconnectMq();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\t\t\tSystem.out.println(Calendar.getInstance().getTime() + \" - Error: \" + ioe.getMessage());\n\t\t\t\t\t\t\treconnectMq();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthreadWait();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t}\n\t\t\t\t\tthreadWait();\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (Throwable t) {\n\t\t\t// restart if there is any other error\n\t\t\trestart(Calendar.getInstance().getTime() + \" - Error receiving data from Queue or QMGR\", t);\n\t\t}\n\n\t}", "public BeaconMessage pullBeaconMessage() throws InterruptedException {\n synchronized (this.messageQueue) {\r\n while(messageQueue.isEmpty()) {\r\n this.messageQueue.wait();\r\n }\r\n BeaconMessage beaconMessage = messageQueue.get(0);\r\n messageQueue.remove(0);\r\n return beaconMessage;\r\n }\r\n }", "org.apache.drill.exec.proto.UserBitShared.RpcChannel getChannel();", "private void ReceiveMessages() throws Exception {\r\n // Variables\r\n Connection connection = null;\r\n Session session = null;\r\n MessageConsumer consumer = null;\r\n\r\n try {\r\n ConnectionFactory connectionFactory = MyCreateConnectionFactory();\r\n\r\n System.out.println(\"Connection Factory created.\");\r\n\r\n connection = MyCreateConnection(connectionFactory);\r\n\r\n System.out.println(\"Connection created.\");\r\n\r\n session = MyCreateSession(connection);\r\n\r\n System.out.println(\"Session created.\");\r\n\r\n Destination destination = MyCreateDestination(session);\r\n\r\n System.out.println(\"Destination created: \" + destination.toString());\r\n\r\n consumer = MyCreateConsumer(session, destination);\r\n\r\n System.out.println(\"Consumer created.\");\r\n\r\n System.out.println(\"Waiting for messages...\");\r\n\r\n // Now receive messages synchronously or asynchronously\r\n\r\n // Synchronously\r\n if (Options.ReceiveMode.Value().equals(Literals.Sync)) {\r\n // Start the connection\r\n connection.start();\r\n\r\n // Receive specified number of messages\r\n Message recvMsg = null;\r\n while (messagesInTotal.equals(Literals.Infinite)\r\n || (messagesReceived < Integer.parseInt(messagesInTotal))) {\r\n // If we want to wait until timeout, use the following call instead\r\n // recvMsg = consumer.receive(TIMEOUTTIME);\r\n\r\n // Receive the message\r\n recvMsg = consumer.receive();\r\n\r\n // Increment the counter\r\n messagesReceived++;\r\n\r\n \r\n if (recvMsg != null) {\r\n // Display received message\r\n DisplayMessage(recvMsg);\r\n }\r\n else {\r\n throw new Exception(\"Message received was null.\");\r\n }\r\n\r\n // Sleep for a while to allow the user to see the output on the screen\r\n Thread.sleep(Options.Interval.ValueAsNumber() * 1000);\r\n\r\n } // end of while\r\n\r\n } // end synchronously\r\n\r\n // Asynchronously\r\n else if (Options.ReceiveMode.Value().equals(Literals.Async)) {\r\n // Create and register a new MessageListener for this consumer\r\n consumer.setMessageListener(new MessageListener() {\r\n\r\n public void onMessage(Message msg) {\r\n // The try block below is unlikely to throw a runtime exception, but as a general good\r\n // practice an asynchronous consumer's message listener or callback should catch a\r\n // potential runtime exception, and optionally divert the message in question to an\r\n // application-specific destination.\r\n try {\r\n synchronized (threadWaitLock) {\r\n // Increment the counter\r\n ++messagesReceived;\r\n\r\n // Display the message that just arrived\r\n DisplayMessage(msg);\r\n\r\n // Notify main thread we've received a message\r\n threadWaitLock.notify();\r\n\r\n // Sleep for a while to allow the user to see the output on the screen\r\n Thread.sleep(Options.Interval.ValueAsNumber() * 1000);\r\n }\r\n } // end try\r\n catch (Exception e) {\r\n System.out.println(\"Exception caught in onMessage():\\n\" + e);\r\n // We have atleast two choices now - (1) rethrow the exception. In this case the\r\n // control passes back to JMS client and which may attempt to redeliver the message,\r\n // depending on session's acknowledge mode, or (2) terminate the process.\r\n // Orthogonally, we may divert the message to an application-specific destination.\r\n\r\n // Terminate the current process\r\n System.exit(-1);\r\n }\r\n return;\r\n } // end onMessage()\r\n }); // end setMessageListener\r\n\r\n // Start the connection\r\n connection.start();\r\n\r\n // Finite number of messages to receive\r\n if (messagesInTotal != Literals.Infinite) {\r\n synchronized (threadWaitLock) {\r\n try {\r\n // Temporary variables\r\n int noProgressCount = 0;\r\n int countLastSeen = -1;\r\n\r\n int expectedNumMessages = Integer.parseInt(messagesInTotal);\r\n while (messagesReceived != expectedNumMessages) {\r\n // Wait for few seconds (or be notified by the listener thread) before checking the\r\n // number of messages received\r\n threadWaitLock.wait(waitTime);\r\n\r\n if (countLastSeen != messagesReceived) {\r\n countLastSeen = messagesReceived;\r\n noProgressCount = 0;\r\n }\r\n else {\r\n ++noProgressCount;\r\n }\r\n\r\n if (++noProgressCount >= MAX_NO_PROGRESS) {\r\n // No progress has been made by the listener in 5 seconds * 3 = 15 seconds.\r\n // Let's quit.\r\n break;\r\n }\r\n\r\n } // end while\r\n } // end try\r\n catch (InterruptedException e) {\r\n System.err\r\n .println(\"Main thread waiting for MessageListener thread to receive message was interupted!\"\r\n + e);\r\n throw e;\r\n }\r\n } // end synchronized block\r\n } // end if\r\n // Infinite number of messages to receive\r\n else {\r\n // Block this thread and let listener thread do all the work (if any).\r\n synchronized (threadWaitLock) {\r\n try {\r\n while (true) {\r\n // Wait to be notified by the listener thread and then wait again!\r\n threadWaitLock.wait();\r\n }\r\n }\r\n catch (InterruptedException e) {\r\n System.err\r\n .println(\"Main thread waiting for MessageListener thread to receive message was interupted!\"\r\n + e);\r\n throw e;\r\n }\r\n\r\n } // end synchronized block\r\n } // end else\r\n } // end asynchronously\r\n }\r\n catch (JMSException jmsex) {\r\n processJMSException(jmsex);\r\n }\r\n finally {\r\n if (consumer != null) {\r\n try {\r\n consumer.close();\r\n }\r\n catch (JMSException jmsex) {\r\n System.out.println(\"Consumer could not be closed.\");\r\n processJMSException(jmsex);\r\n }\r\n }\r\n\r\n if (session != null) {\r\n try {\r\n session.close();\r\n }\r\n catch (JMSException jmsex) {\r\n System.out.println(\"Session could not be closed.\");\r\n processJMSException(jmsex);\r\n }\r\n }\r\n\r\n if (connection != null) {\r\n try {\r\n connection.close();\r\n }\r\n catch (JMSException jmsex) {\r\n System.out.println(\"Connection could not be closed.\");\r\n processJMSException(jmsex);\r\n }\r\n }\r\n }\r\n\r\n // We're finished.\r\n System.out.println(\"\\nSample execution SUCCESSFUL.\\n\");\r\n\r\n return;\r\n }", "public static Connection getInstance() {\n return LazyHolder.INSTANCE;\n }", "public Channel getChannel()\n {\n return channel;\n }", "public Connection getConnection() {\n\t\treturn this.connection;\n\t}", "public static Connection getConnection() {\n return singleInstance.createConnection();\n }", "public Connection getConnection(){\n\t\tif(connection == null){\r\n\t\t\tinitConnection();\r\n\t\t}\r\n\t\treturn connection;\r\n\t}", "private Message readMessage() throws IOException, ClassNotFoundException {\n Message message = (Message) objectInputStream.readObject();\n Message.Command temp = message.getCommand();\n if (temp != Message.Command.GET_RESERVED && temp !=\n Message.Command.GET_AVAILABLE) {\n if (connectionType == Message.Command.REGISTER_CLIENT) {\n connectionLoggerService.add(\"Client - \"\n + socket.getInetAddress().getHostAddress()\n + \" : \"\n + message.toString());\n\n } else if (connectionType == Message.Command.REGISTER_AH) {\n connectionLoggerService.add(\"Auction House - \"\n + socket.getInetAddress().getHostAddress()\n + \" : \"\n + message.toString());\n } else {\n connectionLoggerService.add(\"Unknown - \"\n + socket.getInetAddress().getHostAddress()\n + \" : \"\n + message.toString());\n }\n }\n return message;\n }", "public NetMessage read() throws IOException\n \t{\n \t\treturn NetMessage.newNetMessage(new DataInputStream(din));\n \t}", "protected void receive() {\n // System.out.println(\"in MessageSocketUDP::Receive\");\n try {\n DatagramPacket p = new DatagramPacket(receiveBuffer.buffer, receiveBuffer.offset(), receiveBuffer.available());\n datagramSocket.receive(p);\n int nbRead = p.getLength();\n if (nbRead == 0) {\n System.out.println(\"MessageSocketUDP::receive (read=0)\");\n connected = false;\n } else {\n receiveBuffer.received(nbRead);\n receiveBuffer.process();\n }\n } catch (IOException e) {\n System.out.println(\"MessageSocketUDP::receive Error\");\n e.printStackTrace();\n connected = false;\n }\n }", "public CourseCatalog receiveAllCourses() {\n\t\tCourseCatalog receiveCourses = null;\n\t\ttry{\n\t\t\tsendMessage(\"getAllCourses\");\n\t\t\t\n\t\t\treceiveCourses = (CourseCatalog)socketObjectIn.readObject();\n\t\t}catch (ClassNotFoundException e){\n\t\t\tSystem.err.println(e.getStackTrace());\n\t\t}catch (IOException e) {\n\t\t\tSystem.err.println(e.getStackTrace());\n\t\t}\n\t\treturn receiveCourses;\n\t}", "private Connection getConn(){\n \n return new util.ConnectionPar().getConn();\n }" ]
[ "0.5747566", "0.5673885", "0.5598896", "0.5529424", "0.5502317", "0.5447424", "0.541021", "0.5203354", "0.514404", "0.5123596", "0.5110173", "0.51084465", "0.51068", "0.5106766", "0.5078741", "0.50759745", "0.507579", "0.50747395", "0.50679016", "0.5044332", "0.504253", "0.50146", "0.50115037", "0.49888414", "0.49679166", "0.49377784", "0.49324253", "0.49118766", "0.4911841", "0.49115065", "0.48976624", "0.4888015", "0.48845544", "0.48825347", "0.48783594", "0.48750243", "0.4869059", "0.4867706", "0.48589095", "0.48407748", "0.48383874", "0.48281032", "0.4808502", "0.4803509", "0.4794467", "0.47332543", "0.47073504", "0.47062716", "0.47021097", "0.46878794", "0.4686901", "0.4680162", "0.4668515", "0.46610585", "0.46556097", "0.46538204", "0.46495432", "0.4638815", "0.46337014", "0.4626344", "0.46071392", "0.46021467", "0.45970765", "0.45914063", "0.4583325", "0.457629", "0.45762283", "0.4574688", "0.45705092", "0.4566206", "0.4561698", "0.4559238", "0.45571277", "0.45570093", "0.45454118", "0.45402753", "0.4539418", "0.45147222", "0.45101598", "0.4509092", "0.4507007", "0.45029142", "0.4502392", "0.45007798", "0.44991255", "0.44964996", "0.4479356", "0.44739282", "0.44738415", "0.4469402", "0.44673058", "0.4464813", "0.4454106", "0.44501224", "0.44500822", "0.4445532", "0.4441683", "0.4440512", "0.44398645", "0.44395298", "0.44369447" ]
0.0
-1
Close the channel. Implementations should disconnect and free any resources allocated to the channel.
void close() throws IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void close() {\r\n channel.close();\r\n }", "public void close() {\n\t\tchannel.close();\n\t}", "@Override\n public void close() throws IOException {\n channel.close();\n }", "public void close() throws IOException {\n\t\tchannel.close();\n\t}", "public void close() {\n Preconditions.checkState(channel != null, \"File not open.\");\n try {\n if (channel.isOpen())\n channel.close();\n } catch (IOException e) {\n LOGGER.error(\"Failed to closed file channel for {}\", path, e);\n } finally {\n channel = null;\n }\n }", "void close(Channel channel) {\n \t\t// TODO remove `channel' from the connections maps\n \t\tchannel.close();\n \t}", "public void close() throws IOException{\n this.channel.close();\n this.connection.close();\n }", "public void close()\n\t{\n\t\ttry { stream.close(); } catch(Exception ex1) {}\n\t\ttry { channel.close(); } catch(Exception ex2) {}\n\t}", "public void close() throws BadDescriptorException, IOException {\n+ // tidy up\n+ finish();\n+\n+ // if we're the last referrer, close the channel\n+ if (refCounter.get() <= 0) {\n+ channel.close();\n+ }", "public void end()\n {\n keepingAlive = false;\n if (channel == null)\n {\n channel = connectFuture.getChannel();\n connectFuture.cancel();\n }\n if (channel != null)\n {\n channel.close();\n }\n }", "@Override\n public void operationComplete(ChannelFuture future) {\n logger.info(\"channel close!\");\n future.channel().disconnect();\n future.channel().close();\n }", "private void close() {\n\t\tif (socketChannel != null) {\n\t\t\ttry {\n\t\t\t\tif (in != null) {\n\t\t\t\t\tin.close();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.log(Level.SEVERE, \"Close in stream \", e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tif (out != null) {\n\t\t\t\t\tout.close();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.log(Level.SEVERE, \"Close out stream \", e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tsocketChannel.close();\n\t\t\t} catch (IOException ex) {\n\t\t\t\tlog.log(Level.SEVERE, \"Can't close socket channel\", ex);\n\t\t\t}\n\n\t\t}\n\t\t//Defender.stopConnection();\n\t}", "public void close() throws IOException {\n\t\ttry {\n\t\t\tprinter.close();\n\t\t\treader.close();\n\t\t\tclientSocket.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new SocketException(\"Something went wrong when closing the command channel : \" + e.getMessage());\n\t\t}\n\n\t}", "@Override\n public synchronized void close() {\n disconnect();\n mClosed = true;\n }", "public void shutdown() throws InterruptedException\n {\n channel.shutdown().awaitTermination(WAIT_TIME, TimeUnit.SECONDS);\n }", "@Override\n public void close()\n {\n this.disconnect();\n }", "private void closeAndCancel() {\n try {\n stats.removeKey(key);\n key.cancel();\n channel.close();\n } catch (IOException e) {\n System.err.println(\"Error while trying to close Task channel\");\n }\n }", "@Override\n public synchronized void close() throws IOException {\n disconnect(false);\n }", "@PreDestroy\n public void shutdown() throws Exception {\n if (channel != null) {\n ChannelFuture closeFuture = channel.close();\n closeFuture.sync();\n channel = null;\n bossGroup.shutdownGracefully();\n workerGroup.shutdownGracefully();\n }\n }", "public boolean close() {\n\t\tif(isOpen()){\n\t\t\treturn releaseChannel();\n\t\t}\n\t\treturn true;\n\t}", "void setCloseListener(ChannelListener<? super C> listener);", "public void dispose() {\n\t\tsocket.close();\n\t}", "public void close()\n {\n getConnectionManager().shutdown();\n }", "void close()\n {\n DisconnectInfo disconnectInfo = connection.getDisconnectInfo();\n if (disconnectInfo == null)\n {\n disconnectInfo = connection.setDisconnectInfo(\n new DisconnectInfo(connection, DisconnectType.UNKNOWN, null, null));\n }\n\n // Determine if this connection was closed by a finalizer.\n final boolean closedByFinalizer =\n ((disconnectInfo.getType() == DisconnectType.CLOSED_BY_FINALIZER) &&\n socket.isConnected());\n\n\n // Make sure that the connection reader is no longer running.\n try\n {\n connectionReader.close(false);\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n\n try\n {\n outputStream.close();\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n\n try\n {\n socket.close();\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n\n if (saslClient != null)\n {\n try\n {\n saslClient.dispose();\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n finally\n {\n saslClient = null;\n }\n }\n\n debugDisconnect(host, port, connection, disconnectInfo.getType(),\n disconnectInfo.getMessage(), disconnectInfo.getCause());\n if (closedByFinalizer && debugEnabled(DebugType.LDAP))\n {\n debug(Level.WARNING, DebugType.LDAP,\n \"Connection closed by LDAP SDK finalizer: \" + toString());\n }\n disconnectInfo.notifyDisconnectHandler();\n }", "private void leaveChannel() {\n // Leave the current channel\n mRtcEngine.leaveChannel();\n }", "public void dispose() {\n mInputChannel.dispose();\n try {\n mHost.dispose();\n } catch (RemoteException e) {\n e.rethrowFromSystemServer();\n }\n }", "private void closeChannelAndEventLoop(Channel c) {\n\t\tc.close();\n\t\t// Then close the parent channel (the one attached to the bind)\n\t\tif (c.parent() != null) {\n\t\t\tc.parent().close();\n\t\t}\n\t\tworkerGroup.shutdownGracefully();\n\t}", "public void disconnect() {\n if (connectCount.decrementAndGet() == 0) {\n LOG.trace(\"Disconnecting JGroupsraft Channel {}\", getEndpointUri());\n resolvedRaftHandle.channel().disconnect();\n }\n }", "public void close() {\n\t\tshutdownClient(clientRef.get());\n\t}", "public void close() {\n if (closed) {\n return;\n }\n try {\n disconnect();\n } catch (Exception e) {\n throw new IOError(e);\n }\n closed = true;\n }", "public void close()\n {\n \tSystem.out.println(\"close\");\n \tsend(\"<message> <disconnect/></message>\");\n \ttry {\n\t\t\tsocket.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n }", "public void close() throws IOException {\n /*\n * Set m_iport to 0, in order to quit out of the while loop\n * in the receiver thread.\n */\n\tint save_iport = m_iport;\n\n\tm_iport = 0;\n\n synchronized (closeLock) {\n if (open) {\n /*\n * Reset open flag early to prevent receive0 executed by\n * concurrent thread to operate on partially closed\n * connection\n */\n open = false;\n\n close0(save_iport, connHandle, 1);\n\n setMessageListener(null);\n\n /*\n * Reset handle and other params to default\n * values. Multiple calls to close() are allowed\n * by the spec and the resetting would prevent any\n * strange behaviour.\n */\n connHandle = 0;\n host = null;\n m_mode = 0;\n\n /*\n * Remove this connection from the list of open\n * connections.\n */\n int len = openconnections.size();\n for (int i = 0; i < len; i++) {\n if (openconnections.elementAt(i) == this) {\n openconnections.removeElementAt(i);\n break;\n }\n }\n\n open_count--;\n }\n }\n }", "@Override\n\t\tpublic void operationComplete(ChannelFuture future) throws Exception {\n\t\t\tSystem.out.println(\"Channel closed\");\n\t\t\t// @TODO if lost, try to re-establish the connection\n\t\t}", "public synchronized void close() {}", "ChannelListener<? super C> getCloseListener();", "public void close() {\n this.consoleListenerAndSender.shutdownNow();\n this.serverListenerAndConsoleWriter.shutdownNow();\n try {\n this.getter.close();\n this.sender.close();\n this.socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public int closeChannel(String srcNode) {\r\n\t\tif(oChannels.containsKey(srcNode)) {\r\n\t\t\tif(!cChannels.containsKey(srcNode)) {\r\n\t\t\t\tcChannels.put(srcNode, oChannels.get(srcNode));\r\n\t\t\t\toChannels.remove(srcNode);\r\n\t\t\t\tif(oChannels.isEmpty())\r\n\t\t\t\t\treturn 0;\r\n\t\t\t\telse\r\n\t\t\t\t\treturn 1;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.err.println(srcNode + \" has already closed the channels\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.err.println(srcNode + \" does not have an open channel\");\r\n\t\t}\r\n\r\n\t\treturn -1;\r\n\t}", "public void releaseCommunicationChannel()\r\n\t\t\tthrows PersistenceMechanismException {\n\t\t\r\n\t}", "@Override\r\n\tpublic void close() {\r\n\t\tthis.socket.close();\r\n\t}", "public void close() {\n try {\n closeConnection(socket);\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "public void closeChannel(lnrpc.Rpc.CloseChannelRequest request,\n io.grpc.stub.StreamObserver<lnrpc.Rpc.CloseStatusUpdate> responseObserver) {\n asyncUnimplementedUnaryCall(getCloseChannelMethod(), responseObserver);\n }", "@Override\n public void disconnect(Channel channel)\n {\n Log.e(\"Dudu_SDK\",\n \"disconnect \" + ((user == null) ? \"true\" : user.getUserid()));\n close(false);\n isConnected = false;\n reconnect();\n Log.e(\"Dudu_SDK\",\n \"connectCallBack==null \" + (connectCallBack == null));\n if (connectCallBack != null)\n connectCallBack.disconnect(channel);\n }", "public void closed(LLRPChannelClosedEvent event);", "synchronized void orderlyCloseChannel (SelectionKey key) throws IOException {\n SocketChannel ch = (SocketChannel)key.channel ();\n System.out.println(\"SERVER: orderlyCloseChannel chan[\" + ch + \"]\");\n ch.socket().shutdownOutput();\n key.attach (this);\n clist.add (key);\n }", "public void disconnect() throws IOException {\n sendMessageToServer(\"#Close connection#\");\n outputStream.close();\n inputStream.close();\n clientSocket.close();\n }", "@Override\r\n\tpublic void disconnect() throws Exception\r\n\t\t{\r\n\t\treader.close();\r\n\t\toutputStream.close();\r\n\t\tport.close();\r\n\t\t}", "public final ChannelFuture close(ChannelPromise promise) {\n/* 549 */ runPendingTasks();\n/* 550 */ ChannelFuture future = super.close(promise);\n/* */ \n/* */ \n/* 553 */ finishPendingTasks(true);\n/* 554 */ return future;\n/* */ }", "public void close() {\n if (this.client != null && this.client.isConnected()) {\n this.client.close();\n }\n this.running = false;\n }", "public void closeConnection() {\n try {\n socket.close();\n oStream.close();\n } catch (Exception e) { }\n }", "public void close() {\n dispose();\n }", "@Override\n public void close() {\n this.destructorHandler.close();\n }", "void setOnChannelCloseListener(OnCloseListener onCloseListener);", "public void close() {\n\t\tmainSocket.close();\n\t}", "public synchronized void close() {\n\t\t/**\n\t\t * DISCONNECT FROM SERVER\n\t\t */\n\t\tsrvDisconnect();\n\t}", "public void closeChannel(lnrpc.Rpc.CloseChannelRequest request,\n io.grpc.stub.StreamObserver<lnrpc.Rpc.CloseStatusUpdate> responseObserver) {\n asyncServerStreamingCall(\n getChannel().newCall(getCloseChannelMethod(), getCallOptions()), request, responseObserver);\n }", "private void close() {\n\t\ttry {\n\t\t\tsendCommand(\"end\\n\");\n\t\t\tout.close();\n\t\t\tin.close();\n\t\t\tsocket.close();\n\t\t} catch (MossException e) {\n\t\t} catch (IOException e2) {\n\t\t} finally {\n\t\t\tcurrentStage = Stage.DISCONNECTED;\n\t\t}\n\n\t}", "public void close() {\n\t\ttry {\n\t\t\t_inputStream.close();\n\t\t\t_outputStream.close();\n\t\t\t_socket.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n ctx.write(buf.duplicate()).addListener(ChannelFutureListener.CLOSE);\n }", "public boolean close(long timeout, TimeUnit unit) throws InterruptedException {\n if (!this.channel.isShutdown()) {\n this.channel.shutdown();\n }\n if (this.channel.isTerminated()) {\n return true;\n }\n return this.channel.awaitTermination(timeout, unit);\n }", "public void close() {\n connection.close();\n running = false;\n }", "public void close() {}", "public void close() {\n try {\n socket.close();\n outputStream.close();\n inputStream.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void Close() {\n\t\tfd.close();\r\n\t}", "public void close() {\n try {\n inputStream.close();\n } catch(IOException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - could not close the socket's input stream!\");\n e.printStackTrace();\n System.exit(1);\n }\n\n try {\n outputStream.close();\n } catch(IOException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - could not close the socket's output stream!\");\n e.printStackTrace();\n System.exit(1);\n }\n\n try {\n commSocket.close();\n } catch(IOException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - could not close the communication socket!\");\n e.printStackTrace();\n System.exit(1);\n }\n }", "public native boolean leaveChannel(long nativeHandle);", "public void closeConnection() {\n\t\tthis.serialPort.close();\n\t}", "public void close() {\n if (subscriptionAdminClient != null) {\n try {\n subscriptionAdminClient.close();\n } catch (Exception e) {\n log.error(\"Could not clean up subscription admin client\", e);\n }\n }\n if (adminClient != null) {\n try {\n adminClient.close();\n } catch (Exception e) {\n log.error(\"Could not clean up admin client\", e);\n }\n }\n if (pubsubChannel != null) {\n pubsubChannel.shutdown();\n }\n }", "public void close() {\n if (!mCompositeDisposable.isDisposed()) mCompositeDisposable.dispose();\n }", "public void dispose() {\r\n\t\tclose();\r\n\t}", "@Override\n public void close() throws IOException {\n inputMessageStream.close();\n outputMessageStream.close();\n socket.close();\n }", "public void close()\n {\n try\n {\n System.out.println(\"CLIENT chiude connessione\");\n receiverThread.interrupt();\n socket.close();\n System.exit(0);\n }\n catch (IOException e)\n {\n System.out.println(e.getMessage());\n System.exit(1);\n }\n }", "public void close() {\n\t\tthis.isLoop = false;\n\t\tplayer.close();\n\t\tthis.interrupt();\n\t}", "@Override\n public void close() {\n try {\n while (ftpBlockingQueue\n .iterator()\n .hasNext()) {\n FTPClient client = ftpBlockingQueue.take();\n ftpClientFactory.destroyObject(ftpClientFactory.wrap(client));\n }\n } catch (Exception e) {\n log.error(\"close ftp client ftpBlockingQueue failed...{}\", e.toString());\n }\n }", "public boolean close(long timeout, TimeUnit timeoutUnit) throws InterruptedException {\n channel.shutdownNow();\n return channel.awaitTermination(timeout, timeoutUnit);\n }", "private boolean releaseChannel(){\n\t\tif(this.channel != null){\n\t\t\tthis.channel = null;\n\t\t\treturn getUsbDeviceConnection().releaseInterface(getUsbInterface());\n\t\t}\n\t\treturn true;\n\t}", "public void close() throws CcException\n {\n if (serialPort != null)\n {\n try\n {\n // Close I/O streams\n in.close();\n out.close();\n }\n catch (IOException ex)\n {\n throw new CcException(\"Unable to close I/O streams\\n\" + ex.getMessage());\n }\n\n // Close serialport\n serialPort.close();\n }\n }", "private void closeOnFlush(final Channel ch) {\n\n\t\tif (ch.isActive()) {\n ch.pipeline().firstContext().flush();\n\t\t ch.flush().addListener( new ChannelFutureListener(){\n\n @Override\n public void operationComplete(ChannelFuture future) throws Exception {\n if ( ch.isOpen() && ch.isActive()){\n future.channel().close();\n }\n if (ProxyHandler.this.reflector != null) {\n ProxyHandler.this.reflector.stop();\n }\n }\n\t\t \n\t\t });//ChannelFutureListener.CLOSE);\n\t\t}\n\t}", "public void close()\r\n {\r\n }", "public void close() {\n }", "public void close() {\n }", "public void close() {\n }", "private void closeConnection() throws IOException {\n\t\tclientSocket.close();\n\t}", "public void close() {\n\ttry {\n\t midi.getTransmitter().close();\n\t midi.close();\n\t} catch ( MidiUnavailableException e ) {\n\t // Nothing.\n\t}\n }", "public void close() {\n m_module.close();\n }", "public synchronized void close() {\n\t\tSystem.out.println(\"Closing consumer.\");\n\t\tclosed = true;\n\t\tconsumer.close();\n\t}", "public void closeConnection() {\n\t// If port is alread closed just return.\n\tif (!open) {\n\t return;\n\t}\n\n\t// Check to make sure sPort has reference to avoid a NPE.\n\tif (sPort != null) {\n\t try {\n\t\t// close the i/o streams.\n\t \tos.close();\n\t \tis.close();\n\t } catch (IOException e) {\n ezlink.info(\"closeConnection Exception(): \");\n ezlink.error(new Object(), e);\n\t\tSystem.err.println(e);\n\t }\n\n\t // Close the port.\n\t sPort.close();\n\n\t // Remove the ownership listener.\n\t portId.removePortOwnershipListener(this);\n\t}\n\n\topen = false;\n }", "public void close() {\n if (cleanup != null) {\n cleanup.disable();\n }\n if (isOpen()) {\n forceClose();\n }\n }", "private void closeConnection() {\n\t\t_client.getConnectionManager().shutdown();\n\t}", "@Override\n public synchronized void forceClose() throws IOException {\n disconnect(true);\n }", "public void dispose() {\n\t\tinterruptWait(AceSignalMessage.SIGNAL_TERM, \"disposed\");\n\t}", "@Override\r\n public void close(MessageContext mc) {\n }", "public void close()\n\t\t{\n\t\t}", "public void close() {\n }", "public void close() {\n }", "public void close() {\n }", "@Override\n\tpublic void close(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception {\n\t\tLog.i(\"MySocketHandler\", \"close\");\n\t\tsuper.close(ctx, promise);\n\t}", "@Override\n public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) {\n Client client = (Client) ctx.getChannel().getAttachment();\n Player player = client.getPlayer();\n if (player != null && !player.destroyed()) {\n player.destroy(false);\n }\n if(engine.getClients().contains(client)) {\n \tSystem.out.println(\"Remove client\");\n \tengine.removeClient(client);\n }\n }", "private void close() {\r\n closeListener.run();\r\n }", "public void shutdown() {\n Log.info(Log.FAC_NETMANAGER, formatMessage(\"Shutdown requested\"));\n _run = false;\n if (_periodicTimer != null) _periodicTimer.cancel();\n if (_thread != null) _thread.interrupt();\n if (null != _channel) {\n try {\n setTap(null);\n } catch (IOException io) {\n }\n try {\n _channel.close();\n } catch (IOException io) {\n }\n }\n }", "public void close() {\n/* 325 */ synchronized (this.mixer) {\n/* 326 */ if (isOpen()) {\n/* */ \n/* */ \n/* */ \n/* 330 */ setOpen(false);\n/* */ \n/* */ \n/* 333 */ implClose();\n/* */ \n/* */ \n/* 336 */ this.mixer.close(this);\n/* */ } \n/* */ } \n/* */ }", "final public void closeConnection() throws IOException {\n\n readyToStop = true;\n closeAll();\n }" ]
[ "0.8570655", "0.8331148", "0.78367174", "0.77358854", "0.7427256", "0.74231154", "0.72472095", "0.7104507", "0.6969714", "0.6818192", "0.67147297", "0.6634821", "0.6575421", "0.6574222", "0.63826877", "0.6374943", "0.63607234", "0.6199283", "0.61881226", "0.61473775", "0.6145578", "0.60595554", "0.60513943", "0.5992546", "0.59864753", "0.5961519", "0.59608376", "0.59531146", "0.5924033", "0.5922892", "0.5910798", "0.59079486", "0.5904855", "0.5885632", "0.5875203", "0.585383", "0.58480006", "0.584014", "0.5832665", "0.5820435", "0.5818156", "0.5810837", "0.5804782", "0.5794166", "0.5776491", "0.5751828", "0.5746829", "0.5737097", "0.572921", "0.5725685", "0.5725434", "0.5720512", "0.5716438", "0.5704983", "0.56855625", "0.5683138", "0.5682219", "0.5672491", "0.56670034", "0.56618357", "0.5660328", "0.56531054", "0.5651557", "0.5649209", "0.5631081", "0.56290585", "0.5624743", "0.5620263", "0.5617065", "0.5616652", "0.56133455", "0.56038684", "0.55994093", "0.5596684", "0.55941033", "0.5591794", "0.55879104", "0.5582748", "0.5580699", "0.5580699", "0.5580699", "0.5574117", "0.55734766", "0.5571059", "0.5564047", "0.5563568", "0.5560809", "0.556064", "0.5553622", "0.55512697", "0.553623", "0.55342776", "0.55288637", "0.55288637", "0.55288637", "0.5521007", "0.5520618", "0.55171686", "0.55153495", "0.5514482", "0.55004513" ]
0.0
-1
TODO Autogenerated method stub
@Transactional public List<Trip> getAllTripByCondition() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Transactional public List<Trip> getPageTripByCondition(Integer start, Integer maxCount) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Transactional public List<Trip> getPageTripsByType(int id, int start, int maxCount) { return dao.getPageTripsByType(id, start, maxCount); }
{ "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
@Transactional public Trip getTripById(int id) { return dao.getTripById(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
@Transactional public void updateScore(Trip trip) { }
{ "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 initTripPicture(Set<Trippicture> pictures, String basePath) { for (Trippicture tp : pictures) { String path = basePath + "image_cache\\" + tp.getName(); if (!new File(path).exists()) { Utils.getFile(tp.getData(), path); } } }
{ "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
@Transactional public List<Trip> getSearchTripsByVo(SearchForm vo) { packageForm(vo); allTripList = dao.getAllTripByCondition(vo); return dao.getPageTripByCondition(vo, vo.getFistResult(), vo.getMaxResult()); }
{ "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
@Transactional public SearchBean getSearchBean(SearchForm vo) { SearchBean bean = new SearchBean(vo, allTripList); return bean; }
{ "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
Creates a new Drivetrain.
public Drivetrain() { // Use inches as unit for encoder distances m_leftEncoder.setDistancePerPulse(initialDistancePerPulse); m_rightEncoder.setDistancePerPulse(initialDistancePerPulse); resetEncoders(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DriveTrain() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n leftFrontTalon = new WPI_TalonSRX(11);\n leftRearTalon = new WPI_TalonSRX(12);\n rightFrontTalon = new WPI_TalonSRX(13);\n rightRearTalon = new WPI_TalonSRX(14);\n victorTestController = new WPI_VictorSPX(4);\n robotDrive41 = new RobotDrive(leftRearTalon, leftFrontTalon,rightFrontTalon, rightRearTalon);\n \n robotDrive41.setSafetyEnabled(false);\n robotDrive41.setExpiration(0.1);\n robotDrive41.setSensitivity(0.5);\n robotDrive41.setMaxOutput(1.0);\n\n \n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n }", "public DriveTrain()\n\t{\n\t\tleftMotor1 = new VictorSPX(DriveTrainConstants.leftFrontMotorChannel);\n\t\tleftMotor2 = new VictorSPX(DriveTrainConstants.leftRearMotorChannel);\n\t\trightMotor1 = new VictorSPX(DriveTrainConstants.rightFrontMotorChannel);\n\t\trightMotor2 = new VictorSPX(DriveTrainConstants.rightRearMotorChannel);\n\n\t\tleftMotor1.setInverted(DriveTrainConstants.leftMotorInverted);\n\t\trightMotor1.setInverted(DriveTrainConstants.rightMotorInverted);\n\n\t\tleftMotor2.setInverted(InvertType.FollowMaster);\n\t\trightMotor2.setInverted(InvertType.FollowMaster);\n\n\t\tleftMotor2.set(ControlMode.Follower, leftMotor1.getDeviceID());\n\t\trightMotor2.set(ControlMode.Follower, rightMotor1.getDeviceID());\n\t}", "public Train(){\n}", "public TankDrive(DriveTrainSubsystem driveTrain) {\n // Use addRequirements() here to declare subsystem dependencies.\n driveTrainSubsystem = driveTrain;\n addRequirements(driveTrainSubsystem);\n }", "public DriveTrain() {\n\n\t\tleft1 = new CANTalon(RobotMap.DMTOPleft);\n\t\tleft2 = new CANTalon(RobotMap.DMMIDDLEleft);\n\t\tleft3 = new CANTalon(RobotMap.DMBOTTOMleft);\n\t\tright1 = new CANTalon(RobotMap.DMTOPright);\n\t\tright2 = new CANTalon(RobotMap.DMMIDDLEright);\n\t\tright3 = new CANTalon(RobotMap.DMBOTTOMright);\n\t\tright = new Encoder(RobotMap.DRIVEencoderRA, RobotMap.DRIVEencoderRB, false, Encoder.EncodingType.k4X);\n\t\tleft = new Encoder(RobotMap.DRIVEencoderLA, RobotMap.DRIVEencoderLB, true, Encoder.EncodingType.k4X);\n\t\tspeedShifter = new DoubleSolenoid(RobotMap.PCM, RobotMap.SHIFTLOW, RobotMap.SHIFTHI);\n\t\tultrasonic = new AnalogInput(RobotMap.ULTRASONICDT);\n\t\tservo = new Servo(RobotMap.SERVO_drivetrain);\n\n\t\t// TODO: set left and right encoder distance per pulse here! :)\n\n\t\tspeedShifter.set(DoubleSolenoid.Value.kReverse);\n\t\tdouble dpp = 3 * ((6 * Math.PI) / 1024); // distance per pulse\n\t\t\t\t\t\t\t\t\t\t\t\t\t// (circumference/counts per\n\t\t\t\t\t\t\t\t\t\t\t\t\t// revolution)\n\t\tright.setDistancePerPulse(dpp); // must be changed for both right and\n\t\t\t\t\t\t\t\t\t\t// left\n\t\tleft.setDistancePerPulse(dpp);\n\n\t}", "public void setDriveTrain(DriveTrain driveTrain) {\r\n this.driveTrain = driveTrain;\r\n }", "public static Drivetrain getInstance(){\n if(instance == null){\n instance = new Drivetrain();\n }\n return instance;\n }", "public DriveTrain(){\r\n super(\"Drive Train\");\r\n Log = new MetaCommandLog(\"DriveTrain\", \"Gyro\" , \"Left Jaguars,Right Jaguars\");\r\n gyro1 = new Gyro(RobotMap.AnalogSideCar , RobotMap.DriveTrainGyroInput);\r\n lfJag = new Jaguar(RobotMap.frontLeftMotor);\r\n lfRearJag = new Jaguar(RobotMap.rearLeftMotor);\r\n rtJag = new Jaguar(RobotMap.frontRightMotor);\r\n rtRearJag = new Jaguar(RobotMap.rearRightMotor);\r\n drive = new RobotDrive(lfJag, lfRearJag, rtJag, rtRearJag);\r\n \r\n //lfFrontJag = new Jaguar (3);\r\n //rtFrontJag = new Jaguar (4);\r\n \r\n //joystick2 = new Joystick(2);\r\n //sensor1 = new DigitalInput(1);\r\n //sensor2 = new DigitalInput (2);\r\n\r\n }", "public Train createTrain(int number, int capacity, int velocity){\n Train train = new Train();\n train.setNumber(number);\n train.setCapacity(capacity);\n train.setVelocity(velocity);\n return train;\n }", "TrainingTest createTrainingTest();", "public ArcadeDrive() {\n\t\tthis.drivetrain = Robot.DRIVETRAIN;\n\t\trequires(drivetrain);\n\t}", "@Override\n public void initialize() {\n\n drivetrain = Drivetrain.getInstance();\n \n \n\n }", "public Training() {\n\n }", "public DriveTrain(int lf, int lr, int rf, int rr){\n this.left = new side(lf, lr);\n this.right = new side(rf, rr);\n }", "public Training() {\n }", "public RLDiskDrive() {\n }", "public Drivetrain() {\n leftFrontMotor.getPIDController().setP(leftkP);\n leftFrontMotor.getPIDController().setI(leftkI);\n leftFrontMotor.getPIDController().setD(leftkD);\n leftFrontMotor.getPIDController().setFF(leftkFF);\n\n leftBackMotor.getPIDController().setP(leftkP);\n leftBackMotor.getPIDController().setI(leftkI);\n leftBackMotor.getPIDController().setD(leftkD);\n leftBackMotor.getPIDController().setFF(leftkFF);\n\n rightFrontMotor.getPIDController().setP(rightkP);\n rightFrontMotor.getPIDController().setI(rightkI);\n rightFrontMotor.getPIDController().setD(rightkD);\n rightFrontMotor.getPIDController().setFF(rightkFF);\n\n rightBackMotor.getPIDController().setP(rightkP);\n rightBackMotor.getPIDController().setI(rightkI);\n rightBackMotor.getPIDController().setD(rightkD);\n rightBackMotor.getPIDController().setFF(rightkFF);\n }", "Klassenstufe createKlassenstufe();", "@Override\n public void initialize() {\n drivetrain.enable();\n }", "public ArcadeDrivetrain build() {\n verify();\n return new ArcadeDrivetrain(this);\n }", "public LimelightCenterPID(PIDDrivetrain drivetrain) {\n this.drivetrain = drivetrain;\n // Use addRequirements() here to declare subsystem dependencies.\n addRequirements(drivetrain);\n }", "public DriveTrain (int motorChannelL1,int motorChannelL2,int motorChannelR1,int motorChannelR2 ){\n leftMotor1 = new Victor(motorChannelL1);\n leftMotor2 = new Victor(motorChannelL2);\n rightMotor1 = new Victor(motorChannelR1);\n rightMotor2 = new Victor(motorChannelR2);\n highDrive = new RobotDrive(motorChannelL1, motorChannelR1);\n lowDrive = new RobotDrive(motorChannelL2, motorChannelR2);\n \n }", "public DriveTrain(SpeedController left, SpeedController right){\n\t\tthis.left = left;\n\t\tthis.right = right;\n\t\tthis.drive = new RobotDrive(left,right);\n\t\t/*\n\t\tthis.leftDrive=new RobotDrive(left,right);\n\t\tthis.rightDrive=new RobotDrive(right);\n\t\t*/\n\t}", "public GoalTrack(Drivetrain drivetrain, Vision vision) {\n // Use addRequirements() here to declare subsystem dependencies.\n\n this.drivetrain = drivetrain;\n this.vision = vision;\n }", "public Train createTrain(String id, String number, int time, Train copiedTrain) {\r\n // create new train with the same data\r\n Train train = copiedTrain.getTrainDiagram().createTrain(id);\r\n train.setNumber(number);\r\n train.setType(copiedTrain.getType());\r\n train.setDescription(copiedTrain.getDescription());\r\n train.setTopSpeed(copiedTrain.getTopSpeed());\r\n train.setAttributes(new Attributes(copiedTrain.getAttributes()));\r\n\r\n // create copy of time intervals\r\n for (TimeInterval copiedInterval : copiedTrain.getTimeIntervalList()) {\r\n TimeInterval interval = new TimeInterval(IdGenerator.getInstance().getId(), copiedInterval);\r\n // redirect to a new train\r\n interval.setTrain(train);\r\n\r\n // add interval\r\n train.addInterval(interval);\r\n }\r\n\r\n // move to new time\r\n train.move(time);\r\n\r\n return train;\r\n }", "public DriveTrain() {\n for(int i = 0; i < 2; i++) {\n leftMotors[i] = new CANSparkMax(Constants.LEFT_DRIVE_CANS[i], MotorType.kBrushless);\n rightMotors[i] = new CANSparkMax(Constants.RIGHT_DRIVE_CANS[i], MotorType.kBrushless);\n rightMotors[i].setInverted(true);\n }\n }", "public DriveTrain getDriveTrain() {\r\n return driveTrain;\r\n }", "public Drive(DriveTrain dr, TestableJoystick controller) {\n\n m_driveTrain = dr;\n this.m_controller = controller;\n\n this.m_speed = 0.0;\n this.m_rot = 0.0;\n\n addRequirements(dr);\n }", "public DriveService(){}", "public Drive() {\r\n leftFrontDrive = new Talon(Constants.DRIVE_LEFT_FRONT);\r\n leftRearDrive = new Talon(Constants.DRIVE_LEFT_REAR);\r\n rightFrontDrive = new Talon(Constants.DRIVE_RIGHT_FRONT);\r\n rightRearDrive = new Talon(Constants.DRIVE_RIGHT_REAR);\r\n \r\n robotDrive = new RobotDrive(\r\n leftFrontDrive,\r\n leftRearDrive, \r\n rightFrontDrive, \r\n rightRearDrive);\r\n \r\n driveDirection = 1.0;\r\n \r\n arcadeYRamp = new CarbonRamp();\r\n arcadeXRamp = new CarbonRamp();\r\n tankLeftRamp = new CarbonRamp();\r\n tankRightRamp = new CarbonRamp();\r\n \r\n ui = CarbonUI.getUI();\r\n }", "private Vehicle createNewVehicle() {\n\t\tString make = generateMake();\n\t\tString model = generateModel();\n\t\tdouble weight = generateWeight(model);\n\t\tdouble engineSize = generateEngineSize(model);\n\t\tint numberOfDoors = generateNumberOfDoors(model);\n\t\tboolean isImport = generateIsImport(make);\n\t\t\n\t\tVehicle vehicle = new Vehicle(make, model, weight, engineSize, numberOfDoors, isImport);\n\t\treturn vehicle;\t\t\n\t}", "FuelingStation createFuelingStation();", "public void train(){\n recoApp.training(idsToTest);\n }", "public boolean spawnNewTrain(String trainName, short trainId) {\n\t\t// check that the trainId and Name are unique\n\t\ttrains.add(new Train(trainId, trainName));\n\t\treturn true;\n\t}", "public void setupDrive(){\n // Place Dove/ into base of drive\n new File(drv.toString() + File.separator + folderName).mkdir();\n //upload preset content if required\n isSetup = true;\n }", "public TrainAbstract() {\n\t\tthis.id = \"\";\n\t\tthis.departure = new Departure();\n\t\tthis.arrivalTerminus = new ArrivalTerminus();\n\t\tthis.location = new Location(\"\", \"\");\n\t\tthis.stopPoints = new ArrayList<ArrivalStopPoint>();\n\t}", "void storeTraining(Training training);", "public DriveTrain(side left, side right){\n this.left = left;\n this.right = right;\n this.gear = new twoSpeed();\n }", "public void createTrainingData(String dirName, String processName, int fold, ArrayList<FoldInstance> instances) throws FileNotFoundException {\n PrintWriter writer = new PrintWriter(dirName + \"/\" + processName + \".jointtrain.cv.\" + fold);\n for (int i = 0; i < instances.size(); i++) {\n FoldInstance inst = instances.get(i);\n if (inst.getName().equalsIgnoreCase(processName)) {\n if (inst.getFold() == fold) {\n writer.println(inst.getSentences());\n writer.flush();\n }\n } else {\n writer.println(inst.getSentences());\n writer.flush();\n }\n\n }\n writer.close();\n }", "private void createTDenseDirectory() {\n File dense = new File(DenseLayerPath);\n dense.mkdir();\n }", "public void train()\n\t{\n\t\tdbiterator = DBInstanceIterator.getInstance();\n System.out.println(\"Start Training ..\");\n\n\t\ttry {\n\t\t\tSystem.out.println(\"Training Text %..\");\n\t\t\ttrainText();\n\n\t\t\tSystem.out.println(\"Training Complex %..\");\n\t\t\ttrainCombined();\n\n\t\t\tSystem.out.println(\"Training Feature %..\");\n\t\t\ttrainFeatures();\n\n\t\t\tSystem.out.println(\"Training Lexicon %..\");\n\t\t\t//trainLexicon();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "Drone createDrone();", "public Train createTrain(String id, String name, TrainType trainType, int topSpeed, Route route, int time, TrainDiagram diagram, int defaultStop) {\r\n Train train = diagram.createTrain(id);\r\n train.setNumber(name);\r\n train.setType(trainType);\r\n train.setTopSpeed(topSpeed);\r\n\r\n List<Pair<RouteSegment, Integer>> data = this.createDataForRoute(route);\r\n this.adjustSpeedsAndStops(data, train, topSpeed, defaultStop);\r\n\r\n int i = 0;\r\n TimeInterval interval;\r\n Node lastNode = null;\r\n\r\n for (Pair<RouteSegment, Integer> pair : data) {\r\n if (pair.first instanceof Node) {\r\n // handle node\r\n Node node = (Node)pair.first;\r\n interval = node.createTimeInterval(\r\n IdGenerator.getInstance().getId(),\r\n train, time, pair.second);\r\n lastNode = node;\r\n } else {\r\n // handle line\r\n Line line = (Line)pair.first;\r\n TimeIntervalDirection direction =\r\n (line.getFrom() == lastNode) ?\r\n TimeIntervalDirection.FORWARD :\r\n TimeIntervalDirection.BACKWARD;\r\n interval = line.createTimeInterval(\r\n IdGenerator.getInstance().getId(),\r\n train, time,\r\n direction, pair.second,\r\n this.computeFromSpeed(pair, data, i),\r\n this.computeToSpeed(pair, data, i));\r\n }\r\n\r\n // add created interval to train and set current time\r\n time = interval.getEnd();\r\n train.addInterval(interval);\r\n\r\n i++;\r\n }\r\n\r\n return train;\r\n }", "public BasicDriveTeleOp() {\n\n }", "public DriveHandle createDrive( String name )\n throws CdbException , InterruptedException {\n return _pvr.createDrive( name ) ;\n }", "public static void init() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n drivetrainSpeedController1 = new CANTalon(1);\n LiveWindow.addActuator(\"Drivetrain\", \"Speed Controller 1\", (CANTalon) drivetrainSpeedController1);\n \n drivetrainSpeedController2 = new CANTalon(2);\n LiveWindow.addActuator(\"Drivetrain\", \"Speed Controller 2\", (CANTalon) drivetrainSpeedController2);\n drivetrainSpeedController3 = new CANTalon(3);\n LiveWindow.addActuator(\"Drivetrain\", \"Speed Controller 2\", (CANTalon) drivetrainSpeedController3);\n drivetrainSpeedController4 = new CANTalon(4);\n LiveWindow.addActuator(\"Drivetrain\", \"Speed Controller 2\", (CANTalon) drivetrainSpeedController4);\n drivetrainSpeedController5 = new CANTalon(5);\n LiveWindow.addActuator(\"Drivetrain\", \"Speed Controller 2\", (CANTalon) drivetrainSpeedController5);\n drivetrainSpeedController6 = new CANTalon(6);\n LiveWindow.addActuator(\"Drivetrain\", \"Speed Controller 2\", (CANTalon) drivetrainSpeedController6);\n \n drivetrainRobotDrive21 = new RobotDrive(drivetrainSpeedController1, drivetrainSpeedController2, drivetrainSpeedController3, drivetrainSpeedController4, drivetrainSpeedController5, drivetrainSpeedController6);\n \n drivetrainRobotDrive21.setSafetyEnabled(true);\n drivetrainRobotDrive21.setExpiration(0.1);\n drivetrainRobotDrive21.setSensitivity(0.5);\n drivetrainRobotDrive21.setMaxOutput(1.0);\n\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n }", "public Train(String name, Integer number) {\n\t\tsuper();\n\t\tthis.name = name;\n\t\tthis.number = number;\n\t}", "public Drive(String path, String fName){\n drv = new File(path);\n folderName = fName;\n totalSpace = drv.getTotalSpace();\n freeSpace = drv.getUsableSpace();\n checkSetup();\n }", "public void train(SieveDocuments trainingInfo) {\r\n\t\t// no training\r\n\t}", "protected void initialize() {\n Robot.m_drivetrain.resetPath();\n Robot.m_drivetrain.addPoint(0, 0);\n Robot.m_drivetrain.addPoint(3, 0);\n Robot.m_drivetrain.generatePath();\n \n\t}", "public DriveSubsystem() {\n\t\tJaguar frontLeftCIM = new Jaguar(RobotMap.D_FRONT_LEFT_CIM);\n\t\tJaguar rearLeftCIM = new Jaguar(RobotMap.D_REAR_LEFT_CIM);\n\t\tJaguar frontRightCIM = new Jaguar(RobotMap.D_FRONT_RIGHT_CIM);\n\t\tJaguar rearRightCIM = new Jaguar(RobotMap.D_REAR_RIGHT_CIM);\n\t\t\n\t\tdrive = new RobotDrive(frontLeftCIM, rearLeftCIM, frontRightCIM, rearRightCIM);\n\t}", "void setTrainData(DataModel trainData);", "public Train(List<Car> tab)\n\t{\n\t\tthis.cars = new CopyOnWriteArrayList<Car>();\n\t\tfor (Car car : tab)\n\t\t{\n\t\t\tthis.cars.add(car);\n\t\t\tcar.setTrain(this);\n\t\t} \n\t}", "public DriveSubsystem() {\n }", "public MM_DriveTrain(LinearOpMode opMode){\n this.opMode = opMode;\n flMotor = opMode.hardwareMap.get(DcMotor.class, \"flMotor\");\n frMotor = opMode.hardwareMap.get(DcMotor.class, \"frMotor\");\n blMotor = opMode.hardwareMap.get(DcMotor.class, \"blMotor\");\n brMotor = opMode.hardwareMap.get(DcMotor.class, \"brMotor\");\n\n flMotor.setDirection(DcMotor.Direction.REVERSE); // Set to REVERSE if using AndyMark motors\n frMotor.setDirection(DcMotor.Direction.FORWARD);// Set to FORWARD if using AndyMark motors\n blMotor.setDirection(DcMotor.Direction.REVERSE); // Set to REVERSE if using AndyMark motors\n brMotor.setDirection(DcMotor.Direction.FORWARD);// Set to FORWARD if using AndyMark motors\n\n setMotorPowerSame(0);\n\n initializeGyro();\n initHardware();\n }", "public void addTrain(Train train) throws SQLException, ClassNotFoundException {\n\t\tConnection connection = null;\n\t\tPreparedStatement pst = null;\n\t\ttry {\n\t\t\tconnection = ConnectionUtil.getConnection();\n\t\t\tString sql = \"INSERT INTO train_details (train_name,train_number,seats_avaialble,train_fare,train_timing) values(?,?,?,?,?)\";\n\t\t\tpst = connection.prepareStatement(sql);\n\t\t\tpst.setString(1, train.getTrainName());\n\t\t\tpst.setString(2, train.getTrainNumber());\n\t\t\tpst.setInt(3, train.getAvailableTickets());\n\t\t\tpst.setInt(4,train.getTrainFare());\n\t\t\tpst.setString(5, train.getTrainTimeing());\n\t\t\tpst.executeUpdate();\n\t\t} catch (ClassNotFoundException | SQLException e) {\n\t\t\te.getMessage();\n\t\t} finally {\n\t\t\tConnectionUtil.close(pst, connection);\n\t\t}\n\t}", "@Override\n\tprotected void initialize() {\n\t\tdrivetrain.enableBrakeMode(true);\n\t}", "public Factory() {\n\t\tnb_rounds = 0; \n\t\tnb_to_train = 0; \n\t\ttraining_queue = new LinkedList<Pair<Soldier, Integer>>(); \n\t\tcurrent = null;\n\t}", "public Training(String name) {\n this.name = name;\n this.timestamp = System.currentTimeMillis() / 1000;\n }", "public Train(Location village1, Location village2) {\n this.start = village1;\n this.destination = village2;\n // when train is created, it is at the start location\n this.current = start;\n this.occupied = false;\n }", "public void train() throws Exception;", "public DriveTrain(double speedLimit, double rotateLimit, double strafeLimit) {\n\n\t\t// Create motor controllers and assign to the phoenix tuner specified motor\n\t\t// identifier\n\t\tfrontLeftMotor = new WPI_TalonSRX(kFrontLeftCIM);\n\t\trearLeftMotor = new WPI_TalonSRX(kBackLeftCIM);\n\t\tfrontRightMotor = new WPI_TalonSRX(kFrontRightCIM);\n\t\trearRightMotor = new WPI_TalonSRX(kBackRightCIM);\n\n\t\tfrontLeft775 = new WPI_TalonSRX(kFrontLeft775);\n\t\tfrontRight775 = new WPI_TalonSRX(kFrontRight775);\n\t\tbackLeft775 = new WPI_TalonSRX(kBackLeft775);\n\t\tbackRight775 = new WPI_TalonSRX(kBackRight775);\n\n\t\t// set speed and rotate limit based on initialization parameters\n\t\tthis.speedLimit = speedLimit;\n\t\tthis.rotateLimit = rotateLimit;\n\t\tthis.strafeLimit = strafeLimit;\n\n\t\t// Instantiate Mecanum drive with 775 motors\n\t\tmyDrive = new MecanumDrive(frontLeft775, backLeft775, frontRight775, backRight775);\n\n\t\t// Slave CIM motors to 775 motors\n\t\tfrontLeftMotor.follow(frontLeft775);\n\t\tfrontRightMotor.follow(frontRight775);\n\t\trearLeftMotor.follow(backLeft775);\n\t\trearRightMotor.follow(backRight775);\n\n\t\tSystem.out.println(\"Initialized constructor completed\");\n\t}", "public static void init() {\r\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\r\n driveTrainSubsystemleftFront = new Jaguar(1, 1);\r\n\tLiveWindow.addActuator(\"DriveTrainSubsystem\", \"leftFront\", (Jaguar) driveTrainSubsystemleftFront);\r\n \r\n driveTrainSubsystemleftRear = new Jaguar(1, 5);\r\n\tLiveWindow.addActuator(\"DriveTrainSubsystem\", \"leftRear\", (Jaguar) driveTrainSubsystemleftRear);\r\n \r\n driveTrainSubsystemrightFront = new Jaguar(1, 6);\r\n\tLiveWindow.addActuator(\"DriveTrainSubsystem\", \"rightFront\", (Jaguar) driveTrainSubsystemrightFront);\r\n \r\n driveTrainSubsystemrightRear = new Jaguar(1, 7);\r\n\tLiveWindow.addActuator(\"DriveTrainSubsystem\", \"rightRear\", (Jaguar) driveTrainSubsystemrightRear);\r\n \r\n driveTrainSubsystemRobotDrive = new RobotDrive(driveTrainSubsystemleftFront, driveTrainSubsystemleftRear,\r\n driveTrainSubsystemrightFront, driveTrainSubsystemrightRear);\r\n\t\r\n driveTrainSubsystemRobotDrive.setSafetyEnabled(true);\r\n driveTrainSubsystemRobotDrive.setExpiration(0.1);\r\n driveTrainSubsystemRobotDrive.setSensitivity(0.5);\r\n driveTrainSubsystemRobotDrive.setMaxOutput(1.0);\r\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\r\n }", "public void startTrainingMode() {\n\t\t\r\n\t}", "@RequestMapping(value = \"/file\", \n\t\t\t\t\tmethod = RequestMethod.POST)\n\tpublic ResponseEntity<DriveFile> createFile(@RequestBody DriveFile driveFile) throws IOException, IllegalArgumentException, NullPointerException {\n\t\t\n\t\tFile metadata = new File();\n\t\tmetadata.setName(driveFile.getTitle());\n\t\tmetadata.setDescription(driveFile.getDescription());\n\n\t\tFile file = DriveConnection.driveService.files().create(metadata) // creamos \n\t\t .setFields(\"id, name, description\")\n\t\t .execute();\n\t\n\t\tdriveFile.setId(file.getId()); // seteamos su ID\n\t\n\t\treturn new ResponseEntity<DriveFile>(driveFile, HttpStatus.OK); // lo mostramos en la consola\n\t\t\n\t}", "protected void initialize() {\n done = false;\n\n\n prevAutoShiftState = driveTrain.getAutoShift();\n driveTrain.setAutoShift(false);\n driveTrain.setCurrentGear(DriveTrain.DriveGear.High);\n// double p = SmartDashboard.getNumber(\"drive p\", TTA_P);\n// double i = SmartDashboard.getNumber(\"drive i\", TTA_I);\n// double d = SmartDashboard.getNumber(\"drive d\", TTA_D);\n// double rate = SmartDashboard.getNumber(\"rate\", TTA_RATE);\n// double tolerance = TTA_TOLERANCE; // SmartDashboard.getNumber(\"tolerance\", 2);\n// double min = SmartDashboard.getNumber(\"min\", TTA_MIN);\n// double max = SmartDashboard.getNumber(\"max\", TTA_MAX);\n// double iCap = SmartDashboard.getNumber(\"iCap\", TTA_I_CAP);\n// pid = new PID(p, i, d, min, max, rate, tolerance, iCap);\n pid = new PID(TTA_P, TTA_I, TTA_D, TTA_MIN, TTA_MAX, TTA_RATE, TTA_TOLERANCE, TTA_I_CAP);\n\n driveTrain.setSpeedsPercent(0, 0);\n driveTrain.setCurrentControlMode(ControlMode.Velocity);\n }", "public AzureDataLakeStoreDataset() {\n }", "public DriveSubsystem() {\n leftDrive = new Spark(0);\n rightDrive = new Spark(1);\n\n leftEncoder = new Encoder(0, 1);\n rightEncoder = new Encoder(2, 3);\n\n leftEncoder.setDistancePerPulse((Math.PI * WHEEL_DIAMETER) / PPR);\n rightEncoder.setDistancePerPulse((Math.PI * WHEEL_DIAMETER) / PPR);\n \n drive = new DifferentialDrive(leftDrive, rightDrive);\n\n }", "Vehicle createVehicle();", "Vehicle createVehicle();", "public void TrainDataset(){\n\t\ttry{\n\t\t\t//Testing delegate method\n\t\t\tMessageController.logToConsole(\"Hey, I'm from train button\");\n\t\t\t\n\t\t\t//Pass in the real training dataset\n\t\t\tfindSuitableK(new String[]{\"Hello\", \"World\"});\n\t\t\t\n\t\t\t//Pass in the 'k' and 'query string'\n\t\t\tfindKNN(2, \"anything\");\n\t\t}\n\t\tcatch(Exception ex){\n\t\t\tthrow ex;\n\t\t}\n\t\tfinally{\n\t\t\t\n\t\t}\n\t}", "public SubsystemDrive(){\n \t\n \t//Master Talons\n \tleft1 = new CANTalon(Constants.LEFT_MOTOR);\n \tright1 = new CANTalon(Constants.RIGHT_MOTOR);\n \t\n \t//Slave Talons\n \tleft2 = new CANTalon(Constants.OTHER_LEFT_MOTOR);\n \tright2 = new CANTalon(Constants.OTHER_RIGHT_MOTOR);\n \t\n \t//VOLTAGE\n \tvoltage(left1); \t\n \tvoltage(left2); \t\n \tvoltage(right1); \t\n \tvoltage(right2); \t\n\n \t//Train the Masters\n \tleft1.setFeedbackDevice(CANTalon.FeedbackDevice.CtreMagEncoder_Relative);\n \tright1.setFeedbackDevice(CANTalon.FeedbackDevice.CtreMagEncoder_Relative);\n \tleft1.setEncPosition(0);\n \tright1.setEncPosition(0);\n \tleft1.reverseSensor(false);\n \tright1.reverseSensor(false);\n \t\n \t//Train the Slaves\n \tleft2.changeControlMode(CANTalon.TalonControlMode.Follower);\n \tright2.changeControlMode(CANTalon.TalonControlMode.Follower);\n \tleft2.set(left1.getDeviceID());\n \tright2.set(right1.getDeviceID());\n \t\n \tpid = new TalonPID(new CANTalon[]{left1, right1}, \"MOTORS\");\n }", "Parking createParking();", "public void driveTrainLoop() {\n if (Config.getInstance().getBoolean(Key.ROBOT__HAS_DRIVETRAIN)) {\n // Check User Inputs\n double driveThrottle = mOperatorInterface.getDriveThrottle();\n double driveTurn = mOperatorInterface.getDriveTurn();\n\n boolean WantsAutoAim = mOperatorInterface.getFeederSteer();\n\n // Continue Driving\n if (WantsAutoAim == true) {\n // Harvest Mode - AutoSteer Functionality\n // Used for tracking a ball\n // we may want to limit the speed?\n // RobotTracker.RobotTrackerResult DriveResult =\n // mRobotTracker.GetFeederStationError(Timer.getFPGATimestamp());\n mDriveState = DriveState.AUTO_DRIVE;\n\n VisionPacket vp = mRobotTracker.GetTurretVisionPacket(Timer.getFPGATimestamp());\n // mDrive.autoSteerFeederStation(driveThrottle, vp.Error_Angle);\n } else {\n // Standard Manual Drive\n mDrive.setDrive(driveThrottle, driveTurn, false);\n\n // if we were previously in auto drive.. turn it off\n if (mDriveState == DriveState.AUTO_DRIVE) {\n mDriveState = DriveState.MANUAL;\n }\n }\n }\n }", "@Test\n public void it_should_add_a_train() {\n // GIVEN\n TrainScheduler scheduler = new TrainScheduler();\n\n // WHEN\n List< Station > stations = new ArrayList<>();\n stations.add(new Station(null, LocalTime.parse(\"11:30\"), \"Lyon\", StationType.ORIGIN));\n stations.add(new Station(LocalTime.parse(\"14:00\"), LocalTime.parse(\"14:05\"), \"Paris\", StationType.INTERMEDIATE));\n stations.add(new Station(LocalTime.parse(\"15:00\"), null, \"London\", StationType.DESTINATION ));\n\n List<DayOfWeek> days = new ArrayList<>();\n days.add(DayOfWeek.MONDAY);\n days.add(DayOfWeek.TUESDAY);\n days.add(DayOfWeek.WEDNESDAY);\n days.add(DayOfWeek.THURSDAY);\n days.add(DayOfWeek.FRIDAY);\n TrainSchedule schedule = new TrainSchedule(days);\n\n scheduler.addTrain(\"Eurostar\", stations, schedule);\n\n // THEN\n List<TrainResponse> responses = scheduler.consultTrains(LocalDate.now(), LocalTime.parse(\"11:00\"), \"Paris\", \"London\");\n Assert.assertEquals(responses.size(), 1);\n TrainResponse response = responses.get(0);\n Assert.assertEquals(response.getFrom(), \"Paris\");\n Assert.assertEquals(response.getTo(), \"London\");\n }", "public void train ()\t{\t}", "public void create(){}", "public Drive(DriveTrain dr, double speed, double rot) {\n\n m_driveTrain = dr;\n\n m_speed = speed; m_rot = rot;\n\n addRequirements(dr);\n }", "public static Instances formTrainSet(String trainFile)\n\t\t\tthrows FileNotFoundException {\n\t\tHashMap<Integer, Query> queries = new LinkedHashMap<Integer, Query>();\n\t\tScanner scanner = new Scanner(new File(trainFile));\n\t\tString line;\n\t\t// read query doc pairs and form training set\n\t\twhile (scanner.hasNextLine()) {\n\t\t\tline = scanner.nextLine();\n\t\t\tString tokens[] = line.split(\" \");\n\t\t\tint relevance = Integer.parseInt(tokens[0]);\n\t\t\tString toks[] = tokens[1].split(\":\");\n\t\t\tint queryId = Integer.parseInt(toks[1]);\n\t\t\tQuery query;\n\t\t\tif (queries.containsKey(queryId)) {\n\t\t\t\tquery = queries.get(queryId);\n\t\t\t} else {\n\t\t\t\tquery = new Query(numFeature);\n\t\t\t\tqueries.put(queryId, query);\n\t\t\t}\n\t\t\tInstance instance = new Instance(relevance, numFeature);\n\t\t\t//read features\n\t\t\tfor (int i = 2; i < tokens.length; i++) {\n\t\t\t\tif (tokens[i].startsWith(\"#\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tString pair[] = tokens[i].split(\":\");\n\t\t\t\tinstance.addFeature(Integer.parseInt(pair[0]) - 1,\n\t\t\t\t\t\tDouble.parseDouble(pair[1]));\n\t\t\t}\n\t\t\tinstance.addCustomFeature();\n\t\t\tif (relevance == 0) {\n\t\t\t\tquery.addIrelDoc(instance);\n\t\t\t} else\n\t\t\t\tquery.addRelDoc(instance);\n\t\t}\n\t\tList<Instance> instances = new ArrayList<Instance>();\n\n\t\tfor (int qid : queries.keySet()) {\n//\t\t\tSystem.out.println(qid);\n\t\t\tQuery query = queries.get(qid);\n\t\t\tquery.normalize();\n\t\t\tfor (Instance instance : query.formTrainSet()) {\n\t\t\t\tinstances.add(instance);\n\t\t\t}\n\t\t}\n\t\tInstances trainingSet = new Instances(instances, numFeature, 2);\n\t\treturn trainingSet;\n\t}", "@Override\n\tpublic KBase createKB() {\n\t\treturn BnetDistributedKB.create(this);\n\t}", "public DriveTrainSubsystem() {\n this.leftEncoder.setDistancePerPulse(DISTANCE_PER_PULSE);\n this.rightEncoder.setDistancePerPulse(DISTANCE_PER_PULSE);\n }", "@Override\n public CreateDocumentClassifierResult createDocumentClassifier(CreateDocumentClassifierRequest request) {\n request = beforeClientExecution(request);\n return executeCreateDocumentClassifier(request);\n }", "void createNewInstance(String filename)\n {\n iIncomingLobsFactory = new incomingLobsFactory();\n iIncomingLobsFactory.setPackageName(\"com.loadSample\");\n \n // include schemaLocation hint for validation\n iIncomingLobsFactory.setXSDFileName(\"LoadSample.xsd\");\n \n // encoding for output document\n iIncomingLobsFactory.setEncoding(\"UTF8\");\n \n // encoding tag for xml declaration\n iIncomingLobsFactory.setEncodingTag(\"UTF-8\");\n \n // Create the root element in the document using the specified root element name\n iIncomingLobs = (incomingLobs) iIncomingLobsFactory.createRoot(\"incomingLobs\");\n createincomingLobs();\n \n iIncomingLobsFactory.save(filename);\n }", "public DriveSubsystem() {\n m_leftSpark1 = new CANSparkMax(DriveConstants.kLeftMotor1Port, MotorType.kBrushless);\n m_leftSpark2 = new CANSparkMax(DriveConstants.kLeftMotor2Port, MotorType.kBrushless);\n m_rightSpark1 = new CANSparkMax(DriveConstants.kRightMotor1Port, MotorType.kBrushless);\n m_rightSpark2 = new CANSparkMax(DriveConstants.kRightMotor2Port, MotorType.kBrushless);\n\n initSparkMax(m_leftSpark1);\n initSparkMax(m_leftSpark2);\n initSparkMax(m_rightSpark1);\n initSparkMax(m_rightSpark2);\n\n m_leftSpark2.follow(m_leftSpark1);\n m_rightSpark2.follow(m_rightSpark2);\n\n m_leftEncoder = m_leftSpark1.getEncoder();\n m_rightEncoder = m_rightSpark1.getEncoder();\n\n m_drive = new DifferentialDrive(m_leftSpark1, m_rightSpark1);\n }", "public DecisionLearningTree(String training, String test) {\n\t\ttrainingFile = training;\n\t\ttestFile = test;\n\t\treadTrainingFile();\n\t\troot = readDataFile();\n\t}", "public void create() {\n\t\t\n\t}", "@Test\n public void testCreate() {\n //System.out.println(\"create\");\n URI context = URI.create(\"file:test\");\n LemonSerializerImpl instance = new LemonSerializerImpl(null);\n instance.create(context);\n }", "@Override\r\n\tpublic boolean create(Station obj) {\n\t\treturn false;\r\n\t}", "public void trainTest() throws Exception\n\t{\n\t\tSystem.out.println(\"Preprocessing Testset ..\");\n\t\t//String[] dir = new String[]{ Test+\"negative\" , Test+\"positive\"};\n\t\t//FileIterator iterator = new FileIterator(dir,FileIterator.LAST_DIRECTORY);\n\t\tInstanceList instances = new InstanceList(getTextPipe());\n\t\t//instances.addThruPipe(iterator);\n\n\t\tCSVParser parser = new CSVParser(new FileReader(\n\t\t\t\t\"resources/datasets/sentimentanalysis/mallet_test/Sentiment140/sentiment140.csv\"),\n\t\t\t\tCSVFormat.EXCEL.withFirstRecordAsHeader());\n\n\t\tTextPreprocessor preprocessor = new TextPreprocessor(\"resources/datasets/sentimentanalysis/\");\n\t\tint count = 0;\n\t\tfor (CSVRecord record: parser.getRecords())\n\t\t{\n\t\t\tString target;\n\t\t\tif (record.get(\"target\").equals(\"0\"))\n\t\t\t\ttarget = \"negative\";\n\t\t\telse\n\t\t\t\ttarget = \"positive\";\n\t\t\tinstances.addThruPipe(new Instance(preprocessor.getProcessed(record.get(\"tweet\")),target,\n\t\t\t\t\t\"Instance\"+count++,null));\n\n\t\t\tSystem.out.println(count);\n\t\t}\n\n\t\tSystem.out.println(instances.targetLabelDistribution());\n\t\tSystem.out.println(\"Start Training Testset ..\");\n\t\tClassifier nb = new NaiveBayesTrainer().train(instances);\n\t\tSystem.out.println(\"Saving Test Model ..\");\n\t\tsaveModel(nb,Test+\"Model.bin\");\n\t\tsaveinstances(instances,Test+\"Model-Instances.bin\");\n\t\tinstances.getDataAlphabet().dump(new PrintWriter(new File(Test+\"Model-alphabet.dat\")));\n\t}", "public DriveSystem() {\n \t\n \tsuper(\"DriveSystem\", 0.5, 0.3, 1.0);//Must be first line of constructor!\n \tultraRangeFinder.setAutomaticMode(true);\n \tultraRangeFinder.setEnabled(true);\n \tultraRangeFinderBack.setAutomaticMode(true);\n \tultraRangeFinderBack.setEnabled(true);\n //double kp = 0.0001;\n \t//double ki = 0.001;\n \t//double kd = 0.01;\n \t//getPIDController().setPID(kp,ki,kd);//Set the PID controller gains.\n this.setInputRange(-180.0, 180.0);//Sets the MIN and MAX values expected from the input and setPoint!\n this.setOutputRange(-1.0, 1.0);//Sets the the MIN and MAX values to write to output\n //this.setAbsoluteTolerance(5.0);//Set the absolute error which is considered tolerable for use with OnTarget()\n //this.setPercentTolerance(10);//Set the percentage error which is considered tolerable for use with OnTarget()\n //this.setSetpoint(45);//Set the where to go to, clears GetAvgError()\n getPIDController().setContinuous(true);//True=input is continuous, calculates shortest route to setPoint()\n //this.enable();//Begin running the PID Controller.\n \n LiveWindow.addActuator(\"DriveSystem\", \"PID DriveSystem\", getPIDController());\n \n // getPIDController().startLiveWindowMode();//Start having this object automatically respond to value changes.\n }", "@Override\n protected void initialize() {\n gambezi = new Gambezi(\"10.17.47.18:5809\");\n dist = gambezi.get_node(\"pi_vision/output/distance\");\n ang = gambezi.get_node(\"pi_vision/output/angle to target\");\n distance = dist.get_double();\n angle = ang.get_double();\n double[][][] profile = HBRSubsystem.generateSkidSteerPseudoProfile(distance, angle);\n drive.setMode(Drivetrain.Follower.DISTANCE, HBRSubsystem.Mode.FOLLOWER);\n drive.setPIDMode(Drivetrain.Follower.DISTANCE, HBRSubsystem.PIDMode.POSITION);\n drive.setILimit(Drivetrain.Follower.DISTANCE, 0);\n drive.setFeedforward(Drivetrain.Follower.DISTANCE, 0, 0, 0);\n drive.setFeedback(Drivetrain.Follower.DISTANCE, 0, 0, 0);\n drive.resetIntegrator(Drivetrain.Follower.DISTANCE);\n\n // angle PID\n drive.setMode(Drivetrain.Follower.ANGLE, HBRSubsystem.Mode.FOLLOWER);\n drive.setPIDMode(Drivetrain.Follower.ANGLE, HBRSubsystem.PIDMode.POSITION);\n drive.setILimit(Drivetrain.Follower.ANGLE, 0);\n drive.setFeedforward(Drivetrain.Follower.ANGLE, 0, 0, 0);\n drive.setFeedback(Drivetrain.Follower.ANGLE, 0, 0, 0);\n drive.resetIntegrator(Drivetrain.Follower.ANGLE);\n\n drive.setProfile(Drivetrain.Follower.DISTANCE,profile[0]);\n drive.setProfile(Drivetrain.Follower.ANGLE,profile[1]);\n\n drive.resume(Drivetrain.Follower.DISTANCE);\n drive.resume(Drivetrain.Follower.ANGLE);\n drive.setEnabled(true);\n }", "DataGenModel()\n {\n }", "public static DayTraining newInstance(String json) {\n try {\n JSONObject root = new JSONObject(json);\n return new DayTraining.Builder()\n .setRunning( root.optInt(\"t1\"), root.optInt(\"t2\"), root.optInt(\"t3\"), root.optInt(\"t2_3\"), root.optInt(\"t1_3\"), root.optInt(\"ta\"), root.optInt(\"tt\"))\n .setBreathing(root.optInt(\"gx\"), root.optInt(\"gp\"),root.optInt(\"gd\"))\n .setTrainingInfo(root.optInt(\"id_athlete\"), root.optString(\"date\"), filterJsonTotalInput(root.optString(\"description\")), root.optInt(\"texniki\"), root.optInt(\"drastiriotita\"), root.optInt(\"time\"), root.optInt(\"number\"), root.optInt(\"id_race\"))\n .build();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return null;\n }", "public Drive(double left, double right) {\n requires(Robot.drivetrain);\n this.left = left;\n this.right = right;\n }", "public void drivetrainInitialization()\n\t{\n\t\tleftSRX.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, 0, Constants.kTimeoutMs);\n\t\tleftSRX.setSensorPhase(true);\n\t\tleftSRX.configNominalOutputForward(0, Constants.kTimeoutMs);\n\t\tleftSRX.configNominalOutputReverse(0, Constants.kTimeoutMs);\n\t\tleftSRX.configPeakOutputForward(1, Constants.kTimeoutMs);\n\t\tleftSRX.configPeakOutputReverse(-1, Constants.kTimeoutMs);\n\n\t\t// // Config left side PID Values\n\t\t// leftSRX.selectProfileSlot(Constants.drivePIDIdx, 0);\n\t\t// leftSRX.config_kF(Constants.drivePIDIdx, Constants.lDrivekF, Constants.kTimeoutMs);\n\t\t// leftSRX.config_kP(Constants.drivePIDIdx, Constants.lDrivekP, Constants.kTimeoutMs);\n\t\t// leftSRX.config_kI(Constants.drivePIDIdx, Constants.lDrivekI, Constants.kTimeoutMs);\n\t\t// leftSRX.config_kD(Constants.drivePIDIdx, Constants.lDrivekD, Constants.kTimeoutMs);\n\n\t\t// Config right side PID settings\n\t\trightSRX.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, Constants.drivePIDIdx, Constants.kTimeoutMs);\n\t\trightSRX.setSensorPhase(true);\n\t\trightSRX.configNominalOutputForward(0, Constants.kTimeoutMs);\n\t\trightSRX.configNominalOutputReverse(0, Constants.kTimeoutMs);\n\t\trightSRX.configPeakOutputForward(1, Constants.kTimeoutMs);\n\t\trightSRX.configPeakOutputReverse(-1, Constants.kTimeoutMs);\n\n\t\t// // Config right side PID Values\n\t\t// rightSRX.selectProfileSlot(Constants.drivePIDIdx, 0);\n\t\t// rightSRX.config_kF(Constants.drivePIDIdx, Constants.rDrivekF, Constants.kTimeoutMs);\n\t\t// rightSRX.config_kP(Constants.drivePIDIdx, Constants.rDrivekP, Constants.kTimeoutMs);\n\t\t// rightSRX.config_kI(Constants.drivePIDIdx, Constants.rDrivekI, Constants.kTimeoutMs);\n\t\t// rightSRX.config_kD(Constants.drivePIDIdx, Constants.rDrivekD, Constants.kTimeoutMs);\n\n\t\t// Set up followers\n\t\tleftSPX1.follow(leftSRX);\n\t\tleftSPX2.follow(leftSRX);\n\n\t\trightSPX1.follow(rightSRX);\n\t\trightSPX2.follow(rightSRX);\n\t\t\n\t\trightSRX.setInverted(true);\n\t\trightSPX1.setInverted(true);\n\t\trightSPX2.setInverted(true);\n }", "Cloud createCloud();", "@Override\n\tpublic void robotInit() {\n\t\tdt = new DriveTrain();\n\t\t//Initialize drive Talons\n\t\tRobotMap.vspLeft = new WPI_TalonSRX(RobotMap.dtLeft);\n\t\tRobotMap.vspRight = new WPI_TalonSRX(RobotMap.dtRight);\n\t\t//Initialize drive slave Victors\n\t\t//RobotMap.slaveLeft = new WPI_VictorSPX(RobotMap.slaveDriveLeft);\n\t\t//RobotMap.slaveRight = new WPI_VictorSPX(RobotMap.slaveDriveRight);\n\t\t//Set drive slaves to follower mode\n\t\t//RobotMap.slaveLeft.follow(RobotMap.vspLeft);\n\t\t//RobotMap.slaveRight.follow(RobotMap.vspRight);\n\t\t//Initialize drive train\n\t\tRobotMap.rd = new DifferentialDrive(RobotMap.vspLeft, RobotMap.vspRight);\n\t\t//Initialize drive joystick\n\t\tRobotMap.stick = new Joystick(RobotMap.joystickPort);\n\t\t//Disabled drive safety\n\t\tRobotMap.vspLeft.setSafetyEnabled(false);\n\t\tRobotMap.vspRight.setSafetyEnabled(false);\n\t\tRobotMap.rd.setSafetyEnabled(false);\n\t\t//Initialize lift Talon\n\t\tRobotMap.liftTalon = new WPI_TalonSRX(5);\n\t\t//Initialize operator controller\n\t\tRobotMap.controller = new Joystick(RobotMap.controllerPort);\n\t\t//Initialize intake Victors\n\t\tRobotMap.intakeVictorLeft = new WPI_VictorSPX(RobotMap.intakeMaster);\n\t\tRobotMap.intakeVictorRight = new WPI_VictorSPX(RobotMap.intakeSlave);\n\t\t//Set right intake Victor to follow left intake Victor\n\t\tRobotMap.intakeVictorRight.follow(RobotMap.intakeVictorLeft);\n\t\t\n\t\tRobotMap.climberVictorLeft = new WPI_VictorSPX(RobotMap.climberLeftAddress);\n\t\tRobotMap.climberVictorRight = new WPI_VictorSPX(RobotMap.climberRightAddress);\n\t\t\n\t\tRobotMap.climberVictorRight.follow(RobotMap.climberVictorLeft);\n\t\t\n\t\tRobotMap.piston = new DoubleSolenoid(RobotMap.inChannel, RobotMap.outChannel);\n\t\t\n\t\tRobotMap.intakeLifter = new WPI_VictorSPX(2);\n\t\t\n\t\tRobotMap.liftTalon = new WPI_TalonSRX(RobotMap.liftTalonAddress);\n\t\t\n\t\tautoChooser = new SendableChooser();\n\t\tautoChooser.addDefault(\"Drive to baseline\" , new DriveToBaseline());\n\t\tautoChooser.addObject(\"Null auto\", new NullAuto());\n\t\tautoChooser.addObject(\"Switch from right\", new SwitchFromRight());\n\t\tautoChooser.addObject(\"Switch from left\", new SwitchFromLeft());\n\t\tautoChooser.addObject(\"PID from left\", new PIDfromLeft());\n\t\tautoChooser.addObject(\"PID from right\", new PIDfromRight());\n\t\tautoChooser.addObject(\"Scale from right\", new ScaleAutoRight());\n\t\tautoChooser.addObject(\"Scale from left\", new ScaleAutoLeft());\n\t\tautoChooser.addObject(\"PID tester\", new PIDTESTER());\n\t\tautoChooser.addObject(\"Joe use this one\", new leftOnly());\n\t\tSmartDashboard.putData(\"Autonomous mode chooser\", autoChooser);\n\t\t\n\t\t//RobotMap.liftVictor.follow(RobotMap.climberTalon);\n\t\t\n\t\tRobotMap.vspLeft.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, 0, 0);\n\t\tRobotMap.vspRight.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, 0, 0);\n\t\t\n\t\tRobotMap.intakeLifted = new DigitalInput(1);\n\t\tRobotMap.isAtTop = new DigitalInput(2);\n\t\tRobotMap.isAtBottom = new DigitalInput(0);\n\t\t\n\t\tRobotMap.vspLeft.configVelocityMeasurementPeriod(VelocityMeasPeriod.Period_100Ms, 1);\n\t\tRobotMap.vspRight.configVelocityMeasurementWindow(64, 1); \n\t\t\n\t\toi = new OI();\n\t}", "public TrainingGroupDto createTrainingGroup(TrainingGroupDto trainDataObj,UserDto userDataObj) throws UIException, SQLException {\r\n\t\tTrainingGroupDto trainData=trainImplObj.createTrainingGroup(trainDataObj,userDataObj);\r\n\t\treturn trainData;\r\n\t}", "public void createTrainer(Trainer trainer) {\n\t\ttrainerService.createTrainer(trainer);\n\t}", "private String train(float[][][] features, float[] label, int epochs){\n org.tensorflow.Tensor x_train = Tensor.create(features);\n Tensor y_train = Tensor.create(label);\n int ctr = 0;\n while (ctr < epochs) {\n sess.runner().feed(\"input\", x_train).feed(\"target\", y_train).addTarget(\"train_op\").run();\n ctr++;\n }\n return \"Model Trained\";\n }" ]
[ "0.7126776", "0.6394052", "0.62586296", "0.6228716", "0.612151", "0.61111903", "0.6101715", "0.608231", "0.6039249", "0.6019689", "0.59585774", "0.5938787", "0.58729047", "0.5860105", "0.58478713", "0.58407575", "0.58189476", "0.57999516", "0.5793742", "0.5685856", "0.5658971", "0.56515414", "0.56509054", "0.5612532", "0.5611821", "0.55976856", "0.5587704", "0.5555819", "0.5551135", "0.54975164", "0.5481978", "0.5468698", "0.54052603", "0.5400377", "0.5378602", "0.53784335", "0.5304574", "0.53038657", "0.52804327", "0.52794516", "0.5274522", "0.5251835", "0.525055", "0.52370316", "0.5220451", "0.5220037", "0.5209724", "0.5199394", "0.5182466", "0.518244", "0.51626974", "0.515462", "0.5151175", "0.5147046", "0.51436913", "0.5133948", "0.5119149", "0.5089741", "0.5064458", "0.5061129", "0.5060516", "0.5041582", "0.5035043", "0.50286233", "0.50260204", "0.50148153", "0.5005529", "0.499812", "0.49980024", "0.49980024", "0.49861723", "0.49849674", "0.4972939", "0.49659532", "0.49617034", "0.49404925", "0.49397373", "0.49373186", "0.49239597", "0.49112904", "0.4906939", "0.4889227", "0.4875445", "0.48752204", "0.4872195", "0.48647812", "0.48610052", "0.4859894", "0.48592532", "0.48484924", "0.48333502", "0.48230767", "0.48179606", "0.48175278", "0.48145226", "0.48127103", "0.48081622", "0.4788183", "0.478606", "0.4785783" ]
0.55379134
29
The acceleration in the Xaxis.
public double getAccelX() { return m_accelerometer.getX(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getAccelX() {\n return mAccelX;\n }", "public double getAcceleration() {\r\n return acceleration;\r\n }", "public double getAcceleration() {\n return acceleration;\n }", "public float getAccX() {\n return accX_;\n }", "public float getAccX() {\n return accX_;\n }", "public Vector2D getAcceleration()\n\t{\n\t\treturn acceleration;\n\t}", "public double getDeltaX() {\n return deltaX;\n }", "public double getDeltaX() {\n return deltaX;\n }", "@JavascriptInterface\n public float getAccX(){\n return accX;\n }", "public double getDeltaX() {\n return deltaX;\n }", "public double getDeltaX() {\n\t\treturn deltaX;\n\t}", "public Vector3d getAcceleration() {\n return getMotion().getAcceleration();\n }", "public double getVelocityX() {\n\t\treturn velocity.getX();\n\t}", "@Basic\n\tpublic double getAx() {\n\t\treturn this.ax;\n\t}", "public void accelerate(){\n double acceleration = .1;\n if(xVel<0)\n xVel-=acceleration;\n if(xVel>0)\n xVel+=acceleration;\n if(yVel<0)\n yVel-=acceleration;\n if(yVel>0)\n yVel+=acceleration;\n System.out.println(xVel + \" \" + yVel);\n \n }", "public int deltaX() {\n\t\treturn _deltaX;\n\t}", "@Basic\n\tpublic double getXVelocity(){\n\t\treturn this.xVelocity;\n\t}", "public void inertia_x() {\n if (!isMovingLeft && !isMovingRight) {\n if (Math.abs(speedX) < acceleration) speedX = 0;\n else if (speedX < 0) speedX += acceleration;\n else speedX -= acceleration;\n }\n }", "public void setAcceleration(double acceleration) {\r\n this.acceleration = acceleration;\r\n }", "public double theXSpeed() {\n\t\treturn xSpeed;\n\t}", "public double getXSpeed() {\n return XSpeed;\n }", "int getDeltaX() {\n return deltaX;\n }", "private double getgAxis(ADXL345_I2C.Axes x) {\n return trollyAccelerometer.getAcceleration(x);\n }", "public Acceleration getGxAsAcceleration() {\n return new Acceleration(mGx, AccelerationUnit.METERS_PER_SQUARED_SECOND);\n }", "@java.lang.Override\n public float getX() {\n return x_;\n }", "public double getLeftXAxis() {\n\t\treturn getRawAxis(Axis_LeftX);\n\t}", "@java.lang.Override\n public float getX() {\n return x_;\n }", "@java.lang.Override\n public float getX() {\n return x_;\n }", "@java.lang.Override\n public float getX() {\n return x_;\n }", "@java.lang.Override\n public float getX() {\n return x_;\n }", "public float getXComponent() {\n return this.vx;\n }", "public double getAcceleration(ADXL345_I2C.Axes axis)\n {\n return accel.getAcceleration(axis);\n }", "double getAcceleration ();", "double deltaX() {\n return -Math.cos(Math.toRadians(this.theta)) * this.length;\n }", "public int getXVelocity()\r\n {\r\n return xVel;\r\n }", "public float getX() {\n return x_;\n }", "public float getX() {\n return x_;\n }", "@java.lang.Override\n public float getX() {\n return x_;\n }", "@java.lang.Override\n public float getX() {\n return x_;\n }", "@java.lang.Override\n public float getX() {\n return x_;\n }", "public int getVelX() {\r\n\t\treturn velX;\r\n\t}", "public ChartXAxis getXAxis() { return _xaxis; }", "public float getX() {\r\n\t\treturn x;\r\n\t}", "public double getX() {\n\t\t\t\treturn x;\n\t\t\t}", "public double getXVel() {\n return this.xVel;\n }", "public float getX() {\n return this.x;\n }", "public float getX() {\n return x;\n }", "public float getX() {\n return x;\n }", "public float getX() {\n return x;\n }", "public float getX() {\r\n return x;\r\n }", "public double getX() {\n\t\t\treturn x;\n\t\t}", "public double GetX(){\n return this._X;\n }", "public Float getX() {\n\t\treturn x;\n\t}", "public Float getX() {\n return _x;\n }", "public float getX() {\n return this.x;\n }", "@Override\n\tpublic float getX() {\n\t\treturn this.x;\n\t}", "private void setXAxis() {\n XAxis xAxis = mChart.getXAxis();\n xAxis.setGranularity(1f);\n xAxis.setGranularityEnabled(true);\n xAxis.setCenterAxisLabels(false);\n xAxis.setDrawGridLines(false);\n xAxis.setPosition(XAxis.XAxisPosition.BOTTOM);\n xAxis.setValueFormatter(new IndexAxisValueFormatter(getXAxisValues()));\n xAxis.setLabelCount(30);\n }", "public double getStartX() {\r\n return startx;\r\n }", "public double getXFactor() {\r\n\t\treturn x_factor;\r\n\t}", "public float getxPosition() {\n return xPosition;\n }", "@Override\n\tpublic float getX() \n\t{\n\t\treturn _x;\n\t}", "public int getX(){\n\t\tif(!resetCoordinates()) return 10000;\n\t\treturn Math.round(robot.translation.get(0)/ AvesAblazeHardware.mmPerInch);\n\t}", "public double getX() {\n\t\treturn bassX;\n\t}", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "float getAccX();", "public double getX_AxisMagnitudeDifference() {\n return 0;\n }", "public double getX() {\n\t\treturn x;\n\t}", "public double getX() {\n\t\treturn x;\n\t}", "public double getX() {\n\t\treturn x;\n\t}", "public double getX() {\n\t\treturn x;\n\t}", "public double getX() {\n\t\treturn x;\n\t}", "public double getX() {\n\t\treturn x;\n\t}", "public double getX() {\n\t\treturn x;\n\t}", "public double getLeftAcceleration() {\n return leftEnc.getAcceleration();\n }", "public double getX() {\n return mX;\n }", "double getx() {\n return this.x;\n }", "public int getX()\n {\n return xaxis;\n }", "@Override\n\tpublic int getSpeedX() {\n\t\treturn movementSpeed;\n\t}", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public float getHorizontalVelocity() {\n return mHorizontalVelocity;\n }", "public double getX() {\n return x;\r\n }", "public float getStartX() {return startX;}", "public double componentX () {\n\t\tdouble component = 0;\n\t\tcomponent = this.magnitude*Math.cos(this.angle);\n\t\treturn component;\n\t}", "public Float getxBegin() {\r\n return xBegin;\r\n }", "public double getX(){\n\t\treturn x;\n\t}", "public double getX() {\r\n return this.dx;\r\n }" ]
[ "0.7866651", "0.72503865", "0.724892", "0.7164032", "0.7151522", "0.7112409", "0.69043803", "0.69043803", "0.6899056", "0.68722475", "0.6827203", "0.68179715", "0.6809888", "0.6747651", "0.670374", "0.6683489", "0.66601217", "0.6650746", "0.6647777", "0.6641479", "0.663288", "0.6575733", "0.65640104", "0.6536434", "0.6518997", "0.6512002", "0.65095735", "0.65095735", "0.65095735", "0.65095735", "0.64914715", "0.6479137", "0.6478647", "0.6475483", "0.6459977", "0.6427792", "0.6423742", "0.6412392", "0.6412392", "0.6412392", "0.6402426", "0.64019334", "0.63963604", "0.63688207", "0.63620394", "0.63552916", "0.6350382", "0.6350382", "0.6350382", "0.63483304", "0.63439226", "0.63418806", "0.63409793", "0.6302136", "0.62933505", "0.6290123", "0.6284851", "0.62836146", "0.6280197", "0.62715197", "0.62690616", "0.62678623", "0.62546706", "0.62531984", "0.62531984", "0.62531984", "0.62531984", "0.62531984", "0.62531984", "0.62531984", "0.62529504", "0.62287736", "0.62196743", "0.6210139", "0.6210139", "0.6210139", "0.6210139", "0.6210139", "0.6210139", "0.6210139", "0.6209077", "0.6208508", "0.6205827", "0.62026477", "0.6202039", "0.6190165", "0.6190165", "0.6190165", "0.6190165", "0.6190165", "0.6190165", "0.6190165", "0.6190165", "0.61855125", "0.61786324", "0.61690617", "0.6168389", "0.61632776", "0.61618996", "0.61526614" ]
0.77425194
1
The acceleration in the Yaxis.
public double getAccelY() { return m_accelerometer.getY(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getAccelY() {\n return mAccelY;\n }", "public float getAccY() {\n return accY_;\n }", "public float getAccY() {\n return accY_;\n }", "public double getVelocityY() {\n\t\treturn velocity.getY();\n\t}", "public double getDeltaY() {\n return deltaY;\n }", "public double getDeltaY() {\n return deltaY;\n }", "public double getDeltaY() {\n return deltaY;\n }", "@Basic\n\tpublic double getYVelocity(){\n\t\treturn this.yVelocity;\n\t}", "double deltaY() {\n return Math.sin(Math.toRadians(this.theta)) * this.length;\n }", "public double getYVel() {\n return this.yVel;\n }", "public double getY() {\n\t\treturn bassY;\n\t}", "public double GetY(){\n return this._Y;\n }", "public float getYComponent() {\n return this.vy;\n }", "public Vector2D getAcceleration()\n\t{\n\t\treturn acceleration;\n\t}", "public double getY_vel() {\n return this.y_vel;\n }", "public int deltaY() {\n\t\treturn _deltaY;\n\t}", "public double getAcceleration() {\r\n return acceleration;\r\n }", "public double y() {\r\n return this.y;\r\n }", "public void inertia_y() {\n if (!isMovingUp && !isMovingDown) {\n if (Math.abs(speedY) < acceleration) speedY = 0;\n else if (speedY < 0) speedY += acceleration;\n else speedY -= acceleration;\n }\n }", "public double Y()\r\n {\r\n return curY;\r\n }", "public double getAcceleration() {\n return acceleration;\n }", "public double y() {\n return _y;\n }", "public double y() {\n return _y;\n }", "float getAccY();", "public int getY(){\n\t\tif(!resetCoordinates()) return 10000;\n\t\treturn Math.round(robot.translation.get(1)/ AvesAblazeHardware.mmPerInch);\n\t}", "public Double y() {\n return y;\n }", "public double getGyroAngleY() {\n return m_gyro.getAngleY();\n }", "public double y() { return y; }", "public double getY() {\n return mY;\n }", "@Basic\n\tpublic double getAy() {\n\t\treturn this.ay;\n\t}", "public double getY() {\n return this.y;\n }", "public double getY() {\n return this.y;\n }", "public double getY() {\n return this.y;\n }", "public double getAccelZ() {\n return m_accelerometer.getZ();\n }", "public double getY() {\r\n return this.y;\r\n }", "public double getY() {\n return y;\r\n }", "public float getVerticalSpeed() { return VerticalSpeed; }", "public SVGLength getY() {\n return y;\n }", "public double getY() {\r\n return y;\r\n }", "int getDeltaY() {\n return deltaY;\n }", "public double getY() {\n return y;\n }", "public double getY() {\n return y;\n }", "public double getY() {\n return y;\n }", "public double getY() {\n return y;\n }", "public double getY() {\n return y;\n }", "public double getY() {\n return y;\n }", "public double getY(){\n return this.y;\n }", "public double getYValue(){\n return(yValue);\n }", "public double getY(){\n\t\treturn y;\n\t}", "public double getEndY() {\n\treturn v2.getY();\n }", "public double getY() {\n return y;\n }", "public double getYRotate() {\n\t\tif (Math.abs(getRawAxis(Axis_YRotate)) > stickDeadband) {\n\t\t\treturn getRawAxis(Axis_YRotate);\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "public double getY()\n {\n return y;\n }", "public final double getY() {\n return y;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY()\n\t{\n\t\treturn y;\n\t}", "public double getY() {\n\t\treturn y;\n\t}", "public double getY() {\n\t\treturn y;\n\t}", "public double getY() {\n\t\treturn y;\n\t}", "public double getY() {\n\t\treturn y;\n\t}", "public float getVerticalVelocity( )\r\n {\r\n return this.v_velocity;\r\n }", "public double getY() { return y; }", "public final double getY() {\n return y;\n }", "double getAcceleration ();", "@Override\n\tpublic double getY() {\n\t\treturn y;\n\t}", "public double getY() {\r\n return this.dy;\r\n }", "public double y() { return _y; }", "public double getY(){\r\n return y;\r\n }", "public double getYDirection() {\r\n return Math.sin(Math.toRadians(angle));\r\n }", "public double getYValue(){\r\n\t\treturn ((Double)(super.yValue) ).doubleValue(); \r\n\t}", "public float getY() {\n return this.y;\n }", "public Double getY() {\n\t\treturn y;\n\t}", "public float getAverageY(){\r\n\t\treturn AverageY;\r\n\t}", "public double getY(){\n return y;\n }", "public double getY() {\r\n\t\t return this.yCoord;\r\n\t }", "public double getyCoord() {\n\t\treturn yCoord;\n\t}", "public int getYSpeed(){\n return ySpeed;\n }", "public float getY() {\n return this.y;\n }", "@MavlinkFieldInfo(\n position = 7,\n unitSize = 2,\n signed = true,\n description = \"Ground Y Speed (Longitude, positive east)\"\n )\n public final int vy() {\n return this.vy;\n }", "public Acceleration getGyAsAcceleration() {\n return new Acceleration(mGy, AccelerationUnit.METERS_PER_SQUARED_SECOND);\n }", "public double getY() {\r\n\t\t//throw new UnsupportedOperationException(\"TODO - implement\");\r\n\t\treturn pY;\r\n\t}", "public ArrayList<Double> getYValues(){\n\t\treturn byteIncrements;\n\t}", "public double getY() {\n\t\t//throw new UnsupportedOperationException(\"TODO - implement\");\n\t\treturn pY;\n\t}", "public float getTiltY() {\n return pm.pen.getLevelValue(PLevel.Type.TILT_Y);\n }", "@Override\n\tpublic float getY() {\n\t\treturn this.y;\n\t}" ]
[ "0.7948684", "0.74616545", "0.74388325", "0.7197737", "0.71592104", "0.71592104", "0.7147184", "0.7093685", "0.7076739", "0.70634305", "0.70530856", "0.70519954", "0.6957616", "0.69487417", "0.6919448", "0.68951607", "0.6858482", "0.68498087", "0.68409026", "0.68375075", "0.68316615", "0.6820572", "0.6820572", "0.68082416", "0.6740544", "0.6708079", "0.6707755", "0.67064166", "0.67021686", "0.66981757", "0.6654171", "0.6654171", "0.6654171", "0.66527015", "0.6651432", "0.66315466", "0.66148776", "0.6610786", "0.660865", "0.66083366", "0.6601811", "0.6601811", "0.6601811", "0.6601811", "0.6601811", "0.6601811", "0.6600539", "0.6598434", "0.65925354", "0.65873545", "0.657589", "0.6572649", "0.65687644", "0.6562618", "0.65617573", "0.6561601", "0.6561601", "0.6561601", "0.6561601", "0.6561601", "0.6561601", "0.6561601", "0.65594304", "0.65594304", "0.65594304", "0.655884", "0.655884", "0.655884", "0.655884", "0.655884", "0.6555551", "0.6555038", "0.6555038", "0.6555038", "0.6555038", "0.6551316", "0.6545862", "0.65394515", "0.653554", "0.653412", "0.65287155", "0.652644", "0.65226144", "0.6508732", "0.65016663", "0.6496722", "0.64933455", "0.6488275", "0.6483209", "0.64675707", "0.6463298", "0.6463013", "0.64523226", "0.6449091", "0.6437386", "0.6436738", "0.64257044", "0.6425198", "0.6424889", "0.64248604" ]
0.7960618
0
The acceleration in the Zaxis.
public double getAccelZ() { return m_accelerometer.getZ(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getAccelZ() {\n return mAccelZ;\n }", "public float getAccZ() {\n return accZ_;\n }", "public float getAccZ() {\n return accZ_;\n }", "public double getAcceleration() {\n return acceleration;\n }", "public double getAcceleration() {\r\n return acceleration;\r\n }", "public Vector2D getAcceleration()\n\t{\n\t\treturn acceleration;\n\t}", "public Vector3d getAcceleration() {\n return getMotion().getAcceleration();\n }", "public Acceleration getGzAsAcceleration() {\n return new Acceleration(mGz, AccelerationUnit.METERS_PER_SQUARED_SECOND);\n }", "public float getZ() {\n return z_;\n }", "public float getZ() {\n return z_;\n }", "public float getZ() {\r\n return z;\r\n }", "public double getDeltaZ() {\n return deltaZ;\n }", "public double getDeltaZ() {\n return deltaZ;\n }", "public double getDeltaZ() {\n return deltaZ;\n }", "public final double getZ() {\n return z;\n }", "public double getZ() {\n\t\treturn z;\n\t}", "public double getZ() {\n\t\treturn z;\n\t}", "public double getZ() {\r\n return z;\r\n }", "public double getZ() {\r\n\t\treturn z;\t\r\n\t\t}", "public double getZ(){\n\t\treturn z;\n\t}", "float getAccZ();", "public double getZFactor() {\r\n\t\treturn z_factor;\r\n\t}", "double getAcceleration ();", "public int getZ()\n {\n return zaxis;\n }", "@Override\n\tpublic double getZ() {\n\t\treturn z;\n\t}", "@java.lang.Override\n public float getZ() {\n return z_;\n }", "@java.lang.Override\n public float getZ() {\n return z_;\n }", "@java.lang.Override\n public float getZ() {\n return z_;\n }", "@java.lang.Override\n public float getZ() {\n return z_;\n }", "public double getZ() {\n return position.getZ();\n }", "public Double z() {\n return z;\n }", "float getZ();", "float getZ();", "float getZ();", "public float getAccelX() {\n return mAccelX;\n }", "public float getZ()\n {\n return fz;\n }", "public double getZ() {\n\t\treturn point[2];\n\t}", "public int getZ() {\n\t\treturn z;\n\t}", "public double getz0()\n\t{\n\t\treturn this.z0;\n\t}", "@MavlinkFieldInfo(\n position = 8,\n unitSize = 2,\n signed = true,\n description = \"Ground Z Speed (Altitude, positive down)\"\n )\n public final int vz() {\n return this.vz;\n }", "public int getZ() {\n return Z;\n }", "double getz() {\nreturn this.z;\n }", "public float getAccelY() {\n return mAccelY;\n }", "@NativeType(\"ovrVector3f\")\n public OVRVector3f AngularAcceleration() { return nAngularAcceleration(address()); }", "public int getZ() {\n return z;\n }", "public double getAccelX() {\n return m_accelerometer.getX();\n }", "public int getZ() {\r\n return z;\r\n }", "public float getZ(){\n\t\tif(!isRoot()){\n\t\t\treturn getParent().getZ() + z;\n\t\t}else{\n\t\t\treturn z;\n\t\t}\n\t}", "public float getRotateZ() { return rotateZ; }", "public final double getZ()\n {\n return m_jso.getZ();\n }", "public Vector3 getEulerAnglesAcceleration() {\n\t\treturn eulerAnglesAcceleration;\n\t}", "public double Z_r() {\r\n \t\treturn getZ();\r\n \t}", "public double getAccelY() {\n return m_accelerometer.getY();\n }", "public int getZ() {\n\t\treturn -150;\n\t}", "double getZ() { return pos[2]; }", "public double getAcceleration(ADXL345_I2C.Axes axis)\n {\n return accel.getAcceleration(axis);\n }", "public final int zzc() {\n return this.zzc.zzc() + this.zza;\n }", "@Override\n\tpublic int getZ() {\n\t\treturn 1000;\n\t}", "@java.lang.Override\n public godot.wire.Wire.Vector3 getZ() {\n return z_ == null ? godot.wire.Wire.Vector3.getDefaultInstance() : z_;\n }", "public int getZ() {\n return Z;\n }", "public double getGyroAngleZ() {\n return m_gyro.getAngleZ();\n }", "public double getDz() {\n return dz;\n }", "public void onAccelerationChanged(float x, float y, float z) {\n\n }", "public int getzPos() {\n return zPos;\n }", "public Double z() {\n return this.f917a.getAsDouble(\"CFG_LOCATION_LATITUDE\");\n }", "public void calcAcceleration() {\n double firstSpeed = get(0).distanceTo(get(1)) / ((get(1).getTime() - get(0).getTime()) * INTER_FRAME_TIME);\n double lastSpeed = get(length() - 2).distanceTo(get(length() - 1))\n / ((get(length() - 1).getTime() - get(length() - 2).getTime()) * INTER_FRAME_TIME);\n avgAcceleration = (firstSpeed + lastSpeed) / ((get(length() - 1).getTime() - get(0).getTime()) * INTER_FRAME_TIME);\n }", "public float getLocalZ(){\n\t\treturn this.z;\n\t}", "public void setAcceleration(double acceleration) {\r\n this.acceleration = acceleration;\r\n }", "public double getAngleXY() {\r\n\t\tdouble l = this.lenght();\r\n\t\tif (l==0)\r\n\t\t\treturn 0;\r\n\t\treturn Math.asin(this.z/l);\r\n\t}", "public float getSpring_damping_ang_z() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 124);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 116);\n\t\t}\n\t}", "public void getGzAsAcceleration(final Acceleration result) {\n result.setValue(mGz);\n result.setUnit(AccelerationUnit.METERS_PER_SQUARED_SECOND);\n }", "public double getAverageAcceleration() {\n return (leftEnc.getAcceleration() + rightEnc.getAcceleration()) / 2;\n }", "private Vector2d acceleration(Vector2d position, Vector2d velocity) {\n\t\tVector2d gradient = course.height.gradient(position);\n\t\tdouble accelerationX = -GRAVITY * (gradient.x + course.getFriction() * velocity.x / velocity.length());\n\t\tdouble accelerationY = -GRAVITY * (gradient.y + course.getFriction() * velocity.y / velocity.length());\n\t\treturn new Vector2d(accelerationX,accelerationY);\n\t}", "public double getAzDiff() {\n\t\treturn azDiff;\n\t}", "public Float getZwsalary() {\n return zwsalary;\n }", "public double getLeftAcceleration() {\n return leftEnc.getAcceleration();\n }", "godot.wire.Wire.Vector3 getZ();", "public void accelerate(){\n double acceleration = .1;\n if(xVel<0)\n xVel-=acceleration;\n if(xVel>0)\n xVel+=acceleration;\n if(yVel<0)\n yVel-=acceleration;\n if(yVel>0)\n yVel+=acceleration;\n System.out.println(xVel + \" \" + yVel);\n \n }", "public double getGz() {\n return mGz;\n }", "Double getZLength();", "@Override\n public int getZ() {\n return (int) claim.getZ();\n }", "public float getAirspeed() { return Airspeed; }", "public double getModZ() {\n return (modZ != 0 ? ( modZ > 0 ? (modZ - RESTADOR) : (modZ + RESTADOR) ) : modZ);\n }", "public String getZcxz() {\n return zcxz;\n }", "public Acceleration getGyAsAcceleration() {\n return new Acceleration(mGy, AccelerationUnit.METERS_PER_SQUARED_SECOND);\n }", "public int getZX() {\n\t\treturn zX;\n\t}", "public float getSpring_damping_z() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 112);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 104);\n\t\t}\n\t}", "@Override\n\tpublic double getZPos() {\n\t\treturn field_145849_e;\n\t}", "double getZLength();", "public float approach_z_GET()\n { return (float)(Float.intBitsToFloat((int) get_bytes(data, 49, 4))); }", "public godot.wire.Wire.Vector3 getZ() {\n if (zBuilder_ == null) {\n return z_ == null ? godot.wire.Wire.Vector3.getDefaultInstance() : z_;\n } else {\n return zBuilder_.getMessage();\n }\n }", "public Acceleration getGxAsAcceleration() {\n return new Acceleration(mGx, AccelerationUnit.METERS_PER_SQUARED_SECOND);\n }", "public final int zzb() {\n return this.zzx;\n }", "public double getAlpha()\n\t{\n\t\treturn Math.toRadians(alpha);\n\t}", "public double getAngleYZ() {\r\n\t\tdouble l = this.lenght();\r\n\t\tif (l==0)\r\n\t\t\treturn 0;\r\n\t\treturn Math.asin(this.x/l);\r\n\t}", "public float approach_z_GET()\n { return (float)(Float.intBitsToFloat((int) get_bytes(data, 48, 4))); }", "public double getAzInt() {\n\t\treturn 3600.0 * azInt;\n\t}", "public final int zzb() {\n return this.zzc.zzc() + this.zza + this.zzb;\n }", "private static Vector2 calculateAcceleration(PhysicsGameObject obj){\n Vector2 gravity = gravityForce(obj);\n Vector2 friction = frictionForce(obj);\n return new Vector2(friction.x + gravity.x,friction.y + gravity.y);\n }", "public double getAngleXZ() {\r\n\t\tdouble l = this.lenght();\r\n\t\tif (l==0)\r\n\t\t\treturn 0;\r\n\t\treturn Math.asin(this.y/l);\r\n\t}" ]
[ "0.84331524", "0.7884202", "0.7869654", "0.779211", "0.77766997", "0.76899594", "0.7523443", "0.7404988", "0.734152", "0.73400366", "0.7339366", "0.7335941", "0.7335941", "0.7324594", "0.7321894", "0.7297723", "0.7297723", "0.72859335", "0.72407037", "0.72219694", "0.72036827", "0.71405256", "0.71306354", "0.71228373", "0.7088925", "0.70860237", "0.70860237", "0.70412785", "0.70412785", "0.6995197", "0.6864307", "0.6861324", "0.6861324", "0.6861324", "0.6840996", "0.6801059", "0.6789853", "0.67763454", "0.6770632", "0.66952485", "0.6688998", "0.6659187", "0.66533715", "0.6614592", "0.6606003", "0.66029716", "0.65970635", "0.6588529", "0.6582058", "0.65548486", "0.6522606", "0.65207404", "0.64849824", "0.64777243", "0.6472278", "0.6449765", "0.6448928", "0.64403456", "0.6420469", "0.6415624", "0.6394517", "0.6388553", "0.6342125", "0.6339903", "0.6332293", "0.6324504", "0.6313519", "0.62919873", "0.62799716", "0.6266467", "0.6260313", "0.62564385", "0.624417", "0.6189692", "0.61848295", "0.6183459", "0.6179092", "0.61778903", "0.61472875", "0.61359656", "0.61342", "0.61317366", "0.613134", "0.61271685", "0.6121917", "0.6109918", "0.60952884", "0.60920346", "0.6072907", "0.6069585", "0.60521483", "0.6048472", "0.6034386", "0.60143983", "0.6004439", "0.5997391", "0.5995919", "0.5994644", "0.59923095", "0.5982552" ]
0.8354063
1
Current angle of the Romi around the Xaxis.
public double getGyroAngleX() { return m_gyro.getAngleX(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getXAngle(){\n Point project=new Point(0,accel.y,accel.z);\n\n float angl=(float)Math.asin(project.y / project.module())* PreferenceHelper.sensetivity;\n //float angl=(float)Math.acos(accel.z/accel.module())*100f;\n if(Float.isNaN(angl)) angl=0.5f;\n return (float)(Math.rint( toFlowX(angl)/1.0) * 1.0);\n }", "public double getAngle() {\n\t\treturn navx.getAngle();\n\t}", "public double currentAngle() {\n return imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES).firstAngle;\r\n }", "private double getAngle() {\n double normal= Math.sqrt(((getgAxis(ADXL345_I2C.Axes.kX))*(getgAxis(ADXL345_I2C.Axes.kX)))+((getgAxis(ADXL345_I2C.Axes.kY))*(getgAxis(ADXL345_I2C.Axes.kY))));\n\n return MathUtils.atan(normal / getgAxis(ADXL345_I2C.Axes.kZ));\n }", "private double getAngle()\n {\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n return angles.firstAngle;\n }", "public double angle() {\n return Math.atan2(_y,_x);\n }", "private double getAngle(){\n //Get a new angle measurement\n angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n //Get the difference between current angle measurement and last angle measurement\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n //Process the angle to keep it within (-180,180)\n //(Once angle passes +180, it will rollback to -179, and vice versa)\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n //Add the change in angle since last measurement (deltaAngle)\n //to the change in angle since last reset (globalAngle)\n globalAngle += deltaAngle;\n //Set last angle measurement to current angle measurement\n lastAngles = angles;\n\n return globalAngle;\n }", "public double getAngleXY() {\r\n\t\tdouble l = this.lenght();\r\n\t\tif (l==0)\r\n\t\t\treturn 0;\r\n\t\treturn Math.asin(this.z/l);\r\n\t}", "public double getAngle()\n {\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return globalAngle;\n }", "private double getAngle()\n {\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return globalAngle;\n }", "public double getAngle ()\n {\n return angle_;\n }", "public int getAngle() {\r\n return angle;\r\n }", "public double getAngle() {\n return angle;\n }", "public double getAngle() {\n return angle;\n }", "private double getAngle() {\n // We experimentally determined the Z axis is the axis we want to use for\n // heading angle. We have to process the angle because the imu works in\n // euler angles so the Z axis is returned as 0 to +180 or 0 to -180\n // rolling back to -179 or +179 when rotation passes 180 degrees. We\n // detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC,\n AxesOrder.ZYX, AngleUnit.DEGREES);\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return globalAngle;\n }", "public double getAngle() { return angle; }", "double getAngle();", "double getAngle();", "public double getAngle();", "public int getAngle() {\r\n\t\treturn angle;\r\n\t}", "public double getAngle() {\n\t\treturn angle;\n\t}", "public double getAngle() {\n\t\treturn angle;\n\t}", "public int getAngle(){\n\t\tif(!resetCoordinates()&&robot.imu1.isGyroCalibrated()){\n\t\t\trobot.angles=robot.imu1.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\t\t\tdouble currentAngle=robot.angles.firstAngle;\n\t\t\tint finalAngle= robot.startingAngle+(int)Math.round(currentAngle);\n\t\t\tif(finalAngle<0){\n\t\t\t\treturn 360+finalAngle;\n\t\t\t}\n\t\t\treturn finalAngle;\n\n\t\t}\n\t\telse if(!resetCoordinates()&&robot.imu.isGyroCalibrated()){\n\t\t\trobot.angles=robot.imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.YZX, AngleUnit.DEGREES);\n\t\t\tdouble currentAngle=robot.angles.firstAngle;\n\t\t\tint finalAngle= robot.startingAngle+(int)Math.round(currentAngle);\n\t\t\tif(finalAngle<0){\n\t\t\t\treturn 360+finalAngle;\n\t\t\t}\n\t\t\treturn finalAngle;\n\n\t\t}\n\t\telse if(resetCoordinates()){\n\t\t\tdouble oldAngle = robot.rotation.thirdAngle;\n\t\t\tdouble posAngle = oldAngle;\n\t\t\tint finalAngle;\n\t\t\tif (oldAngle < 0) posAngle = 360 - Math.abs(oldAngle);\n\t\t\tif((int) (Math.round(posAngle)) - 45 < 0){\n\t\t\t\tfinalAngle = 360-(int)Math.round(posAngle);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfinalAngle = (int) (Math.round(posAngle)) - 45;\n\t\t\t}\n\t\t\treturn finalAngle;\n\t\t}\n\t\telse{\n\t\t\treturn 10000;\n\t\t}\n\t}", "public double angle()\n {\n return Math.atan2(this.y, this.x);\n }", "public float getAngle() {\n return angle;\n }", "public int getAngle(){\n\t\treturn (int)angle;\n\t}", "public double getAngle(){\n\t\treturn this.angle;\n\t}", "public float getAngle() {\n return angle;\n }", "public double toAngle()\n\t{\n\t\treturn Math.toDegrees(Math.atan2(y, x));\n\t}", "public double getXDirection() {\r\n return Math.cos(Math.toRadians(angle));\r\n }", "public double getXRotate() {\n\t\tif (Math.abs(getRawAxis(Axis_XRotate)) > stickDeadband) {\n\t\t\treturn getRawAxis(Axis_XRotate);\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "public double getAngle() {\n\t\treturn armMotor.getEncPosition();\n\t}", "public double getMyAngle() {\n return myAngle- STARTING_ANGLE;\n }", "public double getAngle() {\n\t\treturn 180 * (this.N - 2) / this.N;\n\t}", "public int angleOX() {\n if (B.getY() == A.getY()) {\r\n return 0;\r\n } else if (A.getX() == B.getX()) {\r\n return 90;\r\n }\r\n else {\r\n float fi = ((float) (B.getY() - A.getY()) / (B.getX() - A.getX()));\r\n if (fi<0){\r\n return (int)(fi*(-1));\r\n }\r\n else return (int)(fi);\r\n }\r\n }", "public float getAngle() {\n return mAngle;\n }", "public double getAngle() {\n return Math.atan2(sinTheta, cosTheta);\n }", "public double getStartAngle();", "public double getAngle()\n {\n return (AngleAverage);\n }", "public double getAngleXZ() {\r\n\t\tdouble l = this.lenght();\r\n\t\tif (l==0)\r\n\t\t\treturn 0;\r\n\t\treturn Math.asin(this.y/l);\r\n\t}", "public double findAngle() {\n return 0d;\n }", "public double getAngle() {\n synchronized (this.angleLock) {\n return this.movementComposer.getOrientationAngle();\n }\n }", "public float getBaseHorizontalViewAngle() {\n \treturn mCamera.getParameters().getHorizontalViewAngle();\n }", "public double getAngle () {\n return super.getAngle() % 360D;\n }", "public double getAngle() {\n\t\treturn this.position[2];\n\t}", "public double getAngleInDegrees() {\n return intakeAngle;\n }", "public double ang()\n {\n \treturn Math.atan(y/x);\n }", "@Override\n\tpublic float getCenterOfRotationX() {\n\t\treturn 0.25f;\n\t}", "public static double rotation()\r\n\t{\r\n\t\treturn -(mxp.getAngle()/45);\r\n\t}", "public static double getAngle() {\n return NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"ts\").getDouble(0);\n }", "public double angle() {\n double angle = Math.toDegrees(Utilities.calculateAngle(this.dx, -this.dy));\n return angle;\n }", "public double getStartAngle() {\n return startAngle;\n }", "public double getGryoAngle() {\n\n\t\t// Normalize the angle\n\t\tdouble angle = gyro.getAngle() % 360;\n\n\t\tif (angle < 0) {\n\t\t\tangle = angle + 360;\n\t\t}\n\n\t\treturn angle;\n\t}", "public float getAzimuthAngle()\n {\n return azimuth_slider.getValue() / ANGLE_SCALE_FACTOR;\n }", "public double getAngle() {\n if (r == 0) {\n if (i == 0)\n return 0;// error?\n if (i > 0)\n return p2;\n else\n return -p2;\n }\n double d = Math.atan(i / r);\n if (r >= 0) {\n return d;\n }\n if (i >= 0)\n return Math.PI + d;\n return d + Math.PI;\n }", "public double getAngle2() {\n\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return (globalAngle);\n\n }", "public double theta() { return Math.atan2(y, x); }", "public double getRotation() {\n return Degrees.atan2(y, x);\n }", "public double getAngle() {\n\t\treturn Math.atan2(imaginary, real);\n\t}", "public double getYawAngle () {\n return gyro.getAngle() * Math.PI / 180; //Convert the angle to radians.\n }", "public double getRotationAngle() {\n\t\treturn _rotationAngle;\n\t}", "public float getRotationX() {\n return mRotationX;\n }", "public double getPerihelionAngle() {\n return perihelionAngle;\n }", "public double getAngle() {\n\treturn CVector.heading(v1, v2);\n }", "public double getAngle() {\n\t\tdouble angle = Math.atan2(imaginary, real);\n\t\tangle = fixNegativeAngle(angle);\n\n\t\treturn angle;\n\t}", "public double getRawAngle()\n {\n double Angle = 0.0;\n\n switch (MajorAxis)\n {\n case X:\n Angle = getAngleX();\n break;\n case Y:\n Angle = getAngleY();\n break;\n case Z:\n Angle = getAngleZ();\n break;\n }\n\n return(Angle);\n }", "public int getCurrentAngle(){\n return flatbed.currentAngle;\n }", "public float getAngle () {\n\t\treturn body.getAngle();\n\t}", "public double getAngleYZ() {\r\n\t\tdouble l = this.lenght();\r\n\t\tif (l==0)\r\n\t\t\treturn 0;\r\n\t\treturn Math.asin(this.x/l);\r\n\t}", "private float calculateAngle() {\r\n\r\n\t\tdouble angleTemp = Math.atan2(Target.getY() - y, Target.getX() - x);\r\n\t\t// I needed to use wikipedia to get this i\r\n\t\t// did not learn this in math and needed\r\n\t\t// to use a couplle youtube tutorials to\r\n\t\t// find out how to do the math in java\r\n\t\t// aswell thank fully one had the exact\r\n\t\t// way of doing this\r\n\t\treturn (float) Math.toDegrees(angleTemp) + 90;\r\n\t}", "public double getAngle() {\n try {\n switch(Coordinates.angleUnit()) {\n case Coordinates.RADIAN:\n\treturn Double.parseDouble(deg.getText().trim());\n case Coordinates.DEGRE:\n\treturn Math.PI * Double.parseDouble(deg.getText().trim()) / 180.0;\n case Coordinates.DEGMN:\n\tString d = deg.getText().trim();\n\tif(d.length() == 0)\n\t d = \"0\";\n\tString m = mn.getText().trim();\n\tif(m.length() == 0)\n\t m = \"0\";\n\treturn Coordinates.parseAngle(d + \"11\" + m + \"'\");\n case Coordinates.DEGMNSEC:\n\td = deg.getText().trim();\n\tif(d.length() == 0)\n\t d = \"0\";\n\tm = mn.getText().trim();\n\tif(m.length() == 0)\n\t m = \"0\";\n\tString s = sec.getText().trim();\n\tif(s.length() == 0)\n\t s = \"0\";\n\treturn Coordinates.parseAngle(d + \"11\" + m + \"'\" + s + \"\\\"\");\n }\n }\n catch(NumberFormatException e) {\n }\n return 0.0;\n }", "public double\nangleInXYPlane()\n{\n\tBVector2d transPt = new BVector2d(\n\t\tthis.getP2().getX() - this.getP1().getX(),\n\t\tthis.getP2().getY() - this.getP1().getY());\n\t\n\t// debug(\"transPt: \" + transPt);\n\n\tdouble angle = MathDefines.RadToDeg * new Vector2d(1.0, 0.0).angle(transPt);\n\tif (transPt.getY() < 0.0)\n\t{\n\t\t// debug(\"ang0: \" + (360.0 - angle));\n\t\treturn(360.0 - angle);\n\t}\n\t// debug(\"ang1: \" + angle);\n\treturn(angle);\n}", "public float getAngle() {\n if(vectorAngle < 0 )\n return (float) Math.toDegrees(Math.atan(longComponent / latComponent));\n else\n return vectorAngle;\n\n }", "public int getOpeningAngle()\n {\n return this.openingAngle;\n }", "public double getRotationAngleInRadians() {\n return Math.toRadians(rotationAngle);\n }", "public float getRotationAngle() {\n return this.mRotationAngle;\n }", "public double getTheta(){\n return Math.atan(this.y / this.x);\n }", "public double getAngle(float x, float y )\n {\n double dx = x - centerX;\n // Minus to correct for coord re-mapping\n double dy = -(y - centerY);\n\n double inRads = Math.atan2(dy,dx);\n\n // We need to map to coord system when 0 degree is at 3 O'clock, 270 at 12 O'clock\n if (inRads < 0)\n inRads = Math.abs(inRads);\n else\n inRads = 2*Math.PI - inRads;\n\n return Math.toDegrees(inRads);\n }", "private double getRawAngle() {\n return (m_pot.getVoltage() / Constants.AIO_MAX_VOLTAGE) * Constants.Hood.POT_SCALE;\n }", "public double nextAngle()\n {\n return nextAngle();\n }", "private void resetAngle() {\n lastAngles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n startAngles = lastAngles;\n globalAngle = 0;\n }", "public int getGyroAngle() {\r\n \treturn (int)Math.round(gyro.getAngle());\r\n }", "public void setAngle( double a ) { angle = a; }", "public double getTurnAngle() {\n return getTurnAngle(turnEncoder.getCount());\n }", "public String getUnitOfViewAngle() {\n \treturn \"degrees\";\n }", "public void resetAngle() {\n lastAngles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n globalAngle = 0;\n\n }", "public Rotation2d getAngle() {\n // Note: This assumes the CANCoders are setup with the default feedback coefficient\n // and the sesnor value reports degrees.\n return Rotation2d.fromDegrees(canCoder.getAbsolutePosition());\n }", "public AccOrientation calculateAngle(SensorEvent event) {\t\t\n\t final int _DATA_X = 0;\n\t final int _DATA_Y = 1;\n\t final int _DATA_Z = 2;\n\t // Angle around x-axis thats considered almost perfect vertical to hold\n\t // the device\n\t final int PIVOT = 20;\n\t // Angle around x-asis that's considered almost too vertical. Beyond\n\t // this angle will not result in any orientation changes. f phone faces uses,\n\t // the device is leaning backward.\n\t final int PIVOT_UPPER = 65;\n\t // Angle about x-axis that's considered negative vertical. Beyond this\n\t // angle will not result in any orientation changes. If phone faces uses,\n\t // the device is leaning forward.\n\t final int PIVOT_LOWER = -10;\n\t // Upper threshold limit for switching from portrait to landscape\n\t final int PL_UPPER = 295;\n\t // Lower threshold limit for switching from landscape to portrait\n\t final int LP_LOWER = 320;\n\t // Lower threshold limt for switching from portrait to landscape\n\t final int PL_LOWER = 270;\n\t // Upper threshold limit for switching from landscape to portrait\n\t final int LP_UPPER = 359;\n\t // Minimum angle which is considered landscape\n\t final int LANDSCAPE_LOWER = 235;\n\t // Minimum angle which is considered portrait\n\t final int PORTRAIT_LOWER = 60;\n\t \n\t // Internal value used for calculating linear variant\n\t final float PL_LF_UPPER =\n\t ((float)(PL_UPPER-PL_LOWER))/((float)(PIVOT_UPPER-PIVOT));\n\t final float PL_LF_LOWER =\n\t ((float)(PL_UPPER-PL_LOWER))/((float)(PIVOT-PIVOT_LOWER));\n\t // Internal value used for calculating linear variant\n\t final float LP_LF_UPPER =\n\t ((float)(LP_UPPER - LP_LOWER))/((float)(PIVOT_UPPER-PIVOT));\n\t final float LP_LF_LOWER =\n\t ((float)(LP_UPPER - LP_LOWER))/((float)(PIVOT-PIVOT_LOWER));\n\t \n\t int mSensorRotation = -1; \n\t \n\t\t\tfinal boolean VERBOSE = true;\n float[] values = event.values;\n float X = values[_DATA_X];\n float Y = values[_DATA_Y];\n float Z = values[_DATA_Z];\n float OneEightyOverPi = 57.29577957855f;\n float gravity = (float) Math.sqrt(X*X+Y*Y+Z*Z);\n float zyangle = (float)Math.asin(Z/gravity)*OneEightyOverPi;\n int rotation = -1;\n float angle = (float)Math.atan2(Y, -X) * OneEightyOverPi;\n int orientation = 90 - (int)Math.round(angle);\n AccOrientation result = new AccOrientation();\n \n while (orientation >= 360) {\n orientation -= 360;\n } \n while (orientation < 0) {\n orientation += 360;\n }\n result.orientation = orientation;\n result.angle = zyangle; \n result.threshold = 0;\n if ((zyangle <= PIVOT_UPPER) && (zyangle >= PIVOT_LOWER)) {\n // Check orientation only if the phone is flat enough\n // Don't trust the angle if the magnitude is small compared to the y value\n \t/*\n float angle = (float)Math.atan2(Y, -X) * OneEightyOverPi;\n int orientation = 90 - (int)Math.round(angle);\n normalize to 0 - 359 range\n while (orientation >= 360) {\n orientation -= 360;\n } \n while (orientation < 0) {\n orientation += 360;\n }\n mOrientation.setText(String.format(\"Orientation: %d\", orientation));\n */ \n // Orientation values between LANDSCAPE_LOWER and PL_LOWER\n // are considered landscape.\n // Ignore orientation values between 0 and LANDSCAPE_LOWER\n // For orientation values between LP_UPPER and PL_LOWER,\n // the threshold gets set linearly around PIVOT.\n if ((orientation >= PL_LOWER) && (orientation <= LP_UPPER)) {\n float threshold;\n float delta = zyangle - PIVOT;\n if (mSensorRotation == ROTATION_090) {\n if (delta < 0) {\n // Delta is negative\n threshold = LP_LOWER - (LP_LF_LOWER * delta);\n } else {\n threshold = LP_LOWER + (LP_LF_UPPER * delta);\n }\n rotation = (orientation >= threshold) ? ROTATION_000 : ROTATION_090;\n if (mShowLog) \n \tLog.v(TAG, String.format(\"CASE1. %2.4f %d %2.4f %d\", delta, orientation, threshold, rotation));\n } else {\n if (delta < 0) {\n // Delta is negative\n threshold = PL_UPPER+(PL_LF_LOWER * delta);\n } else {\n threshold = PL_UPPER-(PL_LF_UPPER * delta);\n }\n rotation = (orientation <= threshold) ? ROTATION_090: ROTATION_000;\n if (mShowLog)\n \tLog.v(TAG, String.format(\"CASE2. %2.4f %d %2.4f %d\", delta, orientation, threshold, rotation));\n }\n result.threshold = threshold;\n } else if ((orientation >= LANDSCAPE_LOWER) && (orientation < LP_LOWER)) {\n rotation = ROTATION_090;\n if (mShowLog)\n \tLog.v(TAG, String.format(\"CASE3. 90 (%d)\", orientation));\n } else if ((orientation >= PL_UPPER) || (orientation <= PORTRAIT_LOWER)) {\n rotation = ROTATION_000;\n if (mShowLog)\n \tLog.v(TAG, String.format(\"CASE4. 00 (%d)\", orientation)); \n } else {\n \tif (mShowLog)\n \t\tLog.v(TAG, \"CASE5. \"+orientation);\n }\n if ((rotation != -1) && (rotation != mSensorRotation)) {\n mSensorRotation = rotation;\n if (mSensorRotation == ROTATION_000) {\n \t\t//setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n \tif (mShowLog)\n \t\tLog.w(TAG, \"Rotation: 00\");\n }\n else if (mSensorRotation == ROTATION_090) \n {\n \t\t//setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);\n \tif (mShowLog)\n \t\tLog.w(TAG, \"Rotation: 90\");\n } \n }\n result.rotation = rotation;\n } else {\n \t//Log.v(TAG, String.format(\"Invalid Z-Angle: %2.4f (%d %d)\", zyangle, PIVOT_LOWER, PIVOT_UPPER));\n }\t\n return result;\n\t\t}", "double deltaX() {\n return -Math.cos(Math.toRadians(this.theta)) * this.length;\n }", "double getCalibratedLevelAngle();", "private void resetAngle() {\n lastAngles = imu.getAngularOrientation(AxesReference.INTRINSIC,\n AxesOrder.ZYX, AngleUnit.DEGREES);\n globalAngle = 0;\n }", "@Override\n\tfinal public void rotate(double angle, Axis axis)\n\t{\n\t\t//center.setDirection(angle);\n\t}", "private void resetAngle()\n {\n lastAngles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n globalAngle = 0;\n }", "public double getAngleToTarget(){\n return 0d;\n }", "EDataType getAngleDegrees();", "public double PlaneAngle() {\n return OCCwrapJavaJNI.Units_Dimensions_PlaneAngle(swigCPtr, this);\n }", "public double getGyroAngle() {\n double[] ypr = new double[3];\n gyro.GetYawPitchRoll(ypr);\n return ypr[0];\n }", "@JavascriptInterface\n public float getAccX(){\n return accX;\n }", "private double getAngle(double y, double x) {\n\t\tdouble angle = Math.atan2(y, x);\n\t\tif (angle < 0)\n\t\t\tangle += 2 * Math.PI;\n\t\treturn angle;\n\t}", "@Basic\n\tpublic double getAx() {\n\t\treturn this.ax;\n\t}" ]
[ "0.75107974", "0.7496722", "0.7424458", "0.73138726", "0.72876203", "0.72601634", "0.72321206", "0.7155802", "0.7152862", "0.7150746", "0.714772", "0.7142025", "0.71381646", "0.71381646", "0.71247125", "0.7124434", "0.7122307", "0.7122307", "0.7118678", "0.709848", "0.70929176", "0.70929176", "0.70831895", "0.70802796", "0.7074528", "0.7067171", "0.7056673", "0.70503086", "0.7041846", "0.7037965", "0.6980964", "0.6972601", "0.69525176", "0.6914947", "0.6867577", "0.68618387", "0.68446815", "0.6818692", "0.68085366", "0.68073237", "0.6801714", "0.67949027", "0.6794664", "0.6787971", "0.677625", "0.67380524", "0.6726742", "0.6721154", "0.67102176", "0.6704737", "0.6664537", "0.66535616", "0.664169", "0.6602148", "0.65866774", "0.6561439", "0.65220934", "0.64954126", "0.6438079", "0.64332545", "0.6401853", "0.6363262", "0.63578767", "0.6355088", "0.63408035", "0.6332765", "0.63313854", "0.6312718", "0.62965435", "0.6287014", "0.62729645", "0.6272926", "0.6272768", "0.62701714", "0.6250705", "0.6249175", "0.62162566", "0.6188754", "0.61717933", "0.6151543", "0.6132413", "0.61190027", "0.6113578", "0.6111198", "0.60979337", "0.6085221", "0.6071307", "0.60603267", "0.60603243", "0.6059877", "0.6050499", "0.60452974", "0.6045277", "0.60354596", "0.60270476", "0.6026307", "0.6008941", "0.6002931", "0.59900117", "0.5985163" ]
0.6568279
55
Current angle of the Romi around the Yaxis.
public double getGyroAngleY() { return m_gyro.getAngleY(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double getAngle(){\n //Get a new angle measurement\n angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n //Get the difference between current angle measurement and last angle measurement\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n //Process the angle to keep it within (-180,180)\n //(Once angle passes +180, it will rollback to -179, and vice versa)\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n //Add the change in angle since last measurement (deltaAngle)\n //to the change in angle since last reset (globalAngle)\n globalAngle += deltaAngle;\n //Set last angle measurement to current angle measurement\n lastAngles = angles;\n\n return globalAngle;\n }", "public double getAngle2() {\n\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return (globalAngle);\n\n }", "public double currentAngle() {\n return imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES).firstAngle;\r\n }", "public double getYRotate() {\n\t\tif (Math.abs(getRawAxis(Axis_YRotate)) > stickDeadband) {\n\t\t\treturn getRawAxis(Axis_YRotate);\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "public double angle()\n {\n return Math.atan2(this.y, this.x);\n }", "public double getYDirection() {\r\n return Math.sin(Math.toRadians(angle));\r\n }", "private double getAngle() {\n double normal= Math.sqrt(((getgAxis(ADXL345_I2C.Axes.kX))*(getgAxis(ADXL345_I2C.Axes.kX)))+((getgAxis(ADXL345_I2C.Axes.kY))*(getgAxis(ADXL345_I2C.Axes.kY))));\n\n return MathUtils.atan(normal / getgAxis(ADXL345_I2C.Axes.kZ));\n }", "public double getAngle()\n {\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return globalAngle;\n }", "public double getAngleYZ() {\r\n\t\tdouble l = this.lenght();\r\n\t\tif (l==0)\r\n\t\t\treturn 0;\r\n\t\treturn Math.asin(this.x/l);\r\n\t}", "private double getAngle()\n {\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n return angles.firstAngle;\n }", "private double getAngle()\n {\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return globalAngle;\n }", "public double angle() {\n return Math.atan2(_y,_x);\n }", "public double getAngle() {\n return Math.atan2(sinTheta, cosTheta);\n }", "private double getAngle() {\n // We experimentally determined the Z axis is the axis we want to use for\n // heading angle. We have to process the angle because the imu works in\n // euler angles so the Z axis is returned as 0 to +180 or 0 to -180\n // rolling back to -179 or +179 when rotation passes 180 degrees. We\n // detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC,\n AxesOrder.ZYX, AngleUnit.DEGREES);\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return globalAngle;\n }", "public int getAngle(){\n\t\tif(!resetCoordinates()&&robot.imu1.isGyroCalibrated()){\n\t\t\trobot.angles=robot.imu1.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\t\t\tdouble currentAngle=robot.angles.firstAngle;\n\t\t\tint finalAngle= robot.startingAngle+(int)Math.round(currentAngle);\n\t\t\tif(finalAngle<0){\n\t\t\t\treturn 360+finalAngle;\n\t\t\t}\n\t\t\treturn finalAngle;\n\n\t\t}\n\t\telse if(!resetCoordinates()&&robot.imu.isGyroCalibrated()){\n\t\t\trobot.angles=robot.imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.YZX, AngleUnit.DEGREES);\n\t\t\tdouble currentAngle=robot.angles.firstAngle;\n\t\t\tint finalAngle= robot.startingAngle+(int)Math.round(currentAngle);\n\t\t\tif(finalAngle<0){\n\t\t\t\treturn 360+finalAngle;\n\t\t\t}\n\t\t\treturn finalAngle;\n\n\t\t}\n\t\telse if(resetCoordinates()){\n\t\t\tdouble oldAngle = robot.rotation.thirdAngle;\n\t\t\tdouble posAngle = oldAngle;\n\t\t\tint finalAngle;\n\t\t\tif (oldAngle < 0) posAngle = 360 - Math.abs(oldAngle);\n\t\t\tif((int) (Math.round(posAngle)) - 45 < 0){\n\t\t\t\tfinalAngle = 360-(int)Math.round(posAngle);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfinalAngle = (int) (Math.round(posAngle)) - 45;\n\t\t\t}\n\t\t\treturn finalAngle;\n\t\t}\n\t\telse{\n\t\t\treturn 10000;\n\t\t}\n\t}", "public double getAngle() {\n\t\treturn 180 * (this.N - 2) / this.N;\n\t}", "public double getAngle() {\n\t\treturn armMotor.getEncPosition();\n\t}", "double getAngle();", "double getAngle();", "public double getAngle();", "public double toAngle()\n\t{\n\t\treturn Math.toDegrees(Math.atan2(y, x));\n\t}", "public double getAngle ()\n {\n return angle_;\n }", "public double getGyroAngle() {\n double[] ypr = new double[3];\n gyro.GetYawPitchRoll(ypr);\n return ypr[0];\n }", "public double getMyAngle() {\n return myAngle- STARTING_ANGLE;\n }", "public double getAngle() {\n synchronized (this.angleLock) {\n return this.movementComposer.getOrientationAngle();\n }\n }", "public double getAngle() { return angle; }", "public double getAngle() {\n return angle;\n }", "public double getAngle() {\n return angle;\n }", "public double getAngle()\n {\n return (AngleAverage);\n }", "public double getAngle() {\n\t\treturn this.position[2];\n\t}", "public double getAngle() {\n\t\treturn angle;\n\t}", "public double getAngle() {\n\t\treturn angle;\n\t}", "public int getAngle() {\r\n return angle;\r\n }", "public double getAngle(){\n\t\treturn this.angle;\n\t}", "public static double getAngle() {\n return NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"ts\").getDouble(0);\n }", "public double getAngle() {\n\t\treturn navx.getAngle();\n\t}", "public int getAngle() {\r\n\t\treturn angle;\r\n\t}", "public double theta() { return Math.atan2(y, x); }", "public double getAngle() {\n if (r == 0) {\n if (i == 0)\n return 0;// error?\n if (i > 0)\n return p2;\n else\n return -p2;\n }\n double d = Math.atan(i / r);\n if (r >= 0) {\n return d;\n }\n if (i >= 0)\n return Math.PI + d;\n return d + Math.PI;\n }", "protected float getGyroscopeAngle() {\n if (doGyro) {\n Orientation exangles = bosch.getAngularOrientation(AxesReference.EXTRINSIC, AxesOrder.XYZ, AngleUnit.DEGREES);\n float gyroAngle = exangles.thirdAngle;\n //exangles.\n //telemetry.addData(\"angle\", \"angle: \" + exangles.thirdAngle);\n float calculated = normalizeAngle(reverseAngle(gyroAngle));\n //telemetry.addData(\"angle2\",\"calculated:\" + calculated);\n return calculated;\n } else {\n return 0.0f;\n }\n }", "public float getAngle() {\n return angle;\n }", "private double y(double pt){\n pt = -pt;\n if (pt<=0) pt = 90 + -pt;\n else pt = 90 - pt;\n\n pt = 180-pt;\n return pt;\n }", "public double getGryoAngle() {\n\n\t\t// Normalize the angle\n\t\tdouble angle = gyro.getAngle() % 360;\n\n\t\tif (angle < 0) {\n\t\t\tangle = angle + 360;\n\t\t}\n\n\t\treturn angle;\n\t}", "public float getAngle() {\n return angle;\n }", "public double getRotation() {\n return Degrees.atan2(y, x);\n }", "public double ang()\n {\n \treturn Math.atan(y/x);\n }", "public int getGyroAngle() {\r\n \treturn (int)Math.round(gyro.getAngle());\r\n }", "public int getCurrentAngle(){\n return flatbed.currentAngle;\n }", "public double angle() {\n double angle = Math.toDegrees(Utilities.calculateAngle(this.dx, -this.dy));\n return angle;\n }", "public int getAngle(){\n\t\treturn (int)angle;\n\t}", "public double getTargetAngle(){\n return lastKnownAngle;\n }", "public double getAngle() {\n\t\treturn Math.atan2(imaginary, real);\n\t}", "public double getAngle () {\n return super.getAngle() % 360D;\n }", "public double getAngleXY() {\r\n\t\tdouble l = this.lenght();\r\n\t\tif (l==0)\r\n\t\t\treturn 0;\r\n\t\treturn Math.asin(this.z/l);\r\n\t}", "public double getAngle() {\n\treturn CVector.heading(v1, v2);\n }", "public double findAngle() {\n return 0d;\n }", "public final void rotY(float angle) {\n\tdouble c = Math.cos(angle);\n\tdouble s = Math.sin(angle);\n\tm00 = (float)c; m01 = 0.0f; m02 = (float)s;\n\tm10 = 0.0f; m11 = 1.0f; m12 = 0.0f;\n\tm20 = (float)-s; m21 = 0.0f; m22 = (float)c;\n }", "public float getRotationY() {\n return mRotationY;\n }", "public float getAngle() {\n return mAngle;\n }", "public double getRotationAngleInRadians() {\n return Math.toRadians(rotationAngle);\n }", "public float getAccY() {\n return accY_;\n }", "public double getYawAngle () {\n return gyro.getAngle() * Math.PI / 180; //Convert the angle to radians.\n }", "public float getAccY() {\n return accY_;\n }", "double getCalibratedLevelAngle();", "float getAccY();", "private float calculateAngle() {\r\n\r\n\t\tdouble angleTemp = Math.atan2(Target.getY() - y, Target.getX() - x);\r\n\t\t// I needed to use wikipedia to get this i\r\n\t\t// did not learn this in math and needed\r\n\t\t// to use a couplle youtube tutorials to\r\n\t\t// find out how to do the math in java\r\n\t\t// aswell thank fully one had the exact\r\n\t\t// way of doing this\r\n\t\treturn (float) Math.toDegrees(angleTemp) + 90;\r\n\t}", "public Rotation2d getAngle() {\n // Note: This assumes the CANCoders are setup with the default feedback coefficient\n // and the sesnor value reports degrees.\n return Rotation2d.fromDegrees(canCoder.getAbsolutePosition());\n }", "public double getAngle() {\n\t\tdouble angle = Math.atan2(imaginary, real);\n\t\tangle = fixNegativeAngle(angle);\n\n\t\treturn angle;\n\t}", "double deltaY() {\n return Math.sin(Math.toRadians(this.theta)) * this.length;\n }", "public double getRightJoystickVertical() {\n\t\treturn getRawAxis(RIGHT_STICK_VERTICAL) * -1;\n\t}", "private double getRawAngle() {\n return (m_pot.getVoltage() / Constants.AIO_MAX_VOLTAGE) * Constants.Hood.POT_SCALE;\n }", "public float getAngle () {\n\t\treturn body.getAngle();\n\t}", "public double nextAngle()\n {\n return nextAngle();\n }", "public double PlaneAngle() {\n return OCCwrapJavaJNI.Units_Dimensions_PlaneAngle(swigCPtr, this);\n }", "public float getBaseVerticalViewAngle() {\n \treturn mCamera.getParameters().getVerticalViewAngle();\n }", "public int angleOX() {\n if (B.getY() == A.getY()) {\r\n return 0;\r\n } else if (A.getX() == B.getX()) {\r\n return 90;\r\n }\r\n else {\r\n float fi = ((float) (B.getY() - A.getY()) / (B.getX() - A.getX()));\r\n if (fi<0){\r\n return (int)(fi*(-1));\r\n }\r\n else return (int)(fi);\r\n }\r\n }", "public double curSwing(){\r\n return swingGyro.getAngle();\r\n }", "@Basic\n\tpublic double getAy() {\n\t\treturn this.ay;\n\t}", "public double radians() {\n return Math.toRadians(this.degrees);\n }", "public double getTheta(){\n return Math.atan(this.y / this.x);\n }", "public static double rotation()\r\n\t{\r\n\t\treturn -(mxp.getAngle()/45);\r\n\t}", "public double getPerihelionAngle() {\n return perihelionAngle;\n }", "public double getAngle() {\n try {\n switch(Coordinates.angleUnit()) {\n case Coordinates.RADIAN:\n\treturn Double.parseDouble(deg.getText().trim());\n case Coordinates.DEGRE:\n\treturn Math.PI * Double.parseDouble(deg.getText().trim()) / 180.0;\n case Coordinates.DEGMN:\n\tString d = deg.getText().trim();\n\tif(d.length() == 0)\n\t d = \"0\";\n\tString m = mn.getText().trim();\n\tif(m.length() == 0)\n\t m = \"0\";\n\treturn Coordinates.parseAngle(d + \"11\" + m + \"'\");\n case Coordinates.DEGMNSEC:\n\td = deg.getText().trim();\n\tif(d.length() == 0)\n\t d = \"0\";\n\tm = mn.getText().trim();\n\tif(m.length() == 0)\n\t m = \"0\";\n\tString s = sec.getText().trim();\n\tif(s.length() == 0)\n\t s = \"0\";\n\treturn Coordinates.parseAngle(d + \"11\" + m + \"'\" + s + \"\\\"\");\n }\n }\n catch(NumberFormatException e) {\n }\n return 0.0;\n }", "public double getTurnAngle() {\n return getTurnAngle(turnEncoder.getCount());\n }", "public double direction(){\n return Math.atan2(this.y, this.x);\n }", "@Override\n\tpublic float getCenterOfRotationY() {\n\t\treturn 0.5f;\n\t}", "private double getAngle(double y, double x) {\n\t\tdouble angle = Math.atan2(y, x);\n\t\tif (angle < 0)\n\t\t\tangle += 2 * Math.PI;\n\t\treturn angle;\n\t}", "public float getAzimuthAngle()\n {\n return azimuth_slider.getValue() / ANGLE_SCALE_FACTOR;\n }", "public float getTiltY() {\n return pm.pen.getLevelValue(PLevel.Type.TILT_Y);\n }", "public double getAngle(float x, float y )\n {\n double dx = x - centerX;\n // Minus to correct for coord re-mapping\n double dy = -(y - centerY);\n\n double inRads = Math.atan2(dy,dx);\n\n // We need to map to coord system when 0 degree is at 3 O'clock, 270 at 12 O'clock\n if (inRads < 0)\n inRads = Math.abs(inRads);\n else\n inRads = 2*Math.PI - inRads;\n\n return Math.toDegrees(inRads);\n }", "public double getAngleInDegrees() {\n return intakeAngle;\n }", "public float getVelAngle() {\n\t\tif (velocity.y == 0f && velocity.x == 0f)\n\t\t\treturn restrictAngle((float) Math.random() * float2pi);\n\t\tfloat result = (float) Math.atan2(velocity.y, velocity.x);\n\t\treturn restrictAngle(result);\n\t}", "public double getRawAngle()\n {\n double Angle = 0.0;\n\n switch (MajorAxis)\n {\n case X:\n Angle = getAngleX();\n break;\n case Y:\n Angle = getAngleY();\n break;\n case Z:\n Angle = getAngleZ();\n break;\n }\n\n return(Angle);\n }", "public double getAzimuthRadians() {\n return azimuth * Math.PI / 180d;\n }", "public double getAngleXZ() {\r\n\t\tdouble l = this.lenght();\r\n\t\tif (l==0)\r\n\t\t\treturn 0;\r\n\t\treturn Math.asin(this.y/l);\r\n\t}", "public double getOrientation()\r\n\t{\r\n\t\treturn Math.atan2(-end.getY()+start.getY(), end.getX()-start.getX());\r\n\t}", "abstract double getOrgY();", "public double findAngleOfAttack() {\n\t\tdouble dy = this.trailingPt.y - this.leadingPt.y; // trailingPt goes first since positive numbers are down\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// y-axis in Canvas\n\t\tdouble dx = this.leadingPt.x - this.trailingPt.x;\n\t\treturn Math.atan2(dy, dx);\n\t}", "public double getRotationAngle() {\n\t\treturn _rotationAngle;\n\t}", "public double getRightYAxis() {\n\t\treturn getRawAxis(Axis_RightY);\n\t}" ]
[ "0.758331", "0.74961007", "0.7439667", "0.74175346", "0.7359482", "0.733157", "0.72822493", "0.7261989", "0.72506964", "0.72495127", "0.7249343", "0.72472143", "0.72043496", "0.71945286", "0.7171204", "0.71686274", "0.7147884", "0.71100545", "0.71100545", "0.70472586", "0.7027975", "0.7023623", "0.6976804", "0.6970194", "0.6965165", "0.6955", "0.6950001", "0.6950001", "0.68971026", "0.68926346", "0.6886912", "0.6886912", "0.6882723", "0.6844262", "0.68441314", "0.68209076", "0.68171847", "0.681539", "0.67857254", "0.677057", "0.67595583", "0.67576563", "0.675103", "0.6749141", "0.67261237", "0.67171246", "0.67132956", "0.6712455", "0.6694433", "0.6693004", "0.6683395", "0.66808724", "0.66793185", "0.66591096", "0.6657263", "0.66517985", "0.6647166", "0.6638735", "0.66218764", "0.6613893", "0.65874743", "0.6581723", "0.65773576", "0.6574734", "0.6564613", "0.65609336", "0.6560769", "0.6550336", "0.6488655", "0.6476442", "0.64724517", "0.6455443", "0.6442596", "0.6440363", "0.6439923", "0.6437505", "0.6436705", "0.64300597", "0.64251417", "0.640768", "0.6393304", "0.6389941", "0.63609415", "0.63272166", "0.63271976", "0.63240933", "0.63209146", "0.63141847", "0.63068885", "0.63037", "0.62981325", "0.6293488", "0.626811", "0.6256804", "0.6250995", "0.6248612", "0.62485844", "0.62483716", "0.6232824", "0.6193546" ]
0.70696056
19
Current angle of the Romi around the Zaxis.
public double getGyroAngleZ() { return m_gyro.getAngleZ(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getAngle()\n {\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return globalAngle;\n }", "private double getAngle() {\n // We experimentally determined the Z axis is the axis we want to use for\n // heading angle. We have to process the angle because the imu works in\n // euler angles so the Z axis is returned as 0 to +180 or 0 to -180\n // rolling back to -179 or +179 when rotation passes 180 degrees. We\n // detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC,\n AxesOrder.ZYX, AngleUnit.DEGREES);\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return globalAngle;\n }", "private double getAngle()\n {\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return globalAngle;\n }", "private double getAngle() {\n double normal= Math.sqrt(((getgAxis(ADXL345_I2C.Axes.kX))*(getgAxis(ADXL345_I2C.Axes.kX)))+((getgAxis(ADXL345_I2C.Axes.kY))*(getgAxis(ADXL345_I2C.Axes.kY))));\n\n return MathUtils.atan(normal / getgAxis(ADXL345_I2C.Axes.kZ));\n }", "public double getAngle2() {\n\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return (globalAngle);\n\n }", "public double getAngleYZ() {\r\n\t\tdouble l = this.lenght();\r\n\t\tif (l==0)\r\n\t\t\treturn 0;\r\n\t\treturn Math.asin(this.x/l);\r\n\t}", "public double currentAngle() {\n return imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES).firstAngle;\r\n }", "private double getAngle(){\n //Get a new angle measurement\n angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n //Get the difference between current angle measurement and last angle measurement\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n //Process the angle to keep it within (-180,180)\n //(Once angle passes +180, it will rollback to -179, and vice versa)\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n //Add the change in angle since last measurement (deltaAngle)\n //to the change in angle since last reset (globalAngle)\n globalAngle += deltaAngle;\n //Set last angle measurement to current angle measurement\n lastAngles = angles;\n\n return globalAngle;\n }", "private double getAngle()\n {\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n return angles.firstAngle;\n }", "public double getAngleXY() {\r\n\t\tdouble l = this.lenght();\r\n\t\tif (l==0)\r\n\t\t\treturn 0;\r\n\t\treturn Math.asin(this.z/l);\r\n\t}", "public int getAngle(){\n\t\tif(!resetCoordinates()&&robot.imu1.isGyroCalibrated()){\n\t\t\trobot.angles=robot.imu1.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\t\t\tdouble currentAngle=robot.angles.firstAngle;\n\t\t\tint finalAngle= robot.startingAngle+(int)Math.round(currentAngle);\n\t\t\tif(finalAngle<0){\n\t\t\t\treturn 360+finalAngle;\n\t\t\t}\n\t\t\treturn finalAngle;\n\n\t\t}\n\t\telse if(!resetCoordinates()&&robot.imu.isGyroCalibrated()){\n\t\t\trobot.angles=robot.imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.YZX, AngleUnit.DEGREES);\n\t\t\tdouble currentAngle=robot.angles.firstAngle;\n\t\t\tint finalAngle= robot.startingAngle+(int)Math.round(currentAngle);\n\t\t\tif(finalAngle<0){\n\t\t\t\treturn 360+finalAngle;\n\t\t\t}\n\t\t\treturn finalAngle;\n\n\t\t}\n\t\telse if(resetCoordinates()){\n\t\t\tdouble oldAngle = robot.rotation.thirdAngle;\n\t\t\tdouble posAngle = oldAngle;\n\t\t\tint finalAngle;\n\t\t\tif (oldAngle < 0) posAngle = 360 - Math.abs(oldAngle);\n\t\t\tif((int) (Math.round(posAngle)) - 45 < 0){\n\t\t\t\tfinalAngle = 360-(int)Math.round(posAngle);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfinalAngle = (int) (Math.round(posAngle)) - 45;\n\t\t\t}\n\t\t\treturn finalAngle;\n\t\t}\n\t\telse{\n\t\t\treturn 10000;\n\t\t}\n\t}", "public double getAngle() {\n\t\treturn navx.getAngle();\n\t}", "public double getAngle() {\n\t\treturn 180 * (this.N - 2) / this.N;\n\t}", "public double getAngle() {\n\t\treturn armMotor.getEncPosition();\n\t}", "public double getAngleXZ() {\r\n\t\tdouble l = this.lenght();\r\n\t\tif (l==0)\r\n\t\t\treturn 0;\r\n\t\treturn Math.asin(this.y/l);\r\n\t}", "double getAngle();", "double getAngle();", "public double getAngle() {\n synchronized (this.angleLock) {\n return this.movementComposer.getOrientationAngle();\n }\n }", "public double getAngle();", "public double getAngle() {\n\t\tdouble angle = Math.atan2(imaginary, real);\n\t\tangle = fixNegativeAngle(angle);\n\n\t\treturn angle;\n\t}", "public double getAngle() {\n\t\treturn Math.atan2(imaginary, real);\n\t}", "public double getAngle ()\n {\n return angle_;\n }", "public double PlaneAngle() {\n return OCCwrapJavaJNI.Units_Dimensions_PlaneAngle(swigCPtr, this);\n }", "public double getAngle() {\n return Math.atan2(sinTheta, cosTheta);\n }", "public double getAngle() {\n return angle;\n }", "public double getAngle() {\n return angle;\n }", "public double getAngle() {\n if (r == 0) {\n if (i == 0)\n return 0;// error?\n if (i > 0)\n return p2;\n else\n return -p2;\n }\n double d = Math.atan(i / r);\n if (r >= 0) {\n return d;\n }\n if (i >= 0)\n return Math.PI + d;\n return d + Math.PI;\n }", "public int getAngle() {\r\n return angle;\r\n }", "public double angle()\n {\n return Math.atan2(this.y, this.x);\n }", "public double getAngle() {\n\t\treturn angle;\n\t}", "public double getAngle() {\n\t\treturn angle;\n\t}", "public float getAzimuthAngle()\n {\n return azimuth_slider.getValue() / ANGLE_SCALE_FACTOR;\n }", "public double getMyAngle() {\n return myAngle- STARTING_ANGLE;\n }", "public double getAngle() {\n\t\treturn this.position[2];\n\t}", "public int getAngle() {\r\n\t\treturn angle;\r\n\t}", "public double findAngle() {\n return 0d;\n }", "public static double rotation()\r\n\t{\r\n\t\treturn -(mxp.getAngle()/45);\r\n\t}", "public double getAngle() { return angle; }", "public double getAngleInDegrees() {\n return intakeAngle;\n }", "public double getAngle()\n {\n return (AngleAverage);\n }", "public float getAngle() {\n return angle;\n }", "public double getAngle(){\n\t\treturn this.angle;\n\t}", "public float getAngle() {\n return angle;\n }", "public static double getAngle() {\n return NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"ts\").getDouble(0);\n }", "public double getAngle () {\n return super.getAngle() % 360D;\n }", "public double angle() {\n return Math.atan2(_y,_x);\n }", "public float getAngle() {\n return mAngle;\n }", "public Rotation2d getAngle() {\n // Note: This assumes the CANCoders are setup with the default feedback coefficient\n // and the sesnor value reports degrees.\n return Rotation2d.fromDegrees(canCoder.getAbsolutePosition());\n }", "public int getCurrentAngle(){\n return flatbed.currentAngle;\n }", "public double getAzimuthRadians() {\n return azimuth * Math.PI / 180d;\n }", "public int getAngle(){\n\t\treturn (int)angle;\n\t}", "public double toAngle()\n\t{\n\t\treturn Math.toDegrees(Math.atan2(y, x));\n\t}", "public float getXAngle(){\n Point project=new Point(0,accel.y,accel.z);\n\n float angl=(float)Math.asin(project.y / project.module())* PreferenceHelper.sensetivity;\n //float angl=(float)Math.acos(accel.z/accel.module())*100f;\n if(Float.isNaN(angl)) angl=0.5f;\n return (float)(Math.rint( toFlowX(angl)/1.0) * 1.0);\n }", "public double getRotationAngleInRadians() {\n return Math.toRadians(rotationAngle);\n }", "public double angle() {\n double angle = Math.toDegrees(Utilities.calculateAngle(this.dx, -this.dy));\n return angle;\n }", "public float getAngle() {\n if(vectorAngle < 0 )\n return (float) Math.toDegrees(Math.atan(longComponent / latComponent));\n else\n return vectorAngle;\n\n }", "public double getTurnAngle() {\n return getTurnAngle(turnEncoder.getCount());\n }", "public double getAzimuth() {\n return azimuth;\n }", "public double getRotationAngle() {\n\t\treturn _rotationAngle;\n\t}", "public double getRotation() {\n return Degrees.atan2(y, x);\n }", "public double getYawAngle () {\n return gyro.getAngle() * Math.PI / 180; //Convert the angle to radians.\n }", "public double getAngle() {\n\treturn CVector.heading(v1, v2);\n }", "public float getRotateZ() { return rotateZ; }", "public double\nangleInXYPlane()\n{\n\tBVector2d transPt = new BVector2d(\n\t\tthis.getP2().getX() - this.getP1().getX(),\n\t\tthis.getP2().getY() - this.getP1().getY());\n\t\n\t// debug(\"transPt: \" + transPt);\n\n\tdouble angle = MathDefines.RadToDeg * new Vector2d(1.0, 0.0).angle(transPt);\n\tif (transPt.getY() < 0.0)\n\t{\n\t\t// debug(\"ang0: \" + (360.0 - angle));\n\t\treturn(360.0 - angle);\n\t}\n\t// debug(\"ang1: \" + angle);\n\treturn(angle);\n}", "public double getPerihelionAngle() {\n return perihelionAngle;\n }", "public double getGryoAngle() {\n\n\t\t// Normalize the angle\n\t\tdouble angle = gyro.getAngle() % 360;\n\n\t\tif (angle < 0) {\n\t\t\tangle = angle + 360;\n\t\t}\n\n\t\treturn angle;\n\t}", "public float getRotationAngle() {\n return this.mRotationAngle;\n }", "public double getRawAngle()\n {\n double Angle = 0.0;\n\n switch (MajorAxis)\n {\n case X:\n Angle = getAngleX();\n break;\n case Y:\n Angle = getAngleY();\n break;\n case Z:\n Angle = getAngleZ();\n break;\n }\n\n return(Angle);\n }", "public double ang()\n {\n \treturn Math.atan(y/x);\n }", "double getCalibratedLevelAngle();", "public float getAngle () {\n\t\treturn body.getAngle();\n\t}", "private float calculateAngle() {\r\n\r\n\t\tdouble angleTemp = Math.atan2(Target.getY() - y, Target.getX() - x);\r\n\t\t// I needed to use wikipedia to get this i\r\n\t\t// did not learn this in math and needed\r\n\t\t// to use a couplle youtube tutorials to\r\n\t\t// find out how to do the math in java\r\n\t\t// aswell thank fully one had the exact\r\n\t\t// way of doing this\r\n\t\treturn (float) Math.toDegrees(angleTemp) + 90;\r\n\t}", "public double getRotation();", "public double getAngle() {\n try {\n switch(Coordinates.angleUnit()) {\n case Coordinates.RADIAN:\n\treturn Double.parseDouble(deg.getText().trim());\n case Coordinates.DEGRE:\n\treturn Math.PI * Double.parseDouble(deg.getText().trim()) / 180.0;\n case Coordinates.DEGMN:\n\tString d = deg.getText().trim();\n\tif(d.length() == 0)\n\t d = \"0\";\n\tString m = mn.getText().trim();\n\tif(m.length() == 0)\n\t m = \"0\";\n\treturn Coordinates.parseAngle(d + \"11\" + m + \"'\");\n case Coordinates.DEGMNSEC:\n\td = deg.getText().trim();\n\tif(d.length() == 0)\n\t d = \"0\";\n\tm = mn.getText().trim();\n\tif(m.length() == 0)\n\t m = \"0\";\n\tString s = sec.getText().trim();\n\tif(s.length() == 0)\n\t s = \"0\";\n\treturn Coordinates.parseAngle(d + \"11\" + m + \"'\" + s + \"\\\"\");\n }\n }\n catch(NumberFormatException e) {\n }\n return 0.0;\n }", "float getAccZ();", "public double getRotation()\n\t{\n\t\tdouble determinant = this.basisDeterminant();\n\t\tTransform2D m = orthonormalized();\n\t\tif (determinant < 0) \n\t\t{\n\t\t\tm.scaleBasis(new Vector2(1, -1)); // convention to separate rotation and reflection for 2D is to absorb a flip along y into scaling.\n\t\t}\n\t\treturn Math.atan2(m.matrix[0].y, m.matrix[0].x);\n\t}", "public float getAccZ() {\n return accZ_;\n }", "public float getAccZ() {\n return accZ_;\n }", "public double getGyroAngle() {\n double[] ypr = new double[3];\n gyro.GetYawPitchRoll(ypr);\n return ypr[0];\n }", "public int angleOX() {\n if (B.getY() == A.getY()) {\r\n return 0;\r\n } else if (A.getX() == B.getX()) {\r\n return 90;\r\n }\r\n else {\r\n float fi = ((float) (B.getY() - A.getY()) / (B.getX() - A.getX()));\r\n if (fi<0){\r\n return (int)(fi*(-1));\r\n }\r\n else return (int)(fi);\r\n }\r\n }", "public double radians() {\n return Math.toRadians(this.degrees);\n }", "protected float getGyroscopeAngle() {\n if (doGyro) {\n Orientation exangles = bosch.getAngularOrientation(AxesReference.EXTRINSIC, AxesOrder.XYZ, AngleUnit.DEGREES);\n float gyroAngle = exangles.thirdAngle;\n //exangles.\n //telemetry.addData(\"angle\", \"angle: \" + exangles.thirdAngle);\n float calculated = normalizeAngle(reverseAngle(gyroAngle));\n //telemetry.addData(\"angle2\",\"calculated:\" + calculated);\n return calculated;\n } else {\n return 0.0f;\n }\n }", "private double getRawAngle() {\n return (m_pot.getVoltage() / Constants.AIO_MAX_VOLTAGE) * Constants.Hood.POT_SCALE;\n }", "public float getRotationAngle() {\n return mPolygonShapeSpec.getRotation();\n }", "public double nextAngle()\n {\n return nextAngle();\n }", "float getDir() {\n return degrees(_rotVector.heading());\n }", "public double getRotDiff() {\n\t\treturn rotDiff;\n\t}", "public double theta() { return Math.atan2(y, x); }", "public double angle(int i)\n {\n return PdVector.angle(get(i), get((i + 1) % 3), get((i + 2) % 3)) * (Math.PI / 180);\n }", "public void calculateAngleAndRotate(){\n\t\tdouble cumarea = 0;\n\t\tdouble sina = 0;\n\t\tdouble cosa = 0;\n\t\tdouble area, angle;\n\t\tfor (int n = 0; n < rt.size();n++) {\n\t\t\tarea = rt.getValueAsDouble(rt.getColumnIndex(\"Area\"),n);\n\t\t\tangle = 2*rt.getValueAsDouble(rt.getColumnIndex(\"Angle\"),n);\n\t\t\tsina = sina + area*Math.sin(angle*Math.PI/180);\n\t\t\tcosa = cosa + area*Math.cos(angle*Math.PI/180);\n\t\t\tcumarea = cumarea+area;\n\t\t}\n\t\taverageangle = Math.abs(0.5*(180/Math.PI)*Math.atan2(sina/cumarea,cosa/cumarea)); // this is the area weighted average angle\n\t\t// rotate the data \n\t\tIJ.run(ActiveImage,\"Select All\",\"\");\n\t\tActiveImageConverter.convertToGray32();\n\t\tIJ.run(ActiveImage,\"Macro...\", \"code=[v= x*sin(PI/180*\"+averageangle+\")+y*cos(PI/180*\"+averageangle+\")]\");\n\t\treturn;\n\t}", "EDataType getAngleDegrees();", "public double getAzDiff() {\n\t\treturn azDiff;\n\t}", "public String getUnitOfViewAngle() {\n \treturn \"degrees\";\n }", "double adjust_angle_rotation(double angle) {\n double temp;\n temp=angle;\n if(temp>90) {\n temp=180-temp;\n }\n return temp;\n }", "public double getInteriorAngle() {\n\t\tdouble angle = 180 * (numberOfSides - 2) / numberOfSides;\n\t\treturn angle;\n\t}", "public int getAzimuthDegrees() {\n\t\treturn m_azimuth_degrees;\n\t}", "public int getGyroAngle() {\r\n \treturn (int)Math.round(gyro.getAngle());\r\n }", "public double getRADegrees() { return raDegrees; }", "public static final float getAR() {\r\n\t\treturn A_R;\r\n\t}", "public float getBaseVerticalViewAngle() {\n \treturn mCamera.getParameters().getVerticalViewAngle();\n }" ]
[ "0.80718476", "0.8068162", "0.80322874", "0.78517216", "0.7771403", "0.7679527", "0.76424646", "0.7559529", "0.75105447", "0.74856526", "0.7443267", "0.73877764", "0.7377144", "0.7321194", "0.72661895", "0.72545147", "0.72545147", "0.72287554", "0.7228731", "0.71625364", "0.7162462", "0.714488", "0.7123925", "0.711048", "0.7099613", "0.7099613", "0.70987254", "0.70919335", "0.7060612", "0.7050015", "0.7050015", "0.7047682", "0.70410085", "0.70391345", "0.70387745", "0.70232373", "0.7016361", "0.701477", "0.7013324", "0.70116687", "0.7002124", "0.69931215", "0.6978286", "0.69751114", "0.6947773", "0.69443566", "0.6936666", "0.6877117", "0.68632555", "0.6848482", "0.6839726", "0.67932916", "0.6771705", "0.67127055", "0.6688145", "0.6672722", "0.6672595", "0.6666446", "0.66628355", "0.6659022", "0.65994924", "0.6587074", "0.6586722", "0.6582737", "0.6559983", "0.65325", "0.6531069", "0.6511268", "0.65043694", "0.64999336", "0.6489498", "0.64852697", "0.6480663", "0.6476007", "0.6399753", "0.6385354", "0.63840955", "0.63697994", "0.6344083", "0.6325749", "0.63229865", "0.63122994", "0.6296292", "0.62662184", "0.6240344", "0.6219535", "0.6194126", "0.61702305", "0.61558324", "0.61482126", "0.6144008", "0.61292917", "0.61205375", "0.6109573", "0.6105785", "0.61042964", "0.610215", "0.6095364", "0.608007", "0.60727954" ]
0.6675784
55
This method will be called once per scheduler run
@Override public void periodic() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void periodic() {\n // This method will be called once per scheduler run\n }", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }", "protected abstract void scheduler_init();", "private void beginSchedule(){\n\t\tDivaApp.getInstance().submitScheduledTask(new RandomUpdater(this), RandomUpdater.DELAY, RandomUpdater.PERIOD);\n\t}", "@Override\n public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "@Override\n public void autonomousPeriodic()\n {\n Scheduler.getInstance().run();\n }", "@Override\n public void run() {\n schedule();\n }", "@Override\n public void reportScheduler() {\n }", "private void scheduleJob() {\n\n }", "@Override\n protected Scheduler scheduler() {\n return scheduler;\n }", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\t\n\t}", "@Override\n public void autonomousPeriodic() {\n\t// updateDiagnostics();9\n\tScheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\r\n Scheduler.getInstance().run();\r\n }", "public static void flushScheduler() {\n while (!RuntimeEnvironment.getMasterScheduler().advanceToLastPostedRunnable()) ;\n }", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "@Override\n public void autonomousPeriodic() {\n\n }", "@Override\n public void autonomousPeriodic() {\n \n }", "public void init(){\n\t\t//this.lock = new ReentrantLock();\n\t\t//jobscheduler.setLock(this.lock);\n\t\tthis.poller.inspect();\n\t\tschedule(this.poller.refresh());\t\t\t\t\n\t}", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n }", "public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n }", "protected void runEachDay() {\n \n }", "@Override\n public void autonomousPeriodic() {\n }", "public void autonomousPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}", "@Override\n public void teleopPeriodic()\n {\n Scheduler.getInstance().run();\n }", "@Override\n public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n log();\n }", "public void setScheduler(Scheduler scheduler)\r\n/* 25: */ {\r\n/* 26: 65 */ this.scheduler = scheduler;\r\n/* 27: */ }", "@Override\n public void teleopPeriodic() {\n\tupdateDiagnostics();\n\tScheduler.getInstance().run();\n }", "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n \n }", "public void autonomousPeriodic()\n\t{\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n protected Scheduler scheduler() {\n return Scheduler.newFixedRateSchedule(0, 1, TimeUnit.SECONDS);\n }", "@Override\n public void autonomousPeriodic() {\n \tbeginPeriodic();\n Scheduler.getInstance().run();\n endPeriodic();\n }", "public void generateSchedule(){\n\t\t\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "public void teleopPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t\tlog();\n\t}", "@Override\n public void run() {\n createScheduleFile();\n createWinnerScheduleFile();\n }", "@Override\n public void run() {\n\n\n\n System.out.println(\"run scheduled jobs.\");\n\n\n checkBlackOutPeriod();\n\n\n\n checkOfficeActionPeriod1();\n\n checkAcceptedFilings();\n\n checkNOAPeriod();\n checkFilingExtensions();\n\n\n\n }", "protected abstract String scheduler_next();", "@Override\n public void periodic() {\n\n }", "@Override\n public void periodic() {\n\n }", "@Override\n protected Scheduler scheduler() {\n return Scheduler.newFixedRateSchedule(0, 1, TimeUnit.DAYS);\n }", "private void schedule() {\n service.scheduleDelayed(task, schedulingInterval);\n isScheduled = true;\n }", "@Override\n public void periodic() {\n UpdateDashboard();\n }", "protected void runEachHour() {\n \n }", "@Override\n public void autonomousPeriodic()\n {\n commonPeriodic();\n }", "protected void runEachMinute() {\n \n }", "@Override\n\tpublic void teleopPeriodic() {\n\t\tOI.refreshAll();\n\t\tScheduler.getInstance().run();\n\t\tlog();\n\t}", "@Override\n public void syncState() {\n scheduledCounter.check();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "protected void beforeJobExecution() {\n\t}" ]
[ "0.79959375", "0.71370137", "0.7053971", "0.6965585", "0.69561255", "0.6893155", "0.68800586", "0.6876765", "0.67826825", "0.67659134", "0.6764156", "0.67577356", "0.6701485", "0.6687244", "0.6663779", "0.6658108", "0.6658108", "0.6658108", "0.6658108", "0.6644757", "0.6644757", "0.6644757", "0.6644757", "0.6644757", "0.6644757", "0.66429067", "0.6637915", "0.66273797", "0.66178864", "0.66178864", "0.66178864", "0.6614001", "0.65720326", "0.65580493", "0.6552124", "0.655197", "0.6537553", "0.6512464", "0.6478613", "0.645125", "0.6445831", "0.643673", "0.64337045", "0.64049494", "0.6391861", "0.6391861", "0.6391861", "0.6374168", "0.6369688", "0.6369592", "0.63500774", "0.63436323", "0.63429624", "0.63429624", "0.6324376", "0.63060725", "0.6303406", "0.6298463", "0.62968045", "0.6295609", "0.6295192", "0.6289829", "0.6271111", "0.6271111", "0.6271111", "0.6271111", "0.62665445" ]
0.62594575
94
UserDto userDto = getContext().getBean(UserDto.class);
private void registrationView() { String login; String email; String password; try { while (true) { printLine(); print("\tВведите логин\n"); print("\t>>>>> "); login = readStringFromConsole(); print("\tВведите email\n"); print("\t>>>>> "); try { email = valid.emailValidation(readStringFromConsole()); } catch (NotValidDataException e) { printErr("\tнекорректный email"); continue; } print("\tВведите пароль\n"); print("\t>>>>> "); try { password = valid.passwordValidation(readStringFromConsole()); } catch (NotValidDataException e) { printErr("\tнекорректный password"); continue; } break; } try { serviceAuthorizationService.registration(new UserDto() .withUsername(login) .withEmail(email) .withPassword(password)); setStatus(REGISTERED); printLine(); print("\tВы успешно зарегистрировались"); } catch (AlreadyExistsException e) { e.showMessage(); registrationView(); } } catch (IOException e) { registrationView(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UserDto() {\n }", "public interface UserDtoIn extends Service<UserDto, Integer> {\n UserDto getByLogin(String login);\n\n UserDto removeById(Integer id);\n}", "public User saveUser(UserDto userDto);", "@Component\r\npublic interface UserMapper extends BaseMapper<User> {\r\n\r\n}", "@Test\n public void whenMapUsertoUserDto_thenOk() {\n\n User user = InstanceFactory.user;\n\n UserDTO userDTO = UserMapper.INSTANCE.entityToDto(user);\n\n assertEquals(user.getId(), userDTO.getId());\n assertEquals(user.getLogin(), userDTO.getLogin());\n assertEquals(user.getPassword(), userDTO.getPassword());\n\n }", "@Resource\npublic interface UserMapper extends Mapper<User> {\n\n public User queryUserByName(String userName);\n}", "@Component\npublic interface UserMapper {\n\n int insert(User user);\n\n int delete(Long id);\n\n User findById(Long id);\n\n User findByName(String name);\n\n List<User> listAll();\n}", "@Autowired\n public UserController(UserServiceImpl userServiceImpl) {\n this.userServiceImpl = userServiceImpl;\n }", "@Test\n public void whenMapUserDtoToUser_thenOk() {\n\n UserDTO userDTO = InstanceFactory.userDTO;\n User user = UserMapper.INSTANCE.dtoToEntity(userDTO);\n\n assertEquals(user.getId(), userDTO.getId());\n assertEquals(user.getLogin(), userDTO.getLogin());\n assertEquals(user.getPassword(), userDTO.getPassword());\n\n }", "Object getBean();", "@Test\n public void findOne(){\n ApplicationContext ac = new AnnotationConfigApplicationContext(SpringConfiguration.class);\n\n AccountService as = ac.getBean(\"accountService\", AccountService.class);\n Account account = as.findAccountById(1);\n System.out.println(account);\n }", "private User getUserDto(String userName, String role){\n User user = new User();\n user.setRole(role);\n user.setUserName(userName);\n return user;\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 }", "@Before\n public void setUp() {\n this.context = new AnnotationConfigApplicationContext(\"com.fxyh.spring.config\");\n// this.context = new ClassPathXmlApplicationContext(\"classpath*:applicationContext-bean.xml\");\n this.user = this.context.getBean(User.class);\n this.user2 = this.context.getBean(User.class);\n this.department = this.context.getBean(Department.class);\n this.userService = (UserService) this.context.getBean(\"userService\");\n }", "public UserContext getUserContext();", "UserDto create(UserRegistrationDto user);", "public UserBean() {\n }", "public UserBean() {\n }", "public interface IWebAuthorService {\n\n AdminDTO getAdminDTO();\n\n}", "public interface UserService {\n\n User getUser(Long id);\n}", "Optional<User> create(UserDto dto);", "<V> IBeanContextHolder<V> createHolder(Class<V> autowiredBeanClass);", "UserDTO findUserById(Long id);", "@Component\n@Repository\npublic interface UserDao {\n User getByName(String loginName);\n}", "@Autowired\n public UserController(UserService userService) {\n this.userService = userService;\n }", "void createUser(CreateUserDto createUserDto);", "@Test\n public void whenMapNullUsertoUserDto_thenReturnNull() {\n\n User user = null;\n UserDTO userDTO = UserMapper.INSTANCE.entityToDto(user);\n\n assertNull(user);\n assertNull(userDTO);\n\n }", "public UserService getUserService() {\n return userService;\n }", "public interface BeanAutowired {\n}", "private <T> T getBean(SpringBootLambdaContainerHandler<AwsProxyRequest, AwsProxyResponse> handler,\n Class<T> beanClass) {\n return WebApplicationContextUtils.getWebApplicationContext(handler.getServletContext())\n .getBean(beanClass);\n }", "@Test\n public void whenMapNullUserDtoToUser_thenReturnNull() {\n\n UserDTO userDTO = null;\n User user = UserMapper.INSTANCE.dtoToEntity(userDTO);\n\n assertNull(user);\n assertNull(userDTO);\n\n }", "@Bean\n public ConversionBean converter(){\n return new ConversionBean();\n }", "public interface UserService {\n\n UserDto create(CreateForm createForm);\n\n UserDto delete(String id);\n\n UserDto updateProfile(String id, ProfileForm profileForm);\n\n UserDto updateMyItemsIds(String id, String itemId);\n\n UserDto updateMyTransactionsIds(String id, String transactionId);\n\n UserDto getByUsername(String username);\n\n Page<UserDto> getAll(Pageable pageable);\n}", "public interface AdminUserRepository {\n AdminUserDTO findUser(AdminUserDTO adminUserDTO) throws Exception;\n}", "public interface UserService {\n public UserDto signUp(UserDto userDto);\n public List<UserDto> listAll();\n public List<UserDto> findByFilter(UserFilterDto userFilterDto);\n}", "@Singleton\n@Component(modules = UserModule.class, dependencies = FlowerComponent.class)\npublic interface UserComponent {\n User getUser();\n}", "public interface UserDetailService {\n\n /**\n * 微信登录,已存在信息则直接返回用户信息,否则执行注册后返回用户信息\n *\n * @param request {@link UserWechatLoginRequest}\n * @return {@link UserDto}\n */\n UserDto wechatLogin(UserWechatLoginRequest request);\n\n /**\n * 用户唯一标识查询用户\n *\n * @param userId 用户唯一标识\n * @return {@link UserDto}\n */\n UserDto queryByUserId(String userId);\n\n /**\n * 用户唯一标识查询用户\n *\n * @param openId 用户openId\n * @return {@link UserDto}\n */\n WechatAuthDto queryByOpenId(String openId);\n \n \n /**\n * 用户唯一标识查询用户\n *\n * @param userId 用户openId\n * @return {@link UserDto}\n */\n WechatAuthDto queryWechatByUserId(String userId);\n}", "@Transactional\n public UserDto getUser(Long id) {\n User user = userRepository.findById(id).orElse(new User());\n\n return userConverter.entityToDto(user);\n }", "public UserDTO getUser() {\n\t\treturn user;\n\t}", "public UserDTO userById(UserDTO dto) {\n return userReadService.userById(dto);\n }", "CustomerDto createCustomer(CustomerEntity customerEntity);", "public interface UserService {\n\n void insertUser(UserDto userDto);\n List<UserDto> getAllUsers();\n UserDto login(String phone, String password);\n\n}", "public interface UserService extends Service<User> {\n\n}", "public interface UserService extends Service<User> {\n\n}", "public interface UserService extends Service<User> {\n\n}", "public User getUser(){return this.user;}", "@Service\npublic interface UserService {\n\n PageInfo<User> queryPage(Map<String, Object> map, int start, int limit);\n\n void delUserBy(Long id);\n\n void save(User user);\n}", "FactoryBean getFactoryBean();", "public interface UserService {\n\n /**\n * This method will return all users saved in DB.\n *\n * @return the users collection\n */\n Collection<GetUserDto> getAllUsers();\n\n /**\n * This method will return the user with the given id.\n *\n * @param id the user id.\n * @return the dto fo the user\n */\n UpdateUserDto getUserWithId(int id);\n\n /**\n * This method will create a new user.\n *\n * @param createUserDto the user to create.\n */\n void createUser(CreateUserDto createUserDto);\n\n /**\n * This method will update the given user.\n *\n * @param id the user id\n * @param updateUserDto the user's data to update\n */\n void updateUser(int id, UpdateUserDto updateUserDto);\n\n /**\n * this method will delete the user identified by the given id.\n *\n * @param id the id of the user to delete\n */\n void deleteUser(int id);\n\n}", "public interface MyBatisUserService {\n\n public User getUser(Long id);\n}", "public Customer CopyDtoToEntity(CustomerInput userDto){\n Customer user = new Customer();\n user.setId(userDto.getId());\n user.setFirst_name(userDto.getFirst_name());\n user.setLast_name(userDto.getLast_name());\n user.setEmail(userDto.getEmail());\n user.setAddress_id(userDto.getAddress_id());\n user.setActive(userDto.getActive());\n user.setCreate_date(getCurrentDateTime());\n // user.setCreate_date(getCurrentDateTime());\n return user;\n }", "@UserScope\n@Component(dependencies = AppComponent.class, modules = UserModule.class)\npublic interface UserComponent {\n FirebaseUser user();\n\n @AppContext\n Context context();\n\n App application();\n\n FirebaseAuth auth();\n\n DatabaseReference ref();\n}", "BeanFactory getBeanFactory();", "public Customer buildEntityFromDto(UserDto userDto) {\n\n return Customer.builder().accountNumber(userDto.getCustomerDto().getAccountNumber())\n .deleted(false)\n .existingCustomer(userDto.getCustomerDto().isExistingCustomer())\n .serviceType(userDto.getCustomerDto().getServiceType())\n .build();\n }", "public interface UserService {\n}", "public interface UserService {\n}", "@Bean\n public ObjectMapper objectMapper() {\n return new ObjectMapper();\n }", "@Service\r\npublic interface UserService {\r\n\r\n int addUser(User user);\r\n}", "@Component\npublic interface DemoService {\n\n int getSystemUserCount();\n\n boolean checkSystemUser(String loginName);\n\n void testTrans();\n\n int createUserService();\n int updateUserService();\n int deleteUserService();\n SystemUser getUserService(Long id);\n List getUserPageService();\n}", "@Bean\n @Primary\n public IUserServiceBean registerServices() {\n return new UserServiceBean();\n }", "@Component(modules = LoginApplicationModule.class)\n@Singleton\npublic interface LoginApplicationComponent {\n Context exposeContext();\n}", "ApplicationContext getAppCtx();", "E add(IApplicationUser user, C createDto);", "@Component(modules = ApplicationModule.class)\npublic interface ApplicationComponent {\n\n Context getApplication();\n}", "public userBean() {\r\n }", "public static void testExampleBean(){\n ApplicationContext context = new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n //2. get TestService instance from container\n ExampleBean exampleBean = context.getBean(ExampleBean.class);\n exampleBean.outPutInfo();\n }", "@GetMapping(path=\"/hello-world-bean\")\n\tpublic HelloWorldBean helloWorldBean() {\n\t\treturn new HelloWorldBean(\"Hello World Bean\");\n\t\t\n\t}", "@Contract\npublic interface UserService {\n Validation checkUser(UserBean user);\n\n Optional<User> getByCredentials(Credentials credentials);\n\n void createUser(UserBean user);\n}", "private UserDto mapFromUserToDto(User user) {\n UserDto userDto = new UserDto();\n userDto.setId(user.getId());\n userDto.setUsername(user.getUserName());\n userDto.setName(String.format(\"%s %s\", user.getFirstName(), user.getLastName()));\n userDto.setEmail(user.getEmail());\n userDto.setAvatar(user.getAvatar());\n return userDto;\n }", "@SuppressWarnings(\"unchecked\")\n public static <T> T getBean(String name) {\n assertContextInjected();\n return (T) applicationContext.getBean(name);\n }", "public interface ConfigService {\n\n ConfigDto getImplementationConfig();\n\n}", "public interface IUserService {\n\n String getUserName();\n\n}", "@Autowired\n public CustomUserDetailsService(UserService userService) {\n this.userService = userService;\n }", "Optional<ServiceUserDTO> findOne(Long id);", "@Autowired\n public void setUserDao(UserDao userDao) {\n this.userDao = userDao;\n }", "public Object getBean(String name) {\r\n\t\tif (ctx == null) {\r\n\t\t\tctx = WebApplicationContextUtils\r\n\t\t\t\t\t.getRequiredWebApplicationContext(servlet\r\n\t\t\t\t\t\t\t.getServletContext());\r\n\t\t}\r\n\t\treturn ctx.getBean(name);\r\n\t}", "public interface IUserService {\n \n User queryUserById(long id);\n}", "UserDTO fetchUser(String userId) throws UserException;", "public static Object getBean(ExecuteContext context, String beanName) throws Exception {\r\n\t\treturn WebApplicationContextUtils.getRequiredWebApplicationContext(context.getRequest().getSession().getServletContext()).getBean(beanName);\r\n\t}", "public Object lookup()\r\n {\n if (applicationInstance != null)\r\n return applicationInstance;\r\n\r\n ApplicationContext appContext = WebApplicationContextUtils.getWebApplicationContext(flex.messaging.FlexContext.getServletConfig().getServletContext());\r\n if (appContext == null)\r\n {\r\n if (Log.isError())\r\n Log.getLogger(\"Configuration\").error(\r\n \"SpringFactory - not able to look up the WebApplicationContext for Spring. Check your web.xml to ensure Spring is installed properly in this web application.\");\r\n return null;\r\n }\r\n String beanName = getSource();\r\n\r\n try\r\n {\r\n Object inst;\r\n if (appContext.isSingleton(beanName))\r\n {\r\n if (Log.isDebug())\r\n Log.getLogger(\"Configuration\").debug(\r\n \"SpringFactory creating singleton component with spring id: \" + beanName + \" for destination: \" + getId());\r\n // We have a singleton instance but no one has initialized it yet.\r\n // We need to sync to prevent two threads from potentially initializing\r\n // the instance at the same time and to ensure we only return\r\n // initialized instances.\r\n synchronized (this)\r\n {\r\n // Someone else got to this before us\r\n if (applicationInstance != null)\r\n return applicationInstance;\r\n inst = appContext.getBean(beanName);\r\n if (inst instanceof FlexConfigurable)\r\n ((FlexConfigurable) inst).initialize(getId(), getProperties());\r\n applicationInstance = inst;\r\n }\r\n }\r\n else\r\n {\r\n if (Log.isDebug())\r\n Log.getLogger(\"Configuration\").debug(\r\n \"SpringFactory creating non-singleton component with spring id: \" + beanName + \" for destination: \" + getId());\r\n inst = appContext.getBean(beanName);\r\n if (inst instanceof FlexConfigurable)\r\n ((FlexConfigurable) inst).initialize(getId(), getProperties());\r\n }\r\n return inst;\r\n }\r\n catch (NoSuchBeanDefinitionException nexc)\r\n {\r\n ServiceException e = new ServiceException();\r\n String msg = \"Spring service named '\" + beanName + \"' does not exist.\";\r\n e.setMessage(msg);\r\n e.setRootCause(nexc);\r\n e.setDetails(msg);\r\n e.setCode(\"Server.Processing\");\r\n throw e;\r\n }\r\n catch (BeansException bexc)\r\n {\r\n ServiceException e = new ServiceException();\r\n String msg = \"Unable to create Spring service named '\" + beanName + \"' \";\r\n e.setMessage(msg);\r\n e.setRootCause(bexc);\r\n e.setDetails(msg);\r\n e.setCode(\"Server.Processing\");\r\n throw e;\r\n }\r\n }", "public PropertyDefDto getDto();", "@Autowired\n public RegistrationController(UserService userService)\n {\n this.userService = userService;\n }", "public MyNoteDto getCurrentMyNoteDto();", "public interface RegistrationService {\n UserDto registrationNewUser(String login, String password, String email);\n\n}", "@Component(modules = {ApplicationModule.class, HttpModule.class})\npublic interface ApplicationComponent {\n MyApp getApplication();\n\n ApiService getApiService();\n\n Context getContext();\n\n}", "@Singleton\n@Component(modules = {AppModule.class})\npublic interface AppComponent {\n Context getContext();\n CommonUtil getComminUtil();\n}", "public interface UserService\n{\n}", "@Mappings({\n @Mapping(source = \"address\", target = \"addressDto\"),\n @Mapping(target = \"skills\", ignore = true)\n })\n UserDto toDTO(UserEntity userEntity);", "public ListUserBean(){\n \n }", "@RequestMapping(\"/getUser\")\n public Users getUser(String userId){\n return null;\n }", "public interface IUserInfoService {\n UserInfo getUserById(int userId);\n}", "public interface UserService {\n\n User get(String email);\n void update(User user);\n void create(User user);\n}", "public static Object getBean(String beanName) {\r\n return CONTEXT.getBean(beanName);\r\n }", "public UserExtraDTO getUser(User user,UserExtra ex)\n {\n \tUserExtraDTO u=new UserExtraDTO(user,ex);\n \treturn u;\n }", "UserDao getUserDao();", "@Mapper\npublic interface UserConvert {\n\n UserConvert INSTANCE = Mappers.getMapper(UserConvert.class);\n\n static UserConvertConvertor instance() {\n return INSTANCE;\n }\n\n @Mappings({})\n User toUser(UserDTO userDTO);\n\n @Mappings({})\n UserDTO toUserDTO(User user);\n\n List<UserDTO> toUserDTOs(List<User> users);\n\n List<User> toUsers(List<UserDTO> userDTOs);\n}", "public interface UserService {\n\n public SysUser findByUserName();\n}", "@Test\n @DisplayName(\"Spring Container and songleton\")\n void springContainer(){\n\n ApplicationContext ac = new AnnotationConfigApplicationContext(AppConfig.class);\n\n //1. access: create object when gets called\n MemberService memberService1 = ac.getBean(\"memberService\", MemberService.class);\n\n //2 access: create object whenever gets called\n MemberService memberService2 = ac.getBean(\"memberService\", MemberService.class);\n\n //check the references\n System.out.println(\"memberService1 = \" + memberService1);\n System.out.println(\"memberService2 = \" + memberService2);\n\n //memberService1 !== memberService2\n Assertions.assertThat(memberService1).isSameAs(memberService2);\n\n //as you could see all the objects are created everytime we request for it when calling allConfig.memberService()\n }", "public static UserDto createUserDtoFromUser(User user) {\n\t\tlogger.info(\"Creating UserDto from User\");\n\t\tlogger.debug(\"User: \" + user);\n\n\t\t// create the UserDto\n\t\tUserDto usr = new UserDto(user.getId(), user.getUsername(), user.getfName(), user.getlName(), user.getPriv(),\n\t\t\t\tuser.getActivation());\n\t\tlogger.info(\"UserDto created\");\n\t\tlogger.debug(\"UserDto: \" + usr);\n\t\tlogger.info(\"Returning UserDto\");\n\t\t// return the UserDto\n\t\treturn usr;\n\t}", "@Test\n @SuppressWarnings(\"unchecked\")\n public void testToUser() throws Exception {\n UserRequestBean testBean = new UserRequestBean();\n testBean.setAge(20);\n testBean.setUsername(\"TestUsername\");\n\n // set up oracle values\n User oracleUser = new User();\n oracleUser.setUsername(\"TestUsername\");\n oracleUser.setAge(20);\n oracleUser.setStatus(UserStatus.OFFLINE);\n String oracleToken = \"067e6162-3b6f-4ae2-a171-2470b63dff00\";\n\n // test call\n User result = userMapperService.toUser(testBean);\n\n // assertions\n Assert.assertEquals(result.getAge(), oracleUser.getAge());\n Assert.assertEquals(result.getUsername(), oracleUser.getUsername());\n Assert.assertEquals(result.getStatus(), oracleUser.getStatus());\n Assert.assertEquals(result.getToken().length(), oracleToken.length());\n }", "@Mapper\n@Component\npublic interface PatientUserDao {\n\n long addPatient(PatientUser patientUser);\n\n LoginUser getPatientLogin(String patientName);\n\n LoginUser getPatientLoginByWechatOpenId(String openId);\n}" ]
[ "0.6485928", "0.6199027", "0.609174", "0.608076", "0.60422647", "0.6018706", "0.59518", "0.59191746", "0.589954", "0.58606386", "0.5860537", "0.58109707", "0.57981753", "0.5797773", "0.577702", "0.5753029", "0.5725896", "0.5725896", "0.5720976", "0.57207483", "0.565826", "0.5657803", "0.5655488", "0.56513166", "0.5641613", "0.56339777", "0.5620633", "0.5601194", "0.559996", "0.55954915", "0.5573268", "0.5573203", "0.55710924", "0.5554873", "0.5552969", "0.55490434", "0.5546704", "0.553418", "0.5528964", "0.55269146", "0.552016", "0.55201566", "0.5507145", "0.5507145", "0.5507145", "0.55037016", "0.5497987", "0.549414", "0.54914975", "0.54830086", "0.5481786", "0.54734313", "0.54690486", "0.5458198", "0.5452201", "0.5452201", "0.5450354", "0.5448085", "0.5437066", "0.54242045", "0.54185957", "0.5416868", "0.54015875", "0.53995126", "0.5393526", "0.5383633", "0.53799176", "0.5362915", "0.5358362", "0.53383315", "0.53342646", "0.5332629", "0.53320086", "0.5331747", "0.53243256", "0.53240657", "0.5321725", "0.5318344", "0.5314319", "0.5307092", "0.53004646", "0.52986693", "0.52985454", "0.52870166", "0.52772486", "0.52739686", "0.52718645", "0.5256623", "0.5256512", "0.5254307", "0.5249322", "0.5241847", "0.5241409", "0.5234211", "0.52202904", "0.52195567", "0.5216905", "0.5214902", "0.5213134", "0.5208956", "0.5206405" ]
0.0
-1
Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: pe.com.entel.soa.data.generico.entelfault.v1
public ObjectFactory() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface AliciaTest5Factory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tAliciaTest5Factory eINSTANCE = aliciaTest5.impl.AliciaTest5FactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Alicia Lab</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Alicia Lab</em>'.\n\t * @generated\n\t */\n\tAliciaLab createAliciaLab();\n\n\t/**\n\t * Returns a new object of class '<em>Project</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Project</em>'.\n\t * @generated\n\t */\n\tProject createProject();\n\n\t/**\n\t * Returns a new object of class '<em>Student</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Student</em>'.\n\t * @generated\n\t */\n\tStudent createStudent();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tAliciaTest5Package getAliciaTest5Package();\n\n}", "public interface GraphQLFactory extends EFactory\n{\n /**\n * The singleton instance of the factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n GraphQLFactory eINSTANCE = io.github.katmatt.graphql.graphQL.impl.GraphQLFactoryImpl.init();\n\n /**\n * Returns a new object of class '<em>Type System Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Type System Definition</em>'.\n * @generated\n */\n TypeSystemDefinition createTypeSystemDefinition();\n\n /**\n * Returns a new object of class '<em>Schema Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Schema Definition</em>'.\n * @generated\n */\n SchemaDefinition createSchemaDefinition();\n\n /**\n * Returns a new object of class '<em>Root Operation Type Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Root Operation Type Definition</em>'.\n * @generated\n */\n RootOperationTypeDefinition createRootOperationTypeDefinition();\n\n /**\n * Returns a new object of class '<em>Type Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Type Definition</em>'.\n * @generated\n */\n TypeDefinition createTypeDefinition();\n\n /**\n * Returns a new object of class '<em>Scalar Type Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Scalar Type Definition</em>'.\n * @generated\n */\n ScalarTypeDefinition createScalarTypeDefinition();\n\n /**\n * Returns a new object of class '<em>Object Type Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Object Type Definition</em>'.\n * @generated\n */\n ObjectTypeDefinition createObjectTypeDefinition();\n\n /**\n * Returns a new object of class '<em>Interface Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Interface Definition</em>'.\n * @generated\n */\n InterfaceDefinition createInterfaceDefinition();\n\n /**\n * Returns a new object of class '<em>Field Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Field Definition</em>'.\n * @generated\n */\n FieldDefinition createFieldDefinition();\n\n /**\n * Returns a new object of class '<em>Union Type Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Union Type Definition</em>'.\n * @generated\n */\n UnionTypeDefinition createUnionTypeDefinition();\n\n /**\n * Returns a new object of class '<em>Enum Type Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Enum Type Definition</em>'.\n * @generated\n */\n EnumTypeDefinition createEnumTypeDefinition();\n\n /**\n * Returns a new object of class '<em>Enum Value Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Enum Value Definition</em>'.\n * @generated\n */\n EnumValueDefinition createEnumValueDefinition();\n\n /**\n * Returns a new object of class '<em>Input Object Type Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Input Object Type Definition</em>'.\n * @generated\n */\n InputObjectTypeDefinition createInputObjectTypeDefinition();\n\n /**\n * Returns a new object of class '<em>Input Value Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Input Value Definition</em>'.\n * @generated\n */\n InputValueDefinition createInputValueDefinition();\n\n /**\n * Returns a new object of class '<em>Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Type</em>'.\n * @generated\n */\n Type createType();\n\n /**\n * Returns a new object of class '<em>Named Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Named Type</em>'.\n * @generated\n */\n NamedType createNamedType();\n\n /**\n * Returns a new object of class '<em>List Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>List Type</em>'.\n * @generated\n */\n ListType createListType();\n\n /**\n * Returns a new object of class '<em>Int Value</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Int Value</em>'.\n * @generated\n */\n IntValue createIntValue();\n\n /**\n * Returns a new object of class '<em>Float Value</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Float Value</em>'.\n * @generated\n */\n FloatValue createFloatValue();\n\n /**\n * Returns a new object of class '<em>Null Value</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Null Value</em>'.\n * @generated\n */\n NullValue createNullValue();\n\n /**\n * Returns a new object of class '<em>String Value</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>String Value</em>'.\n * @generated\n */\n StringValue createStringValue();\n\n /**\n * Returns a new object of class '<em>Boolean Value</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Boolean Value</em>'.\n * @generated\n */\n BooleanValue createBooleanValue();\n\n /**\n * Returns a new object of class '<em>Enum Value</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Enum Value</em>'.\n * @generated\n */\n EnumValue createEnumValue();\n\n /**\n * Returns a new object of class '<em>Object Value</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Object Value</em>'.\n * @generated\n */\n ObjectValue createObjectValue();\n\n /**\n * Returns a new object of class '<em>Object Field</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Object Field</em>'.\n * @generated\n */\n ObjectField createObjectField();\n\n /**\n * Returns a new object of class '<em>Const Value</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Const Value</em>'.\n * @generated\n */\n ConstValue createConstValue();\n\n /**\n * Returns a new object of class '<em>List Value</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>List Value</em>'.\n * @generated\n */\n ListValue createListValue();\n\n /**\n * Returns a new object of class '<em>Directive Definition</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Directive Definition</em>'.\n * @generated\n */\n DirectiveDefinition createDirectiveDefinition();\n\n /**\n * Returns a new object of class '<em>Directive</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Directive</em>'.\n * @generated\n */\n Directive createDirective();\n\n /**\n * Returns a new object of class '<em>Argument</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Argument</em>'.\n * @generated\n */\n Argument createArgument();\n\n /**\n * Returns the package supported by this factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the package supported by this factory.\n * @generated\n */\n GraphQLPackage getGraphQLPackage();\n\n}", "public interface RelationalFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tRelationalFactory eINSTANCE = fr.obeo.training.relational.impl.RelationalFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Data Base</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Data Base</em>'.\n\t * @generated\n\t */\n\tDataBase createDataBase();\n\n\t/**\n\t * Returns a new object of class '<em>Schema</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Schema</em>'.\n\t * @generated\n\t */\n\tSchema createSchema();\n\n\t/**\n\t * Returns a new object of class '<em>Table</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Table</em>'.\n\t * @generated\n\t */\n\tTable createTable();\n\n\t/**\n\t * Returns a new object of class '<em>Primary Key</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Primary Key</em>'.\n\t * @generated\n\t */\n\tPrimaryKey createPrimaryKey();\n\n\t/**\n\t * Returns a new object of class '<em>Foreign Key</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Foreign Key</em>'.\n\t * @generated\n\t */\n\tForeignKey createForeignKey();\n\n\t/**\n\t * Returns a new object of class '<em>Column</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Column</em>'.\n\t * @generated\n\t */\n\tColumn createColumn();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tRelationalPackage getRelationalPackage();\n\n}", "public static Factory factory() {\n return ext_accdt::new;\n }", "private EntityFactory() {}", "public ObjectFactory() {}", "public ObjectFactory() {}", "public ObjectFactory() {}", "public interface RepositoryFactory extends EFactory {\n /**\n * The singleton instance of the factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n RepositoryFactory eINSTANCE = io.fixprotocol._2020.orchestra.repository.impl.RepositoryFactoryImpl.init();\n\n /**\n * Returns a new object of class '<em>Action Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Action Type</em>'.\n * @generated\n */\n ActionType createActionType();\n\n /**\n * Returns a new object of class '<em>Actors Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Actors Type</em>'.\n * @generated\n */\n ActorsType createActorsType();\n\n /**\n * Returns a new object of class '<em>Actor Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Actor Type</em>'.\n * @generated\n */\n ActorType createActorType();\n\n /**\n * Returns a new object of class '<em>Annotation</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Annotation</em>'.\n * @generated\n */\n Annotation createAnnotation();\n\n /**\n * Returns a new object of class '<em>Appinfo</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Appinfo</em>'.\n * @generated\n */\n Appinfo createAppinfo();\n\n /**\n * Returns a new object of class '<em>Block Assignment Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Block Assignment Type</em>'.\n * @generated\n */\n BlockAssignmentType createBlockAssignmentType();\n\n /**\n * Returns a new object of class '<em>Categories Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Categories Type</em>'.\n * @generated\n */\n CategoriesType createCategoriesType();\n\n /**\n * Returns a new object of class '<em>Category Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Category Type</em>'.\n * @generated\n */\n CategoryType createCategoryType();\n\n /**\n * Returns a new object of class '<em>Code Sets Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Code Sets Type</em>'.\n * @generated\n */\n CodeSetsType createCodeSetsType();\n\n /**\n * Returns a new object of class '<em>Code Set Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Code Set Type</em>'.\n * @generated\n */\n CodeSetType createCodeSetType();\n\n /**\n * Returns a new object of class '<em>Code Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Code Type</em>'.\n * @generated\n */\n CodeType createCodeType();\n\n /**\n * Returns a new object of class '<em>Component Ref Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Component Ref Type</em>'.\n * @generated\n */\n ComponentRefType createComponentRefType();\n\n /**\n * Returns a new object of class '<em>Component Rule Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Component Rule Type</em>'.\n * @generated\n */\n ComponentRuleType createComponentRuleType();\n\n /**\n * Returns a new object of class '<em>Components Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Components Type</em>'.\n * @generated\n */\n ComponentsType createComponentsType();\n\n /**\n * Returns a new object of class '<em>Component Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Component Type</em>'.\n * @generated\n */\n ComponentType createComponentType();\n\n /**\n * Returns a new object of class '<em>Concepts Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Concepts Type</em>'.\n * @generated\n */\n ConceptsType createConceptsType();\n\n /**\n * Returns a new object of class '<em>Concept Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Concept Type</em>'.\n * @generated\n */\n ConceptType createConceptType();\n\n /**\n * Returns a new object of class '<em>Datatypes Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Datatypes Type</em>'.\n * @generated\n */\n DatatypesType createDatatypesType();\n\n /**\n * Returns a new object of class '<em>Datatype Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Datatype Type</em>'.\n * @generated\n */\n DatatypeType createDatatypeType();\n\n /**\n * Returns a new object of class '<em>Documentation</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Documentation</em>'.\n * @generated\n */\n Documentation createDocumentation();\n\n /**\n * Returns a new object of class '<em>Document Root</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Document Root</em>'.\n * @generated\n */\n DocumentRoot createDocumentRoot();\n\n /**\n * Returns a new object of class '<em>Extension Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Extension Type</em>'.\n * @generated\n */\n ExtensionType createExtensionType();\n\n /**\n * Returns a new object of class '<em>Field Ref Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Field Ref Type</em>'.\n * @generated\n */\n FieldRefType createFieldRefType();\n\n /**\n * Returns a new object of class '<em>Field Rule Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Field Rule Type</em>'.\n * @generated\n */\n FieldRuleType createFieldRuleType();\n\n /**\n * Returns a new object of class '<em>Fields Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Fields Type</em>'.\n * @generated\n */\n FieldsType createFieldsType();\n\n /**\n * Returns a new object of class '<em>Field Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Field Type</em>'.\n * @generated\n */\n FieldType createFieldType();\n\n /**\n * Returns a new object of class '<em>Flow Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Flow Type</em>'.\n * @generated\n */\n FlowType createFlowType();\n\n /**\n * Returns a new object of class '<em>Group Ref Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Group Ref Type</em>'.\n * @generated\n */\n GroupRefType createGroupRefType();\n\n /**\n * Returns a new object of class '<em>Groups Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Groups Type</em>'.\n * @generated\n */\n GroupsType createGroupsType();\n\n /**\n * Returns a new object of class '<em>Group Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Group Type</em>'.\n * @generated\n */\n GroupType createGroupType();\n\n /**\n * Returns a new object of class '<em>Identifiers Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Identifiers Type</em>'.\n * @generated\n */\n IdentifiersType createIdentifiersType();\n\n /**\n * Returns a new object of class '<em>Identifier Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Identifier Type</em>'.\n * @generated\n */\n IdentifierType createIdentifierType();\n\n /**\n * Returns a new object of class '<em>Mapped Datatype</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Mapped Datatype</em>'.\n * @generated\n */\n MappedDatatype createMappedDatatype();\n\n /**\n * Returns a new object of class '<em>Message Ref Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Message Ref Type</em>'.\n * @generated\n */\n MessageRefType createMessageRefType();\n\n /**\n * Returns a new object of class '<em>Messages Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Messages Type</em>'.\n * @generated\n */\n MessagesType createMessagesType();\n\n /**\n * Returns a new object of class '<em>Message Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Message Type</em>'.\n * @generated\n */\n MessageType createMessageType();\n\n /**\n * Returns a new object of class '<em>Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Type</em>'.\n * @generated\n */\n RepositoryType createRepositoryType();\n\n /**\n * Returns a new object of class '<em>Responses Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Responses Type</em>'.\n * @generated\n */\n ResponsesType createResponsesType();\n\n /**\n * Returns a new object of class '<em>Response Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Response Type</em>'.\n * @generated\n */\n ResponseType createResponseType();\n\n /**\n * Returns a new object of class '<em>Sections Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Sections Type</em>'.\n * @generated\n */\n SectionsType createSectionsType();\n\n /**\n * Returns a new object of class '<em>Section Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Section Type</em>'.\n * @generated\n */\n SectionType createSectionType();\n\n /**\n * Returns a new object of class '<em>State Machine Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>State Machine Type</em>'.\n * @generated\n */\n StateMachineType createStateMachineType();\n\n /**\n * Returns a new object of class '<em>State Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>State Type</em>'.\n * @generated\n */\n StateType createStateType();\n\n /**\n * Returns a new object of class '<em>Structure Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Structure Type</em>'.\n * @generated\n */\n StructureType createStructureType();\n\n /**\n * Returns a new object of class '<em>Timer Schedule</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Timer Schedule</em>'.\n * @generated\n */\n TimerSchedule createTimerSchedule();\n\n /**\n * Returns a new object of class '<em>Timer Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Timer Type</em>'.\n * @generated\n */\n TimerType createTimerType();\n\n /**\n * Returns a new object of class '<em>Transition Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Transition Type</em>'.\n * @generated\n */\n TransitionType createTransitionType();\n\n /**\n * Returns a new object of class '<em>Trigger Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Trigger Type</em>'.\n * @generated\n */\n TriggerType createTriggerType();\n\n /**\n * Returns a new object of class '<em>Unique Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Unique Type</em>'.\n * @generated\n */\n UniqueType createUniqueType();\n\n /**\n * Returns the package supported by this factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the package supported by this factory.\n * @generated\n */\n RepositoryPackage getRepositoryPackage();\n\n}", "public ObjectifyFactory factory() {\n return ofy().factory();\n }", "public interface GramaticaFactory extends EFactory\n{\n /**\n * The singleton instance of the factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n GramaticaFactory eINSTANCE = org.xtext.tesis.gramatica.gramatica.impl.GramaticaFactoryImpl.init();\n\n /**\n * Returns a new object of class '<em>Documento</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Documento</em>'.\n * @generated\n */\n Documento createDocumento();\n\n /**\n * Returns a new object of class '<em>Oracion</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Oracion</em>'.\n * @generated\n */\n Oracion createOracion();\n\n /**\n * Returns a new object of class '<em>Simple</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Simple</em>'.\n * @generated\n */\n Simple createSimple();\n\n /**\n * Returns a new object of class '<em>Determinante</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Determinante</em>'.\n * @generated\n */\n Determinante createDeterminante();\n\n /**\n * Returns a new object of class '<em>Atributo</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Atributo</em>'.\n * @generated\n */\n Atributo createAtributo();\n\n /**\n * Returns a new object of class '<em>Sintagma Preposicional</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Sintagma Preposicional</em>'.\n * @generated\n */\n SintagmaPreposicional createSintagmaPreposicional();\n\n /**\n * Returns a new object of class '<em>Obligacion</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Obligacion</em>'.\n * @generated\n */\n Obligacion createObligacion();\n\n /**\n * Returns a new object of class '<em>Obligacion Deber</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Obligacion Deber</em>'.\n * @generated\n */\n ObligacionDeber createObligacionDeber();\n\n /**\n * Returns a new object of class '<em>Negacion</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Negacion</em>'.\n * @generated\n */\n Negacion createNegacion();\n\n /**\n * Returns a new object of class '<em>Operacion</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Operacion</em>'.\n * @generated\n */\n Operacion createOperacion();\n\n /**\n * Returns a new object of class '<em>Clase</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Clase</em>'.\n * @generated\n */\n Clase createClase();\n\n /**\n * Returns a new object of class '<em>Compuesta</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Compuesta</em>'.\n * @generated\n */\n Compuesta createCompuesta();\n\n /**\n * Returns a new object of class '<em>Nexo</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Nexo</em>'.\n * @generated\n */\n Nexo createNexo();\n\n /**\n * Returns a new object of class '<em>Compleja</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Compleja</em>'.\n * @generated\n */\n Compleja createCompleja();\n\n /**\n * Returns a new object of class '<em>Conector</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Conector</em>'.\n * @generated\n */\n Conector createConector();\n\n /**\n * Returns a new object of class '<em>Operacion Coleccion</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Operacion Coleccion</em>'.\n * @generated\n */\n OperacionColeccion createOperacionColeccion();\n\n /**\n * Returns the package supported by this factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the package supported by this factory.\n * @generated\n */\n GramaticaPackage getGramaticaPackage();\n\n}", "public interface IoT_metamodelFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tIoT_metamodelFactory eINSTANCE = ioT_metamodel.impl.IoT_metamodelFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Thing</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Thing</em>'.\n\t * @generated\n\t */\n\tThing createThing();\n\n\t/**\n\t * Returns a new object of class '<em>Virtual Thing</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Virtual Thing</em>'.\n\t * @generated\n\t */\n\tVirtualThing createVirtualThing();\n\n\t/**\n\t * Returns a new object of class '<em>Physical Thing</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Physical Thing</em>'.\n\t * @generated\n\t */\n\tPhysicalThing createPhysicalThing();\n\n\t/**\n\t * Returns a new object of class '<em>Fog</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Fog</em>'.\n\t * @generated\n\t */\n\tFog createFog();\n\n\t/**\n\t * Returns a new object of class '<em>Fog Node</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Fog Node</em>'.\n\t * @generated\n\t */\n\tFogNode createFogNode();\n\n\t/**\n\t * Returns a new object of class '<em>Device</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Device</em>'.\n\t * @generated\n\t */\n\tDevice createDevice();\n\n\t/**\n\t * Returns a new object of class '<em>Actuator</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Actuator</em>'.\n\t * @generated\n\t */\n\tActuator createActuator();\n\n\t/**\n\t * Returns a new object of class '<em>Tag</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Tag</em>'.\n\t * @generated\n\t */\n\tTag createTag();\n\n\t/**\n\t * Returns a new object of class '<em>Rule</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Rule</em>'.\n\t * @generated\n\t */\n\tRule createRule();\n\n\t/**\n\t * Returns a new object of class '<em>External Sensor</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>External Sensor</em>'.\n\t * @generated\n\t */\n\tExternalSensor createExternalSensor();\n\n\t/**\n\t * Returns a new object of class '<em>Device Actuator</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Device Actuator</em>'.\n\t * @generated\n\t */\n\tDeviceActuator createDeviceActuator();\n\n\t/**\n\t * Returns a new object of class '<em>External Actuator</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>External Actuator</em>'.\n\t * @generated\n\t */\n\tExternalActuator createExternalActuator();\n\n\t/**\n\t * Returns a new object of class '<em>Action</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Action</em>'.\n\t * @generated\n\t */\n\tAction createAction();\n\n\t/**\n\t * Returns a new object of class '<em>Device State</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Device State</em>'.\n\t * @generated\n\t */\n\tDeviceState createDeviceState();\n\n\t/**\n\t * Returns a new object of class '<em>Composite State</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Composite State</em>'.\n\t * @generated\n\t */\n\tCompositeState createCompositeState();\n\n\t/**\n\t * Returns a new object of class '<em>Transition</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Transition</em>'.\n\t * @generated\n\t */\n\tTransition createTransition();\n\n\t/**\n\t * Returns a new object of class '<em>Digital Artifact</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Digital Artifact</em>'.\n\t * @generated\n\t */\n\tDigital_Artifact createDigital_Artifact();\n\n\t/**\n\t * Returns a new object of class '<em>Active Digital Artifact</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Active Digital Artifact</em>'.\n\t * @generated\n\t */\n\tActive_Digital_Artifact createActive_Digital_Artifact();\n\n\t/**\n\t * Returns a new object of class '<em>Passive Digital Artifact</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Passive Digital Artifact</em>'.\n\t * @generated\n\t */\n\tPassive_Digital_Artifact createPassive_Digital_Artifact();\n\n\t/**\n\t * Returns a new object of class '<em>User</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>User</em>'.\n\t * @generated\n\t */\n\tUser createUser();\n\n\t/**\n\t * Returns a new object of class '<em>Human User</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Human User</em>'.\n\t * @generated\n\t */\n\tHuman_User createHuman_User();\n\n\t/**\n\t * Returns a new object of class '<em>Communicator</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Communicator</em>'.\n\t * @generated\n\t */\n\tCommunicator createCommunicator();\n\n\t/**\n\t * Returns a new object of class '<em>Port</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Port</em>'.\n\t * @generated\n\t */\n\tPort createPort();\n\n\t/**\n\t * Returns a new object of class '<em>Information Resource</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Information Resource</em>'.\n\t * @generated\n\t */\n\tInformationResource createInformationResource();\n\n\t/**\n\t * Returns a new object of class '<em>On Device Resource</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>On Device Resource</em>'.\n\t * @generated\n\t */\n\tOn_Device_Resource createOn_Device_Resource();\n\n\t/**\n\t * Returns a new object of class '<em>Network Resource</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Network Resource</em>'.\n\t * @generated\n\t */\n\tNetwork_Resource createNetwork_Resource();\n\n\t/**\n\t * Returns a new object of class '<em>Device Resource</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Device Resource</em>'.\n\t * @generated\n\t */\n\tDevice_Resource createDevice_Resource();\n\n\t/**\n\t * Returns a new object of class '<em>Service Resource</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Service Resource</em>'.\n\t * @generated\n\t */\n\tService_Resource createService_Resource();\n\n\t/**\n\t * Returns a new object of class '<em>Property</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Property</em>'.\n\t * @generated\n\t */\n\tProperty createProperty();\n\n\t/**\n\t * Returns a new object of class '<em>VM</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>VM</em>'.\n\t * @generated\n\t */\n\tVM createVM();\n\n\t/**\n\t * Returns a new object of class '<em>Container</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Container</em>'.\n\t * @generated\n\t */\n\tContainer createContainer();\n\n\t/**\n\t * Returns a new object of class '<em>Analytics Engine</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Analytics Engine</em>'.\n\t * @generated\n\t */\n\tAnalytics_Engine createAnalytics_Engine();\n\n\t/**\n\t * Returns a new object of class '<em>Cloud</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Cloud</em>'.\n\t * @generated\n\t */\n\tCloud createCloud();\n\n\t/**\n\t * Returns a new object of class '<em>Database</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Database</em>'.\n\t * @generated\n\t */\n\tDatabase createDatabase();\n\n\t/**\n\t * Returns a new object of class '<em>Policy Repository</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Policy Repository</em>'.\n\t * @generated\n\t */\n\tPolicy_Repository createPolicy_Repository();\n\n\t/**\n\t * Returns a new object of class '<em>Reference Monitor</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Reference Monitor</em>'.\n\t * @generated\n\t */\n\tReference_Monitor createReference_Monitor();\n\n\t/**\n\t * Returns a new object of class '<em>Authorizor</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Authorizor</em>'.\n\t * @generated\n\t */\n\tAuthorizor createAuthorizor();\n\n\t/**\n\t * Returns a new object of class '<em>Information</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Information</em>'.\n\t * @generated\n\t */\n\tInformation createInformation();\n\n\t/**\n\t * Returns a new object of class '<em>Data Streams</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Data Streams</em>'.\n\t * @generated\n\t */\n\tDataStreams createDataStreams();\n\n\t/**\n\t * Returns a new object of class '<em>Atomic Data</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Atomic Data</em>'.\n\t * @generated\n\t */\n\tAtomicData createAtomicData();\n\n\t/**\n\t * Returns a new object of class '<em>Data Stream Attributes</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Data Stream Attributes</em>'.\n\t * @generated\n\t */\n\tDataStreamAttributes createDataStreamAttributes();\n\n\t/**\n\t * Returns a new object of class '<em>Atomic Data Attributes</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Atomic Data Attributes</em>'.\n\t * @generated\n\t */\n\tAtomicDataAttributes createAtomicDataAttributes();\n\n\t/**\n\t * Returns a new object of class '<em>Fog Services</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Fog Services</em>'.\n\t * @generated\n\t */\n\tFog_Services createFog_Services();\n\n\t/**\n\t * Returns a new object of class '<em>Operations</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Operations</em>'.\n\t * @generated\n\t */\n\tOperations createOperations();\n\n\t/**\n\t * Returns a new object of class '<em>Java Evaluator</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Java Evaluator</em>'.\n\t * @generated\n\t */\n\tJavaEvaluator createJavaEvaluator();\n\n\t/**\n\t * Returns a new object of class '<em>Entity</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Entity</em>'.\n\t * @generated\n\t */\n\tEntity createEntity();\n\n\t/**\n\t * Returns a new object of class '<em>Script Evaluator</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Script Evaluator</em>'.\n\t * @generated\n\t */\n\tScriptEvaluator createScriptEvaluator();\n\n\t/**\n\t * Returns a new object of class '<em>Device Sensor</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Device Sensor</em>'.\n\t * @generated\n\t */\n\tDeviceSensor createDeviceSensor();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tIoT_metamodelPackage getIoT_metamodelPackage();\n\n}", "public ObjectFactory() {\n super(grammarInfo);\n }", "public ObjectFactory() {\n\t}", "ObjectFactoryGenerator objectFactoryGenerator();", "public interface MyHdbtiFactory extends EFactory\n{\n /**\n * The singleton instance of the factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n MyHdbtiFactory eINSTANCE = com.sap.xsk.models.hdbti.myHdbti.impl.MyHdbtiFactoryImpl.init();\n\n /**\n * Returns a new object of class '<em>Hdbdti Model</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Hdbdti Model</em>'.\n * @generated\n */\n HdbdtiModel createHdbdtiModel();\n\n /**\n * Returns a new object of class '<em>Group Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Group Type</em>'.\n * @generated\n */\n GroupType createGroupType();\n\n /**\n * Returns a new object of class '<em>Import Config</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Import Config</em>'.\n * @generated\n */\n ImportConfig createImportConfig();\n\n /**\n * Returns a new object of class '<em>Import</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Import</em>'.\n * @generated\n */\n Import createImport();\n\n /**\n * Returns the package supported by this factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the package supported by this factory.\n * @generated\n */\n MyHdbtiPackage getMyHdbtiPackage();\n\n}", "public ObjectFactory() {\r\n\t}", "XUMLRTFactory getXUMLRTFactory();", "Klassenstufe createKlassenstufe();", "Foco createFoco();", "EPackage createEPackage();", "public interface OntoumlFactory extends EFactory {\r\n\t/**\r\n\t * The singleton instance of the factory.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tOntoumlFactory eINSTANCE = net.menthor.onto2.ontouml.impl.OntoumlFactoryImpl.init();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Comment</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Comment</em>'.\r\n\t * @generated\r\n\t */\r\n\tComment createComment();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Model</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Model</em>'.\r\n\t * @generated\r\n\t */\r\n\tModel createModel();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Package</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Package</em>'.\r\n\t * @generated\r\n\t */\r\n\tPackage createPackage();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Attribute</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Attribute</em>'.\r\n\t * @generated\r\n\t */\r\n\tAttribute createAttribute();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Constraint</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Constraint</em>'.\r\n\t * @generated\r\n\t */\r\n\tConstraint createConstraint();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Literal</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Literal</em>'.\r\n\t * @generated\r\n\t */\r\n\tLiteral createLiteral();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Data Type</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Data Type</em>'.\r\n\t * @generated\r\n\t */\r\n\tDataType createDataType();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Class</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Class</em>'.\r\n\t * @generated\r\n\t */\r\n\tClass createClass();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>End Point</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>End Point</em>'.\r\n\t * @generated\r\n\t */\r\n\tEndPoint createEndPoint();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Relationship</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Relationship</em>'.\r\n\t * @generated\r\n\t */\r\n\tRelationship createRelationship();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Generalization Set</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Generalization Set</em>'.\r\n\t * @generated\r\n\t */\r\n\tGeneralizationSet createGeneralizationSet();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Generalization</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Generalization</em>'.\r\n\t * @generated\r\n\t */\r\n\tGeneralization createGeneralization();\r\n\r\n\t/**\r\n\t * Returns the package supported by this factory.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the package supported by this factory.\r\n\t * @generated\r\n\t */\r\n\tOntoumlPackage getOntoumlPackage();\r\n\r\n}" ]
[ "0.64041775", "0.62957776", "0.6196251", "0.61953187", "0.6194187", "0.6182828", "0.6182828", "0.6182828", "0.61790216", "0.6174813", "0.61463654", "0.6123058", "0.61228245", "0.6101408", "0.60879874", "0.6067917", "0.60648894", "0.6059531", "0.6049325", "0.60478646", "0.6007657", "0.6004733" ]
0.0
-1
metodo encargado crear un nuevo Movimiento, con las cantidades para agregar o quitar, dependiendo si la variable es 1 o 1 respectivamente
public MovimientoEnvase agregarQuitar(int variable) { int cantidadInsumo = (Integer.parseInt(vistaMovimiento.getCuadroCantidad().getText())) * variable; //toma el valor del TextField, lo castea a int y lo multiplica,por 1 si se agregan cantidades, o por -1 para quitar cantidades y que este quede con valor negativo int indiceSeleccionado = vistaMovimiento.getListadoInsumos().getSelectionModel().getSelectedIndex();//se toma el indice del la opcion seleccionada del ComboBox LocalDate date = vistaMovimiento.getDatePicker().getValue(); //Se coloca en un LocalDate la fecha seleccionada del DataPicker DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd-MM-yyyy");//Se configura el formato de la fecha String fecha = (date).format(formatter);//se le coloca el formato a la fecha, y lo pasa a un String int idIndice = Integer.parseInt(vistaMovimiento.getIdEnvases().get(indiceSeleccionado));//busca el contenido que hay en la observable list que tiene los IDs de los envases, dependiendo del indice de la opcion que se selecciono en el ComboBox y lo castea a int return new MovimientoEnvase(idIndice, cantidadInsumo, fecha); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Medidor nuevoMedidor(TipoMedidor tipo, CoordenadaGPS pos){\r\n\t\tMedidor m;\r\n\t\tif (TipoMedidor.MONOFASICO.equals(tipo))\r\n\t\t\tm = new MedidorMonofasico(pos);\r\n\t\telse\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\tmedidores.add(m);\r\n\t\treturn m;\r\n\t}", "public void crearVideojuego(){\n String titulo;\n String autor;\n Multimedia.FORMATO formato;\n GregorianCalendar anyo;\n Videojuego.PLATAFORMA plataforma = Videojuego.PLATAFORMA.ERROR;\n\n int opcion = -1;\n boolean validado = false;\n\n\n titulo = pedirString(\"titulo\"); // Pido el titulo\n autor = pedirString(\"autor\"); // Pido el autor\n formato = pedirFormato(); // Pido el formato\n anyo = pedirAnyo(); // Pido el anyo\n\n\n do{\n\n System.out.println(\"Elige la plataforma:\");\n System.out.println(\"1. PLAYSTATION\");\n System.out.println(\"2. XBOX\");\n System.out.println(\"3. NINTENDO\");\n\n try {\n opcion = Integer.parseInt(lector.nextLine());\n validado = true;\n if (opcion > 3 || opcion < 1) {\n validado = false;\n System.out.println(\"Por favor, introduce un numero entre el 1 y el 3\");\n }\n }catch (NumberFormatException nfe){\n System.out.println(\"Introduce un valor numerico entre el 1 y el 3\");\n }\n }while(!validado);\n\n switch (opcion){\n case 1:\n plataforma = Videojuego.PLATAFORMA.PLAYSTATION;\n break;\n case 2:\n plataforma = Videojuego.PLATAFORMA.XBOX;\n break;\n case 3:\n plataforma = Videojuego.PLATAFORMA.NINTENDO;\n break;\n default:\n break;\n }\n\n //Creo el videojuego y lo anyado a la tienda:\n\n tienda.getVideojuegos().add(new Videojuego(titulo,autor,formato,anyo,plataforma));\n System.out.println(\"Videojuego creado con exito\");\n Lib.pausa();\n\n\n\n }", "Motivo create(Motivo motivo);", "public void creoVehiculo() {\n\t\t\n\t\tAuto a= new Auto(false, 0);\n\t\ta.encender();\n\t\ta.setPatente(\"saraza\");\n\t\ta.setCantPuertas(123);\n\t\ta.setBaul(true);\n\t\t\n\t\tSystem.out.println(a);\n\t\t\n\t\tMoto m= new Moto();\n\t\tm.encender();\n\t\tm.frenar();\n\t\tm.setManubrio(true);\n\t\tm.setVelMax(543);\n\t\tm.setPatente(\"zas 241\");\n\t\tVehiculo a1= new Auto(true, 0);\n\t\ta1.setPatente(\"asd 423\");\n\t\t((Auto)a1).setBaul(true);\n\t\t((Auto)a1).setCantPuertas(15);\n\t\tif (a1 instanceof Auto) {\n\t\t\tAuto autito= (Auto) a1;\n\t\t\tautito.setBaul(true);\n\t\t\tautito.setCantPuertas(531);\n\t\t\t\n\t\t}\n\t\tif (a1 instanceof Moto) {\n\t\t\tMoto motito=(Moto) a1;\n\t\t\tmotito.setManubrio(false);\n\t\t\tmotito.setVelMax(15313);\n\t\t\t\n\t\t\t\n\t\t}\n\t\tif (a1 instanceof Camion) {\n\t\t\tCamion camioncito=(Camion) a1;\n\t\t\tcamioncito.setAcoplado(false);\n\t\t\tcamioncito.setPatente(\"ge\");\n\t\t\t\n\t\t\t\n\t\t}\n\t\tVehiculo a2= new Moto();\n\t\tSystem.out.println(a2);\n\t\ta1.frenar();\n\t\t\n\t\tArrayList<Vehiculo>listaVehiculo= new ArrayList<Vehiculo>();\n\t\tlistaVehiculo.add(new Auto(true, 53));\n\t\tlistaVehiculo.add(new Moto());\n\t\tlistaVehiculo.add(new Camion());\n\t\tfor (Vehiculo vehiculo : listaVehiculo) {\n\t\t\tSystem.out.println(\"clase:\" +vehiculo.getClass().getSimpleName());\n\t\t\tvehiculo.encender();\n\t\t\tvehiculo.frenar();\n\t\t\tSystem.out.println(\"=======================================\");\n\t\t\t\n\t\t}\n\t}", "public void addPrimero(Object obj) {\n if (cabeza == null) { //Si la cabeza es nula, entoces se creará un nuevo nodo donde le pasaremos el valor de obj\n cabeza = new Nodo(obj);\n } else { //Si no es nula, signifa que el valor que se ingrese, pasara a ser la nueva cabeza\n Nodo temp = cabeza; //Metemos la cabeza en un nodo temporal\n Nodo nuevo = new Nodo(obj); //Creamos un nuevo nodo, que no está enlazado\n nuevo.enlazarSiguiente(temp); //Y el nuevo nodo lo enlazamos a el nodo Temp, que contenia el valor anterior de la otra cabeza\n cabeza = nuevo; //Y ahora le decimos que la cabeza sera nuevo\n }\n size++; //Cada vez que agreguemos un nuevo nodo el tamaño de nuestra lista tendra que aumentar\n }", "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 }", "public void crearPeliculaNueva(){\n //Atributos de pelicula\n String titulo;\n String autor;\n Multimedia.FORMATO formato;\n GregorianCalendar anyo;\n double duracion = 0;\n String actorPrincipal;\n String actrizPrincipal;\n\n boolean validado = false;\n\n\n titulo = pedirString( \"titulo\"); // Pido el titulo\n autor = pedirString(\"autor\"); // Pido el autor\n formato = pedirFormato(); // Pido el formato\n anyo = pedirAnyo(); // Pido el anyo\n\n do{\n System.out.println(\"Introduce la duracion:\");\n try {\n duracion = Double.parseDouble(lector.nextLine());\n validado = true;\n\n if(duracion <= 0){\n validado = false;\n System.out.println(\"la duracion no puede ser un numero negativo\");\n }\n }catch (NumberFormatException nfe){\n System.out.println(\"Por favor, introduce un numero.\");\n }\n\n }while(!validado);\n validado = false;\n\n // Pido el actor\n do {\n System.out.println(\"Actor: \");\n actorPrincipal = lector.nextLine();\n validado = titulo.length() > 2;\n if(!validado) {\n System.out.println(\"El actor debe tener almenos 2 caracteres\");\n Lib.pausa();\n }\n } while (!validado);\n\n validado = false;\n\n // Pido la actriz\n do {\n System.out.println(\"Actriz: \");\n actrizPrincipal = lector.nextLine();\n validado = titulo.length() > 2;\n if(!validado) {\n System.out.println(\"La actriz debe tener almenos 2 caracteres\");\n Lib.pausa();\n }\n } while (!validado);\n\n\n // Finalmente creo la pelicula y lo anyado a las peliculas de la tienda.\n tienda.getPeliculas().add(new Pelicula(titulo, autor, formato, anyo, duracion, actorPrincipal, actrizPrincipal));\n System.out.println(\"Pelicula creado con exito\");\n Lib.pausa();\n\n }", "Negacion createNegacion();", "public void comprobarMov() {\r\n for (int i = 1; i < movimientos.length; i++) {\r\n if (movimientos[i]) {\r\n movimientos[i] = sePuedeMover(i);\r\n }\r\n }\r\n }", "public Paciente agregar(PacienteDTO nuevoPaciente) {\n\n int valor_hipertension = nuevoPaciente.getHipertension().equalsIgnoreCase(\"Si\") ? 100 : 0;\n int valor_mareo = nuevoPaciente.getMareo().equalsIgnoreCase(\"Si\") ? 100 : 0;\n int valor_presion = medirPresion(nuevoPaciente.getPresion());\n int valor_fiebre = medirFiebre(nuevoPaciente.getFiebre());\n int valor_edad = medirEdad(nuevoPaciente.getEdad());\n int puntaje = valor_mareo + valor_edad + valor_presion + valor_fiebre + valor_hipertension;\n\n Date date = new Date(new java.util.Date().getTime());\n Color color = colorRepository.getColorBetweenRange(puntaje);\n\n Paciente paciente = new Paciente();\n paciente.setName(nuevoPaciente.getNombre());\n paciente.setDni(nuevoPaciente.getDni());\n paciente.setColor(color);\n paciente.setScore(puntaje);\n paciente.setStatus(cantidadSiendoAtendidos(color) < color.getCant_max_patient() ? \"Siendo atendido\" : \"En espera\");\n paciente.setDate(date);\n Paciente elemento = pacienteRepository.saveAndFlush(paciente);\n return elemento;\n }", "Long crear(Prestamo prestamo);", "public void insertar(int x, String nombre) {\n \tNodo nuevo;\n nuevo = new Nodo();\n nuevo.edad = x;\n nuevo.nombre = nombre;\n //Validar si la lista esta vacia\n if (raiz==null)\n {\n nuevo.sig = null;\n raiz = nuevo;\n }\n else\n {\n nuevo.sig = raiz;\n raiz = nuevo;\n }\n }", "@Override\n public void crearReloj() {\n Manecilla seg;\n seg = new Manecilla(40,60,0,1,null);\n cronometro = new Reloj(seg);\n }", "private void adicionar(No novo, Pessoa pessoa) {\n if(raiz == null)\n raiz = new No(pessoa);\n else{\n if(pessoa.getIdade()<novo.getPessoa().getIdade()){\n if(novo.getEsquerda() != null)\n adicionar(novo.getEsquerda() , pessoa);\n else\n novo.setEsquerda(new No(pessoa));\n }else{\n if(novo.getDireita() !=null)\n adicionar(novo.getDireita(), pessoa);\n else\n novo.setDireita(new No(pessoa));\n }\n }\n \n }", "private void nuevoJuego() { \n\n objJuegoTresEnRaya = new JuegoTresEnRaya();\n objJuegoTresEnRaya.addObserver(this);\n objJuegoTresEnRaya.setQuienComienza(JuegoTresEnRaya.JUGADOR);\n objJuegoTresEnRaya.setQuienJuega(JuegoTresEnRaya.JUGADOR);\n \n }", "private void dibujarArregloCamionetas() {\n\n timerCrearEnemigo += Gdx.graphics.getDeltaTime();\n if (timerCrearEnemigo>=TIEMPO_CREA_ENEMIGO) {\n timerCrearEnemigo = 0;\n TIEMPO_CREA_ENEMIGO = tiempoBase + MathUtils.random()*2;\n if (tiempoBase>0) {\n tiempoBase -= 0.01f;\n }\n\n camioneta= new Camioneta(texturaCamioneta,ANCHO,60f);\n arrEnemigosCamioneta.add(camioneta);\n\n\n }\n\n //Si el vehiculo se paso de la pantalla, lo borra\n for (int i = arrEnemigosCamioneta.size-1; i >= 0; i--) {\n Camioneta camioneta1 = arrEnemigosCamioneta.get(i);\n if (camioneta1.sprite.getX() < 0- camioneta1.sprite.getWidth()) {\n arrEnemigosCamioneta.removeIndex(i);\n\n }\n }\n }", "public void agregarAlInicio(String valor){\r\n // Define un nuevo nodo.\r\n Nodo nuevo = new Nodo();\r\n // Agrega al valor al nodo.\r\n nuevo.setValor(valor);\r\n // Consulta si la lista esta vacia.\r\n if (esVacia()) {\r\n // Inicializa la lista agregando como inicio al nuevo nodo.\r\n inicio = nuevo;\r\n // Caso contrario va agregando los nodos al inicio de la lista.\r\n } else{\r\n // Une el nuevo nodo con la lista existente.\r\n nuevo.setSiguiente(inicio);\r\n // Renombra al nuevo nodo como el inicio de la lista.\r\n inicio = nuevo;\r\n }\r\n // Incrementa el contador de tamaño de la lista.\r\n tamanio++;\r\n }", "public void crearVehiculo( clsVehiculo vehiculo ){\n if( vehiculo.obtenerTipoMedioTransporte().equals(\"Carro\") ){\n //Debo llamar el modelo de CARRO\n modeloCarro.crearCarro( (clsCarro) vehiculo );\n } else if (vehiculo.obtenerTipoMedioTransporte().equals(\"Camion\")){\n //Debo llamar el modelo de CAMIÓN\n }\n }", "private void creaModuloMem() {\n /* variabili e costanti locali di lavoro */\n ArrayList<Campo> campi = new ArrayList<Campo>();\n ModuloRisultati modulo;\n Campo campo;\n\n try { // prova ad eseguire il codice\n\n campo = CampoFactory.intero(Campi.Ris.codicePiatto.getNome());\n campi.add(campo);\n\n campo = CampoFactory.testo(Campi.Ris.nomePiatto.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"piatto\");\n campo.setToolTipLista(\"nome del piatto\");\n campo.decora()\n .etichetta(\"nome del piatto\"); // le etichette servono per il dialogo ricerca\n campo.setLarghezza(250);\n campi.add(campo);\n\n campo = CampoFactory.testo(Campi.Ris.categoria.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"categoria\");\n campo.setToolTipLista(\"categoria del piatto\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quanteVolte.getNome());\n campo.setVisibileVistaDefault();\n campo.setLarghezza(80);\n campo.setTitoloColonna(\"quante volte\");\n campo.setToolTipLista(\n \"quante volte questo piatto è stato offerto nel periodo analizzato\");\n campo.decora().etichetta(\"quante volte\");\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quantiCoperti.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"coperti\");\n campo.setToolTipLista(\"numero di coperti che avrebbero potuto ordinare\");\n campo.decora().etichetta(\"n. coperti\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quanteComande.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"comande\");\n campo.setToolTipLista(\"numero di comande effettive\");\n campo.decora().etichetta(\"n. comande\");\n campo.setLarghezza(80);\n campo.setTotalizzabile(true);\n campi.add(campo);\n\n campo = CampoFactory.percentuale(Campi.Ris.gradimento.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"gradimento\");\n campo.setToolTipLista(\n \"percentuale di gradimento (è il 100% se tutti i coperti potenziali lo hanno ordinato)\");\n campo.decora().etichetta(\"% gradimento\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n modulo = new ModuloRisultati(campi);\n setModuloRisultati(modulo);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n }", "public void nuevo(){\n switch(tipoDeOperaciones){\n case NINGUNO:\n activarControles();\n btnNuevo.setText(\"Guardar\");\n btnEliminar.setDisable(false);\n btnEliminar.setText(\"Cancelar\");\n btnEditar.setDisable(true);\n btnReporte.setDisable(true);\n tipoDeOperaciones = operaciones.GUARDAR;\n break;\n case GUARDAR:\n guardar();\n \n desactivarControles();\n limpiarControles();\n btnNuevo.setText(\"Nuevo\");\n btnEliminar.setText(\"Eliminar\");\n btnEliminar.setDisable(true);\n btnEditar.setDisable(true);\n btnReporte.setDisable(true);\n tipoDeOperaciones = operaciones.NINGUNO;\n break;\n } \n \n }", "private void verificarMuerte() {\n if(vidas==0){\n if(estadoJuego==EstadoJuego.JUGANDO){\n estadoJuego=EstadoJuego.PIERDE;\n //Crear escena Pausa\n if(escenaMuerte==null){\n escenaMuerte=new EscenaMuerte(vistaHUD,batch);\n }\n Gdx.input.setInputProcessor(escenaMuerte);\n efectoGameOver.play();\n if(music){\n musicaFondo.pause();\n }\n }\n guardarPuntos();\n }\n }", "Compuesta createCompuesta();", "private Posicion posicionAlDesarmarMenasor(Posicion posicion) {\n\t\t\t\tPosicion posAux;\n\t\t\t\ttry{\n\t\t\t\t\tposAux=new Posicion(posicion.getFila(),posicion.getColumna()-2);\n\t\t\t\t}catch(ErrorPosicionInvalida e){\n\t\t\t\t\tposAux=new Posicion(posicion.getFila(),posicion.getColumna()+1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn posAux;\n\t\t\t}", "public void crearDisco( ){\r\n boolean parameter = true;\r\n String artista = panelDatos.darArtista( );\r\n String titulo = panelDatos.darTitulo( );\r\n String genero = panelDatos.darGenero( );\r\n String imagen = panelDatos.darImagen( );\r\n\r\n if( ( artista.equals( \"\" ) || titulo.equals( \"\" ) ) || ( genero.equals( \"\" ) || imagen.equals( \"\" ) ) ) {\r\n parameter = false;\r\n JOptionPane.showMessageDialog( this, \"Todos los campos deben ser llenados para crear el disco\" );\r\n }\r\n if( parameter){\r\n boolean ok = principal.crearDisco( titulo, artista, genero, imagen );\r\n if( ok )\r\n dispose( );\r\n }\r\n }", "private void añadirEnemigo() {\n\t\t\n\t\tif(enemigo.isVivo()==false){\n\t\t\tint k;\n\t\t\tk = (int)(Math.random()*1000)+1;\n\t\t\tif(k<=200){\n\t\t\t\tif(this.puntuacion<10000){\n\t\t\t\t\tenemigo.setTipo(0);\n\t\t\t\t\tenemigo.setVivo(true);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tenemigo.setTipo(1);\n\t\t\t\t\tenemigo.setVivo(true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public 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 void insertarcola(){\n Cola_banco nuevo=new Cola_banco();// se declara nuestro metodo que contendra la cola\r\n System.out.println(\"ingrese el nombre que contendra la cola: \");// se pide el mensaje desde el teclado\r\n nuevo.nombre=teclado.next();// se ingresa nuestro datos por consola yse almacena en la variable nombre\r\n if (primero==null){// se usa una condicional para indicar si primer dato ingresado es igual al null\r\n primero=nuevo;// se indica que el primer dato ingresado pasa a ser nuestro dato\r\n primero.siguiente=null;// se indica que el el dato ingresado vaya al apuntador siguente y que guarde al null\r\n ultimo=nuevo;// se indica que el ultimo dato ingresado pase como nuevo en la cabeza de nuestro cola\r\n }else{// se usa la condicon sino se cumple la primera\r\n ultimo.siguiente=nuevo;//se indica que ultimo dato ingresado apunte hacia siguente si es que hay un nuevo dato ingresado y que vaya aser el nuevo dato de la cola\r\n nuevo.siguiente=null;// se indica que el nuevo dato ingresado vaya y apunete hacia siguente y quees igual al null\r\n ultimo=nuevo;// se indica que el ultimo dato ingresado pase como nuevo dato\r\n }\r\n System.out.println(\"\\n dato ingresado correctamente\");// se imprime enl mensaje que el dato ha sido ingresado correctamente\r\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}", "private Etapa nuevaEtapa(Etapa e) {\n if(debug) {\n System.out.println(\"**********************nuevaEtapa\");\n }\n \n Etapa ret = new Etapa();\n ret.i = e.i;\n ret.k = e.k+1;\n \n return ret;\n }", "public SuperRodada(){\n this.pontos_em_disputa=0;\n this.truco=false;\n this.Desafiante=null;\n this.addPontosEmDisputa(2);\n Game game = Game.getGame();\n DonoDoBaralho=(DonoDoBaralho==null)?game.getDupla(1).getJogadorA():this.proximoAJogar(DonoDoBaralho);\n \n }", "public void siguienteNivel(){ \n\t\tnivel++;\n\t\tcontador = 0;\n\t\tcontadorE = 0;\n\t\treiniciar = false;\n\t\t\n\t\tnumDisparos=0; \n\t\tpausa=false;\n\t\tdisparando=false;\n\t\t\n\t\tif(nivel<9){\n\t\t\tasteroides =new Asteroide [(2+(nivel*2)) *(int)Math.pow(astNumDivision,astNumDisparos-1)+1];\n\t\t\tnumAsteroides = 2+(nivel*2);\n\t\t}\n\t\telse{\n\t\t\tasteroides =new Asteroide [12 *(int)Math.pow(astNumDivision,astNumDisparos-1)+1];\n\t\t\tnumAsteroides = 12;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<numAsteroides;i++){\n\t\t\tasteroides[i]=new Asteroide(this, Math.random()*this.getWidth(), Math.random()*this.getHeight(), \n\t\t\t\t\tastRadio,minAstVel, maxAstVel, astNumDisparos, astNumDivision, 1);\n\t\t}\n\t}", "private void BajarPiezaAlInstante() {\n int newY = posicionY;\r\n while (newY > 0) {\r\n if (!Mover(piezaActual, posicionX, newY - 1)) {\r\n break;\r\n }\r\n --newY;\r\n }\r\n BajarPieza1posicion();\r\n }", "@Override\n\tpublic void crearNuevaPoblacion() {\n\t\t/* Nos quedamos con los mejores individuos. Del resto, cruzamos la mitad, los mejores,\n\t\t * y el resto los borramos.*/\n\t\tList<IIndividuo> poblacion2 = new ArrayList<>();\n\t\tint numFijos = (int) (poblacion.size()/2);\n\t\t/* Incluimos el 50%, los mejores */\n\t\tpoblacion2.addAll(this.poblacion.subList(0, numFijos));\n\t\t\n\t\t/* De los mejores, mezclamos la primera mitad \n\t\t * con todos, juntandolos de forma aleatoria */\n\t\tList<IIndividuo> temp = poblacion.subList(0, numFijos+1);\n\t\tfor(int i = 0; i < temp.size()/2; i++) {\n\t\t\tint j;\n\t\t\tdo {\n\t\t\t\tj = Individuo.aleatNum(0, temp.size()-1);\n\t\t\t}while(j != i);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tpoblacion2.addAll(cruce(temp.get(i), temp.get(j)));\n\t\t\t} catch (CruceNuloException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//this.poblacion.clear();\n\t\tthis.poblacion = poblacion2;\n\t}", "public void jugarMaquinaSola(int turno) {\n if (suspenderJuego) {\n return;\n }\n CuadroPieza cuadroActual;\n CuadroPieza cuadroDestino;\n CuadroPieza MovDestino = null;\n CuadroPieza MovActual = null;\n for (int x = 0; x < 8; x++) {\n for (int y = 0; y < 8; y++) {\n cuadroActual = tablero[x][y];\n if (cuadroActual.getPieza() != null) {\n if (cuadroActual.getPieza().getColor() == turno) {\n for (int x1 = 0; x1 < 8; x1++) {\n for (int y1 = 0; y1 < 8; y1++) {\n cuadroDestino = tablero[x1][y1];\n if (cuadroDestino.getPieza() != null) {\n if (cuadroActual.getPieza().validarMovimiento(cuadroDestino, this)) {\n if (MovDestino == null) {\n MovActual = cuadroActual;\n MovDestino = cuadroDestino;\n } else {\n if (cuadroDestino.getPieza().getPeso() > MovDestino.getPieza().getPeso()) {\n MovActual = cuadroActual;\n MovDestino = cuadroDestino;\n }\n if (cuadroDestino.getPieza().getPeso() == MovDestino.getPieza().getPeso()) {\n //Si es el mismo, elijo al azar si moverlo o no\n if (((int) (Math.random() * 3) == 1)) {\n MovActual = cuadroActual;\n MovDestino = cuadroDestino;\n }\n }\n }\n }\n\n }\n }\n }\n }\n }\n }\n }\n if (MovActual == null) {\n boolean b = true;\n do {//Si no hay mov recomendado, entonces genero uno al azar\n int x = (int) (Math.random() * 8);\n int y = (int) (Math.random() * 8);\n tablero[x][y].getPieza();\n int x1 = (int) (Math.random() * 8);\n int y1 = (int) (Math.random() * 8);\n\n MovActual = tablero[x][y];\n MovDestino = tablero[x1][y1];\n if (MovActual.getPieza() != null) {\n if (MovActual.getPieza().getColor() == turno) {\n b = !MovActual.getPieza().validarMovimiento(MovDestino, this);\n //Si mueve la pieza, sale del while.\n }\n }\n } while (b);\n }\n if (MovActual.getPieza().MoverPieza(MovDestino, this)) {\n this.setTurno(this.getTurno() * -1);\n if (getRey(this.getTurno()).isInJacke(this)) {\n if (Pieza.isJugadorAhogado(turno, this)) {\n JOptionPane.showMessageDialog(null, \"Hacke Mate!!! - te lo dije xD\");\n if (JOptionPane.showConfirmDialog(null, \"Deseas Empezar una nueva Partida¿?\", \"Nueva Partida\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n ordenarTablero();\n } else {\n suspenderJuego = true;\n }\n return;\n } else {\n JOptionPane.showMessageDialog(null, \"Rey en Hacke - ya t kgste\");\n }\n } else {\n if (Pieza.isJugadorAhogado(turno, this)) {\n JOptionPane.showMessageDialog(null, \"Empate!!!\\nComputadora: Solo por que te ahogaste...!!!\");\n if (JOptionPane.showConfirmDialog(null, \"Deseas Empezar una nueva Partida¿?\", \"Nueva Partida\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n ordenarTablero();\n } else {\n suspenderJuego = true;\n }\n return;\n }\n if (Pieza.getCantMovimientosSinCambios() >= 50) {\n JOptionPane.showMessageDialog(null, \"Empate!!! \\nComputadora: Vaya, han pasado 50 turnos sin comernos jeje!!!\");\n if (JOptionPane.showConfirmDialog(null, \"Otra Partida Amistosa¿?\", \"Nueva Partida\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n ordenarTablero();\n } else {\n suspenderJuego = true;\n }\n return;\n }\n }\n }\n if (this.getTurno() == turnoComputadora) {\n jugarMaquinaSola(this.getTurno());\n }\n }", "public MovimientoControl() {\n }", "public void creaAziendaAgricola(){\n\t\tCantina nipozzano = creaCantina(\"Nipozzano\");\t\n\t\tBotte[] bottiNipozzano = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiNipozzano.length; i++){\n\t\t\tbottiNipozzano[i] = creaBotte(nipozzano, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\t\t\n\t\tVigna mormoreto = creaVigna(\"Mormoreto\", 330, 25, EsposizioneVigna.sud, \"Terreni ricchi di sabbia, ben drenati. Discreta presenza di calcio. pH neutro o leggermente alcalino\");\n\t\tFilare[] filariMormoreto = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMormoreto.length;i++){\n\t\t\tfilariMormoreto[i] = creaFilare(mormoreto, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\t\n\t\tVigna montesodi = creaVigna(\"Montesodi\", 400, 20, EsposizioneVigna.sud_ovest, \"Arido e sassoso, di alberese, argilloso e calcareo, ben drenato, poco ricco di sostanza organica\");\n\t\tFilare[] filariMontesodi = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMontesodi.length;i++){\n\t\t\tfilariMontesodi[i] = creaFilare(montesodi, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t/*\n\t\t * CANTINA: POMINO - VIGNETO BENEFIZIO\n\t\t */\n\t\t\n\t\tCantina pomino = creaCantina(\"Pomino\");\n\t\tBotte[] bottiPomino = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiPomino.length; i++){\n\t\t\tbottiPomino[i] = creaBotte(pomino, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\n\t\tVigna benefizio = creaVigna(\"Benefizio\", 700, 9, EsposizioneVigna.sud_ovest, \"Terreni ricchi di sabbia, forte presenza di scheletro. Molto drenanti. Ricchi in elementi minerali. PH acido o leggermente acido.\");\n\t\tFilare[] filariBenefizio = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariBenefizio.length;i++){\n\t\t\tfilariBenefizio[i] = creaFilare(benefizio, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(nipozzano);\n\t\taziendaAgricolaDAO.saveLuogo(mormoreto);\n\t\taziendaAgricolaDAO.saveLuogo(montesodi);\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(pomino);\n\t\taziendaAgricolaDAO.saveLuogo(benefizio);\n\t\t\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Giulio d'Afflitto\"));\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Francesco Ermini\"));\n\n\t\t\n\t}", "@Override\n public boolean create(Revue objet) {\n return false;\n }", "private void priorizar() {\r\n if (ini == fin) {\r\n return;\r\n }\r\n\r\n int t1 = fin, t2 = fin - 1;\r\n TDAPrioridad aux = new TDAPrioridad(0, '0');\r\n while (t1 != ini) {\r\n if (datos[t1].getPrioridad() > datos[t2].getPrioridad()) {\r\n aux.setObjeto(datos[t1]);\r\n datos[t1].setObjeto(datos[t2]);\r\n datos[t2].setObjeto(aux);\r\n t2--;\r\n t1--;\r\n } else {\r\n break;\r\n }\r\n }\r\n }", "public void agregarAlFinal(String valor){\r\n // Define un nuevo nodo.\r\n Nodo nuevo = new Nodo();\r\n // Agrega al valor al nodo.\r\n nuevo.setValor(valor);\r\n // Consulta si la lista esta vacia.\r\n if (esVacia()) {\r\n // Inicializa la lista agregando como inicio al nuevo nodo.\r\n inicio = nuevo;\r\n // Caso contrario recorre la lista hasta llegar al ultimo nodo\r\n //y agrega el nuevo.\r\n } else{\r\n // Crea ua copia de la lista.\r\n Nodo aux = inicio;\r\n // Recorre la lista hasta llegar al ultimo nodo.\r\n while(aux.getSiguiente() != null){\r\n aux = aux.getSiguiente();\r\n }\r\n // Agrega el nuevo nodo al final de la lista.\r\n aux.setSiguiente(nuevo);\r\n }\r\n // Incrementa el contador de tamaño de la lista\r\n tamanio++;\r\n }", "boolean insertar(Nodo_B nuevo){\n if(this.primero == null){\n this.primero = nuevo;\n this.ultimo = nuevo;\n size ++;\n return true;\n }else{\n if(this.primero == this.ultimo){ // -------------------------solo hay un nodo \n if(nuevo.valor < this.primero.valor){\n nuevo.siguiente = this.primero;\n this.primero.anterior = nuevo;\n this.primero.izq = nuevo.der; // -----cambia los punteros a las paginas\n this.primero = nuevo;\n size++; \n return true;\n }else if(nuevo.valor > this.ultimo.valor){\n this.ultimo.siguiente = nuevo;\n nuevo.anterior = this.ultimo;\n this.ultimo.der = nuevo.izq; //------ cambia los punteros a las paginas \n this.ultimo = nuevo;\n size++; \n return true;\n }else{\n System.out.println (\"ya hay un destino con ese codigo registrado\");\n return false;\n }\n }else{ // ---------------------------------------------------hay mas de un nodo\n if(nuevo.valor < this.primero.valor){\n nuevo.siguiente = this.primero;\n this.primero.anterior = nuevo;\n this.primero.izq = nuevo.der; // -----cambia los punteros a las paginas\n this.primero = nuevo;\n size++; \n return true;\n }else if(nuevo.valor > this.ultimo.valor){\n this.ultimo.siguiente = nuevo;\n nuevo.anterior = this.ultimo;\n this.ultimo.der = nuevo.izq; //------ cambia los punteros a las paginas \n this.ultimo = nuevo;\n size++; \n return true;\n }else{\n Nodo_B pivote = this.primero;\n while(pivote != null){\n if(nuevo.valor < pivote.valor){\n nuevo.siguiente = pivote;\n nuevo.anterior = pivote.anterior;\n //--------------------------- cambia los punteros a las paginas\n pivote.izq = nuevo.der;\n pivote.anterior.der = nuevo.izq;\n //-----------------------------------------------------------\n pivote.anterior.siguiente = nuevo;\n pivote.anterior = nuevo;\n size++;\n return true;\n }else if(nuevo.valor == pivote.valor){\n System.out.println (\"ya hay un destino con ese codigo registrado\");\n return false;\n }else{\n pivote = pivote.siguiente;\n }\n }\n }\n }\n }\n return false;\n }", "public void AgregarDeMayorAMenor(int el) throws Exception{\n if(repetido(el)){\n throw new Exception(\"El dato ya existe en la lista!!!\");\n }else{\n /*\n Crear un nodo para el nuevo dato.\n Si la lista esta vacía, o el valor del primer elemento de la lista \n es mayor que el nuevo, insertar el nuevo nodo en la primera posición \n de la lista y modificar la cabecera respectivamente.\n \n */\n NodoDoble newNode = new NodoDoble(el);\n if (estVacia() || inicio.GetDato() == el) {\n newNode.SetSiguiente(inicio);\n inicio = newNode;\n } else {\n /* \n Si no se cumple el caso anterior, buscar el lugar adecuado \n para la inserción: recorrer la lista conservando el nodo actual. \n Inicializar nodo actual con el valor de primera posición, \n y avanzar mientras el siguiente nodo no sea nulo y el dato \n que contiene la siguiente posición sea mayor o igual que \n el dato a insertar.\n */\n NodoDoble current = inicio;//\n while (current.GetSiguiente() != null\n && current.siguiente.GetDato() >= el) {\n current = current.GetSiguiente();\n }\n /*\n Con esto se señala al nodo adecuado, \n a continuación insertar el nuevo nodo a continuación de él.\n */\n newNode.SetSiguiente(current.GetSiguiente());\n current.SetSiguiente(newNode);\n }\n } \n }", "public void agregarAlinicio(int el){\n if(!estVacia()){\n inicio=new NodoDoble(el, inicio, null);\n inicio.siguiente.anterior=inicio;\n }else{\n inicio=fin=new NodoDoble(el);\n }\n }", "Polo(ArrayList<Integer> valoresConfig)\n {\n flagsDesastres = new ArrayList();\n for (int d = 0; d < numCatastrofes; d++) //< Modificar al añadir desastres\n {\n flagsDesastres.add(false);\n }\n dia = 1;\n animales = new ArrayList();\n extintos = new ArrayList();\n for (int i = 0; i < 6; i++) //ID 0 reservado para el krill, no son objetos, pero si objetivos de comida\n {\n animales.add(new ArrayList());\n extintos.add(false);\n }\n SerVivo.IniciaCantidad();\n int randNum = Utilidades.rand(valoresConfig.get(0), valoresConfig.get(1));\n krill = randNum;\n randNum = Utilidades.rand(valoresConfig.get(2), valoresConfig.get(3));\n for (int i = 0; i < randNum; i++) {\n animales.get(1).add(new Pez(0, dia, 0));\n }\n randNum = Utilidades.rand(valoresConfig.get(4), valoresConfig.get(5));\n for (int i = 0; i < randNum; i++) {\n animales.get(2).add(new Foca(0, dia));\n }\n randNum = Utilidades.rand(valoresConfig.get(8), valoresConfig.get(9));\n for (int i = 0; i < randNum; i++) {\n animales.get(3).add(new Oso(0, dia));\n }\n randNum = Utilidades.rand(valoresConfig.get(6), valoresConfig.get(7));\n for (int i = 0; i < randNum; i++) {\n animales.get(4).add(new Morsa(0, dia));\n }\n\n randNum = Utilidades.rand(valoresConfig.get(10), valoresConfig.get(11));\n for (int i = 0; i < randNum; i++) {\n animales.get(5).add(new Esquimal(0, dia));\n }\n temperatura = valoresConfig.get(12);\n\n for (int i = 1; i < 6; i++) {\n animales.set(i, Utilidades.RadixSortIMC(animales.get(i)));\n }\n System.out.println(krill + \",\" + animales.get(1).size() + \",\" + animales.get(2).size() + \",\" + animales.get(3).size() + \",\" + animales.get(4).size() + \",\" + animales.get(5).size());\n }", "public abstract Anuncio creaAnuncioIndividualizado();", "Operacion createOperacion();", "public Cobra()\r\n {\r\n super();\r\n corpo = new ArrayList<CorpoCobra>();\r\n\r\n porCrescer = 0;\r\n ovosComidos = 0;\r\n vidas = 3;\r\n tonta = 0;\r\n }", "public void agregarAlInicio( int elemento ) {\n\t\tif( !estaVacia() ) {\n\t\t\tinicio = new NodoDoble(elemento, inicio, null);\n\t\t\tinicio.siguiente.anterior = inicio;\n\t\t} else {\n\t\t\tinicio = fin = new NodoDoble(elemento);\n\t\t}\n\t}", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "public void insertarOrden(Object dato) {\n Nodo nuevo = new Nodo(dato);\n int res = 0;\n // System.out.println(\"esxa\"+res);\n if (primero == null) {\n nuevo.setReferencia(primero);\n primero = nuevo;\n // System.out.println(\"Es nulo\");\n// System.out.println(\"sss\"+primero.getDato());\n } else {\n res = comp.evaluar(dato, primero.getDato());\n // System.out.println(\"\"+res);\n if (res == -1) {\n nuevo.setReferencia(primero);\n primero = nuevo;\n } else {\n int auxres = 0;\n Nodo anterior, actual;\n anterior = actual = primero;\n auxres = comp.evaluar(dato, actual.getDato());\n while ((actual.getReferencia() != null) && (auxres == 1)) {\n anterior = actual;\n actual = actual.getReferencia();\n auxres = comp.evaluar(dato, actual.getDato());\n }\n if (auxres == 1) {\n anterior = actual;\n }\n nuevo.setReferencia(anterior.getReferencia());\n anterior.setReferencia(nuevo);\n\n }\n }\n\n }", "public void agregar_Alinicio(int elemento){\n inicio=new Nodo(elemento, inicio);// creando un nodo para que se inserte otro elemnto en la lista\r\n if (fin==null){ // si fin esta vacia entonces vuelve al inicio \r\n fin=inicio; // esto me sirve al agregar otro elemento al final del nodo se recorre al inicio y asi sucesivamnete\r\n \r\n }\r\n \r\n }", "public void agregarAlFinal(int d){\n if(!estaVacia()){\n fin = new NodoBus(d, null, fin);\n fin.ant.sig =fin;\n }else{\n inicio = fin = new NodoBus(d);\n }\n }", "void insertar_cabeceraMatriz(Nodo_B nuevo){\n \n if(this.primero == null){\n this.primero = nuevo;\n this.ultimo = nuevo;\n \n this.size++;\n }else{\n \n if(nuevo.getValor() < this.primero.getValor()){\n nuevo.siguiente = this.primero;\n this.primero.anterior = nuevo;\n this.primero = nuevo;\n this.size++;\n }else if(nuevo.getValor() > this.ultimo.getValor()){\n this.ultimo.siguiente = nuevo;\n nuevo.anterior = this.ultimo;\n this.ultimo = nuevo;\n this.size++;\n }else{\n Nodo_B pivote = this.primero;\n \n while(pivote != null){\n if(nuevo.getValor() < pivote.getValor()){\n nuevo.siguiente = pivote;\n nuevo.anterior = pivote.anterior;\n pivote.anterior.siguiente = nuevo;\n pivote.anterior = nuevo;\n this.size++;\n break;\n }else if(nuevo.getValor() == pivote.getValor()){\n System.out.print(\"ya hay un valor con este codigo registrado\");\n break;\n }else{\n pivote = pivote.siguiente;\n }\n }\n }\n }\n // JOptionPane.showMessageDialog(null, \"salio del metodo insertar cabecera con el pais :\"+nuevo.nombreDestino);\n }", "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 void crearGloboVerde(int tiempo){ \n GloboVerde globov = new GloboVerde();\n globoslista.add(globov);\n double posicionx = generarPosicionX();\n globov.fijarPosicion(posicionx);\n \n gpane.getChildren().addAll(globov);\n MoverGlobo mv = new MoverGlobo(globov,tiempo);\n mov= new Thread(mv);\n mov.start(); \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}", "public void alquilarMultimediaAlSocio(){\n lector = new Scanner(System.in);\n int opcion = -1;\n int NIF = 0;\n int pedirElemento;\n String titulo;\n Socio socio;\n\n\n\n NIF = pedirNIF(); // pido el NIF por teclado\n\n if(tienda.exiteSocio(NIF)){ // Si exite, continuo\n socio = tienda.getSocioWithNIF(NIF); // Si exite el socio, busco en la tienda y lo asigno.\n if(!socio.isAlquilando()) { // si el socio no está actualmente alquilando, no continuo\n opcion = pedirElemento(); // Pido el elemento\n\n switch (opcion) {\n case 1:\n tienda.imprimirDatos(tienda.getPeliculas());\n System.out.println(\"Introduce el titulo de la pelicula que quieres: \");\n titulo = lector.nextLine();\n if (tienda.exitePelicula(titulo)) {\n\n tienda.alquilarPeliculaSocio(NIF, titulo);\n System.out.println(\"PELICULA ANYADIDO EN EL MAIN\");\n\n\n } else {\n System.out.println(\"No exite la pelicula \" + titulo + \".\");\n }\n\n\n break;\n case 2:\n tienda.imprimirDatos(tienda.getVideojuegos());\n System.out.println(\"Introduce el titulo del videojuego que quieres: \");\n titulo = lector.nextLine();\n if (tienda.existeVideojuego(titulo)) {\n\n tienda.alquilarVideojuegoSocio(NIF, titulo);\n System.out.println(\"VIDEOJUEGO ANYADIDO EN EL MAIN\");\n\n\n } else {\n System.out.println(\"No exite el videojuego \" + titulo + \".\");\n }\n break;\n default:\n break;\n }\n }else{\n System.out.println(\"El socio \" + socio.getNombre() + \" tiene recargos pendientes.\");\n }\n\n }else{\n System.out.println(\"El socio con NIF \" + NIF + \" no exite.\");\n }\n\n\n\n\n\n\n }", "public void InsertarProceso(Proceso nuevo) {\n\t\tif (raiz.sig == raiz) {\n\t\t\traiz.sig = nuevo;\n\t\t\tthis.cabeza = 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}", "public void iniciarNovaPartida(Integer posicao);", "Oracion createOracion();", "public abstract Anuncio creaAnuncioTematico();", "void create_MB(String nombre){\n if (Globales.UltimoIndiceMailbox == 6){\r\n PantallaError pe = new PantallaError(\"Ya hay 6 buzones (mailbox) en ejecución, no puede crear más.\");\r\n }\r\n else{\r\n Mailbox mb = new Mailbox(\"MB\"+nombre);\r\n Globales.mails[Globales.UltimoIndiceMailbox]=mb;\r\n //System.out.println(\"Globales.mails[\"+Globales.UltimoIndiceMailbox+\"] = \"+Globales.mails[Globales.UltimoIndiceMailbox].nombre);\r\n Globales.UltimoIndiceMailbox++;\r\n //System.out.println(\"creó el mb: \"+mb.nombre+\" y lo insertó el el arreglo global de mb\");\r\n }\r\n }", "public void AumentarVictorias() {\r\n\t\tthis.victorias_actuales++;\r\n\t\tif (this.victorias_actuales >= 9) {\r\n\t\t\tthis.TituloNobiliario = 3;\r\n\t\t} else if (this.victorias_actuales >= 6) {\r\n\t\t\tthis.TituloNobiliario = 2;\r\n\t\t} else if (this.victorias_actuales >= 3) {\r\n\t\t\tthis.TituloNobiliario = 1;\r\n\t\t} else {\r\n\t\t\tthis.TituloNobiliario = 0;\r\n\t\t}\r\n\t}", "Secuencia createSecuencia();", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "public void agregarAlFinal(int el){\n if(!estVacia()){\n fin=new NodoDoble(el,null,fin);\n fin.anterior.siguiente=fin;\n }else{\n inicio=fin=new NodoDoble(el);\n }\n }", "private void createObstacole()\n {\n //Create Obstacole\n Obstacole topObstacole = new Obstacole(\"top\");\n Obstacole botObstacole = new Obstacole(\"bottom\");\n Obstacole midObstacole = new Obstacole(\"mid\");\n //amount of space between obstacole\n int ObstacoleSpacing = 150;\n \n //get object image\n GreenfootImage image = botObstacole.getImage();\n \n //random number to vary\n int numOfObstacoles = Greenfoot.getRandomNumber(40) + 15;\n \n //counter increment to 50\n ObstacoleCounter++;\n if (ObstacoleCounter == 50)\n {\n if (getObjects(Obstacole.class).size() < numOfObstacoles)\n {\n addObject(botObstacole, getWidth(), getHeight() / 2 + image.getHeight() - Greenfoot.getRandomNumber(100) - 10);\n addObject(topObstacole, getWidth(), botObstacole.getY() - image.getHeight() - ObstacoleSpacing);\n addObject(midObstacole, getWidth(), botObstacole.getY() + image.getHeight() / 3 + ObstacoleSpacing);\n }\n ObstacoleCounter = 0;\n }\n }", "public void agregarinicio(int el){\n if(!estavacia()){\n fin=new nododoble(el, inicio,null);\n inicio.siguiente.anterior=inicio;\n }else{\n inicio=fin=new nododoble(el);\n }}", "public Movimiento(int idMovimiento,int idCuenta, String operacion, double cantidad, Date fecha) {\r\n\t\tsuper();\r\n\t\tthis.idMovimiento = idMovimiento;\r\n\t\tthis.idCuenta = idCuenta;\r\n\t\tthis.operacion = operacion;\r\n\t\tthis.cantidad = cantidad;\r\n\t\tthis.fecha = fecha;\r\n\t}", "public static void createMissions() {\n allMissions.addMission(airport, \"Find your boardingpass\");\n allMissions.addMission(airport, \"Picking up first item\");\n allMissions.addMission(beach, \"Pick up food\");\n allMissions.addMission(jungle, \"Find survivors\");\n allMissions.addMission(cave, \"Eat the shrooms\");\n allMissions.addMission(camp, \"Escape the island\");\n }", "public void ingresoTermino() {\n System.out.println(\"......................\");\n System.out.println(\"Ingreso de Termino Academico\");\n Entrada entrada = new Entrada();\n Termino termino;\n do {\n termino = new Termino(entrada.Entera(\"Ingrese año : \"), entrada.Entera(\"Ingrese número:\"));\n if (Termino.terminos.contains(termino)) {//valida que el termino instanciado no este ya registrado, es decir que no este en el arraylIST (de clase) termino\n System.out.println(\"Termino ya existe ingrese otro\");\n }\n } while (Termino.terminos.contains(termino));\n Termino.terminos.add(termino);\n System.out.println(\"Termino ingresado\");\n }", "public void InsertarNodo(int nodo) {\r\n Nodo nuevo_nodo = new Nodo(nodo);\r\n nuevo_nodo.siguiente = UltimoValorIngresado;\r\n UltimoValorIngresado = nuevo_nodo;\r\n tamaño++;\r\n }", "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 void moverPlataformas(){\n\t\tfor ( int x=0 ; x < 2; x++){\n\t\t\tquitarPoder(x);\n\t\t\tgame.moverPersonaje(x);\n\t\t}\n\t}", "Long crear(Espacio espacio);", "public void createMission(Mission mission) throws IllegalArgumentException;", "public CrearQuedadaVista() {\n }", "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 void generaNumeros() {\n\n\n int number =0;\n int numeroSeleccionado=gameMemoriaUno.getNumberaleatorio();\n //se agrega numero a las lista de numeros\n\n if(numeroSeleccionado == -1){\n llamaResultado(super.getActividad(), tFinal, tInicio, Num3_5_1Activity.class,gameMemoriaUno.getNumeros(),gameMemoriaUno.getAciertosTotales(),gameMemoriaUno.getFallosTotales(),gameMemoriaUno.getNumEcxluidosList(),gameMemoriaUno.getNumeroPregunta());\n\n }else {\n\n\n gameMemoriaUno.addNumerosSet(numeroSeleccionado);\n for (int i = 1; i < 6; i++) {\n //obtiene numeros del costalito menos el numero seleccionado\n number = gameMemoriaUno.getNumeroArreglo();\n //agrego numeros\n gameMemoriaUno.addNumerosSet(number);\n }\n\n Iterator<Integer> iter = gameMemoriaUno.getNumerosSet().iterator();\n\n int contadorNumeros=0;\n while (iter.hasNext()) {\n int valor=iter.next().intValue();\n lista.add(valor);\n if(gameMemoriaUno.getDificultad()==contadorNumeros){\n gameMemoriaUno.setNumerosElejidos(new int[valor]);\n }\n\n contadorNumeros+=1;\n }\n Collections.shuffle(lista, new Random());\n Collections.shuffle(lista, new Random());\n\n\n\n }\n\n\n }", "public ProductoCreable newInstance(int codigo, String nombre){\r\n \r\n }", "public static void instanciarCreencias() {\n\t\tfor(int i =0; i < GestorPartida.getContJugadores(); i++) {\n\t\t\t\n\t\t\tGestorPartida.jugadores[i].setCreencias(new Creencias(GestorPartida.jugadores, GestorPartida.objetoJugador, GestorPartida.objetoSala, i)); \n\t\t}\n\t}", "@Override\n public void movimiento_especial(){\n\n movesp=ataque/2;\n defensa+=5;\n PP= PP-4;\n }", "public void crearGloboRojo(int tiempo){ \n GloboRojo globor = new GloboRojo();\n double posicionx = generarPosicionX();\n globor.fijarPosicion(posicionx);\n globoslista.add(globor);\n gpane.getChildren().addAll(globor); \n MoverGlobo mv = new MoverGlobo(globor,tiempo);\n mov= new Thread(mv);\n mov.start(); \n }", "public void ponerFichaOrdenador(){\n\t\tif (verificaGana() == -1){\n\t\t\t\n\t\t\tint nx = (int) Math.floor(Math.random()*3);\n\t\t\tint ny = (int) Math.floor(Math.random()*3);\n\t\t\tint res=0;\n\t\t\tfor (int i=nx;i<3;i++){\n\t\t\t\tfor (int j=ny;j<3;j++){\n\t\t\t\t\tif (m[i][j]==0){\n\t\t\t\t\t\tm[i][j]=2;\n\t\t\t\t\t\tres = 1;\n\t\t\t\t\t\ti=3;j=3;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (res==0) {\n\t\t\t\tfor (int i=0;i<3;i++){\n\t\t\t\t\tfor (int j=0;j<3;j++){\n\t\t\t\t\t\tif (m[i][j]==0){\n\t\t\t\t\t\t\tm[i][j]=2;\n\t\t\t\t\t\t\tres = 1;\n\t\t\t\t\t\t\ti=3;j=3;\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\n\t}", "@Override\n public ArrayList<String> Crear(){\n setVida(3500);\n Creado.add(0, Integer.toString(getVida()));\n Creado.add(1,\"150\");\n Creado.add(2,\"100\");\n Creado.add(3,\"70\");\n return Creado;\n }", "public boolean crea(Libro libro);", "public PosicaoXY retornarMovimento() {\n int retornoPosX = this.posXY.getPosX();\n int retornoPosY = this.posXY.getPosY();\n switch (movimento) {\n case CIMA: //se for para cima\n if (retornoPosX > 0) { \n retornoPosX -= 1;\n }\n break;\n case BAIXO: //se for para baixo\n if (retornoPosX < this.ambiente.getTamanhoAmbiente() - 1) {\n retornoPosX += 1;\n }\n break;\n case ESQUERDA: //se for para esquerda\n if (retornoPosY > 0) {\n retornoPosY -= 1;\n }\n break;\n case DIREITA://se for para direita\n if (retornoPosY < this.ambiente.getTamanhoAmbiente() - 1) {\n retornoPosY += 1;\n }\n break;\n }\n return new PosicaoXY(retornoPosX, retornoPosY);\n }", "public void crearGloboAmarillo(int tiempo){ \n GloboAmarillo globoa = new GloboAmarillo();\n globoslista.add(globoa);\n double posicionx = generarPosicionX();\n globoa.fijarPosicion(posicionx);\n gpane.getChildren().addAll(globoa);\n MoverGlobo mv = new MoverGlobo(globoa,tiempo);\n mov= new Thread(mv);\n mov.start(); \n }", "@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}", "public static void miedo(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n aleatorio = (numeroAleatorio.nextInt(10-5+1)+5);\n \n if(oro>aleatorio){//condicion de finalizar battalla y sus acciones\n oroPerdido= (nivel*2)+aleatorio;\n oro= oro-oroPerdido;\n System.out.println(\"Huiste de la batalla!!!\");\n\t\t System.out.println(\"oro perdido:\"+oroPerdido);\n opcionMiedo=1; //finalizando battalla por huida del jugador \n }\n else{\n System.out.println(\"No pudes huir de la batalla\");\n } \n }", "private Nodo cambiar (Nodo aux) {\n\t\tNodo n = aux;\r\n\t\tNodo m = aux.getHijoIzq(); \r\n\t\twhile (m.getHijoDer() != null) {//el while sirve para recorrer el lado derecho para encotrar el dato mayor. \r\n\t\t\tn = m; // se guarda el nodo.\r\n\t\t\tm = m.getHijoDer();\r\n\t\t}\r\n\t\taux.setDato(m.getDato()); // se establece el dato del nodo mayor para que de ese nodo se hagan los cambios. \r\n\t\tif(n == aux) { // Si el nodo igual a aux entonces el dato y nodo que se van a eliminar por lo tanto se hacen los comabios. \r\n\t\t\tn.setHijoIzq(m.getHijoIzq());\r\n\t\t}else {\r\n\t\t\tn.setHijoDer(m.getHijoIzq());\r\n\t\t}\r\n\t\treturn n;\r\n\t}", "private Nota criarNota(){\n\n Nota nota = new Nota();\n nota.setTitulo(edtTituloNota.getText().toString());\n nota.setValor(Float.parseFloat(edtNotaAluno.getText().toString()));\n\n return nota;\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 cargarNotas() {\n\n notas.add(null);\n notas.add(null);\n notas.add(null);\n\n int nota, cont = 0;\n for (int i = 0; i <= 2; i++) {\n\n System.out.println(\"Indique nota \" + (i + 1));\n nota = leer.nextInt();\n notas.set(cont, nota);\n cont++;\n\n }\n\n cont = 0;\n\n }", "private void crearDimensionContable()\r\n/* 201: */ {\r\n/* 202:249 */ this.dimensionContable = new DimensionContable();\r\n/* 203:250 */ this.dimensionContable.setIdOrganizacion(AppUtil.getOrganizacion().getId());\r\n/* 204:251 */ this.dimensionContable.setIdSucursal(AppUtil.getSucursal().getId());\r\n/* 205:252 */ this.dimensionContable.setNumero(getDimension());\r\n/* 206:253 */ verificaDimension();\r\n/* 207: */ }", "public String limpiar()\r\n/* 103: */ {\r\n/* 104:112 */ this.motivoLlamadoAtencion = new MotivoLlamadoAtencion();\r\n/* 105:113 */ return \"\";\r\n/* 106: */ }", "int insertSelective(Movimiento record);", "private void generarMarca() {\r\n\t\tthis.marca = MARCAS[(int) (Math.random() * MARCAS.length)];\r\n\t}", "public void insertar(Proceso p, int tiempo) {\n\t\tif (p == null || tiempo < 0) {\n\t\t\treturn;\n\t\t}\n\t\tProceso nuevo = new Proceso();\n\t\tnuevo.rafaga = p.rafaga;\n\t\tnuevo.id = p.id;\n\t\tnuevo.IdCola = this.IdCola;\n\t\tnuevo.NombreCola = this.NombreCola;\n\t\tnuevo.tllegada = tiempo;\n\t\tnuevo.ColaProviene = p.ColaProviene;\n\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}", "private void creaPannelli() {\n /* variabili e costanti locali di lavoro */\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* pannello date */\n pan = this.creaPanDate();\n this.addPannello(pan);\n\n /* pannello coperti */\n PanCoperti panCoperti = new PanCoperti();\n this.setPanCoperti(panCoperti);\n this.addPannello(panCoperti);\n\n\n /* pannello placeholder per il Navigatore risultati */\n /* il navigatore vi viene inserito in fase di inizializzazione */\n pan = new PannelloFlusso(Layout.ORIENTAMENTO_ORIZZONTALE);\n this.setPanNavigatore(pan);\n this.addPannello(pan);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n }", "OperacionColeccion createOperacionColeccion();" ]
[ "0.65666807", "0.62695014", "0.6215459", "0.6201253", "0.6139959", "0.6084984", "0.6064752", "0.5990002", "0.59686756", "0.58680636", "0.58242416", "0.58054554", "0.5795167", "0.5792564", "0.5784587", "0.5781011", "0.5776938", "0.57625985", "0.5748429", "0.5744608", "0.5735676", "0.5726944", "0.5726667", "0.5692326", "0.56657046", "0.5662148", "0.56524366", "0.5634123", "0.5622171", "0.5582986", "0.5575098", "0.5565767", "0.55609727", "0.5550708", "0.5532821", "0.55277854", "0.5517551", "0.55126876", "0.5510562", "0.55027544", "0.54761016", "0.5474892", "0.5472333", "0.5464078", "0.5458757", "0.54549146", "0.54362565", "0.5428672", "0.5417004", "0.54086447", "0.54075044", "0.54061913", "0.5402334", "0.53858", "0.5382291", "0.5380655", "0.53692096", "0.536515", "0.53635365", "0.5355573", "0.5351549", "0.53452224", "0.53433055", "0.53421235", "0.53316927", "0.5325067", "0.531685", "0.53081447", "0.5307766", "0.5305716", "0.5305206", "0.5303626", "0.5301912", "0.52991545", "0.5296042", "0.5293141", "0.5291742", "0.5288036", "0.5282179", "0.528168", "0.52783924", "0.5269993", "0.52674407", "0.52614343", "0.5260564", "0.525941", "0.5252371", "0.5251118", "0.5247232", "0.5247192", "0.5246185", "0.5239165", "0.52350014", "0.52289027", "0.5228788", "0.5228661", "0.5227279", "0.52260715", "0.52259326", "0.5215632" ]
0.60244495
7
Build an empty result.
public static QueryResult build() { return new QueryResult(ImmutableList.of()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Result() {\n empty = true;\n }", "public Builder clearResult() {\n bitField0_ = (bitField0_ & ~0x00000002);\n result_ = getDefaultInstance().getResult();\n onChanged();\n return this;\n }", "public Builder clearResult() {\n bitField0_ = (bitField0_ & ~0x00000001);\n result_ = false;\n onChanged();\n return this;\n }", "public Builder clearResult() {\n \n result_ = 0;\n onChanged();\n return this;\n }", "public Builder clearResult() {\r\n\t\t\t\tbitField0_ = (bitField0_ & ~0x00000001);\r\n\t\t\t\tresult_ = 0;\r\n\t\t\t\tonChanged();\r\n\t\t\t\treturn this;\r\n\t\t\t}", "public Builder clearResult() {\n \n result_ = false;\n onChanged();\n return this;\n }", "public Builder clearResult() {\n \n result_ = false;\n onChanged();\n return this;\n }", "public Builder clearResult() {\n\n result_ = false;\n onChanged();\n return this;\n }", "public Builder clearResults() {\n if (resultsBuilder_ == null) {\n results_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n resultsBuilder_.clear();\n }\n return this;\n }", "public Builder clearResult() {\n \n result_ = false;\n onChanged();\n return this;\n }", "public Builder clearResults() {\n if (resultsBuilder_ == null) {\n results_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n resultsBuilder_.clear();\n }\n return this;\n }", "public Builder clearResults() {\n if (resultsBuilder_ == null) {\n results_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n resultsBuilder_.clear();\n }\n return this;\n }", "public Builder clearResult() {\n bitField0_ = (bitField0_ & ~0x00000001);\n result_ = com.rpg.framework.database.Protocol.ResponseCode.SUCCESS;\n onChanged();\n return this;\n }", "public Builder clearResult() {\n bitField0_ = (bitField0_ & ~0x00000001);\n result_ = com.rpg.framework.database.Protocol.ResponseCode.SUCCESS;\n onChanged();\n return this;\n }", "public Builder clearResult() {\n bitField0_ = (bitField0_ & ~0x00000001);\n result_ = com.rpg.framework.database.Protocol.ResponseCode.SUCCESS;\n onChanged();\n return this;\n }", "public Builder clearResult() {\n bitField0_ = (bitField0_ & ~0x00000001);\n result_ = com.rpg.framework.database.Protocol.ResponseCode.SUCCESS;\n onChanged();\n return this;\n }", "public Builder clearResult() {\n bitField0_ = (bitField0_ & ~0x00000001);\n result_ = com.rpg.framework.database.Protocol.ResponseCode.SUCCESS;\n onChanged();\n return this;\n }", "public CommandResultTest() {\n super(CommandResult.EMPTY);\n }", "public AllPoojaResult() {}", "public Builder clearMissingResults() {\n \n missingResults_ = false;\n onChanged();\n return this;\n }", "public Result() {\n }", "public Result() {\n }", "public Builder clearEresult() {\n bitField0_ = (bitField0_ & ~0x00000040);\n eresult_ = 2;\n onChanged();\n return this;\n }", "@Override\n public Object build() {\n return null;\n }", "@Override\n public Object build() {\n return null;\n }", "public static UserAggregate buildEmpty() {\n return new UserAggregate();\n }", "public static Query empty() {\n return new Query();\n }", "public Builder clearResultId() {\n if (resultIdBuilder_ == null) {\n resultId_ = null;\n onChanged();\n } else {\n resultId_ = null;\n resultIdBuilder_ = null;\n }\n\n return this;\n }", "public Result() {\n this.status = Status.SUCCESS;\n this.message = \"\";\n this.value = Optional.empty();\n }", "public DefaultResults() {\n this.results = new ArrayList<R>();\n this.totalCc = new ArrayList<Long>();\n this.maximalCc = new ArrayList<Long>();\n this.totalBytes = new ArrayList<Long>();\n this.maximalBytes = new ArrayList<Long>();\n this.maximalMemory = new ArrayList<Long>();\n }", "public Result() {\r\n super();\r\n System.out.println(\"Result:Constructor\");\r\n }", "private Object[] buildEmptyRow() {\n Object[] rowData = RowDataUtil.allocateRowData( data.outputRowMeta.size() );\n\n return rowData;\n }", "@Override\n\tprotected JSONObject initialiseLatestResult() {\n\t\treturn null;\n\t}", "public void makeEmpty();", "public void makeEmpty();", "public io.confluent.developer.InterceptTest.Builder clearResultJson() {\n result_json = null;\n fieldSetFlags()[7] = false;\n return this;\n }", "public Result() {\n success = false;\n messages = new ArrayList<>();\n errMessages = new ArrayList<>();\n }", "public Result(){\n\t}", "interface EmptyCase {\n static CaseData build() {\n return CaseData.builder()\n .build();\n }\n }", "public static <T> CollectionUpdateResult<T> noop(T result) {\n return new CollectionUpdateResult<>(Status.NOOP, result);\n }", "@Override\n public byte[] getBuffer() {\n return EMPTY_RESULT;\n }", "public abstract void makeEmpty();", "public Builder clearResultCode() {\n \n resultCode_ = 0;\n onChanged();\n return this;\n }", "public Builder clearResultCode() {\n \n resultCode_ = 0;\n onChanged();\n return this;\n }", "public Builder clearResultCode() {\n \n resultCode_ = 0;\n onChanged();\n return this;\n }", "public Builder clearResultCode() {\n \n resultCode_ = 0;\n onChanged();\n return this;\n }", "public Query<T, R> build() {\n // if criteria.size == 0, rootCriterion = null\n Criterion rootCriterion = null;\n if (criteria.size() == 1) {\n rootCriterion = criteria.get(0);\n } else if (criteria.size() > 1) {\n rootCriterion = Restrictions.and(criteria\n .toArray(new Criterion[criteria.size()]));\n }\n return new QueryImpl<T, R>(entityClass, returnType, rootCriterion,\n orderings, maxResults, returnFields);\n }", "public DeferredResult()\n/* */ {\n/* 76 */ this(null, RESULT_NONE);\n/* */ }", "@Override\n public Result<TopNResultValue> build()\n {\n List<Map<String, Object>> values = new ArrayList<Map<String, Object>>(pQueue.size());\n while (!pQueue.isEmpty()) {\n values.add(pQueue.remove().getMetricValues());\n }\n\n return new Result<TopNResultValue>(\n timestamp,\n new TopNResultValue(values)\n );\n }", "public Results() {\n\t\t\t// TODO Auto-generated constructor stub\n\t\t}", "public static DefaultExpression empty() { throw Extensions.todo(); }", "@Test\n public void testDefaultConstructor() {\n final ConfigSearchResult<?> result = new ConfigSearchResult<>();\n assertTrue(result.getDocuments().isEmpty());\n assertNull(result.getPaging());\n assertEquals(result.getVersionCorrection(), VersionCorrection.LATEST);\n }", "public Builder clearResultCode() {\n bitField0_ = (bitField0_ & ~0x00000001);\n resultCode_ = 0;\n onChanged();\n return this;\n }", "public static Object builder() {\n\t\treturn null;\r\n\t}", "public Builder clearMoreResults() {\n \n moreResults_ = false;\n onChanged();\n return this;\n }", "public void clear() {\n results.clear();\n }", "public Object defaultResult() {\n return null;\n }", "public Builder clearK() {\n if (kBuilder_ == null) {\n if (resultCase_ == 3) {\n resultCase_ = 0;\n result_ = null;\n onChanged();\n }\n } else {\n if (resultCase_ == 3) {\n resultCase_ = 0;\n result_ = null;\n }\n kBuilder_.clear();\n }\n return this;\n }", "public static Object builder() {\n\t\treturn null;\n\t}", "@SuppressWarnings(\"unused\")\n private CreateOrUpdateUnitResult() {\n }", "public static OperationResponse builder() {\n\t\treturn new OperationResponse();\n\t}", "public void clear() {\n\t\tresults.clear();\n\t}", "@Override\n\tpublic String getResult() {\n\t\treturn null;\n\t}", "@Test\n public void executeEmptySearch_noResults() {\n emptySearchFields();\n\n //Even with empty fields, the search should be created and executed\n presenter.doSearch();\n\n //However, with all the search fields empty no results will be found\n Assert.assertFalse(presenter.hasNextResult());\n }", "public Builder clearResultMonster() {\n \n resultMonster_ = 0;\n onChanged();\n return this;\n }", "@Override\r\n\tpublic List<T> getResult() {\n\t\treturn null;\r\n\t}", "default Boolean isEmpty(){\n return builder().length() == 0;\n }", "@Override\n\tpublic Response construct() {\n\t\treturn null;\n\t}", "public void makeEmpty( )\n {\n doClear( );\n }", "public ResultFactoryImpl() {\n\t\tsuper();\n\t}", "protected TestResult createResult() {\n return new TestResult();\n }", "public static <T> CollectionUpdateResult<T> noop() {\n return new CollectionUpdateResult<>(Status.NOOP, null);\n }", "@Generated(hash = 750945346)\n public synchronized void resetResult() {\n result = null;\n }", "public Builder clearResultCode() {\n bitField0_ = (bitField0_ & ~0x00000001);\n resultCode_ = protocol.Msg.ReadTableMsg.ReadImportantTableRsp.ResultCode.SUCCESS;\n onChanged();\n return this;\n }", "public Object build();", "private PBZJHGameResult(Builder builder) {\n super(builder);\n }", "@SuppressWarnings(\"unused\")\n private CreateOrUpdateValueTypeResult() {\n }", "public ExcelResultBuilder() {\n }", "@Nullable\n Result getResult();", "private cufftResult()\r\n {\r\n }", "private static SearchResponse createSearchResponse() {\n long tookInMillis = randomNonNegativeLong();\n int totalShards = randomIntBetween(1, Integer.MAX_VALUE);\n int successfulShards = randomIntBetween(0, totalShards);\n int skippedShards = randomIntBetween(0, totalShards);\n InternalSearchResponse internalSearchResponse = InternalSearchResponse.empty();\n\n return new SearchResponse(\n internalSearchResponse,\n null,\n totalShards,\n successfulShards,\n skippedShards,\n tookInMillis,\n ShardSearchFailure.EMPTY_ARRAY,\n SearchResponse.Clusters.EMPTY\n );\n }", "abstract T build();", "@SuppressWarnings(\"unused\")\n private CreateOrUpdateObjectTypeResult() {\n }", "public JobDetail build() {\n return null;\n }", "public PersonsResult() {\n }", "@Test\n public void testGetFirstNoValue() {\n final ConfigSearchResult<?> result = new ConfigSearchResult<>();\n assertNull(result.getFirstValue());\n }", "private Result_(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public SearchQuery build() {\n this._Web_search.set_maxDepth(_maxDepth);\n this._Web_search.set_maxResults(_maxResults);\n this._Web_search.set_threshold(_threshold);\n this._Web_search.set_beamWidth(_beamWidth);\n if (heuristicSearchType == null) {\n this._Web_search.setHeuristicSearchType(Enums.HeuristicSearchType.BEST_FIRST);\n } else {\n this._Web_search.setHeuristicSearchType(heuristicSearchType);\n }\n\n return new SearchQuery(this._query, this._Web_search);\n }", "public void makeEmpty()\n {\n root = nil;\n }", "public final Nfa buildNoAccept() {\n return buildInternal();\n }", "T build();", "T build();", "public Result() {\n getLatenciesSuccess = new ArrayList<Long>();\n getLatenciesFail = new ArrayList<Long>();\n postLatenciesSuccess = new ArrayList<Long>();\n postLatenciesFail = new ArrayList<Long>();\n getRequestFailNum = 0;\n postRequestFailNum = 0;\n getRequestSuccessNum = 0;\n postRequestSuccessNum = 0;\n// getTimestamps = new ArrayList<Long>();\n// postTimestamps = new ArrayList<Long>();\n }", "public Builder clearSuccess() {\n copyOnWrite();\n instance.clearSuccess();\n return this;\n }", "public Builder clearSuccess() {\n copyOnWrite();\n instance.clearSuccess();\n return this;\n }", "public Builder clearSuccess() {\n copyOnWrite();\n instance.clearSuccess();\n return this;\n }", "public abstract Intent constructResults();", "private LookupResult(Builder builder) {\n super(builder);\n }", "public AbstractElement(final Result result) {\n results = singleton(result, Result.class);\n }", "public Builder clearInitialResponse() { copyOnWrite();\n instance.clearInitialResponse();\n return this;\n }" ]
[ "0.7135675", "0.6966679", "0.6884946", "0.68828803", "0.6882479", "0.6807038", "0.6807038", "0.6787263", "0.6742539", "0.6741432", "0.6735704", "0.6733394", "0.6717454", "0.6717454", "0.6717454", "0.67162305", "0.67162305", "0.66420335", "0.63805", "0.63665354", "0.6209806", "0.6209806", "0.61706764", "0.6111499", "0.6111499", "0.61000663", "0.6091695", "0.6087344", "0.6060588", "0.60377896", "0.6020983", "0.6018099", "0.59807146", "0.59717077", "0.59717077", "0.59068286", "0.5901349", "0.57977796", "0.5767935", "0.5759272", "0.57577634", "0.57507557", "0.5747773", "0.5747773", "0.5747773", "0.5747773", "0.573242", "0.5723828", "0.5693415", "0.5688419", "0.56870633", "0.56740355", "0.5673929", "0.5652158", "0.5647812", "0.5644018", "0.56433916", "0.5634003", "0.5634", "0.56077904", "0.56064314", "0.5579061", "0.55737984", "0.5561896", "0.55563074", "0.55349797", "0.553305", "0.5521268", "0.5490434", "0.5486386", "0.54844016", "0.54801416", "0.5471999", "0.54688746", "0.54671466", "0.5462315", "0.544691", "0.54405016", "0.54362", "0.5434591", "0.5434528", "0.5432593", "0.5428533", "0.54167277", "0.5410181", "0.5398899", "0.5396978", "0.5375899", "0.53695536", "0.5365465", "0.5363206", "0.5363206", "0.5353633", "0.5340594", "0.5340594", "0.5340594", "0.53369004", "0.53350866", "0.53259915", "0.53257775" ]
0.69139075
2
Return all entities returned from the query.
public List<Entity> getAll() { return entities; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<R> getAll() {\n return onFindForList(getSession().createCriteria(entityClass).list());\n }", "public List<Entity> getAllEntities()\n\t{\n\t\treturn this.entities;\n\t}", "public List<T> findAll() {\n\t Query q = getEntityManager().createQuery(\"select u from \" + getEntityClass().getSimpleName() + \" u\");\n\t return q.getResultList();\n\t }", "public ArrayList<TEntity> getAll(){\n ArrayList<TEntity> list = new ArrayList<TEntity>();\n\n Cursor cursor = db.query(tableName, columns, null, null, null, null, null);\n\n cursor.moveToFirst();\n\n while (!cursor.isAfterLast()) {\n list.add(fromCursor(cursor));\n cursor.moveToNext();\n }\n\n return list;\n }", "List<TransportEntity> getAllEntityOfQuery();", "public static Iterable<Entity> getAllEntities() {\n\t\treturn Util.listEntities(\"RecetteId\", null, null);\n\t}", "@Override\n public List<T> getAll() throws SQLException {\n\n return this.dao.queryForAll();\n\n }", "public static List<FoundObject> findAll() {\n\t\treturn getPersistence().findAll();\n\t}", "public List<E> findAll() {\n return getDao().findAll();\n }", "@Override\n\tpublic List<T> getAll() {\n\t\treturn getDao().findAll();\n\t}", "public List<LugarEntity> findall(){\n Query q = em.createQuery(\"SELECT p FROM LugarEntity p\");\n return q.getResultList();\n }", "@Override\n\tpublic List<Employee> queryAll() {\n\t\treturn dao.queryAll();\n\t}", "List<T> getAll() throws PersistException;", "@Override\n\tpublic List<Employee> findAll() {\n\t\t\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t\t\t// create a query\n\t\t\t\tQuery<Employee> theQuery = currentSession.createQuery(\"from Employee\", Employee.class);\n\t\t\t\t\n\t\t\t\t// execute a query and get the result list\n\t\t\t\tList<Employee> employeeList = theQuery.getResultList();\n\t\t\t\t\n\t\t\t\t// return the result list\n\t\t\t\treturn employeeList;\n\t}", "@Transactional(readOnly = true)\n public Observable<List<E>> findAll() {\n return Observable.create(inSource -> {\n try {\n final List<E> theEntitiesList = mRepository.findAll();\n inSource.onNext(theEntitiesList);\n inSource.onComplete();\n } catch (final Exception theException) {\n inSource.onError(theException);\n }\n });\n }", "@Override\n public List<T> findAll() {\n String getAllQuery = \"SELECT * FROM \" + getTableName();\n return getJdbcTemplate().query(getAllQuery,\n BeanPropertyRowMapper.newInstance(getEntityClass()));\n }", "@Override\r\n\tpublic List<T> findAll() {\n\t\treturn getSession().createQuery(\r\n\t\t\t\t\"FROM \"+clazz.getSimpleName())\r\n\t\t\t\t.list();\r\n\t}", "@Override\n\tpublic List<Employee> findAll() {\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t\n\t\t\n\t\t//create a query\n\t\t\n\t\tQuery<Employee> theQuery= currentSession.createQuery(\"from Employee\",Employee.class);\n\t\t\n\t\tList<Employee> theEmployees=theQuery.list();\n\t\treturn theEmployees;\n\t}", "public List findAll() {\n\t\treturn dao.findAll();\r\n\t}", "List<E> findAll();", "List<E> findAll();", "List<E> findAll();", "@Override\n\t@Transactional\n\tpublic List<Employee> findAll() {\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t\n\t\t//create query\n\t\tQuery<Employee> theQuery = currentSession.createQuery(\"from Employee\", Employee.class);\n\t\t\n\t\t//execute query\n\t\tList<Employee> employees = theQuery.getResultList();\n\t\t\n\t\t//currentSession.close();\n\t\t\n\t\treturn employees;\n\t}", "public List<E> findAll();", "@Override\n\tpublic List<T> getAllEntry() {\n\t\treturn this.hibernateTemplate.find(\"from \"+this.classt.getName());\n\t}", "@Override\n\tpublic List queryAll() throws Exception {\n\t\treturn null;\n\t}", "@Override\n public List<T> findAll() {\n return manager\n .createQuery(\"from \" + elementClass.getSimpleName() + \" e\", elementClass)\n .getResultList();\n }", "@Override\n\tpublic List<Object> getAll(String hql) {\n\t\tSession session = HibernateSessionFactory.getSession();\n\t\tTransaction ts = session.beginTransaction();\n\n\t\tList<Object> list = new ArrayList<Object>();\n\t\tlist = session.createQuery(hql).list();\n\t\tts.commit();\n\t\tsession.close();\n\t\treturn list;\n\t}", "public List<T> findAll() throws NoSQLException;", "public CompletableFuture<Iterable<T>> findAll() {\n\t\treturn this.getAll().thenApply((ts) -> (Iterable<T>) ts);\n\t}", "List<T> findAll();", "List<T> findAll();", "List<T> findAll();", "@Override\n @Transactional\n public List<Contacts> findAll() {\n Session currentSession = entiyManager.unwrap(Session.class);\n\n //create the query\n\n Query<Contacts> theQuery = currentSession.createQuery(\"from Contacts\", Contacts.class);\n\n //execute query and get result list\n\n List<Contacts> contacts = theQuery.getResultList();\n\n //return the results\n\n return contacts;\n }", "public Collection<T> getAll() throws DaoException;", "List<UserEntity> findAll();", "Collection<T> findAll();", "@Override\n\tpublic List reterive() {\n\t\tString str=\"SELECT allusers FROM User allusers\";\n\t\tTypedQuery<User> query=em.createQuery(str,User.class);\n\t\treturn query.getResultList();\n\t\t\n\t}", "@Override\n\tpublic List<Product> getAll() {\n\t\tQuery query = session.createQuery(\"from Product \");\n\t\t\n\t\treturn query.getResultList();\n\t}", "List<T> findAll() ;", "@Override\n public Iterator<Entity> iterator() {\n return entities.iterator();\n }", "Iterable<T> findAll();", "@Override\n\tpublic List<Empresa> getAll() {\n\t\treturn empresaJpaRepository.findAll();\n\t}", "InternalResultsResponse<Person> fetchAllPersons();", "@Override\r\n\tpublic List<Person> findAll(){\n\t\tQuery query=em.createQuery(\"Select p from Person p\");\r\n\t\tList<Person> list = query.getResultList();\r\n\t\treturn list;\r\n\t}", "@Override\n\tpublic List<Resident> getAll() {\n\t\tList<Resident> list = null;\n\t\ttry {\n\t\t\tlist = repository.findAll();\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn list;\n\t}", "public List<E> findAll() ;", "@Override\r\n\tpublic List<String> queryAll() {\n\t\tList<String> list = homePageDao.queryAll();\r\n\t\treturn list;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<T> getList() {\n\t\tthis.hql = \"select m from \" + entityClassName + \" as m \";\n\t\tList<T> resultSet = entity.createQuery(this.hql).getResultList();\n\t\treturn resultSet;\n\t}", "public List<Item> getAll()\r\n {\r\n\r\n CriteriaQuery<Item> criteria = this.entityManager\r\n .getCriteriaBuilder().createQuery(Item.class);\r\n return this.entityManager.createQuery(\r\n criteria.select(criteria.from(Item.class))).getResultList();\r\n }", "public List getAll() throws RepositoryException {\n\t\treturn DatanucleusCRUDUtils.getAll(getEntity().getSimpleName());\n\t}", "public List<ConsejoEntity> findAll() {\r\n Query q = em.createQuery(\"select u from ConsejoEntity u\");\r\n return q.getResultList();\r\n }", "public List getAll(){\n\t\tList<Person> personList = personRepository.getAll();\n\t\treturn personList;\n\t}", "@SuppressWarnings(\"unchecked\")\n public List<T> retrieveAll() throws DAOException {\n String queryString = \"select e from \"\n + entityBeanType.getCanonicalName() + \" as e\"\n + \" where e.deleted is null or e.deleted = false\";\n Query query = Helper.checkEntityManager(entityManager).createQuery(\n queryString);\n\n try {\n // Involves an unchecked conversion:\n return query.getResultList();\n } catch (Exception e) {\n throw new DAOException(\"Failed to get all entities.\", e);\n }\n }", "@Override\n\tpublic Iterable<Oglas> findAll() {\n\t\treturn repository.findAll();\n\t}", "public List<Entity> getEntities() {\n return entities;\n }", "@Override\r\n\tpublic List<Trainee> getAll() {\n\t\treturn dao.getAll();\r\n\t}", "@Transactional(readOnly = true)\n public List<HarnaisDTO> findAll() {\n log.debug(\"Request to get all Harnais\");\n return harnaisRepository.findAll().stream()\n .map(harnaisMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "@Override\n\t@Transactional\n\tpublic List<T> getAll() {\n\t\tList<?> result = hibernateTemplate.getSessionFactory().getCurrentSession()\n\t\t\t\t.createCriteria(getGenericClass())\n\t\t\t\t.list();\n\t\treturn result.stream()\n\t\t\t\t.map(e -> initialize(checkType(e)))\n\t\t\t\t.filter(e -> e != null)\n\t\t\t\t.collect(Collectors.toList());\n\t}", "@NotNull\r\n Entity[] getEntities();", "@RequestMapping(value = \"/listallentities\", method = RequestMethod.GET)\n\tpublic @ResponseBody String listAllEntities() {\n\t\ttry {\n\t\t\t// System.out.println(\"USER ID FROM SESSION : \" +\n\t\t\t// session.getAttribute(\"userId\"));\n\t\t\tString requestURI = request.getRequestURI();\n\n\t\t\tSystem.out.println(\"Called list entity : \" + requestURI);\n\n\t\t\tString requestFromMethod = \"listAllEntities\";\n\t\t\treturn entityService.listEntities(null, requestFromMethod);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t}", "public List<UserEntity> findAllUserEntitys() {\n return userEntityRepository.findAll();\n }", "@Override\n\tpublic List<ImageEntity> getAll() {\n\t\treturn DatabaseContext.findAll(ImageEntity.class);\n\t}", "List<IViewEntity> getEntities();", "List<T> getAll();", "List<T> getAll();", "List<T> getAll();", "List<T> getAll();", "List<T> getAll();", "@Override\n\tpublic List<Trainee> getAll() {\n\t\tQuery q=em.createQuery(\"select m from Trainee m\");\n\t\tList<Trainee> l=q.getResultList();\n\t\treturn l;\n\t}", "E[] getAll();", "public List<PokemonEntity> findAll() {\n LOGGER.log(Level.INFO, \"Consultando todas los trayectos\");\n // Se crea un query para buscar todas las ciudades en la base de datos.\n TypedQuery query = em.createQuery(\"select u from PokemonEntity u\", PokemonEntity.class);\n // Note que en el query se hace uso del método getResultList() que obtiene una lista de ciudades.\n return query.getResultList();\n}", "public static List<Enseignant> getAll() {\n\n // Creation de l'entity manager\n EntityManager em = GestionFactory.factory.createEntityManager();\n\n // Recherche\n @SuppressWarnings(\"unchecked\")\n List<Enseignant> list = em.createQuery(\"SELECT e FROM Enseignant e\").getResultList();\n\n return list;\n }", "public abstract List<Object> getAll();", "public List<T> findAll() {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic List<Spot> queryAllSpot() {\n\t\treturn spotRepository.queryAllSpot();\r\n\t}", "public List<SeatEntity> getAll();", "SelectQueryBuilder selectAll();", "@Override\r\n\tpublic List<Object> findAll() {\n\t\treturn null;\r\n\t}", "public List<Account> queryAll() {\n\t\treturn null;\n\t}", "public Users findAll() {\n\tthis.createConnection();\n try {\n Connection con = this.getCon();\n PreparedStatement stmnt = con.prepareStatement(this.getAllQuery());\n ResultSet rs = stmnt.executeQuery();\n return get(rs);\n } catch (SQLException e) {\n System.out.println(\"SQL Exception\" + e.getErrorCode() + e.getMessage());\n e.getStackTrace();\n return new Users();\n }\n }", "public java.util.List<DataEntry> findAll();", "public Collection findAll() {\n\t\treturn null;\r\n\t}", "public List findall() {\r\n log.debug(\"TwitterAccountHibernateDAO.findall\");\r\n List<T> t = find().list();\r\n \r\n return t;\r\n }", "@Override\r\n\tpublic List<User> queryAllUsers() {\n\t\tList<User> users = userMapper.queryAllUsers();\r\n\t\treturn users;\r\n\t}", "public static List findAll() {\n\t\tSession session = DBManager.getSession();\n\t\treturn session.createQuery(\"SELECT e FROM Estoque e\").list();\n\t}", "public List findAll() {\n\t\treturn null;\r\n\t}", "@Override\n\t\t\tpublic List<TestEntity> fetchAll() \n\t\t\t{\n\t\t\t\tList<TestEntity> tests = testDao.findAll();\n\t\t\t\treturn tests;\n\t\t\t}", "public List<IEntity> query(IQuery query) throws SQLException;", "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 }", "@Override\r\n public List<? extends DataStoreEntity> getAllEntities(boolean recursive) {\n return null;\r\n }", "List<T> findAll() throws Exception;", "public <T> List<T> findAll(Class<T> entityClass);", "public List<Employee> getAll() throws SQLException {\n Session session = currentSession();\n Transaction transaction = session.beginTransaction();\n List<Employee> list = session.createQuery(\"from Employee\",\n Employee.class).list();\n transaction.commit();\n session.close();\n return list;\n }", "@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)\n public List<Product> getProductFindAll() {\n return em.createNamedQuery(\"Product.findAll\", Product.class).getResultList();\n }", "public List<Article> findAll();", "public Collection findAll() throws InfrastructureException {\r\n\t\tCollection col;\r\n\t\ttry {\r\n\t\t\tlogger.debug(\"findAll ini\");\r\n\t\t\tcol = getHibernateTemplate().find(\"from Trasllat as tdi order by tdi.id\");\t\t\t\r\n\t\t} catch (HibernateException ex) {\r\n\t\t\tlogger.error(\"findAll failed\", ex);\r\n\t\t\tthrow new InfrastructureException(ex);\r\n\t\t}\r\n\t\tlogger.debug(\"findAll fin\");\r\n\t\treturn col;\r\n\t}", "public List<CompradorEntity> findAll() {\r\n TypedQuery<CompradorEntity> query = em.createQuery(\"select u from CompradorEntity u\", CompradorEntity.class);\r\n return query.getResultList();\r\n }", "public Ruta[] findAll() throws RutaDaoException;", "@Override\n\tpublic List<BookshelfinfoEntity> queryAllBookshelfinfo() {\n\t\treturn this.sqlSessionTemplate.selectList(\"bookshelfinfo.select\");\n\t}" ]
[ "0.78589135", "0.74493724", "0.73268485", "0.71398884", "0.7115238", "0.7110014", "0.7061896", "0.7060634", "0.7044563", "0.7027205", "0.70264137", "0.7013674", "0.69849527", "0.6963101", "0.695591", "0.6904686", "0.6890038", "0.68650806", "0.6862679", "0.68568933", "0.68568933", "0.68568933", "0.6817353", "0.6812948", "0.68009907", "0.67986417", "0.6798122", "0.6791345", "0.6783091", "0.6779149", "0.6764108", "0.6764108", "0.6764108", "0.6750526", "0.674941", "0.6742699", "0.6726626", "0.6718099", "0.67014015", "0.66867226", "0.6686301", "0.66825664", "0.6649136", "0.6635659", "0.66232467", "0.6619542", "0.66078234", "0.6607773", "0.66022474", "0.65984744", "0.6597073", "0.65956223", "0.65867954", "0.65851694", "0.65801775", "0.6575468", "0.6574326", "0.65639013", "0.65600914", "0.6552497", "0.6552211", "0.6550677", "0.65465194", "0.65447754", "0.654", "0.654", "0.654", "0.654", "0.654", "0.6535556", "0.65344197", "0.6530379", "0.6529247", "0.6513196", "0.65122557", "0.65063953", "0.6504011", "0.64979434", "0.6492712", "0.6491869", "0.6480767", "0.64805716", "0.6472641", "0.6472031", "0.6466469", "0.6460233", "0.6455756", "0.6445693", "0.6443018", "0.6440028", "0.64382863", "0.64367086", "0.642529", "0.6422614", "0.640708", "0.6398616", "0.6396381", "0.6393839", "0.6391973", "0.6386497" ]
0.8022702
0
An iterator for all entities returned from the query.
@Override public Iterator<Entity> iterator() { return entities.iterator(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Iterator<E> iterator()\r\n\t{\n\t\treturn ( iterator.hasNext() ? new EntityListIterator() : iterator.reset() );\r\n\t}", "@Override\n public Iterator<NFetchMode> iterator() {\n return Arrays.asList(all).iterator();\n }", "@Transactional(propagation = Propagation.REQUIRED, value = \"jamiTransactionManager\", readOnly = true)\n public Iterator<Experiment> iterateAll() {\n return new IntactQueryResultIterator<Experiment>((ExperimentService) ApplicationContextProvider.getBean(\"experimentService\"));\n }", "public ListIterator<T> getAllByRowsIterator() {\n\t\tAllByRowsIterator it = new AllByRowsIterator();\n\t\treturn it;\n\t}", "Iterable<T> findAll();", "@Transactional(propagation = Propagation.REQUIRED, value = \"jamiTransactionManager\", readOnly = true)\n public Iterator<Experiment> iterateAll(String countQuery, String query, Map<String, Object> parameters, boolean loadLazyCollections) {\n return new IntactQueryResultIterator<Experiment>((ExperimentService) ApplicationContextProvider.getBean(\"experimentService\"), query, countQuery, parameters, loadLazyCollections);\n }", "public abstract AbstractObjectIterator<LocalAbstractObject> getAllObjects();", "public Iterator<ResultItem> iterateItems() {\r\n\t\treturn items.iterator();\r\n\t}", "@Transactional(propagation = Propagation.REQUIRED, value = \"jamiTransactionManager\", readOnly = true)\n public Iterator<Experiment> iterateAll(String queryCount, String query, Map<String, Object> parameters) {\n return new IntactQueryResultIterator<Experiment>((ExperimentService) ApplicationContextProvider.getBean(\"experimentService\"), query, queryCount, parameters);\n }", "public Iterator<Map<String, Object>> getQueryResult() {\n return queryResult;\n }", "@Override\n public Iterator<SingleQuery> iterator() {\n return new QueryHistoryIterator();\n }", "@Override\n\tpublic final Iterable<R> execute() {\n\t\t\n\t\treturn new Iterable<R>() {\n\t\t\t\n\t\t\t@Override \n\t\t\tpublic Iterator<R> iterator() {\n\t\t\t\t\n\t\t\t\treturn AbstractMultiQuery.this.iterator();\n\t\t\t\t\n\t\t\t}\n\t\t};\n\t\t\n\t}", "public Iterable<M> iterateAll();", "public ListIterator<T> getAllByColumnsIterator() {\n\t\tAllByColumnsIterator it = new AllByColumnsIterator();\n\t\treturn it;\n\t}", "@Override\r\n Iterator<E> iterator();", "public static Iterable<Entity> getAllEntities() {\n\t\treturn Util.listEntities(\"RecetteId\", null, null);\n\t}", "public Iterator iterate(QueryParameters queryParameters, EventSource session)\n \t\t\tthrows HibernateException {\n \n \t\tboolean stats = session.getFactory().getStatistics().isStatisticsEnabled();\n \t\tlong startTime = 0;\n \t\tif ( stats ) startTime = System.currentTimeMillis();\n \n \t\ttry {\n-\n-\t\t\tPreparedStatement st = prepareQueryStatement( queryParameters, false, session );\n-\t\t\tResultSet rs = getResultSet( st, queryParameters.hasAutoDiscoverScalarTypes(), false, queryParameters.getRowSelection(), session );\n+\t\t\tfinal ResultSet rs = executeQueryStatement( queryParameters, false, session );\n+\t\t\tfinal PreparedStatement st = (PreparedStatement) rs.getStatement();\n \t\t\tHolderInstantiator hi = HolderInstantiator.createClassicHolderInstantiator(holderConstructor, queryParameters.getResultTransformer());\n \t\t\tIterator result = new IteratorImpl( rs, st, session, queryParameters.isReadOnly( session ), returnTypes, getColumnNames(), hi );\n \n \t\t\tif ( stats ) {\n \t\t\t\tsession.getFactory().getStatisticsImplementor().queryExecuted(\n \t\t\t\t\t\t\"HQL: \" + queryString,\n \t\t\t\t\t\t0,\n \t\t\t\t\t\tSystem.currentTimeMillis() - startTime\n \t\t\t\t\t);\n \t\t\t}\n \n \t\t\treturn result;\n \n \t\t}\n \t\tcatch ( SQLException sqle ) {\n \t\t\tthrow getFactory().getSQLExceptionHelper().convert(\n \t\t\t\t\tsqle,\n \t\t\t\t\t\"could not execute query using iterate\",\n \t\t\t\t\tgetSQLString()\n \t\t\t\t);\n \t\t}\n \n \t}", "@Transactional(propagation = Propagation.REQUIRED, value = \"jamiTransactionManager\", readOnly = true)\n public Iterator<Experiment> iterateAll(boolean loadLazyCollections) {\n return new IntactQueryResultIterator<Experiment>((ExperimentService) ApplicationContextProvider.getBean(\"experimentService\"), loadLazyCollections);\n }", "public Interface_EntityIterator() {\n this(OCCwrapJavaJNI.new_Interface_EntityIterator__SWIG_0(), true);\n }", "public Iterator<OpenERPRecord> iterator() {\r\n\t\treturn records.iterator();\r\n\t}", "public List<Entity> getAll() {\n return entities;\n }", "@Override\n\tpublic Iterator<Statement> iterator() {\n\t\treturn iterator(null, null, null);\n\t}", "public Iterator<T> iterator();", "public Iterator<T> iterator();", "public Iterator<T> iterator();", "public Iterator<T> iterator();", "public Iterator<Type> iterator();", "@Override\n Iterator<T> iterator();", "public T iterator();", "@Override\n @Nonnull Iterator<T> iterator();", "public Iterator<E> iterator();", "public Iterator<E> iterator();", "public Iterator<E> iterator();", "public Iterator<Exact_Period_Count> get_QueryIterator()\r\n\t{\r\n\t\treturn m_queryList.iterator();\r\n\t}", "public ListIterator<T> listIterator() {\n\t\tAllByRowsIterator it = new AllByRowsIterator();\n\t\treturn it;\n\t}", "Iterator<T> iterator();", "public void Next() {\n OCCwrapJavaJNI.Interface_EntityIterator_Next(swigCPtr, this);\n }", "public Iterator iterator()\r\n {\r\n return new IteratorImpl( this, home() );\r\n }", "@Override\n public Iterator<T> iterator() {\n return items.iterator();\n }", "@Override\n public Iterator<Iterable<T>> iterator() {\n return new TableIterator();\n }", "public Iterator<T> iterator() {\r\n return byGenerations();\r\n }", "public List<Entity> getAllEntities()\n\t{\n\t\treturn this.entities;\n\t}", "public Iterator iterator()\n {\n // optimization\n if (OldOldCache.this.isEmpty())\n {\n return NullImplementation.getIterator();\n }\n\n // complete entry set iterator\n Iterator iter = instantiateIterator();\n\n // filter to get rid of expired objects\n Filter filter = new Filter()\n {\n public boolean evaluate(Object o)\n {\n Entry entry = (Entry) o;\n boolean fExpired = entry.isExpired();\n if (fExpired)\n {\n OldOldCache.this.removeExpired(entry, true);\n }\n return !fExpired;\n }\n };\n\n return new FilterEnumerator(iter, filter);\n }", "public Iterator<T> getIterator();", "@Override\n public boolean hasNext() {\n return !query.isEmpty();\n }", "@Override\n public Iterator<BlueUser> iterator() {\n return new AdaptedIterator<User, BlueUser>(User.getAll()) {\n @Override\n protected BlueUser adapt(User item) {\n return new UserImpl(organization, item, UserContainerImpl.this);\n }\n };\n }", "public Iterator iterator() {\n\t return new EntryIterator(set.iterator());\n\t}", "@Override\n public Iterator<T> iterator() {\n return forwardIterator();\n }", "Iterator<E> iterator();", "Iterator<E> iterator();", "@SuppressWarnings(\"unchecked\")\r\n public Iterator<Tuple<T>> iterator() {\n Iterator<Tuple<T>> fi = (Iterator<Tuple<T>>) new FilteredIterator<T>(resultTable.iterator(), filterOn);\r\n return fi;\r\n }", "public Iterator iterator()\n {\n JEditorPane x=new JEditorPane(\"text/html\", this.html);\n Document doc = x.getDocument();\n showModel(doc);\n return new GeneralResultIterator(this);\n }", "@Override\n public Iterator<SimilarResult<T>> iterator() {\n lock();\n return Iterators.limit(getResults().iterator(), maxSize);\n }", "@Override\n public Iterator<Space> iterator() {\n return row.iterator();\n }", "@Override\r\n\tpublic Iterator<TableEntry<K, V>> iterator() {\r\n\t\treturn new IteratorImpl();\r\n\t}", "Iterable<User> getAllUsers();", "@Override\n public List<R> getAll() {\n return onFindForList(getSession().createCriteria(entityClass).list());\n }", "@Override\n public Iterator<Item> findAll(Context context) throws SQLException\n {\n return itemDAO.findAll(context, true);\n }", "public Iterator iterator() {\n maintain();\n return new MyIterator(collection.iterator());\n }", "public Iterator<Person> iterator() {\r\n return staff.iterator();\r\n }", "Collection<T> findAll();", "public CompletableFuture<Iterable<T>> findAll() {\n\t\treturn this.getAll().thenApply((ts) -> (Iterable<T>) ts);\n\t}", "@Override\r\n public Iterator<User> iterator() {\r\n return user.iterator();\r\n }", "public ArrayList<TEntity> getAll(){\n ArrayList<TEntity> list = new ArrayList<TEntity>();\n\n Cursor cursor = db.query(tableName, columns, null, null, null, null, null);\n\n cursor.moveToFirst();\n\n while (!cursor.isAfterLast()) {\n list.add(fromCursor(cursor));\n cursor.moveToNext();\n }\n\n return list;\n }", "List<E> findAll();", "List<E> findAll();", "List<E> findAll();", "public Iterator iterator()\r\n {\r\n if (!cache.initialized()) \r\n throw new IllegalStateException(Cache.NOT_INITIALIZED);\r\n\r\n try\r\n {\r\n return new CompositeIterator(new Iterator[] { \r\n spaceMgr.makeComponentSpaceIterator(),\r\n spaceMgr.makeHistorySpaceIterator() });\r\n }\r\n catch (RuntimeException e)\r\n {\r\n e.printStackTrace();\r\n throw e;\r\n }\r\n }", "@Override\r\n\tpublic Iterator<V> iterator() {\r\n\t\treturn store.iterator();\r\n\t}", "@Override\n\tpublic List<Generator> getAll() {\n\n\t\tList<Generator> result = new ArrayList<>();\n\n\t\ttry (Connection c = context.getConnection(); \n\t\t\tStatement stmt = c.createStatement()) {\n\n\t\t\tResultSet rs = stmt.executeQuery(getAllQuery);\n\n\t\t\twhile (rs.next()) {\n \tGenerator generator = new Generator(\n \t\trs.getInt(1),\n \t\trs.getString(2),\n \t\trs.getString(3),\n \t\trs.getInt(4),\n \t\trs.getInt(5),\n \t\trs.getInt(6)\n \t);\n\t\t\t\tresult.add(generator);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn result;\n\t\t}\n\t\treturn result;\n\n\t}", "private Iterator getEntries(){\r\n\t\tSet entries = items.entrySet();\r\n\t\treturn entries.iterator();\r\n\t}", "@Override\n\tpublic Iterator<E> iterator() {\n\t\treturn vertices.iterator();\n\t}", "@Override\n protected Iterator<? extends Map<String, AttributeValue>> nextIterator(final int count) {\n if (count == 1) {\n return currentResult.getItems().iterator();\n }\n // subsequent chained iterators will be obtained from dynamoDB\n // pagination\n if ((currentResult.getLastEvaluatedKey() == null)\n || currentResult.getLastEvaluatedKey().isEmpty()) {\n return null;\n } else {\n request.setExclusiveStartKey(currentResult.getLastEvaluatedKey());\n currentResult = dynamoDBClient.query(request);\n return currentResult.getItems().iterator();\n }\n }", "public Iterator<E> iterator() {\n\t\treturn new Itr();\n\t}", "public List<IEntity> query(IQuery query) throws SQLException;", "@Override\n public Iterator<T> iterator() {\n return new Itr();\n }", "@Override\n public Iterator<T> iterator() {\n return new Itr();\n }", "public Iterator <item_t> iterator () {\n return new itor ();\n }", "public synchronized Iterator<E> iterator()\n {\n return iteratorUpAll();\n }", "@Override\n public Iterator<T> iterator() {\n return new CLITableIterator<T>(createNew(tables, cursor, rowIndex));\n }", "@Override\n\tpublic Iterator<E> iterator() {\n\t\treturn Iterators.emptyIterator();\n\t}", "@Override\n public Iterator<Long> iterator() {\n Collection<Long> c = new ArrayList<>();\n synchronized (data) {\n for (int i=0; i<data.length; i++)\n c.add(get(i));\n }\n return c.iterator();\n }", "@Override\n\tpublic Iterator<T> iterator() {\n\t\treturn this.itemList.iterator();\n\t}", "public Iterator<Item> iterator() {\n RQIterator it = new RQIterator();\n return it;\n }", "public Iterator<QuantifiedItemDTO> getIterator() {\r\n\t\treturn items.iterator();\r\n\t}", "public Iterator<TradeItem> iterator() {\n return items.iterator();\n }", "@Override\n public Iterator<Restaurant> iterator () {\n return this.restaurantList.iterator();\n }", "public java.util.Iterator<Entry> iterator(){\n\t\treturn new ContentIterator();\n\t}", "@Override\n public List<T> findAll() {\n return manager\n .createQuery(\"from \" + elementClass.getSimpleName() + \" e\", elementClass)\n .getResultList();\n }", "@Override\n public Iterator<Object> iterator() {\n return new MyIterator();\n }", "public Iterator<IDatasetItem> iterateOverDatasetItems();", "public Iterator<T> getPageElements();", "public List<T> findAll() {\n\t Query q = getEntityManager().createQuery(\"select u from \" + getEntityClass().getSimpleName() + \" u\");\n\t return q.getResultList();\n\t }", "@Override\r\n\tpublic Iterator<T> iterator() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn this.iteratorInOrder();\r\n\t}", "@Override\n\tpublic Iterator<Forme> iterator() {\n\t\treturn this.formes.iterator();\n\t}", "public int NbEntities() {\n return OCCwrapJavaJNI.Interface_EntityIterator_NbEntities(swigCPtr, this);\n }", "public List<E> findAll();", "public static Iterable<Entity> getAllUsers() {\r\n Iterable<Entity> entities = Util.listEntities(\"User\", null, null);\r\n return entities;\r\n }", "@Override\r\n\tpublic Iterator<GIS_layer> iterator() {\n\t\treturn set.iterator();\r\n\t}", "public Iterator<E> iterator()\r\n {\r\n return listIterator();\r\n }" ]
[ "0.7239255", "0.7231862", "0.71075684", "0.7023779", "0.69358116", "0.6552874", "0.6541122", "0.65100706", "0.6499622", "0.6471138", "0.64529574", "0.6449361", "0.64492583", "0.6438503", "0.642798", "0.64222115", "0.6407303", "0.63867813", "0.63695854", "0.6353134", "0.6338298", "0.63330126", "0.63311225", "0.63311225", "0.63311225", "0.63311225", "0.6319113", "0.6296229", "0.6292198", "0.6291817", "0.6277543", "0.6277543", "0.6277543", "0.6248672", "0.6227952", "0.6206334", "0.62015146", "0.6143742", "0.612671", "0.611936", "0.6111144", "0.6104982", "0.6091366", "0.6085441", "0.6082763", "0.6048265", "0.60422724", "0.6038956", "0.60374415", "0.60374415", "0.60255903", "0.6004876", "0.6003838", "0.59988254", "0.599658", "0.5983126", "0.5967968", "0.5964539", "0.5955076", "0.5948595", "0.59465075", "0.5945514", "0.5944086", "0.59288496", "0.59111774", "0.59111774", "0.59111774", "0.5907019", "0.5904186", "0.58989966", "0.58984345", "0.58956337", "0.5890503", "0.58884585", "0.5888346", "0.58832616", "0.58832616", "0.58706623", "0.5863854", "0.58502865", "0.5847644", "0.5846386", "0.58391273", "0.5836145", "0.5810112", "0.58086765", "0.5801666", "0.5796636", "0.57770747", "0.5772819", "0.5771597", "0.57695997", "0.57662743", "0.5766038", "0.5765015", "0.5760329", "0.57595336", "0.5751975", "0.5745161", "0.57312095" ]
0.82108116
0
Convertimos la lista de generos
public MovieDetails transform(Movie movie){ String genres = ""; for (int i = 0; i < movie.getMovieGenres().size(); i++) genres += movie.getMovieGenres().get(i).getName() + ", "; genres = genres.substring(0,genres.length() - 2); String originalTitle = movie.getOriginalTitle() + " (" + movie.getReleaseDate().substring(0,4) + ")"; return new MovieDetails( movie.isFavorite(), movie.getBackdropPath(), movie.getTitle(), originalTitle, genres, movie.getTagline(), movie.getOverview(), movie.getRuntime() + " min.", movie.getReleaseDate() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void generTirarDados() {\n\r\n\t}", "protected void generar() {\n generar(1, 1);\n }", "public void transcribir() \r\n\t{\r\n\t\tpalabras = new ArrayList<List<CruciCasillas>>();\r\n\t\tmanejadorArchivos = new CruciSerializacion();\r\n\t\tint contador = 0;\r\n\t\t\r\n\t\tmanejadorArchivos.leer(\"src/Archivos/crucigrama.txt\");\r\n\t\t\r\n\t\tfor(int x = 0;x<manejadorArchivos.getPalabras().size();x++){\r\n\t\t\t\r\n\t\t\tcontador++;\r\n\t\t\t\r\n\t\t\tif (contador == 4) {\r\n\t\t\t\r\n\t\t\t\tList<CruciCasillas> generico = new ArrayList<CruciCasillas>();\r\n\t\t\t\t\r\n\t\t\t\tfor(int y = 0; y < manejadorArchivos.getPalabras().get(x).length();y++)\r\n\t\t\t\t{\r\n\t\t\t\t\t\tgenerico.add(new CruciCasillas(manejadorArchivos.getPalabras().get(x).charAt(y)));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (y == (manejadorArchivos.getPalabras().get(x).length() - 1)) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tpalabras.add(generico);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tcontador = 0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t}", "List<Videogioco> retriveByGenere(String genere);", "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}", "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 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<ParCuentasGenerales> listaCuentasGeneralesPorAsignar() {\n return parParametricasService.listaCuentasGenerales();\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 }", "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 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 generaNumeros() {\n\n\n int number =0;\n int numeroSeleccionado=gameMemoriaUno.getNumberaleatorio();\n //se agrega numero a las lista de numeros\n\n if(numeroSeleccionado == -1){\n llamaResultado(super.getActividad(), tFinal, tInicio, Num3_5_1Activity.class,gameMemoriaUno.getNumeros(),gameMemoriaUno.getAciertosTotales(),gameMemoriaUno.getFallosTotales(),gameMemoriaUno.getNumEcxluidosList(),gameMemoriaUno.getNumeroPregunta());\n\n }else {\n\n\n gameMemoriaUno.addNumerosSet(numeroSeleccionado);\n for (int i = 1; i < 6; i++) {\n //obtiene numeros del costalito menos el numero seleccionado\n number = gameMemoriaUno.getNumeroArreglo();\n //agrego numeros\n gameMemoriaUno.addNumerosSet(number);\n }\n\n Iterator<Integer> iter = gameMemoriaUno.getNumerosSet().iterator();\n\n int contadorNumeros=0;\n while (iter.hasNext()) {\n int valor=iter.next().intValue();\n lista.add(valor);\n if(gameMemoriaUno.getDificultad()==contadorNumeros){\n gameMemoriaUno.setNumerosElejidos(new int[valor]);\n }\n\n contadorNumeros+=1;\n }\n Collections.shuffle(lista, new Random());\n Collections.shuffle(lista, new Random());\n\n\n\n }\n\n\n }", "public void genLists() {\n\t}", "private void createGenres() {\n ArrayList<String> gen = new ArrayList<>();\n //\n for (Movie mov : moviedb.getAllMovies()) {\n for (String genre : mov.getGenre()) {\n if (!gen.contains(genre.toLowerCase()))\n gen.add(genre.toLowerCase());\n }\n }\n\n Collections.sort(gen);\n\n genres = gen;\n }", "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 }", "private List<ItemListaIntegracaoDTO> montarListaInstituicaoDTO(List<InstituicaoCooperativaSCIDTO> lista) {\n\t\tList<ItemListaIntegracaoDTO> listaVO = new ArrayList<ItemListaIntegracaoDTO>();\n\n\t\tfor(InstituicaoCooperativaSCIDTO instituicao:lista){\n\t\t\tItemListaIntegracaoDTO item = new ItemListaIntegracaoDTO(instituicao.getNumCooperativa().toString(), instituicao.getNumCooperativa() + \" - \" + instituicao.getNome());\n\t\t\tlistaVO.add(item);\n\t\t}\n\t\t\n\t\tCollections.sort(listaVO, new Comparator<ItemListaIntegracaoDTO>() {\n\t\t\tpublic int compare(ItemListaIntegracaoDTO o1, ItemListaIntegracaoDTO o2){\n\t\t\t\t\treturn o1.getCodListaItem().compareTo(o2.getCodListaItem());\n\t\t\t\t} \n\t\t});\n\t\t\n\t\treturn listaVO;\t\t\n\t}", "Object getTolist();", "private List<ItemListaIntegracaoDTO> montarListaInstituicaoIdInstituicaoDTO(List<InstituicaoCooperativaSCIDTO> lista) {\n\t\tList<ItemListaIntegracaoDTO> listaVO = new ArrayList<ItemListaIntegracaoDTO>();\n\n\t\tfor(InstituicaoCooperativaSCIDTO instituicao:lista){\n\t\t\tString cooperativa = instituicao.getNumCooperativa().toString();\n\t\t\tif(instituicao.getNumCooperativa() == 300) {\n\t\t\t\tcooperativa = \"0300\";\n\t\t\t}\n\t\t\tItemListaIntegracaoDTO item = new ItemListaIntegracaoDTO(instituicao.getIdInstituicao().toString(), cooperativa + \" - \" + instituicao.getNome());\n\t\t\tlistaVO.add(item);\n\t\t}\n\t\t\n\t\tCollections.sort(listaVO, new Comparator<ItemListaIntegracaoDTO>() {\n\t\t\tpublic int compare(ItemListaIntegracaoDTO o1, ItemListaIntegracaoDTO o2){\n\t\t\t\t\treturn o1.getCodListaItem().compareTo(o2.getCodListaItem());\n\t\t\t\t} \n\t\t});\n\t\t\n\t\treturn listaVO;\t\t\n\t}", "public void generar() throws Exception {\n\t\tAnalizador_Sintactico.salida.generar(\".DATA\", \"genero los datos estaticos para la clase \"+this.nombre);\r\n\t\tAnalizador_Sintactico.salida.generar(\"VT_\"+nombre+\":\",\" \");\r\n\t\t\r\n\t\tboolean esDinamico=false;\r\n\t\t\r\n\t\t//para cada metodo, genero la etiqueta dw al codigo\r\n\t\tfor (EntradaMetodo m: entradaMetodo.values()) {\r\n\t\t\tif (m.getModificador().equals(\"dynamic\")) {\r\n\t\t\t\tAnalizador_Sintactico.salida.gen_DW(\"DW \"+m.getEtiqueta(),\"offset: \"+m.getOffsetMetodo(),m.getOffsetMetodo());\r\n\t\t\t\tesDinamico=true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tAnalizador_Sintactico.salida.agregar_DW();\r\n\t\t\r\n\t\t//si NO hay ningun metodo dinamico -> VT con NOP\r\n\t\tif (! esDinamico)\r\n\t\t\tAnalizador_Sintactico.salida.generar(\"NOP\",\"no hago nada\");\r\n\t\t\r\n\t\t//genero codigo para todos los metodos\r\n\t\tAnalizador_Sintactico.salida.generar(\".CODE\",\"seccion codigo de la clase \"+this.nombre);\r\n\t\t\r\n\t\tList<EntradaPar> listaParams;\r\n\t\tfor(EntradaMetodo m: entradaMetodo.values()) {\r\n\t\t\t//metodo actual es m\r\n\t\t\tAnalizador_Sintactico.TS.setMetodoActual(m);\r\n\t\t\t\r\n\t\t\t//SETEO el offset de sus parametros\r\n\t\t\tlistaParams= m.getEntradaParametros();\r\n\t\t\t\r\n\t\t\tfor(EntradaPar p: listaParams) {\r\n\t\t\t\t//seteo offset de p\r\n\t\t\t\t\r\n\t\t\t\t//si es dinamico m -> offset desde 3\r\n\t\t\t\tif (m.getModificador().equals(\"dynamic\")) {\r\n\t\t\t\t\tp.setOffset((listaParams.size() +4) - p.getUbicacion());\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t//si es estatico m -> offset desde 2\r\n\t\t\t\t\tp.setOffset((listaParams.size() +3) - p.getUbicacion());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//genero el codigo del cuerpo de ese metodo\r\n\t\t\tm.generar();\r\n\t\t}\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//genero codigo para todos los constructores\r\n\t\tfor(EntradaCtor c: entradaCtor.values()) {\r\n\t\t\t//metodo actual es m\r\n\t\t\tAnalizador_Sintactico.TS.setMetodoActual(c);\r\n\t\t\t\r\n\t\t\t//SETEO el offset de sus parametros\r\n\t\t\tlistaParams= c.getEntradaParametros();\r\n\t\t\t\r\n\t\t\tfor(EntradaPar p: listaParams) {\r\n\t\t\t\t//seteo offset de p\r\n\t\t\t\tp.setOffset(listaParams.size() +4 - p.getUbicacion());\t// +4 porque el ctor tiene this\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//genero el codigo de ese metodo\r\n\t\t\tc.generar();\r\n\t\t}\t\r\n\t}", "public ListaPracownikow() {\n generujPracownikow();\n //dodajPracownika();\n }", "@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 List<Pdfgenere> getlistePdfgenere() {\n\t\treturn em.createQuery(\"from Pdfgenere P\").getResultList();\n\t}", "public static void main(String[] args) {\r\n \r\n Generico <String,Integer,String,Double> c=new Generico<>(\"Eduardo\",25,\"Dani\",25.0);\r\n c.mostrar();\r\n List<Generico<String,Integer,String,String>>lista = new ArrayList<>();\r\n lista.add(new Generico<String,Integer,String,String> (\"Eduardo\",25,\"Dani\",\"Hello World\"));\r\n for (Generico<String,Integer,String,String> gn: lista) {\r\n gn.mostrar();\r\n }\r\n }", "List<TipoHuella> listarTipoHuellas();", "public void inicializarListaMascotas()\n {\n //creamos un arreglo de objetos y le cargamos datos\n mascotas = new ArrayList<>();\n mascotas.add(new Mascota(R.drawable.elefante,\"Elefantin\",0));\n mascotas.add(new Mascota(R.drawable.conejo,\"Conejo\",0));\n mascotas.add(new Mascota(R.drawable.tortuga,\"Tortuga\",0));\n mascotas.add(new Mascota(R.drawable.caballo,\"Caballo\",0));\n mascotas.add(new Mascota(R.drawable.rana,\"Rana\",0));\n }", "public List<Tripulante> obtenerTripulantes();", "public List<Poliza> generarPoliza(final Periodo p){\r\n\t\tList<Poliza> polizas=new ArrayList<Poliza>();\r\n\t\tfor(Date dia:p.getListaDeDias()){\r\n\t\t\ttry {\r\n\t\t\t\tPoliza res=generarPoliza(dia);\r\n\t\t\t\tpolizas.add(res);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tlogger.error(\"No genero la poliza para el dia: \"+dia+ \" \\nMsg: \"+ExceptionUtils.getRootCauseMessage(e)\r\n\t\t\t\t\t\t,e);\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn polizas;\r\n\t}", "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}", "private static List<Integer> initLista(int tamanho) {\r\n\t\tList<Integer> lista = new ArrayList<Integer>();\r\n\t\tRandom rand = new Random();\r\n\r\n\t\tfor (int i = 0; i < tamanho; i++) {\r\n\t\t\tlista.add(rand.nextInt(tamanho - (tamanho / 10) + 1)\r\n\t\t\t\t\t+ (tamanho / 10));\r\n\t\t}\r\n\t\treturn lista;\r\n\t}", "private List<VueloEntity> vuelosListDTO2Entity(List<VueloDTO> dtos) {\n List<VueloEntity> list = new ArrayList<>();\n for (VueloDTO dto : dtos) {\n list.add(dto.toEntity());\n }\n return list;\n }", "@RequestMapping(value = \"/getGeneros\", method = RequestMethod.GET)\r\n public @ResponseBody List<Genero> getGeneros() {\r\n return (List<Genero>) this.generoRepository.findAll();\r\n }", "List<ParqueaderoEntidad> listar();", "private List<EquipoDetailDTO> listEntity2DTO(List<EquipoEntity> listaEntidades)\n {\n List<EquipoDetailDTO> lista = new ArrayList<>();\n for (EquipoEntity e: listaEntidades) \n {\n lista.add(new EquipoDetailDTO(e));\n }\n return lista;\n }", "private Object saveGivens() {\n List<String> out = new ArrayList<>();\n for(UUID id : givenEmpty) {\n out.add(id.toString());\n }\n return out;\n }", "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}", "private void moverCarroLujo() {\n for (Auto auto : arrEnemigosAuto) {\n auto.render(batch);\n\n auto.moverIzquierda();\n }\n }", "public EnemigoGenerico[] cargaBichos()\n {\n \n //Crear la bicheria (hardCoded)\n CoordCasilla[] origen={new CoordCasilla(1,1), new CoordCasilla(18,1), new CoordCasilla(14,8), new CoordCasilla(17,17), new CoordCasilla(13,5)};\n CoordCasilla[] destino={new CoordCasilla(6,18) , new CoordCasilla(1,1), new CoordCasilla(1,8), new CoordCasilla(18,1) , new CoordCasilla(13,18) };\n \n \n DefBicho pelota=this.atlasBicheria.get(\"Pelota Maligna\");\n EnemigoGenerico bichos[]=new EnemigoGenerico[origen.length];\n \n for(int x=0;x<origen.length;x++)\n {\n List<CoordCasilla> camino = this.getCamino(origen[x], destino[x]);\n Gdx.app.log(\"CAMINO:\", \"DESDE (\"+origen[x].x+\",\"+origen[x].y+\") HASTA ( \"+destino[x].x+\",\"+destino[x].y+\")\");\n for (CoordCasilla cc : camino)\n Gdx.app.log(\"CASILLA.\", String.format(\"(%2d ,%2d )\", cc.x, cc.y));\n \n \n bichos[x] = new EnemigoGenerico(pelota, this.mapaAnimaciones.get(pelota.archivoAnim), pelota.pv, pelota.tasaRegen, pelota.velocidad, camino, pelota.distanciaPercepcion, pelota.ataques);\n }\n \n return bichos;\n }", "@Override\n\tpublic List<Generator> getAll() {\n\t\treturn new ArrayList<>();\n\t}", "@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}", "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 }", "public static ArrayList<Individuo> mutaHeuristica(ArrayList<Individuo> genAnt,int nB){\n ArrayList<Individuo> aux = genAnt;\n ArrayList<Integer> genesS = new ArrayList<>();\n int nM = (int) (genAnt.size()*0.2); //determina cuantos individuos van a ser mutados\n int iS,gS,i=0,n,c;\n byte gaux[],baux;\n Random r = new Random();\n while(i<nM){\n gS = r.nextInt(nB+1);//selecciona el numero de genes aleatoriamente\n iS = r.nextInt(genAnt.size());//selecciona un individuo aleatoriamente\n gaux = aux.get(iS).getGenotipo();//obtenemos genotipo de ind seleccionado\n c=0;\n System.out.println(gS);\n //seleccionamos genes a ser permutados\n while(c != gS){\n n = r.nextInt(nB);\n if(!genesS.contains(n)){\n genesS.add(n);\n System.out.print(genesS.get(c)+\" \");\n c++;\n }\n }\n System.out.println(\"\");\n //aux.remove(iS);//quitamos elemento\n //aux.add(iS, new Individuo(gaux,genAnt.get(0).getTipoRepre()));//añadimos elemento mutado\n i++;\n }\n return aux;\n }", "public void genererchemin() {\r\n\t\tRandom hauteur1 = new Random();\r\n\t\tRandom longueur2 = new Random();\r\n\t\tRandom choix = new Random();\r\n\t\tArrayList chemin = new ArrayList();\r\n\t\tSystem.out.println(this.getHauteur());\r\n\t\tSystem.out.println(this.getLargeur());\r\n\t\tint milieu = getLargeur() / 2;\r\n\t\t//System.out.println(milieu);\r\n\t\tCoordonnees c = new Coordonnees(milieu, hauteur1.nextInt(\r\n\t\t\t\tgetLargeur()));\r\n\t\tchemin.add(c);\r\n\t\tchemin.add(new Coordonnees(0, 0));\r\n\t\tchemin.add(new Coordonnees(getLargeur() - 1, getHauteur() - 1));\r\n\t\tCoordonnees droite = new Coordonnees(milieu + 1, c.getHauteur());\r\n\t\tchemin.add(droite);\r\n\t\tCoordonnees gauche = new Coordonnees(milieu - 1, c.getHauteur());\r\n\t\tchemin.add(gauche);\r\n\t\tCoordonnees base1 = new Coordonnees(0, 0);\r\n\t\tCoordonnees base2 =new Coordonnees(getLargeur() - 1, getHauteur() - 1);\r\n\r\n\t\twhile (!gauche.equals(base1)) {\r\n\t\t\tif (gauche.getLargeur() == 0) {\r\n\t\t\t\tgauche = new Coordonnees(0, gauche.getHauteur() - 1);\r\n\t\t\t\tchemin.add(gauche);\r\n\t\t\t} else if (gauche.getHauteur() == 0) {\r\n\t\t\t\tgauche = new Coordonnees(gauche.getLargeur() - 1, 0);\r\n\t\t\t\tchemin.add(gauche);\r\n\t\t\t}\r\n\t\t\telse if (choix.nextInt(2) == 0) {\r\n\t\t\t\tgauche = new Coordonnees(gauche.getLargeur() - 1, \r\n\t\t\t\t\t\tgauche.getHauteur());\r\n\t\t\t\tchemin.add(gauche);\r\n\t\t\t} else {\r\n\t\t\t\tgauche = new Coordonnees(gauche.getLargeur(), \r\n\t\t\t\t\t\tgauche.getHauteur() - 1);\r\n\t\t\t\tchemin.add(gauche);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\twhile (!droite.equals(base2)) {\r\n\t\t\tif (droite.getLargeur() == (this.largeur -1)) {\r\n\t\t\t\tdroite = new Coordonnees(droite.getLargeur(), \r\n\t\t\t\t\t\tdroite.getHauteur() + 1);\r\n\t\t\t\tchemin.add(droite);\r\n\r\n\t\t\t} else if (droite.getHauteur() == (this.hauteur -1)) {\r\n\t\t\t\tdroite = new Coordonnees(droite.getLargeur() + 1, \r\n\t\t\t\t\t\tdroite.getHauteur());\r\n\t\t\t\tchemin.add(droite);\r\n\t\t\t\t//System.out.println(\"fais chier\");\r\n\t\t\t}\r\n\t\t\telse if (choix.nextInt(2) == 0) {\r\n\t\t\t\tdroite = new Coordonnees(droite.getLargeur() + 1, \r\n\t\t\t\t\t\tdroite.getHauteur());\r\n\t\t\t\tchemin.add(droite);\r\n\t\t\t} else {\r\n\t\t\t\tdroite = new Coordonnees(droite.getLargeur(), \r\n\t\t\t\t\t\tdroite.getHauteur() + 1);\r\n\t\t\t\tchemin.add(droite);\r\n\t\t\t}\r\n\t\t}\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Quel est le pourcentage d'obstacle souhaite :\");\r\n\t\tint pourcentage = sc.nextInt();\r\n\t\tint ctp = getHauteur() * getLargeur() * pourcentage / 100;\r\n\t\twhile(ctp >0){\r\n\t\t\tCoordonnees obstacle = new Coordonnees(longueur2.nextInt(getLargeur()), \r\n\t\t\t\t\thauteur1.nextInt(getHauteur()));\r\n\t\t\t//System.out.println(!chemin.contains(obstacle));\r\n\t\t\tif (!chemin.contains(obstacle)) {\r\n\t\t\t\tthis.plateau[obstacle.getHauteur()][obstacle.getLargeur()] = new Obstacle(\r\n\t\t\t\t\t\tobstacle.getHauteur(), obstacle.getLargeur());\r\n\t\t\t\tctp--;\r\n\t\t\t} else {\r\n\t\t\t\t//System.out.println(obstacle + \"est sur le chemin\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void generarListaData() throws FileStructureException {\n CarmasTimbresTemp timbre = null;\n HSSFWorkbook workbook = null;\n HSSFSheet sheet = null;\n Iterator<Row> rowIterator = null;\n Row row = null;\n DataFormatter formatter = new DataFormatter(Locale.getDefault());\n listaData.clear();\n InputStream inputStream = null;\n try {\n if (this.file != null) {\n inputStream = this.file.getInputStream();\n workbook = new HSSFWorkbook(inputStream);\n sheet = workbook.getSheetAt(0);\n rowIterator = sheet.iterator();\n while (rowIterator.hasNext()) {\n row = rowIterator.next();\n if (row.getRowNum() == 0) {\n validarEstructura(row);\n } else if (row != null) {\n if (!isEmptyRow(row)) {\n timbre = new CarmasTimbresTemp();\n timbre.setCajero(formatter.formatCellValue(row.getCell(0)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setProvdiasgteMaq(formatter.formatCellValue(row.getCell(1)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setProvdiasgteLin(formatter.formatCellValue(row.getCell(2)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setDiferencias(formatter.formatCellValue(row.getCell(3)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setObservacion(row.getCell(4) == null ? \"\" : row.getCell(4).toString().toUpperCase().replaceAll(\"\\\\^[a-zA-Z0-9]+$\", \"\"));\n timbre.setOcca(formatter.formatCellValue(row.getCell(5)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setAumento(formatter.formatCellValue(row.getCell(6)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setDisminucion(formatter.formatCellValue(row.getCell(7)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setSobrante(formatter.formatCellValue(row.getCell(8)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setFaltante(formatter.formatCellValue(row.getCell(9)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setNovedad(row.getCell(10) == null ? \"\" : row.getCell(10).toString().toUpperCase().replaceAll(\"\\\\^[a-zA-Z0-9]+$\", \"\"));\n timbre.setAsignadoA(row.getCell(11) == null ? \"\" : row.getCell(11).toString().toUpperCase().replaceAll(\"\\\\^[a-zA-Z0-9]+$\", \"\"));\n timbre.setProveedor(row.getCell(12) == null ? \"\" : row.getCell(12).toString().toUpperCase().replaceAll(\"\\\\^[a-zA-Z0-9]+$\", \"\"));\n timbre.setClasificacion(row.getCell(13) == null ? \"\" : row.getCell(13).toString().toUpperCase().replaceAll(\"\\\\^[a-zA-Z0-9]+$\", \"\"));\n timbre.setTipificacionTransportadora(row.getCell(14) == null ? \"\" : row.getCell(14).toString().toUpperCase().replaceAll(\"\\\\^[a-zA-Z0-9]+$\", \"\"));\n listaData.add(timbre);\n }\n }\n }\n }\n } catch (OfficeXmlFileException ex) {\n abrirModal(\"SARA\", \"Formato Invalido\", ex);\n } catch (IOException ex) {\n abrirModal(\"SARA\", \"Seleccione archivo\", ex);\n } finally {\n if (inputStream != null) {\n try {\n inputStream.close();\n } catch (IOException ex) {\n Logger.getLogger(CargarTimbresMasivosBean.class.getName()).log(Level.SEVERE, null, ex);\n inputStream = null;\n }\n }\n }\n }", "public List<Mobibus> darMobibus();", "public void creatList()\n\t{\n\t\tbowlers.add(new Bowler(\"A\",44));\n\t\tbowlers.add(new Bowler(\"B\",25));\n\t\tbowlers.add(new Bowler(\"C\",2));\n\t\tbowlers.add(new Bowler(\"D\",10));\n\t\tbowlers.add(new Bowler(\"E\",6));\n\t}", "public 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 }", "private void obtenerEstampas(int tipo) {\n try {\n switch(tipo){\n case 0:\n listaSobreNormal = new ListaSobreNormal();\n for (int i = 0; i < 5; i++) {\n listaSobreNormal.insertar(App.listaEstampas.obtenerEstampaSobre(tipo).getEstampa());\n }\n //listaSobreNormal.mostrar();\n App.listaUsuarios.agregarEstampasObtenidas(listaSobreNormal);\n mostrarEstampas(listaSobreNormal.getActual().getEstampa());\n break;\n case 1:\n listaSobreDorado = new ListaSobreDorado();\n for (int i = 0; i < 5; i++) {\n listaSobreDorado.insertar(App.listaEstampas.obtenerEstampaSobre(tipo).getEstampa());\n }\n //listaSobreDorado.mostrar();\n App.listaUsuarios.agregarEstampasObtenidas(listaSobreDorado);\n mostrarEstampas(listaSobreDorado.getActual().getEstampa());\n break;\n }\n } catch (Exception e) {\n System.err.println(\"error\");\n e.printStackTrace();\n }\n }", "public static List<ViajeEntidad> getListaViajesEntidad(){\n List<ViajeEntidad> viajes = new ArrayList<>();\n Date date = new Date();\n ViajeEntidadPK viajePK = new ViajeEntidadPK();\n TaxiEntidad taxiByPkPlacaTaxi = new TaxiEntidad();\n ClienteEntidad clienteByPkCorreoCliente = new ClienteEntidad();\n clienteByPkCorreoCliente.setPkCorreoUsuario(\"[email protected]\");\n TaxistaEntidad taxistaByCorreoTaxi = new TaxistaEntidad();\n taxistaByCorreoTaxi.setPkCorreoUsuario(\"[email protected]\");\n OperadorEntidad agendaOperador = new OperadorEntidad();\n agendaOperador.setPkCorreoUsuario(\"[email protected]\");\n\n viajePK.setPkPlacaTaxi(\"CCC11\");\n viajePK.setPkFechaInicio(\"2019-01-01 01:01:01\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n viajePK.setPkPlacaTaxi(\"DDD11\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n viajePK.setPkPlacaTaxi(\"EEE11\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n\n return viajes;\n }", "public List<TipoDocumento> listar() throws SQLException{\n ArrayList<TipoDocumento> tipodocumentos = new ArrayList();\n TipoDocumento tipodocumento;\n ResultSet resultado;\n String sentenciaSQL = \"SELECT documentoid, descripcion FROM tipodocumento;\";\n \n resultado = gestorJDBC.ejecutarConsulta(sentenciaSQL);\n while(resultado.next()){ \n //para hacer \"new Genero\" necesito tener un Construtor vacio.\n tipodocumento = new TipoDocumento();\n tipodocumento.setTipodocumentoid(resultado.getInt(\"documentoid\"));\n tipodocumento.setDescripcion(resultado.getString(\"descripcion\"));\n tipodocumentos.add(tipodocumento);\n }\n resultado.close();\n return tipodocumentos; \n }", "private List<Agent> ConvertAgentT(List<AgentT> listT) {\r\n\t\tList<Agent> listerep = new ArrayList<Agent>();\r\n\t\tfor (AgentT at : listT) {\r\n\t\t\tAgent agent = new Agent();\r\n\t\t\tagent.setAgentT(at);\r\n\t\t\tlisterep.add(agent);\r\n\t\t}\r\n\t\treturn listerep;\r\n\t}", "public void prepareList()\n {\n listImg = new ArrayList<Drawable>();\n for(int i=0;i<n;i++)\n {\n \ta.moveToPosition(i);\n \tString immagine = a.getString(0);\n \tCaricaImmagine caricaImmagineAsync = new CaricaImmagine();\n \t\tcaricaImmagineAsync.execute(new String[]{immagine});\n }\n }", "private List<T> transform(List<T> nodes) {\n List<T> transformed = new ArrayList<>();\n for (T node : nodes) {\n transformed.add(node);\n }\n return transformed;\n }", "private static List<Etudiant> creationListeEtudiants(List<String> datas,boolean modele){\n\t\tList<String> dataEtudiant = new ArrayList<String>();\n\t\tList<Etudiant> etudiants = new ArrayList<Etudiant>();\n\t\tIterator<String> it = datas.iterator();\n\t\twhile (it.hasNext()) {//on parcourt les donnees\n\t\t\tString data = it.next();\n\t\t\tif(RecherchePattern.rechercheDebutEtudiant(data)){\t//si on change d'etudiant on reset les donnees concernant l'ancien etudiant\n\t\t\t\treset();\n\t\t\t\tdataEtudiant = new ArrayList<String>();//on reset les donnees\n\t\t\t\tsetNbEtudiant(getNbEtudiant() + 1);\n\t\t\t}\n\t\t\telse{//si on a pas changer d'etudiant on stocke ces donnees\n\t\t\t\tif(RecherchePattern.rechercheFinEtudiant(data)){//si on est a la fin des donnees on creer l'etudiant\n\t\t\t\t\tdataEtudiant.add(data); //on ajoute le dernier element au donnee\n\t\t\t\t\tif(!modele)\n\t\t\t\t\t\tetudiants.add(ajoutEtudiant(dataEtudiant));\n\t\t\t\t\telse\n\t\t\t\t\t\tetudiants.add(ajoutEtudiantModele(dataEtudiant));\n\t\t\t\t\treset();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tdataEtudiant.add(data);//on est pas a la fin on attend\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tetudiants = suppressionDoublons(etudiants); //on supprime les\n\t\treturn etudiants;\n\t}", "public static List<Producto> convertirProductoTextoALIsta(String cadena){\n Gson gson = new Gson();\n\n Type lista = new TypeToken<List<Producto>>() {}.getType();\n return gson.fromJson(cadena,lista); //pasamos la cadena y adaptara el formato para esta lista\n}", "@Override\n\tpublic List<CFEBean> generarCFEs(List<CFEDefTypeX> lista)\n\t\t\tthrows GeneradorException {\n\t\treturn null;\n\t}", "List<PersonaDTO> PersonaListToPersonaDTOList(List<Persona> personaList);", "public static List<Punto> getPuntos(){\n\t\t\n\t\tList<Punto> puntos = new ArrayList<Punto>();\n\t\ttry{\n\n\t\t\t//-12.045916, -75.195270\n\t\t\t\n\t\t\tPunto p1 = new Punto(1,-12.037512,-75.183327,0.0);\n\t\t\tp1.setDatos(getDatos(\"16/06/2017 09:00:00\", 2 , 1));\n\t\t\t\n\t\t\tPunto p2 = new Punto(2,-12.041961,-75.184786,0.0);\n\t\t\tp2.setDatos(getDatos(\"16/06/2017 09:00:00\",1 , 2));\n\t\t\t\n\t\t\tPunto p3 = new Punto(3,-12.0381,-75.1841,0.0);\n\t\t\tp3.setDatos(getDatos(\"16/06/2017 09:00:00\",2 , 2));\n\t\t\t\n\t\t\tPunto p4 = new Punto(4,-12.041542,-75.185816,0.0);\n\t\t\tp4.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p5 = new Punto(5,-12.037764,-75.181096,0.0);\n\t\t\tp5.setDatos(getDatos(\"16/06/2017 11:15:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p6 = new Punto(6,-12.042801,-75.190108,0.0);\n\t\t\tp6.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p7 = new Punto(7,-12.04364,-75.184014,0.0);\n\t\t\tp7.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p8 = new Punto(8,-12.045739,-75.185387,0.0);\n\t\t\tp8.setDatos(getDatos(\"16/06/2017 11:30:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p9 = new Punto(9,-12.04683,-75.187361,0.0);\n\t\t\tp9.setDatos(getDatos(\"16/06/2017 11:50:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p10 = new Punto(10,-12.050775,-75.187962,0.0);\n\t\t\tp10.setDatos(getDatos(\"16/06/2017 12:30:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p11 = new Punto(11,-12.053797,-75.184271,0.0);\n\t\t\tp11.setDatos(getDatos(\"16/06/2017 13:00:00\",0 , 0));\n\t\t\t\n\t\t\tpuntos.add(p8);\n\t\t\tpuntos.add(p9);\n\t\t\tpuntos.add(p3);\n\t\t\tpuntos.add(p4);\n\t\t\tpuntos.add(p5);\n\t\t\tpuntos.add(p6);\n\t\t\tpuntos.add(p7);\n\t\t\tpuntos.add(p10);\n\t\t\tpuntos.add(p1);\n\t\t\tpuntos.add(p2);\n\t\t\tpuntos.add(p11);\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e ){\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\t\n\t\treturn puntos;\n\t\n\t}", "public ArrayList<Richiesta> riempi2(){\n ArrayList<Richiesta> array = new ArrayList<>();\n Richiesta elemento = new Richiesta();\n elemento.setIdRichiesta(1);\n elemento.setStato(\"C\");\n elemento.setTipo(\"Prescrizione\");\n elemento.setData_richiesta(\"2016/07/02 alle 08:30 \");\n elemento.setNome_farmaco(\"Brufen\");\n elemento.setQuantita_farmaco(2);\n elemento.setCf_paziente(\"NLSFLP94T45L378G\");\n array.add(elemento);\n\n elemento.setIdRichiesta(2);\n elemento.setStato(\"R\");\n elemento.setTipo(\"Visita specialistica\");\n elemento.setNote_richiesta(\"Specialistica dermatologica presso dottoressa A.TASIN \");\n elemento.setData_richiesta(\"2016/05/06 alle 15:30 \");\n elemento.setCf_paziente(\"MRORSS94T05E378A\");\n array.add(elemento);\n\n elemento.setIdRichiesta(3);\n elemento.setStato(\"R\");\n elemento.setTipo(\"Visita di controllo\");\n elemento.setData_richiesta(\"2016/07/02 alle 08:30 \");\n elemento.setNome_farmaco(\"dermatologica\");\n elemento.setCf_paziente(\"MRORSS94T05E378A\");\n array.add(elemento);\n\n return array;\n }", "@Override\n public ArrayList<String> Crear(){\n setVida(3500);\n Creado.add(0, Integer.toString(getVida()));\n Creado.add(1,\"150\");\n Creado.add(2,\"100\");\n Creado.add(3,\"70\");\n return Creado;\n }", "private void turnos() {\n\t\tfor(int i=0; i<JuegoListener.elementos.size(); i++){\n\t\t\tElemento elemento = JuegoListener.elementos.get(i);\n\t\t\t\n\t\t\telemento.jugar();\n\t\t}\n\t}", "public List<String> pot(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\n if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"e\")) {\n\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotEscenario(qnaCaptura);\n listaString.add(\"ID del Cargo,Nombre del Cargo\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"i\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotInmueble(qnaCaptura);\n listaString.add(\"Id Domicilio,Calle,Número Exterior,Número Interior,Colonia,Municipio,Estado/Entidad Fef.,País,Código Postal,Tipo de Oficina\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"a\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotAltas(qnaCaptura, \n qnaCaptura2);\n listaString.add(\"ID del Servidor Público,Nombre,Primer Apellido,Segundo Apellido,Tipo Vacancia,Telefono Directo,Conmutador,Extensión,Fax,Email,ID Domicilio,Nivel de Puesto,Id del Cargo,ID del Cargo Superior,Nivel_Jerarquico\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"b\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotBajas(qnaCaptura, \n qnaCaptura2);\n listaString.add(\"ID del Servidor Público\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"d\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotDirectorio(qnaCaptura, \n qnaCaptura2);\n listaString.add(\"Unidad,RFC,ID del Servidor Público,Nombre,Primer Apellido,Segundo Apellido,Tipo Vacancia,Telefono Directo,Conmutador,Extensión,Fax,Email,ID Domicilio,Nivel de Puesto,Id del Cargo,ID del Cargo Superior,Nivel_Jerarquico\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"r\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotRemuneraciones(qnaCaptura, \n qnaCaptura2);\n listaString.add(\"Id Puesto,Nombre,Tipo,SubTipo,Sueldo Base,Compensación Garantizada, Total Bruto, Total Neto,Nombre 01 Remuneracion,Monto 01 Remuneracion,Nombre 02 Remuneracion,Monto 02 Remuneracion,Nombre 03 Remuneracion,Monto 03 Remuneracion,Nombre 04 Remuneracion,Monto 04 Remuneracion,Nombre 05 Remuneracion,Monto 05 Remuneracion,Nombre 06 Remuneracion,Monto 06 Remuneracion,Nombre 07 Remuneracion,Monto 07 Remuneracion,Nombre 08 Remuneracion,Monto 08 Remuneracion,Nombre 09 Remuneracion,Monto 09 Remuneracion,Nombre 10 Remuneracion,Monto 10 Remuneracion,Nombre 11 Remuneracion,Monto 11 Remuneracion,Nombre 12 Remuneracion,Monto 12 Remuneracion,Nombre 13 Remuneracion,Monto 13 Remuneracion,Nombre 14 Remuneracion,Monto 14 Remuneracion,Nombre 15 Remuneracion,Monto 15 Remuneracion,Institucional,Colectivo de Retiro,Gastos Médicos,Separación Individualizado,Riesgos de Trabajo,Nombre Otros Seguros 1,Monto Otros Seguros 1,Nombre Otros Seguros 2,Monto Otros Seguros 2,Nombre Otros Seguros 3,Monto Otros Seguros 3,Nombre Otros Seguros 4,Monto Otros Seguros 4,Nombre Otros Seguros 5,Monto Otros Seguros 5,Nombre Otros Seguros 6,Monto Otros Seguros 6,Nombre Otros Seguros 7,Monto Otros Seguros 7,Nombre Otros Seguros 8,Monto Otros Seguros 8,Nombre Otros Seguros 9,Monto Otros Seguros 9,Nombre Otros Seguros 10,Monto Otros Seguros 10,Nombre Otros Seguros 11,Monto Otros Seguros 11,Nombre Otros Seguros 12,Monto Otros Seguros 12,Nombre Otros Seguros 13,Monto Otros Seguros 13,Nombre Otros Seguros 14,Monto Otros Seguros 14,Nombre Otros Seguros15,Monto Otros Seguros 15,Prima Vacacional,Primas de Antigüedad,Gratificación de Fin de Año,Pagas de Defunción,Ayuda para Despensa,Vacaciones,Nombre Prest. Econom 1,Monto Prest. Econom 1,Nombre Prest. Econom 2,Monto Prest. Econom 2,Nombre Prest. Econom 3,Monto Prest. Econom 3,Nombre Prest. Econom 4,Monto Prest. Econom 4,Nombre Prest. Econom 5,Monto Prest. Econom 5,Nombre Prest. Econom 6,Monto Prest. Econom 6,Nombre Prest.Econom 7,Monto Prest. Econom 7,Nombre Prest. Econom 8,Monto Prest. Econom 8,Nombre Prest. Econom 9,Monto Prest. Econom 9,Nombre Prest. Econom 10,Monto Prest. Econom 10,Nombre Prest. Econom 11,Monto Prest. Econom 11,Nombre Prest. Econom 12,Monto Prest. Econom 12,Nombre Prest. Econom 13,Monto Prest. Econom 13,Nombre Prest. Econom 14,Monto Prest. Econom 14,Nombre Prest. Econom 15,Monto Prest. Econom 15,Asistencia Legal,Asignación de Vehículo y/o Apoyo Económico ,Equipo de Telefonía Celular,Gastos de Alimentación,Nombre Prest. Inherentes al Puesto 1,Monto Prest. Inherentes al Puesto 1,Nombre Prest. Inherentes al Puesto 2,Monto Prest. Inherentes al Puesto 2,Nombre Prest. Inherentes al Puesto 3,Monto Prest. Inherentes al Puesto 3,Nombre Prest. Inherentes al Puesto 4,Monto Prest. Inherentes al Puesto 4,Nombre Prest. Inherentes al Puesto 5,Monto Prest. Inherentes al Puesto 5,Nombre Prest. Inherentes al Puesto 6,Monto Prest. Inherentes al Puesto 6,Nombre Prest. Inherentes al Puesto 7,Monto Prest. Inherentes al Puesto 7,Nombre Prest. Inherentes al Puesto 8,Monto Prest. Inherentes al Puesto 8,Nombre Prest. Inherentes al Puesto 9,Monto Prest. Inherentes al Puesto 9,Nombre Prest. Inherentes al Puesto 10,Monto Prest. Inherentes al Puesto 10,Nombre Prest. Inherentes al Puesto 11,Monto Prest. Inherentes al Puesto 11,Nombre Prest. Inherentes al Puesto 12,Monto Prest. Inherentes al Puesto 12,Nombre Prest. Inherentes al Puesto 13,Monto Prest. Inherentes al Puesto 13,Nombre Prest. Inherentes al Puesto 14,Monto Prest. Inherentes al Puesto 14,Nombre Prest. Inherentes al Puesto 15,Monto Prest. Inherentes al Puesto 15,ISSSTE / IMSS,FOVISSSTE / INFONAVIT,SAR,Nombre 01 Prest.Seg Social,Monto 01 Prest.Seg Social,Nombre 02 Prest.Seg Social,Monto 02 Prest.Seg Social,Nombre 03 Prest.Seg Social,Monto 03 Prest.Seg Social,Nombre 04 Prest.Seg Social,Monto 04 Prest.Seg Social,Nombre 05 Prest.Seg Social,Monto 05 Prest.Seg Social,Nombre 06 Prest.Seg Social,Monto 06 Prest.Seg Social,Nombre 07 Prest.Seg Social,Monto 07 Prest.Seg Social,Nombre 08 Prest.Seg Social,Monto 08 Prest.Seg Social,Nombre 09 Prest.Seg Social,Monto 09 Prest.Seg Social,Nombre 10 Prest.Seg Social,Monto 10 Prest.Seg Social,Nombre 11 Prest.Seg Social,Monto 11 Prest.Seg Social,Nombre 12 Prest.Seg Social,Monto 12 Prest.Seg Social,Nombre 13 Prest.Seg Social,Monto 13 Prest.Seg Social,Nombre 14 Prest.Seg Social,Monto 14 Prest.Seg Social,Nombre 15 Prest.Seg Social,Monto 15 Prest.Seg Social,Préstamos,Becas,Indemnizaciones,Nombre Otro Tipo Incentivo 01,Monto. Otro Tipo Incentivo 01,Nombre Otro Tipo Incentivo 02,Monto. Otro Tipo Incentivo 02,Nombre Otro Tipo Incentivo 03,Monto. Otro Tipo Incentivo 03,Nombre Otro Tipo Incentivo 04,Monto. Otro Tipo Incentivo 04,Nombre Otro Tipo Incentivo05,Monto. Otro Tipo Incentivo 05,Nombre Otro Tipo Incentivo 06,Monto. Otro Tipo Incentivo 06,Nombre Otro Tipo Incentivo 07,Monto. Otro Tipo Incentivo 07,Nombre Otro Tipo Incentivo 08,Monto. Otro Tipo Incentivo 08,Nombre Otro Tipo Incentivo 09,Monto. Otro Tipo Incentivo 09,Nombre Otro Tipo Incentivo 10,Monto. Otro Tipo Incentivo10,Nombre Otro Tipo Incentivo 11,Monto. Otro Tipo Incentivo 11,Nombre Otro Tipo Incentivo 12,Monto. Otro Tipo Incentivo12,Nombre Otro Tipo Incentivo 13,Monto. Otro Tipo Incentivo 13,Nombre Otro Tipo Incentivo 14,Monto. Otro Tipo Incentivo 14,Nombre Otro Tipo Incentivo 15,Monto. Otro Tipo Incentivo 15\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"f\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotFuncion((reportePlazaDTO.getQnaCaptura().substring(0, \n 4)));\n listaString.add(\"Identificador de la Facultad,Fundamento Legal,Documento Registrado,Unidad Administrativa,Nombre de la Unidad Administrativa\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"s\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotEstadistico(qnaCaptura);\n listaString.add(\"NIVEL,G,H,HH,I,J,K,L,M,N,O,Total\");\n }\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 }", "public static void SerializarCadastro(List ArrayAlunos) {\n\n XStream xstream = new XStream(new DomDriver()); //Classe responsavel pela serialização xml\n\n OutputStream outputStream = null;\n\n xstream.alias(\"Cadastro\", List.class);\n xstream.alias(\"aluno\", Aluno.class);\n //File file = new File(\"/home/david/Documentos\",\"CadastroAluno.xml\" );\n File file = new File(\"XML/CadastroAluno.xml\");\n\n try {\n outputStream = new FileOutputStream(file);\n Writer writer = new OutputStreamWriter(outputStream, \"UTF-8\");\n xstream.toXML(ArrayAlunos, writer);\n } catch (IOException ex) {\n //Logger.getLogger(SerializaAluno.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n\n\n\n\n }", "private List<RouteInfo> createList() {\r\n\r\n List<RouteInfo> results = new ArrayList<>();\r\n\r\n for (String temp [] : stops) {\r\n\r\n RouteInfo info = new RouteInfo();\r\n info.setTitle(temp[0]);\r\n info.setRouteName(\"Stop ID: \" + temp[1]);\r\n info.setRouteDescription(\"Next bus at: \");\r\n results.add(info);\r\n }\r\n\r\n return results;\r\n }", "public static List<CarroDto> converter(List<Carro> carros) {\n return carros.stream().map(CarroDto::new).collect(Collectors.toList());\n }", "public void creoVehiculo() {\n\t\t\n\t\tAuto a= new Auto(false, 0);\n\t\ta.encender();\n\t\ta.setPatente(\"saraza\");\n\t\ta.setCantPuertas(123);\n\t\ta.setBaul(true);\n\t\t\n\t\tSystem.out.println(a);\n\t\t\n\t\tMoto m= new Moto();\n\t\tm.encender();\n\t\tm.frenar();\n\t\tm.setManubrio(true);\n\t\tm.setVelMax(543);\n\t\tm.setPatente(\"zas 241\");\n\t\tVehiculo a1= new Auto(true, 0);\n\t\ta1.setPatente(\"asd 423\");\n\t\t((Auto)a1).setBaul(true);\n\t\t((Auto)a1).setCantPuertas(15);\n\t\tif (a1 instanceof Auto) {\n\t\t\tAuto autito= (Auto) a1;\n\t\t\tautito.setBaul(true);\n\t\t\tautito.setCantPuertas(531);\n\t\t\t\n\t\t}\n\t\tif (a1 instanceof Moto) {\n\t\t\tMoto motito=(Moto) a1;\n\t\t\tmotito.setManubrio(false);\n\t\t\tmotito.setVelMax(15313);\n\t\t\t\n\t\t\t\n\t\t}\n\t\tif (a1 instanceof Camion) {\n\t\t\tCamion camioncito=(Camion) a1;\n\t\t\tcamioncito.setAcoplado(false);\n\t\t\tcamioncito.setPatente(\"ge\");\n\t\t\t\n\t\t\t\n\t\t}\n\t\tVehiculo a2= new Moto();\n\t\tSystem.out.println(a2);\n\t\ta1.frenar();\n\t\t\n\t\tArrayList<Vehiculo>listaVehiculo= new ArrayList<Vehiculo>();\n\t\tlistaVehiculo.add(new Auto(true, 53));\n\t\tlistaVehiculo.add(new Moto());\n\t\tlistaVehiculo.add(new Camion());\n\t\tfor (Vehiculo vehiculo : listaVehiculo) {\n\t\t\tSystem.out.println(\"clase:\" +vehiculo.getClass().getSimpleName());\n\t\t\tvehiculo.encender();\n\t\t\tvehiculo.frenar();\n\t\t\tSystem.out.println(\"=======================================\");\n\t\t\t\n\t\t}\n\t}", "public static ArrayList<obj_dos_campos> carga_tipo_producto() {\n ArrayList<obj_dos_campos> lista = new ArrayList<obj_dos_campos>();\n Connection c=null;\n try {\n c = conexion_odbc.Connexion_datos();\n Statement s = c.createStatement();\n ResultSet rs = s.executeQuery(\"select tip_prod_idn as data, tip_prod_nombre as label from tipo_producto order by tip_prod_nombre desc\");\n lista.add(new obj_dos_campos(\"0\",\"-- Seleccione --\"));\n while (rs.next()){\n lista.add(new obj_dos_campos(rs.getString(\"data\"),rs.getString(\"label\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n c.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n return lista;\n }", "void generate(List<Customer> customers);", "public ArrayList<String> Info_Disc_Mus_Compras(String genero) {\r\n ArrayList<String> Lista_nombre = Info_Disco_Mus_Rep1(genero);\r\n ArrayList<String> Lista_datos_compras = new ArrayList();\r\n String line;\r\n try (BufferedReader br = new BufferedReader(new FileReader(\"src/Archivos/Compra_Musica.txt\"))) {\r\n while ((line = br.readLine()) != null) {\r\n String[] info_disco_compra = line.split(\";\");\r\n for (int s = 0; s < Lista_nombre.size(); s++) {\r\n if (Lista_nombre.get(s).equals(info_disco_compra[3])) {\r\n Lista_datos_compras.add(info_disco_compra[3]);\r\n Lista_datos_compras.add(info_disco_compra[5]);\r\n }\r\n }\r\n }\r\n } catch (IOException ex) {\r\n System.out.println(ex);\r\n }\r\n return Lista_datos_compras;\r\n }", "private List<PaseoEcologicoDetailDTO> listEntity2DTO(List<PaseoEcologicoEntity> listaEntrada)\r\n {\r\n List<PaseoEcologicoDetailDTO> l = new ArrayList<>( );\r\n for(PaseoEcologicoEntity entity : listaEntrada)\r\n {\r\n l.add(new PaseoEcologicoDetailDTO(entity));\r\n }\r\n return l; \r\n }", "void generarArchivosDePueba(Integer parametro, Integer numeroRegistros) throws SIATException;", "private List<ComentarioEntity> listDTO2Entity(List<ComentarioDTO> dtos) {\n List<ComentarioEntity> list = new ArrayList<>();\n for (ComentarioDTO dto : dtos) {\n list.add(dto.toEntity());\n }\n return list;\n }", "public List<Tripulante> buscarTodosTripulantes();", "private void criaListaOrdenada(List<Tipo> listaOrdenada, List<AgrupamentoTipoBean> valoresMap) {\n\t\tfor (AgrupamentoTipoBean agrupamentoTipoBean : valoresMap) {\n\t\t\tlistaOrdenada.add(agrupamentoTipoBean.getTipoEvento());\n\t\t}\n\t}", "List<Vehiculo>listar();", "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 druckeMagazin()\n {\n for (T posten : magazin) \n {\n System.out.println (posten);\n }\n }", "public static List<Object> czytaniePogody(){\r\n Object[] elementyPogody = new Object[3];\r\n elementyPogody[0]=0;\r\n elementyPogody[1]=0;\r\n elementyPogody[2]=null;\r\n String line;\r\n OdczytZPliku plik = new OdczytZPliku();\r\n InputStream zawartosc = plik.pobierzZPliku(\"bazapogod.txt\");\r\n try (InputStreamReader odczyt = new InputStreamReader(zawartosc, StandardCharsets.UTF_8);\r\n BufferedReader czytaj = new BufferedReader(odczyt)) {\r\n String numerWStringu = String.valueOf(elementyPogody[0] = (int) (Math.random() * 4));\r\n while ((line = czytaj.readLine()) != null){\r\n if (line.equals(numerWStringu)){\r\n elementyPogody[1] = Integer.parseInt(czytaj.readLine());\r\n elementyPogody[2] = czytaj.readLine();\r\n System.out.println(\"\\nPogoda na dzis: \" + elementyPogody[2]);\r\n break;\r\n }\r\n else {\r\n for (int i = 0; i < 2; i++) {\r\n line = czytaj.readLine();\r\n }\r\n }\r\n }\r\n } catch (Exception ignored) {\r\n }\r\n return List.of(elementyPogody);\r\n }", "List gen() {\n\tList ret = new ArrayList();\n\n\tlong emptySlots = ~(pieceBits[LIGHT] | pieceBits[DARK]);\n\tif (side == LIGHT) {\n\tlong moves = (pawnBits[LIGHT] >> 8) & emptySlots;\n\tlong keep = moves;\n\twhile (moves != 0) {////// bouger le pion d'une case\n\t\tint theMove = getLBit(moves);\n\t\tgenPush(ret, theMove + 8, theMove, 16);\n\t\tmoves &= (moves - 1);\n\t\t}\n\t\tmoves = ((keep & 0x0000ff0000000000L) >> 8) & emptySlots;// bouge le pion\n\t\twhile (moves != 0) {//bouger le pion de deux case\n\t\tint theMove = getLBit(moves);\n\t\tgenPush(ret, theMove + 16, theMove, 24);\n\t\tmoves &= (moves - 1);\n\t\t}\n\t\tmoves = ((pawnBits[LIGHT] & 0x00fefefefefefefeL) >> 9)\n\t\t& pieceBits[DARK];\n\t\twhile (moves != 0) {//pion qui mange un autre pion\n\t\tint theMove = getLBit(moves);\n\t\tgenPush(ret, theMove + 9, theMove, 17);\n\t\tmoves &= (moves - 1);\n\t\t}\n\t\tmoves = ((pawnBits[LIGHT] & 0x007f7f7f7f7f7f7fL) >> 7)\n\t\t& pieceBits[DARK];\n\t\twhile (moves != 0) {// manger a droite\n\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove + 7, theMove, 17);\n\tmoves &= (moves - 1);\n\t}\n\t} else {\n\tlong moves = (pawnBits[DARK] << 8) & emptySlots;\n\tlong keep = moves;\n\twhile (moves != 0) {\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove - 8, theMove, 16);\n\tmoves &= (moves - 1);\n\t}\n\tmoves = ((keep & 0xff0000L) << 8) & emptySlots;\n\twhile (moves != 0) {\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove - 16, theMove, 24);\n\tmoves &= (moves - 1);\n\t}\n\tmoves = ((pawnBits[DARK] & 0x00fefefefefefefeL) << 7)\n\t& pieceBits[LIGHT];\n\twhile (moves != 0) {\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove - 7, theMove, 17);\n\tmoves &= (moves - 1);\n\t}\n\tmoves = ((pawnBits[DARK] & 0x007f7f7f7f7f7f7fL) << 9)\n\t& pieceBits[LIGHT];\n\twhile (moves != 0) {\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove - 9, theMove, 17);\n\tmoves &= (moves - 1);\n\t}\n\t}\n\tlong pieces = pieceBits[side] ^ pawnBits[side];\n\twhile (pieces != 0) {\n\tint i = getLBit(pieces);\n\tint p = piece[i];\n\tfor (int j = 0; j < offsets[p]; ++j)\n\tfor (int n = i;;) {\n\tn = mailbox[mailbox64[n] + offset[p][j]];\n\tif (n == -1)\n\tbreak;\n\tif (color[n] != EMPTY) {\n\tif (color[n] == xside)\n\tgenPush(ret, i, n, 1);\n\tbreak;\n\t}\n\tgenPush(ret, i, n, 0);\n\tif (!slide[p])\n\tbreak;\n\t}\n\tpieces &= (pieces - 1);\n\t}\n\n\t/* petit rock */\n\tif (side == LIGHT) {\n\tif (((castle & 1) != 0) && (piece[F1] == EMPTY)\n\t&& (piece[G1] == EMPTY))\n\tgenPush(ret, E1, G1, 2);\n\tif (((castle & 2) != 0) && (piece[D1] == EMPTY)\n\t&& (piece[C1] == EMPTY) && (piece[B1] == EMPTY))\n\tgenPush(ret, E1, C1, 2);\n\t} else {\n\tif (((castle & 4) != 0) && (piece[F8] == EMPTY)\n\t&& (piece[G8] == EMPTY))\n\tgenPush(ret, E8, G8, 2);\n\tif (((castle & 8) != 0) && (piece[D8] == EMPTY)\n\t&& (piece[C8] == EMPTY) && (piece[B8] == EMPTY))\n\tgenPush(ret, E8, C8, 2);\n\t}\n\n\t/* generate en passant moves */\n\tif (ep != -1) {\n\tif (side == LIGHT) {\n\tif (COL(ep) != 0 && color[ep + 7] == LIGHT\n\t&& piece[ep + 7] == PAWN)\n\tgenPush(ret, ep + 7, ep, 21);\n\tif (COL(ep) != 7 && color[ep + 9] == LIGHT\n\t&& piece[ep + 9] == PAWN)\n\tgenPush(ret, ep + 9, ep, 21);\n\t} else {\n\tif (COL(ep) != 0 && color[ep - 9] == DARK\n\t&& piece[ep - 9] == PAWN)\n\tgenPush(ret, ep - 9, ep, 21);\n\tif (COL(ep) != 7 && color[ep - 7] == DARK\n\t&& piece[ep - 7] == PAWN)\n\tgenPush(ret, ep - 7, ep, 21);\n\t}\n\t}\n\treturn ret;\n\t}", "private final void inicializarListas() {\r\n\t\t//Cargo la Lista de orden menos uno\r\n\t\tIterator<Character> it = Constantes.LISTA_CHARSET_LATIN.iterator();\r\n\t\tCharacter letra;\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tletra = it.next();\r\n\t\t\tthis.contextoOrdenMenosUno.crearCharEnContexto(letra);\r\n\t\t}\r\n\t\t\r\n\t\tthis.contextoOrdenMenosUno.crearCharEnContexto(Constantes.EOF);\r\n\t\t\r\n\t\tthis.contextoOrdenMenosUno.actualizarProbabilidades();\r\n\t\t\r\n\t\t//Cargo las listas de ordenes desde 0 al orden definido en la configuración\r\n\t\tOrden ordenContexto;\r\n\t\tfor (int i = 0; i <= this.orden; i++) {\r\n\t\t\tordenContexto = new Orden();\r\n\t\t\tthis.listaOrdenes.add(ordenContexto);\r\n\t\t}\r\n\t}", "private void cargarAutos() {\n Auto autos[]={\n new Auto(\"Bocho\",\"1994\"),\n new Auto(\"Jetta\",\"1997\"),\n new Auto(\"Challenger\",\"2011\"),\n new Auto(\"Ferrari\",\"2003\")\n };\n for (Auto auto : autos) {\n cboAutos.addItem(auto);\n \n }\n spnIndice.setModel(new SpinnerNumberModel(0, 0, autos.length-1, 1));\n }", "public List getTrabajadores();", "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 cargaDeDatos(List<List<Object>> Musuarios,List<List<Object>> Mtareas, List<List<Object>> Mrequisitos) {\r\n\tfor (List<Object> l: Musuarios) {\r\n\t\tam.addMiembro(new MiembroDeEquipo((int)l.get(0),(String)l.get(1)));\r\n\t}\r\n\t/**\r\n\t * Cargamos a la lista de administrador de tareas todas las tareas que se encuentran en la base de datos, \r\n\t * si no tiene miembro se le pone a null sino se le añade un miembro.\r\n\t */\r\n\tfor (List<Object> l: Mtareas) {\r\n\t\tat.addTarea(new Tarea((String)l.get(0),(int)l.get(1),(int)l.get(2),(int)l.get(3),(int)l.get(6)));\r\n\t\t//Si tiene un miembro asignado (cualquier id mayor que cero) le añade el miembro de equipo, sino null\r\n\t\tif(0 < (int)l.get(5)) {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setAsignadoA(am.BuscarMiembro((int) l.get(5)));\r\n\t\t}else {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setAsignadoA(null);\r\n\t\t}\r\n\t\t//Si tiene un requisito (cualquier id maor que cero) le añade el requisito, sino null\r\n\t\tif(0 < (int)l.get(4)) {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setRequisito(ar.BuscarRequisito((int) l.get(4)));\r\n\t\t}else {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setRequisito(null);\r\n\t\t}\r\n\t\tat.BuscarTarea((int)l.get(1)).setDescripcion((String)l.get(7));\r\n\t}\r\n\t/**\r\n\t * Cargamos la lista del administrador de requisitos con todos los requisitos que tenemos,\r\n\t * si el requisito tiene 5 atributos, será un defecto, sino será una historia de usuario\r\n\t */\r\n\tfor (List<Object> l: Mrequisitos) {\r\n\t\tHashSet<Tarea> lista = new HashSet<Tarea>();\r\n\t\t//Buscamos todas las tareas que tengan este requisito, para tener una lista de las tareas que este tiene\r\n\t\tfor(List<Object> t: Mtareas) {\r\n\t\t\t\r\n\t\t\tif((int)l.get(2)==(int)t.get(4)) {\r\n\t\t\t\tlista.add(at.BuscarTarea((int)t.get(1)));\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Creamos defecto o historiaDeUsuario, según sea el caso y lo añadimos a la lista generica de Requisitos.\r\n\t\tif(l.size()==5) {\r\n\t\t\tDefecto req = new Defecto((String)l.get(4),(String) l.get(0), (String)l.get(1),(int)l.get(2),lista);\r\n\t\t\tif((int)l.get(3)==1) {\r\n\t\t\treq.finalizar();\r\n\t\t\t}\r\n\t\t\tar.addRequisito(req);\r\n\t\t}else {\r\n\t\t\tRequisito req = new HistoriaDeUsuario((String) l.get(0), (String)l.get(1),(int)l.get(2));\r\n\t\t\tif(!lista.isEmpty()) {\r\n\t\t\t\treq.setRequisitos(lista);\r\n\t\t\t}\r\n\t\t\tif((int)l.get(3)==1) {\r\n\t\t\treq.finalizar();\r\n\t\t\t}\r\n\t\t\tar.addRequisito(req);\t\t\r\n\t\t}\r\n\t}\r\n\tfor (List<Object> l: Mtareas) {\r\n\t\t//Si tiene un requisito (cualquier id maor que cero) le añade el requisito, sino null\r\n\t\tif(0 < (int)l.get(4)) {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setRequisito(ar.BuscarRequisito((int) l.get(4)));\r\n\t\t}else {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setRequisito(null);\r\n\t\t}\r\n\t}\r\n}", "public static ArrayList<String> procesarFastaCompleto(File prueba, ArrayList<String> nombres) {\n\t\tSystem.out.println(\"s\");\n\n\t\tArrayList<String> gen = new ArrayList<>();\n\t\ttry {\n\t\t\tScanner leerfichero = new Scanner(prueba);\n\t\t\twhile(leerfichero.hasNextLine()){\n\t\t\t\tString reg = leerfichero.nextLine();\n\t\t\t\tif (reg.startsWith(\">\")) {\n\t\t\t\t\tString line = leerfichero.nextLine();\n\t\t\t\t\tnombres.add(reg.replaceAll(\"gene\", \"\"));\n\t\t\t\t\tString gento = \"\";\n\t\t\t\t\twhile (!line.startsWith(\">\") ){\n\t\t\t\t\t\tgento+=line.replaceAll(\"\\n\", \"\");\n\t\t\t\t\t\tline = leerfichero.nextLine();\n\t\t\t\t\t}\n\t\t\t\t\tgen.add(gento);\n\t\t\t\t}\n\t\t\t}\n\t\t\tleerfichero.close();\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn gen;\n\t}", "@Override\n\tpublic ArrayList<Object[]> tousEmplo() {\n\t\tfor (Employe emplo : treeMap.values()) {\n\t\t\tObject[] aux = { emplo.getId(), emplo.getNom(), emplo.getPrenom(),\n\t\t\t\t\templo.getDate_N(), emplo.getSexe(), emplo.getRue(),\n\t\t\t\t\templo.getNumero(), emplo.getVille(), emplo.getPay(),\n\t\t\t\t\templo.getTelef(), emplo.getClass().getName().substring(13) };\n\t\t\tarray.add(aux);\n\t\t}\n\t\treturn array;\n\t}", "private void createSpritesList() {\n\t\tArrayList<PartyMember> pmList = player.getPartyMembers();\n\t\tfor (int i = 0; i < pmList.size(); i++) {\n\t\t\tSprite as = pmList.get(i);\n\t\t\tsprites.put(as.hashCode(), as);\n\t\t}\n\t\telements = new SortingElement[sprites.size()];\n\t\tIterator<Integer> it = sprites.keySet().iterator();\n\t\tint i = 0;\n\t\twhile (it.hasNext()) {\n\t\t\tint index = it.next();\n\t\t\tSprite as = sprites.get(index);\n\t\t\telements[i++] = new SortingElement(as.pos[Values.Y], index);\n\t\t}\n\t}", "public List<String> pntremuneracion(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).findBypntRemuneracion(qnaCaptura, \n qnaCaptura2);\n listaString.add(\"Tipo de integrante del sujeto obligado,Clave o nivel del puesto,Denominación del puesto,Denominación del cargo,Área de adscripción,Nombre completo del servidor público y/o toda persona que desempeñe un empleo cargo o comisión y/o ejerzan actos de autoridad,Sexo,Remuneración mensual bruta,Remuneración mensual neta,Percepciones adicionales en efectivo,Percepciones adicionales en especie,Periodicidad,Ingresos,Sistemas de compensación,Periodicidad,Gratificaciones,Periodicidad,Primas,Periodicidad,Comisiones,Periodicidad,Dietas,Periodicidad,Bonos,Periodicidad,Estímulos,Periodicidad,Apoyos económicos,Periodicidad,Prestaciones económicas,Prestaciones en especie,Periodicidad,Otro tipo de percepción,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 }", "public static void main(String[] args) {\n Gson json = new Gson();\n RestPregunta client = new RestPregunta();\n ArrayList value = client.getPreguntasCuestionario(ArrayList.class, \"68\");\n for(Object ob: value){ \n System.out.println(ob);\n Pregunta pregunta = json.fromJson(ob.toString(), Pregunta.class);\n System.out.println(pregunta.getPregunta());\n }\n client.close();\n //Gson json = new Gson();\n RestPregunta restPregunta = new RestPregunta();\n ArrayList<Pregunta> lista = new ArrayList();\n ArrayList values = restPregunta.getPreguntasCuestionario(ArrayList.class,\"68\");\n for(Object pro: values){\n Pregunta pregunta = json.fromJson(pro.toString(), Pregunta.class);\n lista.add(new Pregunta(pregunta.getIdPregunta(), pregunta.getIdCuestionario(), pregunta.getPuntoAsignado(), pregunta.getPuntoObtenido(), pregunta.getPregunta())); \n }\n// Pregunta pregunta = client.getPregunta(Pregunta.class, \"1\");\n// System.out.println(pregunta);\n// System.out.println(pregunta.toString());\n \n// ArrayList value = client.getPreguntas(ArrayList.class);\n // ArrayList<Pregunta> list = new ArrayList();\n// System.out.println(value);\n \n //list.add(pregunta);\n \n //System.out.println(pregunta.getArchivoimg2());\n \n// Pregunta p = new Pregunta(1,14,400,300,\"5000?\",\"C:\\\\Users\\\\Matias\\\\Pictures\\\\Pictures\\\\Sample Pictures\\\\Desert.jpg\", inputStream,\" \");\n //Object ob = p;\n// client.addPregunta(p, Pregunta.class);\n// System.out.println(list);\n \n }", "List <JAVATYPE> convertList(List<JAVATYPE> oldList, final METATYPE meta);", "@Override\n public Retorno_MsgObj obtenerLista() {\n PerManejador perManager = new PerManejador();\n\n return perManager.obtenerLista(\"Inscripcion.findAll\", null);\n }", "protected abstract Set<Part> generateParts(List<Card> cards, List<Card> jokers);", "private void obtenerAnimales() {\n // final ArrayList<String> lista = new ArrayList<>();\n //Para obtener datos de la base de datos\n refAnimales.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n long size = dataSnapshot.getChildrenCount();\n ArrayList<String> animalesFirebase = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n\n String code = dataSnapshot.child(\"\" + i).child(\"codigo\").getValue(String.class);\n String nombre = dataSnapshot.child(\"\" + i).child(\"nombre\").getValue(String.class);\n String tipo = dataSnapshot.child(\"\" + i).child(\"tipo\").getValue(String.class);\n String raza = dataSnapshot.child(\"\" + i).child(\"raza\").getValue(String.class);\n String animal = code + \" | \" + nombre + \" | \" + tipo + \" | \" + raza;\n\n animalesFirebase.add(animal);\n }\n\n adaptar(animalesFirebase);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }", "public static List<Factura> generareListaFacturi(\n int numarFacturi, LocalDate dataMinima) {\n String[] denumiriClienti = new String[]{\n \"ALCOR CONSTRUCT SRL\",\n \"SC DOMINO COSTI SRL\",\n \"SC TRANSCRIPT SRL\",\n \"SIBLANY SRL\",\n \"INTERFLOOR SYSTEM SRL\",\n \"MERCURY IMPEX 2000 SRL\",\n \"ALEXANDER SRL\",\n \"METAL INOX IMPORT EXPOSRT SRL\",\n \"EURIAL BROKER DE ASIGURARE SRL\"\n };\n\n String[] denumiriProduse = new String[]{\n \"Stafide 200g\",\n \"Seminte de pin 300g\",\n \"Bulion Topoloveana 190g\",\n \"Paine neagra Frontera\",\n \"Ceai verde Lipton\"\n\n };\n\n double[] preturiProduse = new double[]{\n 5.20,\n 12.99,\n 6.29,\n 4.08,\n 8.99\n };\n\n // 2. Inițializare generare\n Random rand = new Random(); // vezi https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Random.html\n int numarMaximZile = (int) ChronoUnit.DAYS.between(dataMinima, LocalDate.now());\n List<Factura> facturi = new ArrayList<>();\n\n // 3. Generare facturi\n for (int indexFactura = 0; indexFactura < numarFacturi; indexFactura++) {\n\n var denumireClient = denumiriClienti[rand.nextInt(denumiriClienti.length)];\n var data = dataMinima.plusDays(rand.nextInt(numarMaximZile)); // maxim data curentă\n\n var factura = new Factura(denumireClient, data);\n\n // Adăugăm cel puțin un rând\n var numarProduse = 1 + rand.nextInt(NUMAR_MAXIM_PRODUSE - 1);\n for (int indexProdus = 0; indexProdus < numarProduse; indexProdus++) {\n\n // Atenție: produsul și prețul trebuie să fie corelate (aceeași poziție)\n var produsSelectat = rand.nextInt(denumiriProduse.length);\n var produs = denumiriProduse[produsSelectat];\n var pret = preturiProduse[produsSelectat];\n\n var cantitate = 1 + rand.nextInt(19);\n\n factura.adaugaLinie(produs, pret, cantitate);\n }\n\n facturi.add(factura);\n }\n\n return facturi;\n }", "private List<SubServicoTO> parseTO(List<AgvTabSubservico> listaResultado) {\r\n\t\t\r\n\t\tArrayList<SubServicoTO> lista = new ArrayList<SubServicoTO>();\r\n\t\t\r\n\t\tfor (Iterator<AgvTabSubservico> iterator = listaResultado.iterator(); iterator.hasNext();) {\r\n\t\t\tAgvTabSubservico element = (AgvTabSubservico) iterator.next();\r\n\t\t\t\r\n\t\t\tSubServicoTO to = new SubServicoTO();\r\n\t\t\tto.setCdServicoCsi( (element.getCdServicoCsi() == null ? null : element.getCdServicoCsi().toString()));\r\n\t\t\tto.setCdSerCom(element.getCdSerCom());\r\n\t\t\tto.setCdServExe(element.getCdServExe());\r\n\t\t\tto.setCdSubservico(element.getCdSubservico());\r\n\t\t\tto.setDataAtualizacao(element.getDtAtualizacao());\r\n\t\t\tto.setDataPublicacao(element.getDtPublicacao());\r\n\t\t\tto.setDsCondExec(element.getDsCondExec());\r\n\t\t\tto.setDsFormaPgto(element.getDsFormaPgto());\r\n\t\t\tto.setDsLink(element.getDsLink());\r\n\t\t\tto.setDsPrazoAtend(element.getDsPrazoAtend());\r\n\t\t\tto.setDsPreco(element.getDsPreco());\r\n\t\t\tto.setDsSubservico(element.getDsSubservico());\r\n\t\t\tto.setFlagPublicGuia(element.getFlPublicGuia());\r\n\t\t\tto.setFlagPublicTabPrecos(element.getFlPublicTabPrecos());\r\n\r\n\t\t\tlista.add(to);\r\n\t\t}\r\n\t\t\r\n\t\treturn lista;\r\n\t}", "public List<KategorieFX> convertInKategorieFXList(List<Kategorie> kategorieListe);", "public interface ListConverterList<From,To> extends Converter<List<From>,List<To>> {\r\n}", "public List<List<Instance>> generate2T(int num){\n\t\tList<List<Instance>> lsAll = new ArrayList<List<Instance>>();\n\t\t// randomize the samples\n\t\tallSamples.randomize(new Random(System.currentTimeMillis()));\n\t\t\n\t\tList<Instance> lsTesting = new ArrayList<Instance>();\n\t\tList<Instance> lsTraining = new ArrayList<Instance>();\n\t\t\n\t\tif(num >= allSamples.size()){\n\t\t\tSystem.out.println(\"[ERROR]: num CANNOT bigger than sample size.\");\n\t\t\tSystem.out.println(\"[num]:\" + num + \", [sample size]: \" + allSamples.size());\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tfor(int i=0; i<num; i++){ // take the first num samples as training set\n\t\t\tlsTraining.add(allSamples.instance(i));\n\t\t}\n\t\tfor(int j=num; j<allSamples.size(); j++){ // take the remaining samples as testing set\n\t\t\tlsTesting.add(allSamples.instance(j));\n\t\t}\n\t\t\n\t\tlsAll.add(lsTraining);\n\t\tlsAll.add(lsTesting);\n\t\t\n\t\treturn lsAll;\n\t}", "List<Event> generateEventList(int numGenerated) throws Exception {\n List<Event> events = new ArrayList<>();\n for (int i = 1; i <= numGenerated; i++) {\n events.add(generateEvent(i));\n }\n return events;\n }", "public void crearImagenes() {\n try {\n fondoJuego1 = new Imagenes(\"/fondoJuego1.png\",39,-150,-151);\n fondoJuego2 = new Imagenes(\"/fondoJuego2.png\",40,150,149);\n regresar = new Imagenes(\"/regresar.png\",43,90,80);\n highLight = new Imagenes(\"/cursorSubmenus.png\",43,90,80);\n juegoNuevo = new Imagenes(\"/juegoNuevo.png\",44,90,80);\n continuar = new Imagenes(\"/continuar.png\",45,90,80);\n tituloJuegoNuevo = new Imagenes(\"/tituloJuegoNuevo.png\",200,100,165);\n tituloContinuar = new Imagenes(\"/tituloContinuar.png\",201,100,40);\n tituloRegresar = new Imagenes(\"/tituloRegresar.png\",202,20,100);\n\t} catch(IOException e){\n e.printStackTrace();\n }\n }", "public void geneticoPSO(){ \n //leer archivos de texto\n nombreArchivos.stream().map((nombreArchivo) -> lam.leerArchivo(nombreArchivo)).forEach((Mochila moc) -> {\n mochilas.add(moc);\n }); \n \n int o = 0;\n for (Mochila mochila : mochilas) { \n \n Algorithm_PSO alg_pso = new Algorithm_PSO(0.1, 0.8, 0.7, 0.6, 1, tamanioPob, EFOs, mochila.getSolucion().length, mochila); \n Individuo_mochilaPSO res = (Individuo_mochilaPSO)alg_pso.correr();\n System.out.println(\"fitnes: \" + res.getFitness() + \". Solucion\" + Arrays.toString(res.getCromosoma()));\n if (o == 9){\n System.out.println(\"\");\n }\n o++;\n }\n \n }", "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 }" ]
[ "0.6878093", "0.6532906", "0.63454396", "0.6243277", "0.622319", "0.6127861", "0.5944004", "0.592747", "0.58982646", "0.5807272", "0.57979447", "0.5761123", "0.57332575", "0.56997603", "0.5689478", "0.5685164", "0.56763154", "0.5674574", "0.56666183", "0.56517774", "0.56473106", "0.5646686", "0.56346804", "0.5633081", "0.561", "0.56007427", "0.55640525", "0.55425876", "0.553484", "0.5512996", "0.5509969", "0.5492729", "0.5466902", "0.546342", "0.5457844", "0.5457696", "0.5448732", "0.5435897", "0.5430106", "0.5417442", "0.5413645", "0.5403903", "0.54008013", "0.539502", "0.53882265", "0.5375679", "0.53714883", "0.5365544", "0.5365494", "0.5357457", "0.5343834", "0.53435963", "0.53420264", "0.53403354", "0.5335403", "0.53341085", "0.53260267", "0.5324974", "0.53108084", "0.53088975", "0.5303852", "0.5294206", "0.5292582", "0.5290344", "0.52762496", "0.527454", "0.52743316", "0.52711487", "0.5266453", "0.5264681", "0.5259046", "0.5257118", "0.5256021", "0.52546316", "0.52498746", "0.52496785", "0.5249279", "0.52489656", "0.5244646", "0.5242196", "0.5239324", "0.5236869", "0.52328736", "0.5231084", "0.5230827", "0.522542", "0.5224756", "0.5222275", "0.52212656", "0.5218003", "0.52175146", "0.5213743", "0.52122116", "0.52117217", "0.5199311", "0.51937133", "0.519286", "0.5189823", "0.51871485", "0.51859045", "0.5185563" ]
0.0
-1
TODO restructure all these tests in a Spock specification OBJECT TO TERM TESTS
@Test public void testNullToTerm() { assertTrue(JAVA_NULL.termEquals(jpc.toTerm(null))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(enabled = true)\r\n\tpublic void PrepareSpecification() {\r\n\t\tRequestSpecBuilder rsb = new RequestSpecBuilder();\r\n\t\trsb.addHeader(\"content-type\",\"application/json\");\r\n\t\trsb.addQueryParam(\"page\", \"2\");\r\n\t\trsb.setBaseUri(\"https://reqres.in/\");\r\n\t\tRequestSpecification reqSpec = rsb.build();\r\n\r\n\t\t/**\r\n\t\t * Step 2: Asserting response\r\n\t\t */\r\n\t\tgiven()\r\n\t\t.spec(reqSpec)\r\n\t\t.when()\r\n\t\t.get(\"api/users\").then().assertThat().statusCode(200);\r\n\r\n\t}", "@Test\n public void productSpecificationTest() {\n // TODO: test productSpecification\n }", "public void testConstructor() throws Exception {\r\n ConfigurationObject object1 = createObject(\"object:ob1\", TYPE_OBJECT);\r\n ConfigurationObject object2 = createObject(\"object:ob2\", TYPE_NUMBER);\r\n ConfigurationObject object3 = createObject(\"something\", TYPE_OBJECT);\r\n\r\n ConfigurationObject params1 = new DefaultConfigurationObject(\"params\");\r\n ConfigurationObject params2 = new DefaultConfigurationObject(\"params\");\r\n\r\n params1.addChild(createParamReference(1, \"object:ob2\"));\r\n params1.addChild(createParamReference(2, \"something\"));\r\n\r\n params2.addChild(createParamReference(1, \"something\"));\r\n\r\n object1.addChild(params1);\r\n object2.addChild(params2);\r\n\r\n root.addChild(object3);\r\n root.addChild(object1);\r\n root.addChild(object2);\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n ObjectSpecification objectSpecification1 = specificationFactory.getObjectSpecification(\r\n \"object\", \"ob1\");\r\n\r\n assertEquals(\"SpecType should be complex.\", ObjectSpecification.COMPLEX_SPECIFICATION,\r\n objectSpecification1.getSpecType());\r\n\r\n Object[] params = objectSpecification1.getParameters();\r\n ObjectSpecification param1 = (ObjectSpecification) params[0];\r\n ObjectSpecification param2 = (ObjectSpecification) params[1];\r\n\r\n assertEquals(\"Object 'ob1' should have 2 params.\", 2, params.length);\r\n assertTrue(\"SpecType of params should be complex.\", param1.getSpecType().equals(\r\n ObjectSpecification.COMPLEX_SPECIFICATION)\r\n && param2.getSpecType().equals(ObjectSpecification.COMPLEX_SPECIFICATION));\r\n assertEquals(\"Element should be object:ob2.\", specificationFactory.getObjectSpecification(\r\n \"object\", \"ob2\"), param1);\r\n assertEquals(\"Element should be something.\", specificationFactory.getObjectSpecification(\r\n \"something\", null), param2);\r\n\r\n params = param1.getParameters();\r\n param1 = (ObjectSpecification) params[0];\r\n assertEquals(\"Object 'ob2' should have 1 param.\", 1, params.length);\r\n assertEquals(\"SpecType of param should be complex.\",\r\n ObjectSpecification.COMPLEX_SPECIFICATION, param1.getSpecType());\r\n assertEquals(\"Element should be something.\", specificationFactory.getObjectSpecification(\r\n \"something\", null), param1);\r\n }", "@Test\n void userStory1() throws ValidationException, NoShoppingListExist {\n ShoppingListFactory factory = api.createShoppingList();\n factory.setName(\"My Shoopping List\");\n factory.setDescription(\"A short description\");\n ShoppingList list = factory.validateAndCommit();\n\n // Times go on\n\n ShoppingList list2 = api.find(list.getId());\n\n // Test\n\n assertEquals(list.getId(), list2.getId());\n assertEquals(list.getName(), list2.getName());\n assertEquals(list.getDescription(), list2.getDescription());\n }", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@BeforeEach\n public void init() throws Exception {\n this.uri1 = new URI(\"http://edu.yu.cs/com1320/project/doc1\");\n this.b1 = new byte[1];\n this.s1 = \"pizza pious\";\n\n //init possible values for doc2\n this.uri2 = new URI(\"http://edu.yu.cs/com1320/project/doc2\");\n this.b2 = new byte[2];\n this.s2 = \"Party times\";\n\n //init possible values for doc3\n this.uri3 = new URI(\"http://edu.yu.cs/com1320/project/doc3\");\n this.b3 = new byte[3];\n this.s3 = \"nothi mucho\";\n\n this.uri4 = new URI(\"http://edu.yu.cs/com1320/project/doc4\");\n this.b4 = new byte[4];\n this.s4 = \"not goingss\";\n\n this.uri5 = new URI(\"http://edu.yu.cs/com1320/project/doc5\");\n this.b5 = new byte[5];\n this.s5 = \"p like fizz\";\n\n this.uri6 = new URI(\"http://edu.yu.cs/com1320/project/doc6\");\n this.b6 = new byte[33];\n this.s6 = \"zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\";\n\n docBin1 = new DocumentImpl(this.uri1, this.b1);\n docBin2 = new DocumentImpl(this.uri2, this.b2);\n docBin3 = new DocumentImpl(this.uri3, this.b3);\n docBin4 = new DocumentImpl(this.uri4, this.b4);\n docBin5 = new DocumentImpl(this.uri5, this.b5);\n docBin6 = new DocumentImpl(this.uri6, this.b6);\n\n docTxt1 = new DocumentImpl(this.uri1, this.s1);\n docTxt2 = new DocumentImpl(this.uri2, this.s2);\n docTxt3 = new DocumentImpl(this.uri3, this.s3);\n docTxt4 = new DocumentImpl(this.uri4, this.s4);\n docTxt5 = new DocumentImpl(this.uri5, this.s5);\n docTxt6 = new DocumentImpl(this.uri6, this.s6);\n }", "@Before\n\t public void setUp() {\n\t }", "@Test\n\tpublic void getPractice() {\n\t\t//1.Step: Set Endpoint by using pathParam() or queryParam()\n\t\tspec04.pathParams(\"employee\", \"employee\",\n\t\t\t\t \"id\", 3);\n\t\t\n\t\t//2.Step: Store expected data by using Pojo\n\t\tData data = new Data(3, \"Ashton Cox\", 86000, 66, \"\");\n\t\tPojoPractice03 expectedData = new PojoPractice03(\"success\", data, \"Successfully! Record has been fetched.\");\n\t\t\n\t\t//3.Step: Send GET Request to the Endpoint\n\t\tResponse response = given().contentType(ContentType.JSON).spec(spec04).when().get(\"/{employee}/{id}\");\n\t\tresponse.prettyPrint();\n\t\t\n\t\t//4.Step Hard Assertion by using body()\n\t\tresponse.\n\t\t then().\n\t\t assertThat().\n\t\t statusCode(200).\n\t\t contentType(ContentType.JSON).\n\t\t body(\"data.employee_name\", Matchers.equalTo(data.getEmployeeName()),\n\t\t \t \"data.employee_salary\", Matchers.equalTo(data.getEmployeeSalary()),\n\t\t \t \"data.employee_age\", Matchers.equalTo(data.getEmployeeAge()),\n\t\t \t \"data.profile_image\", Matchers.equalTo(data.getProfileImage()),\n\t\t \t \"status\", Matchers.equalTo(expectedData.getStatus()),\n\t\t \t \"message\", Matchers.equalTo(expectedData.getMessage()));\n\t\t\n\t\t//5.Step Hard Assertion by using assertEquals(), assertTrue(), assertFalse()\n\t\tJsonPath json = response.jsonPath();\n\t\tassertEquals(data.getEmployeeName(), json.getString(\"data.employee_name\"));\n\t\tassertEquals(data.getEmployeeSalary(),json.get(\"data.employee_salary\"));\n\t\tassertEquals(data.getEmployeeAge(), json.get(\"data.employee_age\"));\n\t\tassertEquals(data.getProfileImage(), json.getString(\"data.profile_image\"));\n\t\tassertEquals(expectedData.getStatus(), json.getString(\"status\"));\n\t\tassertEquals(expectedData.getMessage(), json.getString(\"message\"));\n\t\t\n\t\t//6. Step: Soft Assertion\n\t\tSoftAssert softAssert = new SoftAssert();\n\t\t\n\t\tsoftAssert.assertEquals(json.getString(\"data.employee_name\"), data.getEmployeeName());\n\t\tsoftAssert.assertEquals(json.get(\"data.employee_salary\"), data.getEmployeeSalary());\n\t\tsoftAssert.assertEquals(json.get(\"data.employee_age\"),data.getEmployeeAge());\n\t\tsoftAssert.assertEquals(json.getString(\"data.profile_image\"),data.getProfileImage());\n\t\tsoftAssert.assertEquals(json.getString(\"status\"),expectedData.getStatus());\n\t\tsoftAssert.assertEquals(json.getString(\"message\"),expectedData.getMessage());\n\t\n\t\tsoftAssert.assertAll();\n\t\t\n\t}", "public void testGetInsDyn() {\n }", "@Test\n public void testFindAll_Person_TimeSlot() {\n // more or less tested in testFindEntity_Person_TimeSlot()\n }", "@Override\n public void testTwoRequiredGroups() {\n }", "@Override\n public void testTwoRequiredGroups() {\n }", "@Test\n public void testingTheSixFlatbed2017Order() {\n }", "@Test\n public void testQueryList(){\n }", "@Test\n\tpublic void queryTest(){\n\t\tQueryableRequestSpecification queryableRequestSpecification = SpecificationQuerier.query(requestSpecification);\n\t\tSystem.out.println(\"Printing specification parameters: \" +queryableRequestSpecification.getBaseUri());\n\t}", "@Test\n\tpublic void testGetSparePartSpec() {\n\t\t\t\n\t\tassertTrue(spReg.getSparePartSpecification(\"1\") != null);\n\t\t\n\t\t//fail(\"Not yet implemented\");\n\t}", "@Test\n\tpublic void specificationsTest() {\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tRecord record = TestHelper.mockRecord();\n\t\t\trecord.setVisible(true);\n\t\t\tentityManager.persist(record);\n\t\t}\n\n\t\t// and 2 private records\n\t\tfor (int i = 0; i < 2; i++) {\n\t\t\tRecord record = TestHelper.mockRecord();\n\t\t\trecord.setVisible(false);\n\t\t\tentityManager.persist(record);\n\t\t}\n\n\t\t// found 3 visible records\n\t\tRecordSpecification visibleSpec = new RecordSpecification();\n\t\tvisibleSpec.add(new SearchCriteria(\"visible\", true, SearchOperation.EQUAL));\n\t\tList<Record> visibleRecord = repository.findAll(visibleSpec);\n\t\tassertThat(visibleRecord).hasSize(3);\n\n\t\t// found 2 private records\n\t\tRecordSpecification privateSpecs = new RecordSpecification();\n\t\tprivateSpecs.add(new SearchCriteria(\"visible\", false, SearchOperation.EQUAL));\n\t\tList<Record> privateRecords = repository.findAll(privateSpecs);\n\t\tassertThat(privateRecords).hasSize(2);\n\t}", "@Test\n\tpublic void trial01() {\n\t\tspec1.pathParam(\"id\", 3);\n\t\tResponse response =given().spec(spec1).get(\"/{id}\");\n\t\tresponse.prettyPrint();\n\t\t\n\t\tresponse.then().assertThat().statusCode(200).contentType(ContentType.JSON).statusLine(\"HTTP/1.1 200 OK\");\n\t}", "@Test\n\tpublic void getTest02() {\n\n\t\tResponse response = given().spec(spec02).when().get();\n\n\t\tresponse.prettyPrint();\n\t\t\n\t\tSoftAssert softAssert = new SoftAssert();\n\n\t\tJsonPath json = response.jsonPath();\n\t\tSystem.out.println(json.getString(\"data.employee_name\"));\n\t\t\n\t\tSystem.out.println(json.getString(\"data[0].employee_name\"));\n\t\tsoftAssert.assertEquals(json.getString(\"data[0].employee_name\"), \"Tiger Nixon\",\"Employee name did not match\");\n\n\t\tSystem.out.println(json.getString(\"data[1].employee_salary\"));\n\t\tsoftAssert.assertEquals(json.getString(\"data[1].employee_salary\"), \"170750\",\"Salary did not match\");\n\n\t\tsoftAssert.assertAll();\n\t\tresponse.then().assertThat().statusCode(200);\n\t}", "@Test\n public void testFindAll_Event_Job() {\n // more or less tested in testFindEntity_Event_Job()\n }", "@Test //make sure it comes from testNG\n public void testWithQueryParameterAndList(){\n given().accept(ContentType.JSON)\n .and().params(\"limit\",100)\n .when().get(ConfigurationReader.getProperty(\"hrapp.baseresturl\")+\"/employees\")\n .then().assertThat().statusCode(200)\n .and().assertThat().contentType(ContentType.JSON)\n .and().assertThat().body(\"items.employee_id\", hasSize(100));\n }", "@Test\n @Named(\"accessing values\")\n @Order(1)\n public void _accessingValues() throws Exception {\n StringConcatenation _builder = new StringConcatenation();\n _builder.append(\"package bootstrap\");\n _builder.newLine();\n _builder.newLine();\n _builder.append(\"describe \\\"Example Tables\\\"{\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"def myExamples{\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| input | result | \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| \\\"Hello World\\\" | \\\"HELLO WORLD\\\" | \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| \\\"Hallo Welt\\\" | \\\"HALLO WELT\\\" |\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"} \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"fact \\\"can be accessed via the table name\\\"{\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"myExamples.forEach[ \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"input.toUpperCase should be result\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"] \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"}\");\n _builder.newLine();\n _builder.append(\"}\");\n _builder.newLine();\n this._behaviorExecutor.executesSuccessfully(_builder);\n }", "public void testSpock(){\n }", "@Test\n public void example10 () throws Exception {\n ValueFactory f = repo.getValueFactory();\n String exns = \"http://example.org/people/\";\n URI alice = f.createURI(exns, \"alice\");\n URI bob = f.createURI(exns, \"bob\");\n URI ted = f.createURI(exns, \"ted\"); \n URI person = f.createURI(\"http://example.org/ontology/Person\");\n URI name = f.createURI(\"http://example.org/ontology/name\");\n Literal alicesName = f.createLiteral(\"Alice\");\n Literal bobsName = f.createLiteral(\"Bob\");\n Literal tedsName = f.createLiteral(\"Ted\"); \n URI context1 = f.createURI(exns, \"cxt1\"); \n URI context2 = f.createURI(exns, \"cxt2\"); \n conn.add(alice, RDF.TYPE, person, context1);\n conn.add(alice, name, alicesName, context1);\n conn.add(bob, RDF.TYPE, person, context2);\n conn.add(bob, name, bobsName, context2);\n conn.add(ted, RDF.TYPE, person);\n conn.add(ted, name, tedsName);\n \n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2),\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(conn.getStatements(null, null, null, false)));\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2)\n }),\n statementSet(conn.getStatements(null, null, null, false, context1, context2)));\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2),\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(conn.getStatements(null, null, null, false, null, context2)));\n \n // testing named graph query\n DatasetImpl ds = new DatasetImpl();\n ds.addNamedGraph(context1);\n ds.addNamedGraph(context2);\n TupleQuery tupleQuery = conn.prepareTupleQuery(\n QueryLanguage.SPARQL, \"SELECT ?s ?p ?o ?g WHERE { GRAPH ?g {?s ?p ?o . } }\");\n tupleQuery.setDataset(ds);\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2)\n }),\n statementSet(tupleQuery.evaluate()));\n \n ds = new DatasetImpl();\n ds.addDefaultGraph(null);\n tupleQuery = conn.prepareTupleQuery(QueryLanguage.SPARQL, \"SELECT ?s ?p ?o WHERE {?s ?p ?o . }\");\n tupleQuery.setDataset(ds);\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(tupleQuery.evaluate()));\n }", "public void testGetSpecVersion() {\n assertEquals(mb.getSpecVersion(), System\n .getProperty(\"java.vm.specification.version\"));\n }", "@Test\n public void testDAM30203001() {\n testDAM30102001();\n }", "@Test\n\tpublic void testQuery1() {\n\t}", "@Override\n public void testCreateRequestListSomeFilteredBySourceSystem(){\n }", "@Test\n public void testSpecificationFile() {\n \texpectedExit = 0;\n \tignoreNotes = true;\n \tString subdir = \"testspecs\" + \"/\" + classname;\n \tString testname = null;\n for (File f: new File(subdir).listFiles()) {\n \tif (f.getName().startsWith(\"Test\")) {\n \t\ttestname = f.getName().replace(\".java\",\"\");\n \t\tbreak;\n \t}\n }\n \thelpTCF(subdir,subdir,testname);\n }", "@Override\n\t\tprotected void loadSpecification(SpecificationContext context) {\n\t\t}", "@Test\r\n public void testFindAll() throws Exception {\r\n }", "@Test\n public void shouldHave431Books() {\n\n }", "@Test\npublic void testFindDtoListByHql() throws Exception { \n//TODO: Test goes here... \n}", "@BeforeEach\n void setUp() {\n seed = new Random().nextInt();\n random = new Random().nextInt();\n rng = new Random(seed);\n int strSize = rng.nextInt(20);\n hello = RandomStringUtils.random(strSize, 0, Character.MAX_CODE_POINT, true, false, null, rng);\n int binarySize = rng.nextInt(20)+1;\n binary = RandomStringUtils.random(binarySize, ZeroOne);\n st = new TString(hello);\n bot = new Bool(true);\n bof = new Bool(false);\n bi = new Binary(binary);\n i = new Int(seed); //seed is a random number\n decimal = seed+0.1; //transformed to double\n f = new Float(decimal);\n g = new Float(random);\n j = new Int(random);\n Null = new NullType();\n }", "@Test\n public void test1() {\n\n Student student = given().accept(ContentType.JSON)\n .pathParam(\"id\", 23401)\n .when()\n .get(\"http://api.cybertektraining.com/student/{id}\")\n .then().statusCode(200)\n .and().contentType(\"application/json;charset=UTF-8\")\n .and().header(\"Content-Encoding\", equalTo(\"gzip\"))\n .and().header(\"Date\", notNullValue()).extract().jsonPath().getObject(\"students[0]\", Student.class);\n\n System.out.println(\"student.getFirstName() = \" + student.getFirstName());\n System.out.println(\"student.getBatch() = \" + student.getBatch());\n System.out.println(\"student.getSection() = \" + student.getSection());\n System.out.println(\"student.getContact().getEmailAddress() = \" + student.getContact().getEmailAddress());\n System.out.println(\"student.getAddress().getState() = \" + student.getCompany().getAddress().getState());\n System.out.println(\"student.getAddress().getZipCode() = \" + student.getCompany().getAddress().getZipCode());\n\n System.out.println(\"student.getCompany().getCompanyName() = \" + student.getCompany().getCompanyName());\n\n String expFirstName = \"Vera\";\n int expBatch = 14;\n int expSection = 12;\n String expEmail = \"[email protected]\";\n String expCompanyName = \"Cybertek\";\n String expState = \"IL\";\n int expZipCode = 60606;\n\n assertThat(expFirstName, equalTo(student.getFirstName()));\n assertThat(expBatch, equalTo(student.getBatch()));\n assertThat(expSection, equalTo( student.getSection()));\n assertThat(expEmail, equalTo(student.getContact().getEmailAddress()));\n assertThat(expCompanyName, equalTo(student.getCompany().getCompanyName()));\n assertThat(expState, equalTo(student.getCompany().getAddress().getState()));\n assertThat(expZipCode, equalTo(student.getCompany().getAddress().getZipCode()));\n\n\n\n\n\n\n}", "@Test\n public void testQuickMapList() {\n//TODO: Test goes here... \n }", "@Test\n\tpublic void get01() {\n\t\tResponse response = given().\n\t\t\t\t spec(spec02).\n\t\t\t\t when().\n\t\t\t\t get();\n\t\tresponse.prettyPrint();\n\t\t\n\t\tresponse.\n\t\t then().\n\t\t assertThat()\n\t\t .statusCode(200);\n\t\t\n\t\tJsonPath json = response.jsonPath();\n\t\tSoftAssert softAssert = new SoftAssert();\n\t\t\n\t//10 dan buyuk tum id leri console a yazdir.\n\t\tList<String> idList = json.getList(\"data.findAll{Integer.valueOf(it.id)>10}.id\");\n\t\tSystem.out.println(idList);\n\t\t\n\t//verify\n\t\tsoftAssert.assertEquals(idList.size(), 14, \"Eleman sayisi istenen gibi degil\");\n\t\t\n\t\n\t//30 dan kucuk tum yaslari console a yazdir\n\t\tList<String> ageList = json.getList(\"data.findAll{Integer.valueOf(it.employee_age)<30}.employee_age\");\n\t\tSystem.out.println(ageList);\n\t\t\n\t\t\n\t// Assert that maximum age is 23\n\t\tCollections.sort(ageList);\n\t\tsoftAssert.assertTrue(ageList.get(ageList.size()-1).equals(\"23\"), \"Yas istenen gibi degil\");\n\t\t\n\t\t\n\t//Print all employee names whose salaries are greater than 350000\n\t\tList<String> nameList = json.getList(\"data.findAll{Integer.valueOf(it.employee_salary)>350000}.employee_name\");\n\t\tSystem.out.println(nameList);\n\t\t\n\t\t\n\t//Assert that Charde Marshall is one of the employees whose salary is greater than 350000\t\n\t\tsoftAssert.assertTrue(nameList.contains(\"Charde Marshall\"));\n\t\t\n\t\t\n\t\t\n\t\tsoftAssert.assertAll();\n\t}", "@Test\n\tpublic void useResponseSpecification() {\n\t\t\n\t\tgiven().\n\t\t\tspec(requestSpec).\n\t\twhen().\n\t\t\tget(\"/2014/1/circuits.json\").\n\t\tthen().\n\t\t\tspec(responseSpec).\n\t\tand().\n\t\t\tbody(\"MRData.CircuitTable.Circuits.Location[0].locality\",equalTo(\"Melbourne\"));\n\t}", "@Override\n @Before\n public void setUp() throws IOException {\n }", "@Test\n public void testDAM30601001() {\n testDAM30102001();\n }", "public void testWriteOrders() throws Exception {\n }", "public Spec() {\n super();\n // TODO Auto-generated constructor stub\n }", "@Test\n void getMandatoryDeepSuccessors () {\n\n }", "@Before\n public void setUp()\n {\n salesIte1 = new SalesItem(\"house\", 100000);\n salesIte2 = new SalesItem(\"car\", 1000);\n salesIte2.addComment(\"jack\", \"too slow\", 3);\n salesIte2.addComment(\"ben\", \"too old\", 2);\n }", "@Test\n public void patch01(){\n Response responseBeforePatch =given().\n spec(spec03).\n when().\n get(\"/200\");\n responseBeforePatch.prettyPrint();\n JSONObject jsonObject=new JSONObject();\n jsonObject.put(\"title\",\"Hasan\");\n Response responseAfterPatch =given().\n contentType(ContentType.JSON).\n spec(spec03).\n body(jsonObject.toString()).\n when().\n patch(\"/200\");\n responseAfterPatch.prettyPrint();\n responseAfterPatch.\n then().\n assertThat().\n statusCode(200);\n JsonPath jsonPath=responseAfterPatch.jsonPath();\n //title hard assertion\n assertEquals(jsonObject.get(\"title\"),jsonPath.get(\"title\"));\n // title soft assertion\n SoftAssert softAssert = new SoftAssert();\n softAssert.assertEquals(jsonPath.getString(\"title\"),jsonObject.get(\"title\"));\n softAssert.assertAll();\n\n }", "public void testGetManagementSpecVersion() {\n String specVersion = mb.getManagementSpecVersion();\n assertNotNull(specVersion);\n assertTrue(specVersion.length() > 0);\n }", "@Test\n public void trainWithMasterSplinterTest() {\n\n }", "@Test\n public void testStoreAndRetrieve() throws Exception {\n PipelineDefinition actualPipelineDef = null;\n\n try {\n\n PipelineDefinition expectedPipelineDef = populateObjects();\n\n // clear the cache , detach the objects\n databaseService.closeCurrentSession();\n\n // Retrieve\n databaseService.beginTransaction();\n\n actualPipelineDef = pipelineDefinitionCrud.retrieveLatestVersionForName(TEST_PIPELINE_NAME_1);\n\n databaseService.commitTransaction();\n\n ReflectionEquals comparer = new ReflectionEquals();\n comparer.excludeField(\".*\\\\.lastChangedTime\");\n comparer.excludeField(\".*\\\\.lastChangedUser.created\");\n comparer.excludeField(\".*\\\\.uowProperties.instance\");\n comparer.assertEquals(\"PipelineDefinition\", expectedPipelineDef,\n actualPipelineDef);\n\n List<PipelineDefinition> latestVersions = pipelineDefinitionCrud.retrieveLatestVersions();\n assertEquals(\"latestVersions count\", 1, latestVersions.size());\n comparer.assertEquals(\"latest version\", expectedPipelineDef,\n latestVersions.get(0));\n\n assertEquals(\"PipelineDefinitionNode count\", 2, pipelineNodeCount());\n assertEquals(\"PipelineModuleDefinition count\", 3,\n pipelineModuleDefinitionCount());\n assertEquals(\"ParameterSet count\", 1, pipelineModuleParamSetCount());\n } finally {\n databaseService.rollbackTransactionIfActive();\n }\n }", "public void testGetSpecName() {\n assertEquals(mb.getSpecName(), System\n .getProperty(\"java.vm.specification.name\"));\n }", "public void testGetSpecVendor() {\n assertEquals(mb.getSpecVendor(), System\n .getProperty(\"java.vm.specification.vendor\"));\n }", "@Test\n public void testSetValue() throws Exception {\n\n Map<String, IMetaData<SampleMark>> name2MetaData;\n name2MetaData = factory.class2MetaDataByFullPath(Person.class);\n\n for (Person p : persons) {\n\n float weight = SampleDataGenerator.getSampleWeight(random, p.weight);\n int age = p.getAge();\n String lastName = p.getLastname();\n\n IMetaData<SampleMark> metaData =\n name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Person|weight\");\n metaData.setValue(p, weight);\n Person.assertPerson(p, lastName, weight, age);\n }\n\n for (Person p : persons) {\n\n float weight = p.weight;\n int age = p.getAge();\n String lastName =\n SampleDataGenerator.getSampleLastName(random, p.getLastname());\n IMetaData<SampleMark> metaData =\n name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Person|lastname\");\n metaData.setValue(p, lastName);\n Person.assertPerson(p, lastName, weight, age);\n }\n\n name2MetaData = factory.class2MetaDataByFullPath(Car.class);\n for (Car c : cars) {\n\n Driver driver = c.getDriver();\n String lastName = driver.getLastname();\n float weight = SampleDataGenerator.getSampleWeight(random, driver.weight);\n int age = driver.getAge();\n boolean hasDrivingLicense = driver.hasDrivingLicense;\n\n Engine engine = c.getEngine();\n String productName =\n SampleDataGenerator.getSampleProductName(random, engine.productName);\n\n Oil oil = engine.oil;\n String producentName = oil.producentName;\n String vendorName = oil.vendorName;\n\n IMetaData<SampleMark> metaData =\n name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|driver|weight\");\n\n metaData.setValue(c, weight);\n\n metaData =\n name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|engine|productName\");\n\n metaData.setValue(c, productName);\n\n Driver.assertDriver(driver, lastName, weight, age,\n hasDrivingLicense);\n\n Engine.assertEngine(engine, productName);\n\n Oil.assertOil(oil, vendorName, producentName);\n\n }\n\n }", "@Test\r\n public void testMergeSpectra() throws Exception {\n }", "@Before\n\tpublic void setUp() {\n\t}", "@Test\r\n\tpublic void testSanity() {\n\t}", "@BeforeClass\n\tpublic static void setUpImmutableFixture() {\n\t\t\n\t}", "@Test\n public void testFindByProperties(){\n\n }", "@Test\n\tvoid testLectureChoixInt() {\n\t\t\n\t}", "@Test\n public void testGetValue() throws Exception {\n\n Map<String, IMetaData<SampleMark>> name2MetaData;\n name2MetaData = factory.class2MetaDataByFullPath(Person.class);\n\n assertEquals(3, name2MetaData.size());\n\n for (Person p : persons) {\n\n Person.assertPerson(p,\n (String) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Person|lastname\").getValue(p),\n (Float) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Person|weight\").getValue(p),\n (Integer) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Person|age\").getValue(p));\n }\n\n name2MetaData = factory.class2MetaDataByFullPath(Driver.class);\n\n assertEquals(4, name2MetaData.size());\n\n for (Driver d : drivers) {\n\n Driver.assertDriver(d,\n (String) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Driver|lastname\").getValue(d),\n (Float) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Driver|weight\").getValue(d),\n (Integer) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Driver|age\").getValue(d),\n (Boolean) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Driver|hasDrivingLicense\").getValue(d));\n\n }\n\n name2MetaData = factory.class2MetaDataByFullPath(Car.class);\n\n assertEquals(10, name2MetaData.size());\n\n for (Car c : cars) {\n Driver.assertDriver(c.getDriver(),\n (String) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|driver|lastname\").getValue(c),\n (Float) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|driver|weight\").getValue(c),\n (Integer) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|driver|age\").getValue(c),\n (Boolean) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|driver|hasDrivingLicense\").getValue(c));\n Driver.assertDriver((Driver) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|driver\").getValue(c),\n (String) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|driver|lastname\").getValue(c),\n (Float) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|driver|weight\").getValue(c),\n (Integer) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|driver|age\").getValue(c),\n (Boolean) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|driver|hasDrivingLicense\").getValue(c));\n Engine.assertEngine(c.getEngine(),\n (String) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|engine|productName\").getValue(c));\n Engine.assertEngine((Engine) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|engine\").getValue(c),\n (String) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|engine|productName\").getValue(c));\n\n Oil.assertOil(c.getEngine().oil,\n (String) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|engine|oil|vendorName\").getValue(c),\n (String) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|engine|oil|producentName\").getValue(c));\n Oil.assertOil((Oil) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|engine|oil\").getValue(c),\n (String) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|engine|oil|vendorName\").getValue(c),\n (String) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|engine|oil|producentName\").getValue(c));\n }\n\n }", "@Test\n public void testDAM30402001() {\n testDAM30101001();\n }", "@Test\n public void updateAccept() throws Exception {\n\n }", "public interface Specification {\n}", "@Test\n public void Scenario3() {\n\n int limit = 5;\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<String, Double> biomass = new HashMap<>();\n Map<String, Double> coal = new HashMap<>();\n Map<String, Double> imports = new HashMap<>();\n Map<String, Double> gas = new HashMap<>();\n Map<String, Double> nuclear = new HashMap<>();\n Map<String, Double> other = new HashMap<>();\n Map<String, Double> hydro = new HashMap<>();\n Map<String, Double> solar = new HashMap<>();\n Map<String, Double> wind = new HashMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n biomass.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(0).getPerc()\n );\n coal.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(1).getPerc()\n );\n imports.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(2).getPerc()\n );\n gas.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(3).getPerc()\n );\n nuclear.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(4).getPerc()\n );\n other.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(5).getPerc()\n );\n hydro.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(6).getPerc()\n );\n solar.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(7).getPerc()\n );\n wind.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(8).getPerc()\n );\n\n iter++;\n iterator.next();\n\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(biomass), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(coal), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(imports), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(gas), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(nuclear), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(other), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(hydro), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(solar), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(wind), limit));\n }", "@Test\n public void testProgramElementsType() {\n // TODO: test ProgramElementsType\n }", "@Test\n\tpublic void getWorksTest() throws Exception {\n\t}", "public void testGetDataForInheritance()\r\n\t{\r\n\r\n\t\tEntityManagerInterface entityManagerInterface = EntityManager.getInstance();\r\n\t\tDomainObjectFactory factory = DomainObjectFactory.getInstance();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Step 1\r\n\t\t\tEntityInterface specimen = factory.createEntity();\r\n\t\t\tspecimen.setName(\"specimen\");\r\n\t\t\tspecimen.setAbstract(true);\r\n\t\t\tAttributeInterface barcode = factory.createStringAttribute();\r\n\t\t\tbarcode.setName(\"barcode\");\r\n\t\t\tspecimen.addAbstractAttribute(barcode);\r\n\r\n\t\t\tAttributeInterface label = factory.createStringAttribute();\r\n\t\t\tlabel.setName(\"label\");\r\n\t\t\tspecimen.addAbstractAttribute(label);\r\n\r\n\t\t\tEntityInterface tissueSpecimen = factory.createEntity();\r\n\t\t\ttissueSpecimen.setParentEntity(specimen);\r\n\r\n\t\t\tspecimen = entityManagerInterface.persistEntity(specimen);\r\n\r\n\t\t\ttissueSpecimen.setName(\"tissueSpecimen\");\r\n\r\n\t\t\tAttributeInterface quantityInCellCount = factory.createIntegerAttribute();\r\n\t\t\tquantityInCellCount.setName(\"quantityInCellCount\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(quantityInCellCount);\r\n\r\n\t\t\tAttributeInterface arivalDate = factory.createDateAttribute();\r\n\t\t\tarivalDate.setName(\"arivalDate\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(arivalDate);\r\n\r\n\t\t\t//step 2\r\n\t\t\ttissueSpecimen = entityManagerInterface.persistEntity(tissueSpecimen);\r\n\r\n\t\t\tEntityInterface advanceTissueSpecimenA = factory.createEntity();\r\n\t\t\tadvanceTissueSpecimenA.setParentEntity(tissueSpecimen);\r\n\t\t\tadvanceTissueSpecimenA.setName(\"advanceTissueSpecimenA\");\r\n\r\n\t\t\tAttributeInterface newAttribute = factory.createIntegerAttribute();\r\n\t\t\tnewAttribute.setName(\"newAttributeA\");\r\n\t\t\tadvanceTissueSpecimenA.addAbstractAttribute(newAttribute);\r\n\r\n\t\t\tEntityInterface advanceTissueSpecimenB = factory.createEntity();\r\n\t\t\tadvanceTissueSpecimenB.setParentEntity(tissueSpecimen);\r\n\t\t\tadvanceTissueSpecimenB.setName(\"advanceTissueSpecimenB\");\r\n\r\n\t\t\tAttributeInterface newAttributeB = factory.createIntegerAttribute();\r\n\t\t\tnewAttributeB.setName(\"newAttributeB\");\r\n\t\t\tadvanceTissueSpecimenB.addAbstractAttribute(newAttributeB);\r\n\t\t\tAttributeInterface newAttributeB2 = factory.createIntegerAttribute();\r\n\t\t\tnewAttributeB2.setName(\"newAttributeB2\");\r\n\t\t\tadvanceTissueSpecimenB.addAbstractAttribute(newAttributeB2);\r\n\r\n\t\t\tadvanceTissueSpecimenA = entityManagerInterface.persistEntity(advanceTissueSpecimenA);\r\n\t\t\tadvanceTissueSpecimenB = entityManagerInterface.persistEntity(advanceTissueSpecimenB);\r\n\r\n\t\t\t/*\r\n\t\t\t * Test getData method\r\n\t\t\t */\r\n\r\n\t\t\t//step 3\t\t\t\r\n\t\t\tMap dataValue = new HashMap();\r\n\t\t\tdataValue.put(barcode, \"123456\");\r\n\t\t\tdataValue.put(label, \"specimen parent label\");\r\n\t\t\tdataValue.put(quantityInCellCount, \"45\");\r\n\t\t\tdataValue.put(arivalDate, Utility.parseDate(\"11-12-1982\",\r\n\t\t\t\t\tConstants.DATE_PATTERN_MM_DD_YYYY));\r\n\r\n\t\t\tLong recordId = entityManagerInterface.insertData(tissueSpecimen, dataValue);\r\n\r\n\t\t\tMap outputMap = entityManagerInterface.getRecordById(tissueSpecimen, recordId);\r\n\r\n\t\t\t//step 4\t\r\n\t\t\tassertEquals(4, outputMap.size());\r\n\t\t\tassertEquals(\"123456\", outputMap.get(barcode));\r\n\t\t\tassertEquals(\"specimen parent label\", outputMap.get(label));\r\n\t\t\tassertEquals(\"45\", outputMap.get(quantityInCellCount));\r\n\t\t\tassertEquals(\"11-12-1982\", outputMap.get(arivalDate));\r\n\r\n\t\t\t//step 5\t\r\n\t\t\tdataValue.clear();\r\n\t\t\tdataValue.put(barcode, \"869\");\r\n\t\t\tdataValue.put(label, \"specimen parent label\");\r\n\t\t\tdataValue.put(quantityInCellCount, \"46\");\r\n\t\t\tdataValue.put(arivalDate, Utility.parseDate(\"11-11-1982\",\r\n\t\t\t\t\tConstants.DATE_PATTERN_MM_DD_YYYY));\r\n\t\t\tdataValue.put(newAttribute, \"12\");\r\n\r\n\t\t\trecordId = entityManagerInterface.insertData(advanceTissueSpecimenA, dataValue);\r\n\r\n\t\t\toutputMap = entityManagerInterface.getRecordById(advanceTissueSpecimenA, recordId);\r\n\t\t\t//step 6\t\t\t\r\n\t\t\tassertEquals(5, outputMap.size());\r\n\t\t\tassertEquals(\"869\", outputMap.get(barcode));\r\n\t\t\tassertEquals(\"specimen parent label\", outputMap.get(label));\r\n\t\t\tassertEquals(\"46\", outputMap.get(quantityInCellCount));\r\n\t\t\tassertEquals(\"11-11-1982\", outputMap.get(arivalDate));\r\n\r\n\t\t\t//step 7\t\t\t\t\r\n\t\t\tdataValue.clear();\r\n\t\t\tdataValue.put(barcode, \"1001\");\r\n\t\t\tdataValue.put(label, \"specimen parent label new\");\r\n\t\t\tdataValue.put(quantityInCellCount, \"411\");\r\n\t\t\tdataValue.put(arivalDate, Utility.parseDate(\"01-11-1982\",\r\n\t\t\t\t\tConstants.DATE_PATTERN_MM_DD_YYYY));\r\n\t\t\tdataValue.put(newAttributeB, \"40\");\r\n\t\t\tdataValue.put(newAttributeB2, \"41\");\r\n\r\n\t\t\trecordId = entityManagerInterface.insertData(advanceTissueSpecimenB, dataValue);\r\n\t\t\toutputMap = entityManagerInterface.getRecordById(advanceTissueSpecimenB, recordId);\r\n\t\t\t//step 8\t\t\t\t\r\n\t\t\tassertEquals(6, outputMap.size());\r\n\t\t\tassertEquals(\"1001\", outputMap.get(barcode));\r\n\t\t\tassertEquals(\"specimen parent label new\", outputMap.get(label));\r\n\t\t\tassertEquals(\"411\", outputMap.get(quantityInCellCount));\r\n\t\t\tassertEquals(\"01-11-1982\", outputMap.get(arivalDate));\r\n\t\t\tassertEquals(\"40\", outputMap.get(newAttributeB));\r\n\t\t\tassertEquals(\"41\", outputMap.get(newAttributeB2));\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tLogger.out.debug(DynamicExtensionsUtility.getStackTrace(e));\r\n\t\t\tfail();\r\n\t\t}\r\n\t}", "@Test @SpecAssertion(id = \"432-A2\", section=\"4.3.2\")\n public void testConversionComparedWithRate(){\n Assert.fail();\n }", "@Test @SpecAssertion(id = \"432-A1\", section=\"4.3.2\")\n public void testConversion(){\n Assert.fail();\n }", "@Override\n public void testOneRequiredGroup() {\n }", "@Override\n public void testOneRequiredGroup() {\n }", "@Test\n public void printPetDetailedListTest() {\n\n }", "@Test\n public void matchCorrect() {\n }", "@Before public void setUp() { }", "@Test\n public void temporaryTeamClosingUnavalableOption() {\n\n }", "@Test\n public void testAll() throws ParseException {\n testCreate();\n testExists(true);\n testGetInfo(false);\n testUpdate();\n testGetInfo(true);\n testDelete();\n testExists(false);\n }", "@Test\n public void testingTheTwoPlane2016Order() {\n }", "@Test //This is integration test\r\n\tpublic void testCalculatePrice02() throws Exception\r\n\t{\n\t\tImportInformation information = new ImportInformation();\r\n\t\tinformation.importMenu(\"Food_Data_Test1\");\r\n\t\tinformation.importUserInput();\t\r\n\t\tCalculation calcPrice = new Calculation();\r\n\t\tcalcPrice.calculatePrice(information.getMenu(),information.getUserInput());\r\n\t\t// compare the object itself and its side effects instead of String output, the string output can be done in main.\r\n\t\tArrayList<Food> exspectedFoodList = new ArrayList<Food>();\r\n\t\texspectedFoodList.add(new Appetizer(\"Salad\",Food.foodType.APPETIZER, \"55\"));\r\n\t\tArrayList<Combination> exspectedCombinationList = new ArrayList<Combination>();\r\n\t\texspectedCombinationList.add(new Combination(exspectedFoodList));\r\n\t\t\r\n\t\tint combinationCounter = 0;\r\n\t\tint foodCounter = 0;\r\n\t\tfor(Combination actualCombination : calcPrice.getResult())\r\n\t\t{\r\n\t\t\tfor(Food actualFood : actualCombination.getFoodCombination())\r\n\t\t\t{\r\n\t\t\t\tassertEquals(exspectedCombinationList.get(combinationCounter).getFoodCombination().get(foodCounter).getFoodName(), actualFood.getFoodName());\r\n\t\t\t\tfoodCounter++;\r\n\t\t\t}\r\n\t\t\tcombinationCounter++;\r\n\t\t}\r\n\t}", "@Test\n public void constructorStoreSucceed()\n {\n // arrange\n // act\n QuerySpecificationBuilder querySpecificationBuilder = new QuerySpecificationBuilder(\"*\", QuerySpecificationBuilder.FromType.ENROLLMENTS);\n\n // assert\n assertEquals(\"*\", Deencapsulation.getField(querySpecificationBuilder, \"selection\"));\n assertEquals(QuerySpecificationBuilder.FromType.ENROLLMENTS, Deencapsulation.getField(querySpecificationBuilder, \"fromType\"));\n }", "@Test\n public void z_topDown_TC03() {\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\n Statistica statistica = appService.getStatistica();\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"Literatura\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"Literatura\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"M\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"M\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"A\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"A\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"B\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"B\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"C\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"C\")==1);\n\n } catch (DuplicateIntrebareException | IntrebareValidatorFailedException e) {\n e.printStackTrace();\n assertTrue(false);\n } catch (NotAbleToCreateStatisticsException e) {\n assertTrue(false);\n }\n }", "@Test\n public void basicFieldsTestForProcCodeObjectTransformation() {\n claimBuilder\n .setRdaClaimKey(\"claim_id\")\n .setDcn(\"dcn\")\n .setIntermediaryNb(\"12345\")\n .setHicNo(\"hicn\")\n .setCurrStatusEnum(FissClaimStatus.CLAIM_STATUS_MOVE)\n .setCurrLoc1Enum(FissProcessingType.PROCESSING_TYPE_MANUAL)\n .setCurrLoc2Enum(FissCurrentLocation2.CURRENT_LOCATION_2_FINAL)\n .addFissProcCodes(\n FissProcedureCode.newBuilder()\n .setRdaPosition(1)\n .setProcCd(\"code-1\")\n .setProcFlag(\"fl-1\")\n .build())\n .addFissProcCodes(\n FissProcedureCode.newBuilder()\n .setRdaPosition(2)\n .setProcCd(\"code-2\")\n .setProcFlag(\"fl-2\")\n .setProcDt(\"2021-07-06\")\n .build());\n claim.setClaimId(EXPECTED_CLAIM_ID);\n claim.setDcn(\"dcn\");\n claim.setIntermediaryNb(\"12345\");\n claim.setHicNo(\"hicn\");\n claim.setCurrStatus('M');\n claim.setCurrLoc1('M');\n claim.setCurrLoc2(\"2\");\n claim.setLastUpdated(clock.instant());\n RdaFissProcCode code = new RdaFissProcCode();\n code.setClaimId(EXPECTED_CLAIM_ID);\n code.setRdaPosition((short) 1);\n code.setProcCode(\"code-1\");\n code.setProcFlag(\"fl-1\");\n claim.getProcCodes().add(code);\n code = new RdaFissProcCode();\n code.setClaimId(EXPECTED_CLAIM_ID);\n code.setRdaPosition((short) 2);\n code.setProcCode(\"code-2\");\n code.setProcFlag(\"fl-2\");\n code.setProcDate(LocalDate.of(2021, 7, 6));\n claim.getProcCodes().add(code);\n changeBuilder\n .setSeq(MIN_SEQUENCE_NUM)\n .setChangeType(ChangeType.CHANGE_TYPE_INSERT)\n .setClaim(claimBuilder.build());\n RdaFissClaim transformed = transformer.transformClaim(changeBuilder.build()).getClaim();\n TransformerTestUtils.assertListContentsHaveSamePropertyValues(\n claim.getProcCodes(), transformed.getProcCodes(), RdaFissProcCode::getRdaPosition);\n }", "@Test\n public void prodSpecCharValueUseTest() {\n // TODO: test prodSpecCharValueUse\n }", "@Test\n public void shouldProcessData() throws Exception {\n }", "@Before\n\tpublic void setup() {\n\t\t\n\t\t\n\t}", "@Test\n public void testDAM31304001() {\n\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n {\n webDriverOperations.click(id(\"dam31304001\"));\n }\n\n {\n assertThat(webDriverOperations.getText(id(\"getDateResult\")), is(\n \"2016-12-29\"));\n assertThat(webDriverOperations.getText(id(\"getDateClassResult\")),\n is(\"java.time.LocalDate\"));\n assertThat(webDriverOperations.getText(id(\n \"getObjectCertification\")), is(\"true\"));\n }\n }", "@Test\n public void marketSegmentTest() {\n // TODO: test marketSegment\n }", "@BeforeEach\n\tpublic void setUp() throws Exception {\n\t\ttestSubject=new Builder(value, sigFig, totalFig, precision)\n\t\t\t\t\t\t.meaning(meaning)\n\t\t\t\t\t\t.originatorsFlag(originatorsFlag)\n\t\t\t\t\t\t.qualityFlag(qualityFlag)\n\t\t\t\t\t\t.qualityFlagString(qualityFlagString)\n\t\t\t\t\t\t.build();\n\t\t\n\n\n\n\n\n\n\n\t}", "private ProtomakEngineTestHelper() {\r\n\t}", "@Before\r\n\tpublic void setUp() {\n\t}", "@Test\n public void consentsTest() {\n // TODO: test consents\n }", "@Test\n public void testDAM30903001() {\n testDAM30802001();\n }", "@Test //This is integration test\r\n\tpublic void testCalculatePrice03() throws Exception\r\n\t{\n\t\tImportInformation information = new ImportInformation();\r\n\t\tinformation.importMenu(\"Food_Data_Test1\");\r\n\t\tinformation.importUserInput();\t\r\n\t\tCalculation calcPrice = new Calculation();\r\n\t\tcalcPrice.calculatePrice(information.getMenu(),information.getUserInput());\r\n\t\t// compare the object itself and its side effects instead of String output, the string output can be done in main.\r\n\t\tArrayList<Food> exspectedFoodList = new ArrayList<Food>();\r\n\t\texspectedFoodList.add(new Appetizer(\"Salad\",Food.foodType.APPETIZER, \"55\"));\r\n\t\texspectedFoodList.add(new Appetizer(\"Beef Enchailada\",Food.foodType.MAINDISH, \"100\"));\t\r\n\t\tArrayList<Combination> exspectedCombinationList = new ArrayList<Combination>();\r\n\t\texspectedCombinationList.add(new Combination(exspectedFoodList));\r\n\t\t\r\n\t\tint combinationCounter = 0;\r\n\t\tint foodCounter = 0;\r\n\t\tfor(Combination actualCombination : calcPrice.getResult())\r\n\t\t{\r\n\t\t\tfor(Food actualFood : actualCombination.getFoodCombination())\r\n\t\t\t{\r\n\t\t\t\tassertEquals(exspectedCombinationList.get(combinationCounter).getFoodCombination().get(foodCounter).getFoodName(), actualFood.getFoodName());\r\n\t\t\t\tfoodCounter++;\r\n\t\t\t}\r\n\t\t\tcombinationCounter++;\r\n\t\t}\r\n\t}", "@Before\n public void setUp()\n {\n x = new Symbol(\"x\");\n y = new Symbol(\"y\");\n z = new Symbol(\"z\");\n i = new Lambda(\"x\", x);\n k1 = new Lambda(\"y\", x);\n k = new Lambda(\"x\", k1);\n xz = new Application(x, z);\n yz = new Application(y, z);\n xz_yz = new Application(xz, yz);\n s1 = new Lambda(\"z\", xz_yz);\n s2 = new Lambda(\"y\", s1);\n s = new Lambda(\"x\", s2);\n sk = new Application(s, k);\n skk = new Application(sk, k);\n foo = new Quote(\"foo\");\n bar = new Quote(\"bar\");\n }", "@Test\n public void Scenario2() {\n\n softAssert = new SoftAssert();\n\n Response resp = reqSpec.request().get();\n\n List<List<Number>> allPerc = resp.jsonPath().getList(\"data.regions.generationmix[0].perc\");\n\n LinkedList<String> regions = new LinkedList<>();\n regions.addAll(resp.jsonPath().getList(\"data.regions.shortname[0]\"));\n\n for (List<Number> perc : allPerc) {\n\n String name = regions.pop();\n\n float result = CalculationUtils.sumListElements(perc);\n\n System.out.println(name);\n System.out.println(\"Sum of perc equals: \" + result);\n System.out.println(\"------------\");\n\n softAssert.assertEquals(100.0, result, 0.1);\n }\n\n softAssert.assertAll();\n }", "@Test\n public void testSpecificationEqualsContract() {\n EqualsVerifier.forClass(PdfaSpecificationImpl.class).verify();\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 }", "@Test //This is integration test\r\n\tpublic void testCalculatePrice04() throws Exception\r\n\t{\n\t\tImportInformation information = new ImportInformation();\r\n\t\tinformation.importMenu(\"Food_Data_Test1\");\r\n\t\tinformation.importUserInput();\t\r\n\t\tCalculation calcPrice = new Calculation();\r\n\t\tcalcPrice.calculatePrice(information.getMenu(),information.getUserInput());\r\n\t\t// compare the object itself and its side effects instead of String output, the string output can be done in main.\r\n\t\tArrayList<Food> exspectedFoodList = new ArrayList<Food>();\r\n\t\texspectedFoodList.add(new Appetizer(\"Salad\",Food.foodType.APPETIZER, \"55\"));\r\n\t\texspectedFoodList.add(new Appetizer(\"Beef Enchailada\",Food.foodType.MAINDISH, \"100\"));\t\r\n\t\tArrayList<Combination> exspectedCombinationList = new ArrayList<Combination>();\r\n\t\texspectedCombinationList.add(new Combination(exspectedFoodList));\r\n\t\t\r\n\t\tint combinationCounter = 0;\r\n\t\tint foodCounter = 0;\r\n\t\tfor(Combination actualCombination : calcPrice.getResult())\r\n\t\t{\r\n\t\t\tfor(Food actualFood : actualCombination.getFoodCombination())\r\n\t\t\t{\r\n\t\t\t\tassertEquals(exspectedCombinationList.get(combinationCounter).getFoodCombination().get(foodCounter).getFoodName(), actualFood.getFoodName());\r\n\t\t\t\tfoodCounter++;\r\n\t\t\t}\r\n\t\t\tcombinationCounter++;\r\n\t\t}\r\n\t}", "@Test\n public void testGetStudent() {\n System.out.println(\"getStudent\");\n \n given()\n .contentType(\"application/json\")\n .when()\n .get(\"/generel/student/\" + s2.getName()).then()\n .statusCode(200)\n .assertThat()\n .body(\"email\", hasItems(\"[email protected]\"), \"signedup\", hasSize(1), \"signedup.passedDate\", hasSize(1));\n\n \n }", "@Test\n public void testgetMatch() throws java.lang.Exception{\n\n /* org.seadva.matchmaker.webservice.MatchMakerServiceStub stub =\n new org.seadva.matchmaker.webservice.MatchMakerServiceStub();//the default implementation should point to the right endpoint\n\n org.seadva.matchmaker.webservice.GetMatchRequest getMatchRequest18=\n (org.seadva.matchmaker.webservice.GetMatchRequest)getTestObject(org.seadva.matchmaker.webservice.GetMatchRequest.class);\n // TODO : Fill in the getMatchRequest18 here\n\n ClassAdType param = new ClassAdType();\n\n param.setType(\"user\");\n CharacteristicsType characteristicsType = new CharacteristicsType();\n CharacteristicType[] characs = new CharacteristicType[1];\n CharacteristicType charac = new CharacteristicType();\n charac.setName(\"license\");\n charac.setValue(\"CC\");\n characs[0] = charac;\n characteristicsType.setCharacteristic(characs);\n param.setCharacteristics(characteristicsType);\n\n RequirementsType reqs = new RequirementsType();\n RuleType rules = new RuleType();\n rules.setObject(\"dspace\");\n rules.setSubject(\"type\");\n rules.setPredicate(\"equals\");\n reqs.addRule(rules);\n param.setRequirements(reqs);\n\n PreferencesType preferencesType = new PreferencesType();\n RuleType[] rs = new RuleType[1];\n rs[0] = rules;\n preferencesType.setRule(rs);\n param.setPreferences(preferencesType);\n\n getMatchRequest18.setUserClassAd(param);\n GetMatchResponse resourcesResponse = stub.getMatch(\n getMatchRequest18);\n for(int i =0; i<resourcesResponse.getResourceClassAd().getCharacteristics().getCharacteristic().length;i++)\n System.out.print(\"printing \"+\n resourcesResponse.getResourceClassAd().getType()+\" \\n\"+\n resourcesResponse.getResourceClassAd().getCharacteristics().getCharacteristic()[i].getName() + \" : \" +\n resourcesResponse.getResourceClassAd().getCharacteristics().getCharacteristic()[i].getValue() + \"\\n\");\n param.setPreferences(new PreferencesType());\n assertNotNull(resourcesResponse);\n \n */\n\n\n GetMatchRequest getMatchRequest=\n new GetMatchRequest();\n\n ClassAdType param = new ClassAdType();\n\n param.setType(\"user\");\n CharacteristicsType characteristicsType = new CharacteristicsType();\n CharacteristicType[] characs = new CharacteristicType[2];\n CharacteristicType licCharac = new CharacteristicType();\n licCharac.setName(\"license\");\n licCharac.setValue(\"CC\");\n CharacteristicType sizeCharac = new CharacteristicType();\n sizeCharac.setName(\"dataCollectionSize\");\n sizeCharac.setValue(\"1073741825\");\n characs[0] = licCharac;\n characs[1] = sizeCharac;\n characteristicsType.setCharacteristic(characs);\n param.setCharacteristics(characteristicsType);\n\n RequirementsType reqs = new RequirementsType();\n RuleType rules = new RuleType();\n rules.setSubject(\"type\");\n rules.setPredicate(\"equals\");\n rules.setObject(\"cloud\");\n reqs.addRule(rules);\n param.setRequirements(reqs);\n\n PreferencesType preferencesType = new PreferencesType();\n RuleType[] rs = new RuleType[1];\n rs[0] = rules;\n preferencesType.setRule(rs);\n param.setPreferences(preferencesType);\n\n getMatchRequest.setUserClassAd(param);\n MatchMakerServiceStub stub = null;\n try {\n stub = new MatchMakerServiceStub();\n } catch (AxisFault axisFault) {\n axisFault.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n }\n GetMatchResponse resourcesResponse = null;\n try {\n resourcesResponse = stub.getMatch(\n getMatchRequest);\n System.out.print(\"printing \"+\n resourcesResponse.getResourceClassAd().getType()+\" \\n\");\n for(int i =0; i<resourcesResponse.getResourceClassAd().getCharacteristics().getCharacteristic().length;i++)\n System.out.print(\n resourcesResponse.getResourceClassAd().getCharacteristics().getCharacteristic()[i].getName() + \" : \" +\n resourcesResponse.getResourceClassAd().getCharacteristics().getCharacteristic()[i].getValue() + \"\\n\");\n param.setPreferences(new PreferencesType());\n assertNotNull(resourcesResponse);\n } catch (RemoteException e) {\n e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n }\n }", "@Before\r\n\t public void setUp(){\n\t }", "@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFields() {\n }", "@Before\n public void setUp()\n {\n summary = \"\";\n allPassed = true;\n firstFailExpected = null;\n firstFailRun = null;\n captureSummary = \"\";\n captureRun = null;\n }", "@Test\n public void testDAM30103001() {\n // settings as done for testDAM30102001 are identical\n testDAM30102001();\n }" ]
[ "0.6352161", "0.6128871", "0.6003399", "0.58793455", "0.58645135", "0.585449", "0.58318657", "0.5787521", "0.5783906", "0.5783882", "0.57564574", "0.57564574", "0.5755857", "0.5734891", "0.5726471", "0.57255435", "0.5703522", "0.56982625", "0.5680371", "0.56761795", "0.56651926", "0.5662961", "0.56626713", "0.5649793", "0.56357515", "0.56349415", "0.56327415", "0.563201", "0.5628273", "0.5624158", "0.561786", "0.5616966", "0.5614502", "0.5612456", "0.56067336", "0.5596581", "0.55949026", "0.5592825", "0.5589793", "0.5578292", "0.5572498", "0.5572175", "0.5568266", "0.5566656", "0.5556085", "0.5555815", "0.55552405", "0.5553081", "0.5549519", "0.5549294", "0.5548672", "0.55460346", "0.5541544", "0.55395246", "0.5535783", "0.55345994", "0.5531245", "0.55309117", "0.5529186", "0.55279523", "0.5527545", "0.5519792", "0.55185884", "0.5515278", "0.55113494", "0.55031943", "0.5503137", "0.55025977", "0.55025977", "0.54965436", "0.54959863", "0.5495844", "0.54926574", "0.54920805", "0.5486263", "0.5485449", "0.54849845", "0.5482611", "0.5480571", "0.54769516", "0.54759455", "0.547364", "0.5473217", "0.54684937", "0.5468079", "0.5465978", "0.5463679", "0.54634875", "0.5461102", "0.5455307", "0.545405", "0.5454034", "0.5452823", "0.54483837", "0.54474705", "0.54471236", "0.54456794", "0.54388374", "0.5438719", "0.5438305", "0.5435561" ]
0.0
-1
TERM TO OBJECTS TESTS
@Test public void testJRefToObject() { Object o = new Object(); JRef jref = jRef(o); assertEquals(o, jpc.fromTerm(jref)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testTermBasics() throws IOException, OBOParserException\n\t{\n\t\tSystem.out.println(\"Parse OBO file\");\n\t\tOBOParser oboParser = new OBOParser(new ParserFileInput(GOtermsOBOFile));\n\t\tSystem.out.println(oboParser.doParse());\n\t\tHashMap<String,Term> id2Term = new HashMap<String,Term>();\n\n\t\tint relations = 0;\n\t\tfor (Term t : oboParser.getTermMap())\n\t\t{\n\t\t\trelations += t.getParents().length;\n\t\t\tid2Term.put(t.getIDAsString(),t);\n\t\t}\n\n\t\tassertEquals(nTermCount, oboParser.getTermMap().size());\n\t\tassertEquals(formatVersion,oboParser.getFormatVersion());\n\t\tassertEquals(date,oboParser.getDate());\n\t\tassertEquals(data_version,oboParser.getDataVersion());\n\t\tassertEquals(nRelations,relations);\n\t\tassertTrue(id2Term.containsKey(\"GO:0008150\"));\n\t\tassertEquals(0,id2Term.get(\"GO:0008150\").getParents().length);\n\t}", "public static void main(String[] args) {\n\t\tObject o1=new Object();\r\n\t\tObject o2=new RbiBank();\r\n\t\tObject o3=new HdfcBank();\r\n\t\tObject o4=new IciciBank();\r\n\t\tObject o5=\"RBG Technologies\";\r\n\t\tObject o6=10;\r\n\t\tObject o7=true;\r\n\t\r\n\t\t\r\n\r\n\t}", "@Test\n\tpublic void test_TCM__Object_clone() {\n TCM__Object_clone__default();\n\n TCM__Object_clone__attributeType(Attribute.UNDECLARED_TYPE);\n TCM__Object_clone__attributeType(Attribute.CDATA_TYPE);\n TCM__Object_clone__attributeType(Attribute.ID_TYPE);\n TCM__Object_clone__attributeType(Attribute.IDREF_TYPE);\n TCM__Object_clone__attributeType(Attribute.IDREFS_TYPE);\n TCM__Object_clone__attributeType(Attribute.ENTITY_TYPE);\n TCM__Object_clone__attributeType(Attribute.ENTITIES_TYPE);\n TCM__Object_clone__attributeType(Attribute.NMTOKEN_TYPE);\n TCM__Object_clone__attributeType(Attribute.NMTOKENS_TYPE);\n TCM__Object_clone__attributeType(Attribute.NOTATION_TYPE);\n TCM__Object_clone__attributeType(Attribute.ENUMERATED_TYPE);\n\n\n TCM__Object_clone__Namespace_default();\n\n TCM__Object_clone__Namespace_attributeType(Attribute.UNDECLARED_TYPE);\n TCM__Object_clone__Namespace_attributeType(Attribute.CDATA_TYPE);\n TCM__Object_clone__Namespace_attributeType(Attribute.ID_TYPE);\n TCM__Object_clone__Namespace_attributeType(Attribute.IDREF_TYPE);\n TCM__Object_clone__Namespace_attributeType(Attribute.IDREFS_TYPE);\n TCM__Object_clone__Namespace_attributeType(Attribute.ENTITY_TYPE);\n TCM__Object_clone__Namespace_attributeType(Attribute.ENTITIES_TYPE);\n TCM__Object_clone__Namespace_attributeType(Attribute.NMTOKEN_TYPE);\n TCM__Object_clone__Namespace_attributeType(Attribute.NMTOKENS_TYPE);\n TCM__Object_clone__Namespace_attributeType(Attribute.NOTATION_TYPE);\n TCM__Object_clone__Namespace_attributeType(Attribute.ENUMERATED_TYPE);\n\t}", "public static void main(String[] args) {\n\t\tnew Object();\n\t\tSystem.out.println(new Carte(\"dsadas\", 15));\n\t\tSystem.out.println(new Carte(\"dsadas\"));\n\t\tSystem.out.println(new Carte());\n\t\tCarte crt1 = new Carte(\"Titlu roz\", 2013);\n\t\tCarte crt2 = new Carte(\"fdsfs\");\n\t\tString crt3 = crt1.titlu;\n\t\tSystem.out.println(crt3);\n\t\t\n\t}", "public static void testConstructors() {\n\t\t\n\t\tSystem.out.println(\"| Testing constructors: \");\n\t\tCustomer greg;\n\t\tAirlineTicket ticketGreg;\n\t\tFlight flightBahamas;\n\n\t\tgreg = new Customer(\"Greg Miller\", \"127 Leeds St, Halifax\", 123456);\n\t\tflightBahamas = new Flight(101, \"Ottawa\", \"Calgary\", \"03/02/99 7:50 pm\");\n\t\tticketGreg = new AirlineTicket(greg, flightBahamas, 747.00);\n\n\t\t// apply points from ticket\n\t\tSystem.out.println(\"| Applying points:\");\n\t\tgreg.applyPoints(ticketGreg);\n\t\t\n\t\t// uses overridden toString methods\n\t\tprintObjects(greg, ticketGreg, flightBahamas);\n\t\t\n\t}", "public void test_ck_02() {\n OntModel vocabModel = ModelFactory.createOntologyModel();\n ObjectProperty p = vocabModel.createObjectProperty(\"p\");\n OntClass A = vocabModel.createClass(\"A\");\n \n OntModel workModel = ModelFactory.createOntologyModel();\n Individual sub = workModel.createIndividual(\"uri1\", A);\n Individual obj = workModel.createIndividual(\"uri2\", A);\n workModel.createStatement(sub, p, obj);\n }", "@Before\n public void setUp() throws Exception{\n\n testTerminsatz = new Terminsatz();\n System.out.println(\"Terminsatz erstellt\");\n\n testTermin1 = new Termin();\n testTermin1.setBez(\"Vorlesung Softwaretechnik\"); //neues Terminobjekt anlegen\n testTermin1.setStt(sdf.parse(\"2011.02.15-09:45:00\"));\t\t\t\t//Startzeitpunkt des neuen Termin setzen\n testTermin1.setStp(sdf.parse(\"2011.02.15-11:15:00\"));\t\t\t\t//Endzeitpunkt des neuen Termin setzen\n testTermin1.setQuelle(1); // 1 = automatisch 2 = manuell hinzugefügt\n testTermin1.setPrio(10);\n testTermin1.setVbz(0);\n testTermin1.setNbz(30);\n testTermin1.setOrt(\"8-203\");\n testTermin1.setTyp(\"Vorlesung\");\n testTermin1.setBem(\"Schreibzeug mitnehmen\");\n testTerminsatz.tAnlegen(testTermin1);\n System.out.println(\"Termin 1 eingefügt\");\n\n testTermin2 = new Termin();\n testTermin2.setBez(\"Seminar\"); //neues Terminobjekt anlegen\n testTermin2.setStt(sdf.parse(\"2011.02.15-09:15:00\"));\t\t\t\t//Startzeitpunkt des neuen Termin setzen\n testTermin2.setStp(sdf.parse(\"2011.02.15-10:45:00\"));\t\t\t\t//Endzeitpunkt des neuen Termin setzen\n testTermin2.setQuelle(1); // 1 = automatisch 2 = manuell hinzugefügt\n testTermin2.setPrio(9);\n testTermin2.setVbz(15);\n testTermin2.setNbz(15);\n testTermin2.setOrt(\"Mittweida\");\n testTermin2.setTyp(\"Seminar\");\n testTermin2.setBem(\"\");\n testTerminsatz.tAnlegen(testTermin2);\n System.out.println(\"Termin 2 eingefügt\");\n/*\n testTermin3 = new Termin();\n testTermin3.setBez(\"C#\"); //neues Terminobjekt anlegen\n testTermin3.setStt(sdf.parse(\"2009.03.09-12:45:00\"));\t\t\t\t//Startzeitpunkt des neuen Termin setzen\n testTermin3.setStp(sdf.parse(\"2009.03.08-14:00:00\"));\t\t\t\t//Endzeitpunkt des neuen Termin setzen\n testTermin3.setQuelle(1); // 1 = automatisch 2 = manuell hinzugefügt\n testTermin3.setPrio(-1);\n testTermin3.setVbz(0);\n testTermin3.setNbz(\"ABC\");\n testTermin3.setOrt(\"//////.\");\n testTermin3.setTyp(\"Praktikum\");\n testTermin3.setBem(\"1337\");\n System.out.println(\"Termin einfügen: \" + testTerminsatz.tAnlegen(testTermin3));\n\n testTermin4 = new Termin();\n testTermin4.setBez(\"Zahnarzt\"); //neues Terminobjekt anlegen\n testTermin4.setStt(sdf.parse(\"\"));\t\t\t\t//Startzeitpunkt des neuen Termin setzen\n testTermin4.setStp(sdf.parse(\"2013.AA.32-25:61:00\"));\t\t\t\t//Endzeitpunkt des neuen Termin setzen\n testTermin4.setQuelle(2); // 1 = automatisch 2 = manuell hinzugefügt\n testTermin4.setPrio(\"A\");\n testTermin4.setVbz(\"<---\"\");\n testTermin4.setNbz(\"---\");\n testTermin4.setOrt(\"Praxis\");\n testTermin4.setTyp(\"Zahnarzt\");\n testTermin4.setBem(\"----\");\n System.out.println(\"Termin einfügen: \" + testTerminsatz.tAnlegen(testTermin4));\n*/ }", "public T caseTERM(TERM object)\n {\n return null;\n }", "protected GuiTestObject terraced() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"terraced\"));\n\t}", "public static void main(String[] args) {\n Object obj1 = obterString();\n String s1 = (String) obj1; //downcasting Object para String\n\n Object obj2 = \"Minha String\";//upcasting String para Object\n String s2 = (String) obj2; //downcasting obj2 referencia uma string diretamente\n\n Object obj3 = new Object();\n String s3 = (String) obj3; //ex de downcasting vai falhar em execucao\n // nao faz referencia a uma string\n\n Object obj4 = obterInteiro();\n String s4 = (String) obj4;//nao funciona em tempo de execucao\n }", "public static void main(String[] args) {\n\t\tEmpleado E1 = new Empleado (\"Jessica\");\n\t\tDirectivo D1 = new Directivo (\"Samanta\");\n\t\tOperario OP1 = new Operario (\"Edson\");\n\t\tOficial OF1 = new Oficial (\"Emilio\");\n\t\tTecnico T1 = new Tecnico (\"Daniela\");\n\t\t\n\t\t// polimorfismo la clase padre puede acceder a elementos de las clases hijas sin tenerlas declaradas\n\t\tEmpleado E2 = new Tecnico (\"Jessica\");\n\t\t\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(E1.toString());\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(D1);\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(OP1);\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(OF1);\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(T1);\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(E2);\n\t\tSystem.out.println(\" \");\n\t\n\t}", "public void objectTest() {\n }", "ConjuntoTDA claves();", "@Test\n public void testSimpleReflectionObjectCycle() {\n final SimpleReflectionTestFixture simple = new SimpleReflectionTestFixture();\n simple.o = simple;\n assertEquals(this.toBaseString(simple) + \"[o=\" + this.toBaseString(simple) + \"]\", simple.toString());\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 static void main(String[] args) {\n\n Shape circle = new Circle(5);\n System.out.println(circle.getArea());\n System.out.println(circle.getCircuit());\n Shape triangle = new Triangle(3,5,4,3);\n System.out.println(triangle.getCircuit());\n System.out.println(triangle.getArea());\n Shape square = new Square(5);\n System.out.println(square.getArea());\n System.out.println(square.getCircuit());\n\n Person person = new Person(\"Grzegorz\",40,new Medical(1111,\"Kierowanie Karetką\"));\n System.out.println(person.getResponsibilities());\n\n }", "public static void main(String[] args) {\n\r\n\t\templeado emple = new empleado(\"Jonnhy\", 25, 1800);\r\n\t\tSystem.out.println(emple.toString());\r\n\t\t\r\n\t\tcomercial com = new comercial(\"Joseph\", 23, 1200, 100);\r\n\t\tSystem.out.println(com.toString());\r\n\t\t\r\n\t\trepartidor rep = new repartidor(\"Jonathan\", 45, 43, \"zona2\");\r\n\t\tSystem.out.println(rep.toString());\r\n\t\t\r\n\t}", "@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}", "@BeforeEach\n void createProduct(){\n standartProduktTest = new StandartProdukt();\n standartProduktTest.setName(\"Testprodukt\");\n standartProduktTest.setEan(\"0000000000000\");\n standartProduktTest.setMinimalMenge(20);\n standartProduktTest.setLagerbestand(100);\n standartProduktTest.setPackageSize(1.0, \"Stk.\");\n standartProduktTest.setPreis(20, Waerungen.EURO.toString());\n\n PrintHelper.printlnCenteredTextString(\"Erzeugtes Objekt\", \"-\", 91);\n System.out.println(standartProduktTest.toStringHead());\n System.out.println(standartProduktTest.toString());\n PrintHelper.printlnString(\"-\", 91);\n }", "public static void main(String[] args) {\n\t\tObject01 ob1 = new Object01();\n\t\tString st1 = ob1.returnExp();\n\t\tString st2 = ob1.returnExp();\n\t\tString st3 = ob1.returnExp();\n\t\t\n\t\tSystem.out.println(st1);\n\t\tSystem.out.println(st2);\n\t\tSystem.out.println(st3);\n\t\t\n\t\tObject01 ob2 = new Object01();\n\t\tSystem.out.println(ob2.returnExp1());\n\t\tSystem.out.println(ob2.returnExp2());\n\t\tSystem.out.println(ob2.returnExp3());\n\t\tSystem.out.println(ob2.returnExp4());\n\t\tSystem.out.println(ob2.returnExp5());\n\t\t\n\t\t// 배열을 리턴해오는 메소드들 출력이 잘 못되서 확인을 못한 것,,\n\t\tSystem.out.println(ob2.returnExp6());\n\t\tSystem.out.println(ob2.returnExp7());\n\t\t\n\t\t// 배열이 리턴되므로 배열에 해당하는 데이터 type으로 할당하여 사용해야함\n\t\tint[] chA = ob2.returnExp6();\n\t\tSystem.out.println(chA[0]);\n\t\t\n\t\t\n\t\t\n\t}", "@Test\n public void testGetTurmas() {\n System.out.println(\"getTurmas\");\n Curso instance = null;\n Collection<Turma> expResult = null;\n Collection<Turma> result = instance.getTurmas();\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 }", "@Test\n public void testGetTitulo() {\n System.out.println(\"getTitulo\");\n Cobertura instance = cobertura;\n String expResult = \"Incendio\";\n String result = instance.toDTO().getTitulo();\n assertEquals(expResult, result);\n\n }", "public static void testEmptyConstructors() {\n\t\t\n\t\tSystem.out.println(\"+-----------------------------------------------------------------\");\n\t\tSystem.out.println(\"| Testing empty constructors: \");\n\n\t\tCustomer greg;\n\t\tAirlineTicket ticketGreg;\n\t\tFlight flightBahamas;\n\n\t\tgreg = new Customer();\n\t\tflightBahamas = new Flight();\n\t\tticketGreg = new AirlineTicket();\n\n\t\t// manipulate data using object methods and print it out\n\t\tSystem.out.println(\"| Manipulating data...\");\n\t\tmanipulateData(greg, ticketGreg, flightBahamas);\n\t\tSystem.out.println(\"| After manipulation:\");\n\t\tprintObjects(greg, ticketGreg, flightBahamas);\n\t\t\n\t}", "@Test\n public void testWriteEntry_4args() {\n //System.out.println(\"writeEntry\");\n LemonSerializerImpl instance = new LemonSerializerImpl(null);\n LemonModel model = makeModel(instance);\n LexicalEntry entry = model.getLexica().iterator().next().getEntrys().iterator().next();\n LinguisticOntology lingOnto = new LexInfo();\n Writer target = new StringWriter();\n instance.writeEntry(model, entry, lingOnto, target);\n //System.out.println(target.toString());\n }", "public static void main(String args[]){\n featureBase Engine = new featureEngine(\"Engine!\",\n \"This is an engine test!\", 356.99,1.0, 24.5,1000.0);\n\n featureBase Wheels = new featureWheels(\"Wheels\",\n \"This is a wheels test!\", 359.9,1.0,\"Somber\", 21.0);\n\n featureBase Color = new featureColor(\"Test part!\",\n \"This is a test part cool huh?\",364.99,1.0,\"Stylish\");\n\n //Constructing a new nodeArray\n nodeArray test = new nodeArray();\n\n //inserting the objects into the array (Duplicate to test the LLL as well)\n test.insert(Wheels);\n test.insert(Engine);\n test.insert(Color);\n\n System.out.print(test.display());\n }", "public static void main(String[] args) {\n\t\tVehicle v = new Car(10,20);\n\t\tObject o = new Vehicle();\n\t\t\n\t\tv.maxSpeed = 100;\n\t\tv.print();\n\t\tv = new Vehicle();\n\t\tv.setColor(\"green\");\n//\t\tCar c = (Car) v; dangerous casting\n//\t\tv.numDoors = 4;\n//\t\tVehicle v3 = new Bicycle(12);\n\n\t\t\n\t\tv.maxSpeed = 80;\n\t\tv.setColor(\"red\");\n\t\tv.print();\n//\t\t\n//\t\tCar c = new Car();\n//\t\tc.color = \"Black\";\n//\t\tc.maxSpeed = 100;\n//\t\tc.numDoors = 4;\n//\t\tc.setColor(\"black\");\n//\t\tc.printMaxspeed();\n//\t\tc.print();\n//\t\tc.printCar();\n\t\t\n//\t\tBicycle b = new Bicycle();\n//\t\tb.print();\n\n\t}", "private RDF_Term testTerm(Node node, PrefixMap pmap, boolean asValue) {\n RDF_Term rt = ProtobufConvert.convert(node, pmap, asValue) ;\n\n if ( node == null) {\n assertTrue(rt.hasUndefined());\n return rt;\n }\n\n switch (rt.getTermCase()) {\n// message RDF_Term {\n// oneof term {\n// RDF_IRI iri = 1 ;\n// RDF_BNode bnode = 2 ;\n// RDF_Literal literal = 3 ;\n// RDF_PrefixName prefixName = 4 ;\n// RDF_VAR variable = 5 ;\n// RDF_Triple tripleTerm = 6 ;\n// RDF_ANY any = 7 ;\n// RDF_UNDEF undefined = 8 ;\n// RDF_REPEAT repeat = 9 ;\n//\n// // Value forms of literals.\n// int64 valInteger = 20 ;\n// double valDouble = 21 ;\n// RDF_Decimal valDecimal = 22 ;\n// }\n// }\n case IRI : {\n RDF_IRI iri = rt.getIri() ;\n assertEquals(node.getURI(), iri.getIri()) ;\n break;\n }\n case BNODE : {\n RDF_BNode bnode = rt.getBnode() ;\n assertEquals(node.getBlankNodeLabel(), bnode.getLabel()) ;\n break;\n }\n case LITERAL : {\n RDF_Literal lit = rt.getLiteral() ;\n assertEquals(node.getLiteralLexicalForm(), lit.getLex()) ;\n\n if (JenaRuntime.isRDF11) {\n // RDF 1.1\n if ( Util.isSimpleString(node) ) {\n assertTrue(lit.getSimple());\n // Protobug default is \"\"\n assertNullPB(lit.getDatatype()) ;\n assertEquals(RDF_PrefixName.getDefaultInstance(), lit.getDtPrefix());\n assertNullPB(lit.getLangtag()) ;\n } else if ( Util.isLangString(node) ) {\n assertFalse(lit.getSimple());\n assertNullPB(lit.getDatatype()) ;\n assertEquals(RDF_PrefixName.getDefaultInstance(), lit.getDtPrefix());\n assertNotSame(\"\", lit.getLangtag()) ;\n }\n else {\n assertFalse(lit.getSimple());\n // Regular typed literal.\n assertTrue(lit.getDatatype() != null || lit.getDtPrefix() != null );\n assertNullPB(lit.getLangtag()) ;\n }\n } else {\n // RDF 1.0\n if ( node.getLiteralDatatype() == null ) {\n if ( Util.isLangString(node ) ) {\n assertFalse(lit.getSimple());\n assertNullPB(lit.getDatatype()) ;\n assertNull(lit.getDtPrefix()) ;\n assertNotSame(\"\", lit.getLangtag()) ;\n } else {\n assertTrue(lit.getSimple());\n assertNullPB(lit.getDatatype()) ;\n assertEquals(RDF_PrefixName.getDefaultInstance(), lit.getDtPrefix());\n assertNullPB(lit.getLangtag()) ;\n }\n } else {\n assertTrue(lit.getDatatype() != null || lit.getDtPrefix() != null );\n }\n }\n break;\n }\n case PREFIXNAME : {\n assertNotNull(rt.getPrefixName().getPrefix()) ;\n assertNotNull(rt.getPrefixName().getLocalName()) ;\n String x = pmap.expand(rt.getPrefixName().getPrefix(), rt.getPrefixName().getLocalName());\n assertEquals(node.getURI(),x);\n break;\n }\n case VARIABLE :\n assertEquals(node.getName(), rt.getVariable().getName());\n break;\n case TRIPLETERM : {\n RDF_Triple encTriple = rt.getTripleTerm();\n Triple t = node.getTriple();\n RDF_Term rt_s = testTerm(t.getSubject(), pmap, asValue);\n RDF_Term rt_p = testTerm(t.getPredicate(), pmap, asValue);\n RDF_Term rt_o = testTerm(t.getObject(), pmap, asValue);\n assertEquals(encTriple.getS(), rt_s);\n assertEquals(encTriple.getP(), rt_p);\n assertEquals(encTriple.getO(), rt_o);\n break;\n }\n case ANY :\n assertEquals(Node.ANY, node);\n case REPEAT :\n break;\n case UNDEFINED :\n assertNull(node);\n return rt;\n case VALINTEGER : {\n long x = rt.getValInteger();\n assertTrue(integerSubTypes.contains(node.getLiteralDatatype()));\n //assertEquals(node.getLiteralDatatype(), XSDDatatype.XSDinteger);\n long x2 = Long.parseLong(node.getLiteralLexicalForm());\n assertEquals(x,x2);\n break;\n }\n case VALDOUBLE : {\n double x = rt.getValDouble();\n assertEquals(node.getLiteralDatatype(), XSDDatatype.XSDdouble);\n double x2 = Double.parseDouble(node.getLiteralLexicalForm());\n assertEquals(x, x2, 0.01);\n break;\n }\n case VALDECIMAL : {\n assertEquals(node.getLiteralDatatype(), XSDDatatype.XSDdecimal);\n NodeValue nv = NodeValue.makeNode(node);\n assertTrue(nv.isDecimal());\n\n long value = rt.getValDecimal().getValue() ;\n int scale = rt.getValDecimal().getScale() ;\n BigDecimal d = BigDecimal.valueOf(value, scale) ;\n assertEquals(nv.getDecimal(), d);\n break;\n }\n case TERM_NOT_SET :\n break;\n }\n\n // And reverse\n if ( ! asValue ) {\n // Value based does not preserve exact datatype or lexical form.\n Node n2 = ProtobufConvert.convert(rt, pmap);\n assertEquals(node, n2) ;\n }\n\n return rt;\n }", "void printObjectMethods(PrintWriter out) {\n\n\t\t// Print Object class constructor\n\t\tout.println(\"define %class.Object* @_ZN6ObjectC2EV( %class.Object* %self ) noreturn {\\n\"\n\t\t\t+ \"entry:\\n\"\n\t\t\t+ \"\\t%self.addr = alloca %class.Object*\\n\"\n\t\t\t+ \"\\tstore %class.Object* %self, %class.Object** %self.addr\\n\"\n\t\t\t+ \"\\t%self1 = load %class.Object*, %class.Object** %self.addr\\n\"\n\t\t\t+ \"\\tret %class.Object* %self1\\n\"\n\t\t\t+\"}\\n\");\n\n\t\tout.println(\"define %class.Object* @_ZN6Object5abort( %class.Object* %self ) noreturn {\\n\"\n\t\t\t+ \"entry:\\n\"\n\t\t\t+ \"\\tcall void @exit( i32 1 )\\n\"\n\t\t\t+ \"\\tret %class.Object* null\\n\"\n\t\t\t+ \"}\\n\");\n\t}", "public static void main(String[] args) {\n Cachorro cachorro = new Cachorro();\n cachorro.andar();\n System.out.println(cachorro.toString(true));\n cachorro.fazerBarulho();\n cachorro.morrer(); \n Cavalo cavalo = new Cavalo();\n cavalo.andar();\n cavalo.andar();\n System.out.println(cavalo.toString(false));\n cavalo.fazerBarulho();\n System.out.println(cavalo);\n cavalo.morrer(); \n //PatinhoDeBorracha patinho = new PatinhoDeBorracha();\n //patinho.andar();\n //patinho.fazerBarulho(); \n }", "@Test\n public void testReflectionArrayAndObjectCycle() {\n final Object[] objects = new Object[1];\n final SimpleReflectionTestFixture simple = new SimpleReflectionTestFixture(objects);\n objects[0] = simple;\n assertEquals(\n this.toBaseString(objects)\n + \"[{\"\n + this.toBaseString(simple)\n + \"[o=\"\n + this.toBaseString(objects)\n + \"]\"\n + \"}]\",\n ToStringBuilder.reflectionToString(objects));\n assertEquals(\n this.toBaseString(simple)\n + \"[o={\"\n + this.toBaseString(simple)\n + \"}]\",\n ToStringBuilder.reflectionToString(simple));\n }", "@BeforeClass\r\n public static void createTestObject()\r\n {\r\n testLongTermStorage = new LongTermStorage();\r\n }", "public static void objectDemo() {\n\t}", "public static void main(String[] args) {\n\t\tbacteria[] newobject = new bacteria[2];\n\t\tsalmonela object1 = new salmonela();\n\t\tstreptococus object2 = new streptococus();\n\t\tnewobject[0]=object1; \n\t\tnewobject[1]=object2; \n\t\tfor (bacteria x: newobject) {\n\t\t\tx.noise();\n\t\t}\n\n\t}", "public T caseTerm(Term object)\n {\n return null;\n }", "@Test\n public void testTermine(){\n //Test ob testTermin1 vorhanden\n assertNotNull(testTermin1);\n System.out.println(\"Termin 1 NotNull\");\n assertNotNull(testTermin2);\n System.out.println(\"Termin 2 NotNull\");\n }", "public static void main(String[] args) {\n\t Nosy firstTv = new Nosy() ; \n\t String textFirst = \"Ala ma kota\" ;\n\t String textSecond = \"Ala ma 2 koty\" ; \n\t \n\t /*Kazda klasa dziedziczy po klasie Object*/\n\t System.out.println(\"tekst\".toString());\n\t System.out.println(firstTv.toString());\n\t \n\t if(textFirst.equals(textSecond)) {\n\t\t System.out.println(\"Te teskty sa sobie rowne\");\n\t }else {\n\t\t System.out.println(\"Te teksty nie sa sobie rowne\");\n\t }\n\t \n\t //Operator sprawdzajacy czy dany obiekt jest instancja danej klasy\n\t if(textFirst instanceof Object) {\n\t\t System.out.println(\"textFirst jest instancja Object\");\n\t }\n\t \n\t Tv.changeVolume();\n\t \n\t /*Klasy nie moga byc statyczne*/\n\t int numberSecond = Nosy.number ;\n }", "@Test\n public void testObjFunction() {\n for (XGBoostMojoModel.ObjectiveType type : XGBoostMojoModel.ObjectiveType.values()) {\n assertNotNull(type.getId());\n assertFalse(type.getId().isEmpty());\n // check we have an implementation of ObjFunction\n assertNotNull(XGBoostJavaMojoModel.getObjFunction(type.getId()));\n }\n }", "@Test\n public void testConstruction() {\n Ticket ticket = new Ticket(10, TicketType.STUDENT);\n\n assertEquals(10, ticket.getNumber());\n assertEquals(TicketType.STUDENT, ticket.getType());\n\n assertEquals(\"10, STUDENT\", ticket.toString());\n }", "public static void main(String[] args) {\n\t\tVeiculo v = new Carro();\n\t\tv = new Moto();\n\n\t\t// erro de compilação\n\t\t// nem sempre Veiculo é uma moto\n\t\t// incompatible types. Veiculo cannot be converted to Moto\n\t\tVeiculo v2 = new Moto();\n\t\tMoto m = v2;\n\n\t\t// Nesse caso o codgo compila pois estamos assumindo que os tipos\n\t\t// sao compativeis, porem nao sao. Entao... recebemos uma:\n\t\t// ClassCastException em tempo de execucao.\n\t\tVeiculo v3 = new Carro();\n\t\tMoto m2 = (Moto) v3;\n\n\t\t// nem compila, carro e moto nao sao compativeis mesmo ambos sendo veiculo\n\t\tCarro c = new Carro();\n\t\tMoto m3 = c;\n\n\t}", "@Test\n public void Constructor_ObjectValues_InstanceCreated() {\n\t\ttry {\n Position position = make_PositionWithIntegerPoints(xCoordinate, yCoordinate, direction);\n Surface surface = make_SurfaceWithGivenDimensions(xDimension, yDimension);\n\t\t\tRover rover = make_RoverWithObjectValues(position, surface);\n\t\t}\n\t\tcatch (AssertionError assErr) {\n\t\t\t// Test passed.\n\t\t\treturn;\n\t\t}\n }", "@Before\n\tpublic void createPOJO() {\n\t\tpojo0 = new Pojo();\n\t\tpojo0.setId(1);\n\t\tpojo0.setName(\"Geddy Lee\");\n\t\tpojo0.setFunction(\"Bass\");\n\t\t\n\t\t// creating others simple objects and an array for the ultimate test\n\t\tpojo1 = new Pojo();\n\t\tpojo1.setId(2);\n\t\tpojo1.setName(\"Alex Lifeson\");\n\t\tpojo1.setFunction(\"Guitar\");\n\n\t\tpojo2 = new Pojo();\n\t\tpojo2.setId(3);\n\t\tpojo2.setName(\"Neal Peart\");\n\t\tpojo2.setFunction(\"Drums\");\n\t\t\n\t\tpojos = new Pojo[3];\n\t\tpojos[0] = pojo0;\n\t\tpojos[1] = pojo1;\n\t\tpojos[2] = pojo2;\n\t\t\n\t\t// tricky list\n\t\ttricky = new Pojo[3];\n\t\ttricky[0] = pojo0;\n\t\ttricky[1] = null;\n\t\ttricky[2] = pojo2;\n\t\t\n\t\t// file name for output\n\t\tfileName = \"c:\\\\test.csv\";\n\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t\t// TestsPrinter utilised to aid printing ascetics\r\n\t\tTestsPrinter print = new TestsPrinter(94);\r\n\t\t\r\n\t\t/* 1: Create Name objects. */\r\n\t\tprint.newTestTask(\"1: Create Date objects\");\r\n\t\tprint.process(\"Creating Date objects: objDate_1, objDate_2\");\r\n\t\t\r\n\t\tDate objDate_1 = new Date();\t// default constructor\r\n\t\tDate objDate_2 = new Date(19,9,2019);\t// initialization constructor\r\n\t\t\r\n\t\t/* 2: Set their details. */\r\n\t\tprint.newTestTask(\"2: Set their details\");\r\n\t\tprint.process(\"Setting their details..\");\r\n\t\t\r\n\t\tobjDate_1.setDay(1);\t// set method\r\n\t\tobjDate_1.setMonth(2);\r\n\t\tobjDate_1.setYear(2000);\r\n\r\n\t\t\r\n\t\t/* 3: Display them on the screen.*/\r\n\t\t// get method\r\n\t\tprint.newTestTask(\"3: Display them on the screen\");\r\n\t\tprint.newSubTestTask(\"getDay(), getMonth(), getYear()\");\r\n\t\t\r\n\t\tSystem.out.println(\"=> Date [day: \"+objDate_1.getDay()+\", month: \"+objDate_1.getMonth()+\", year: \"+objDate_1.getYear()+\"]\"\r\n\t\t\t\t+ \" \\t| Expected: Date [day: 01, month: 02, year: 2000]\");\r\n\t\tSystem.out.println(\"=> Date [day: \"+objDate_2.getDay()+\", month: \"+objDate_2.getMonth()+\", year: \"+objDate_1.getYear()+\"]\"\r\n\t\t\t\t+ \" \\t| Expected: Date [day: 19, month: 9, year: 2019]\");\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// toString method\r\n\t\tprint.newSegment(\"-\");\r\n\t\tprint.newSubTestTask(\"toString()\");\r\n\t\tprint.toStringTest(\"objDate_1.toString()\", objDate_1.toString(),\"Date [day: 1, month: 2, year: 2000]\");\t\r\n\t\tprint.newSegment(\"- \");\r\n\t\tprint.toStringTest(\"objDate_2.toString()\", objDate_2.toString(),\"Date [day: 19, month: 9, year: 2019]\");\r\n\t\tprint.endTest();\r\n\t\t\r\n\t\t/* 4: Change some details, and display again. */\r\n\t\tprint.newTestTask(\"4: Change some details, and display again.\");\r\n\t\tprint.newSubTestTask(\"Changing objDate_1 -> objDate_2 details..\");\r\n\t\t\t\t\r\n\t\tobjDate_1.setDay(25);\t// set method\r\n\t\tobjDate_1.setMonth(12);\r\n\t\tobjDate_1.setYear(2000);\r\n\t\t\r\n\t\tobjDate_2.setDay(5);\t// set method\r\n\t\tobjDate_2.setMonth(8);\r\n\t\tobjDate_2.setYear(1988);\r\n\r\n\t\tprint.newSubTestTask(\"Displaying updated details toString()\");\r\n\t\t\r\n\t\tprint.toStringTest(\"objDate_1.toString()\", objDate_1.toString(), \"Date [day: 25, month: 12, year: 2000]\");\t\r\n\t\tprint.newSegment(\"- \");\r\n\t\tprint.toStringTest(\"objDate_2.toString()\", objDate_2.toString(), \"Date [day: 5, month: 8, year: 1988]\");\r\n\t\tprint.endTest();\r\n\t\t\r\n\t\t/* 5: Create two separate Name objects with the same values and test for equality. */\r\n\t\tprint.newTestTask(\"5: Create two separate Name objects with the same values and test for equality\");\r\n\t\tprint.process(\"Creating 2 new duplicate Name objects: objDate_3, objDate_4 => new Date(\\\"12\\\", \\\"12\\\", \\\"2012\\\")\");\r\n\t\t\r\n\t\tDate objDate_3 = new Date(12 ,12, 2012);\t// Initialization constructor\r\n\t\tDate objDate_4 = new Date(12 ,12, 2012);\r\n\t\tprint.newSegment(\"-\");\r\n\t\tprint.newSubTestTask(\"Testing duplicate objects objDate_3 + objDate_4 for equality with equals()\");\r\n\t\tprint.booleanTest(\"objDate_3.equals(objName_6)\", objDate_3.equals(objDate_4), true);\r\n\t\tprint.newSegment(\"-\");\r\n\t\tprint.newSubTestTask(\"Testing duplicate objects objDate_1 + objDate_4 for equality with equals()\");\r\n\t\tprint.booleanTest(\"objDate_1.equals(objName_6)\", objDate_1.equals(objDate_4), false);\r\n\t\tprint.endTest();\r\n\t\tSystem.out.print(\"END PRACTICAL 1 + 2 TESTS\");\r\n\t\tprint.concludeTests();\r\n\t\t\r\n\t\tDate objDate_5 = new Date(28,2,1812);\r\n\r\n\t}", "public static void main(String[] args) {\n\n Performer Joe = new Performer(\"Joseph Stalin\", \"The Hottest Band on Earth\");\n Joe.addHit(\"Gulag\");\n //System.out.println(Joe);\n\n Performer OR = new Performer(\"Olivia Rodrigo\", \"#1 debut artist\");\n OR.addHit(\"Drivers License\");\n OR.addHit(\"Jealously Jealousy\");\n OR.addHit(\"Deja Vu\");\n // System.out.println(OR);\n\n Performer TS = new Performer(\"Taylor Swift\", \"Top Female Artist\");\n TS.addHit(\"22\");\n TS.addHit(\"Red\");\n TS.addHit(\"Love Story\");\n // System.out.println(TS);\n\n Concert Coachella = new Concert(\"Coachella\", \"The Biggest Music Festival on Earth\", \"Indio, California\");\n Coachella.addPerformer(TS);\n Coachella.addPerformer(OR);\n System.out.println(Coachella);\n\n\n\n\n //System.out.println(OR);\n // System.out.println(TS);\n\n }", "public static void main(String args[]){\n SingleTonClass myobject= SingleTonClass.objectCreationMethod();\r\n SingleTonClass myobject1= SingleTonClass.objectCreationMethod();\r\n myobject.display();\r\n myobject.b = 600;\r\n myobject1.display();\r\n myobject1.b = 800;\r\n SingleTonClass myobject2 = new SingleTonClass();\r\n myobject2.display();\r\n }", "@Before\r\n\tpublic void constructObj (){\r\n\t\tproteinSeq = new ProteinSequence(new char[]{'A','A','T','G','C','C','A','G','T','C','A','G','C','A','T','A','G','C','G'});\r\n\t}", "@Test\n public void testSelfInstanceTwoVarsReflectionObjectCycle() {\n final SelfInstanceTwoVarsReflectionTestFixture test = new SelfInstanceTwoVarsReflectionTestFixture();\n assertEquals(this.toBaseString(test) + \"[otherType=\" + test.getOtherType().toString() + \",typeIsSelf=\" + this.toBaseString(test) + \"]\", test.toString());\n }", "@Test\n\tpublic void testCreateTicketOk() {\n\t\tArrayList<Object> p = new ArrayList<Object>();\n\t\tp.add(new TGame(\"FORTNITE\", 6, 20.0, 1, 2, \"descripcion\", \"Shooter\"));\n\t\tTTicket tt = new TTicket(1, p);\n\t\tassertEquals();\n\t}", "public static void main(String[]args){\n Carataker carataker=new Carataker();\n //el originator es el creador de los mementos\n Originator originator=new Originator();\n\n ConcreteObject concreteObject;\n\n concreteObject=new ConcreteObject(\"Doc\",\"Titulo\",\"Estado1\");\n originator.setState(concreteObject);\n\n concreteObject=new ConcreteObject(\"Doc\",\"Descripcion\",\"Estado2\");\n originator.setState(concreteObject);\n carataker.addMemento(originator.createMemento()); // [0] Primer estado\n\n concreteObject=new ConcreteObject(\"Doc\",\"Resumen\",\"Estado3\");\n originator.setState(concreteObject);\n\n concreteObject=new ConcreteObject(\"Doc\",\"Conclusion\",\"Estado4\");\n originator.setState(concreteObject);\n carataker.addMemento(originator.createMemento()); //[1] Segundo estado\n\n concreteObject=new ConcreteObject(\"Doc\",\"Bibliografia\",\"Estado5\");\n originator.setState(concreteObject);\n\n //recuperando o restaurando un estado\n\n originator.restoreFromMemento(carataker.getMemento(0));\n\n }", "public void testEqualsObject() {\n\t\t\tTipoNodoLeisure tipo1 = new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.0\")); //$NON-NLS-1$\n\t\t\tTipoNodoLeisure tipo2= new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.1\")); //$NON-NLS-1$\n\t\t\tTipoNodoLeisure tipo3= new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.2\")); //$NON-NLS-1$\n\t\t\tif (tipo1 != tipo1)\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.3\")); //$NON-NLS-1$\n\t\t\tif (!tipo1.equals(tipo2))\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.4\"));\t\t\t //$NON-NLS-1$\n\t\t\tif (tipo1.equals(tipo3))\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.5\"));\t //$NON-NLS-1$\n\t\t}", "@Test\n public void testWriteLexicon_4args() {\n //String expResult = \n //System.out.println(\"writeLexicon\");\n LemonSerializerImpl instance = new LemonSerializerImpl(null);\n LemonModel model = makeModel(instance);\n Lexicon lexicon = model.getLexica().iterator().next();\n LinguisticOntology lingOnto = new LexInfo();\n Writer target = new StringWriter();\n instance.writeLexicon(model, lexicon, lingOnto, target);\n //System.out.println(target.toString());\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate static void createTestData() {\n\t\t\n\t\tusers.put(\"User0\", objectHandler.createUser(25.0));\n\t\tusers.put(\"User1\", objectHandler.createUser(1.0));\n\t\t\n\t\tdocuments.put(\"Doc0\", objectHandler.createDocument(\"mydoc\", 25, '4', 'C'));\n\t\tdocuments.put(\"Doc1\", objectHandler.createDocument(\"another\", 15, '3', 'B'));\n\t\t\n\t\tusers.get(\"User0\").addDocument(documents.get(\"Doc0\"));\n\t\tusers.get(\"User1\").addDocument(documents.get(\"Doc1\"));\n\t\t\n\t\tPrinterCapability capability1 = objectHandler.createPrinterCapability(true, false, true, true);\n\t\tPrinterCapability capability2 = objectHandler.createPrinterCapability(false, true, true, false);\n\t\tPrinterCapability capability3 = objectHandler.createPrinterCapability(false, true, true, false);\n\t\t\n\t\tPrinterPricing pricing = objectHandler.createPrinterPricing(0.03, 0.14, 0.06, 0.24);\n\t\t\n\t\tPrinterCapacity capacity1 = objectHandler.createPrinterCapacity(25, 0, 10, 30);\n\t\tPrinterCapacity capacity2 = objectHandler.createPrinterCapacity(0, 10, 15, 0);\n\t\tPrinterCapacity capacity3 = objectHandler.createPrinterCapacity(0, 10, 15, 0);\n\t\t\n\t\tprinters.put(\"Printer0\", objectHandler.createPrinter(\"A4All\", capability1, pricing, capacity1, objectHandler.createPrinterStatus()));\n\t\tprinters.put(\"Printer1\", objectHandler.createPrinter(\"A3B\", capability2, pricing, capacity2, objectHandler.createPrinterStatus()));\n\t\tprinters.put(\"Printer2\", objectHandler.createPrinter(\"A3B-rip\", capability3, pricing, capacity3, objectHandler.createPrinterStatus()));\n\t\t\n\t\tVDMSet status = new VDMSet();\n\t\tstatus.add(\"needFixing\");\n\t\tprinters.get(\"Printer2\").break_(status);\n\t}", "public static void main(String[] args) {\n AnObject anObject;\n \n assertEquals(\n \"AnObject [aString=string, anInteger=123, aCharacter=c]\",\n anObject.toString());\n }", "public static void main(String[] args) {\r\n IObjectSizeProvider osp = ObjectSizeProvider.getInstance();\r\n IMemoryDataGatherer mdf = GathererFactory.getMemoryDataGatherer();\r\n\r\n Map<String, Object> tests = new HashMap<String, Object>();\r\n tests.put(\"empty\", new EmptyTest());\r\n tests.put(\"boolean\", new BooleanTest());\r\n tests.put(\"char\", new CharacterTest());\r\n tests.put(\"byte\", new ByteTest());\r\n tests.put(\"short\", new ShortTest());\r\n tests.put(\"int\", new IntTest());\r\n tests.put(\"float\", new FloatTest());\r\n tests.put(\"double\", new DoubleTest());\r\n tests.put(\"Object\", new ObjectTest());\r\n tests.put(\"Mix\", new MixTest());\r\n tests.put(\"Mix2\", new MixTest2());\r\n tests.put(\"Mix3\", new MixTest3());\r\n \r\n for (Map.Entry<String, Object> entry : tests.entrySet()) {\r\n Object o = entry.getValue();\r\n System.out.println(entry.getKey() + \" \" + osp.getObjectSize(o) \r\n + \" \" + mdf.getObjectSize(o));\r\n }\r\n }", "@Test\n public void test_compteAvecOperations(){\n \t\n \tCompte c = serviceCompte.rechercherCompteAvecOperations(1L);\n \tSystem.out.println(\"compte_1 : \"+c);\n \tfor(Operation op : c.getOperations()){\n \t\tSystem.out.println(\"\\t\"+op);\n \t}\n \tAssert.assertTrue(c.getOperations().size()>0);\n }", "private void makeObject() {\n\t\t\n\t\tItem I1= new Item(1,\"Cap\",10.0f,\"to protect from sun\");\n\t\tItemMap.put(1, I1);\n\t\t\n\t\tItem I2= new Item(2,\"phone\",100.0f,\"Conversation\");\n\t\tItemMap.put(2, I2);\n\t\t\n\t\tSystem.out.println(\"Objects Inserted\");\n\t}", "@Test\n public void testCSesionGenerarOrden3() throws Exception {\n System.out.println(\"testCSesionGenerarOrden\");\n CSesion instance = new CSesion();\n instance.inicioSesion(\"Dan\", \"danr\");\n instance.agregaLinea(1, 2);\n instance.generarOrden();\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tPunto pto1= new Punto(2,5);\r\n\t\tPunto pto2= new Punto(3,5);\r\n\t\tPunto pto3= new Punto(2,5);\r\n\t\t\r\n\t\tSystem.out.println(pto1.toString());\r\n\t\tSystem.out.println(pto2.equals(pto3));\r\n\t\tSystem.out.println(pto1.equals(pto3));\r\n\t}", "@Test public void testObjectsList() throws Exception {\n \t\tdeleteAll();\n \t\tStorage ss=makeServicesStorage(base+\"/cspace-services/\");\n \t\tString p1=ss.autocreateJSON(\"collection-object/\",getJSON(\"obj3.json\"));\n \t\tString p2=ss.autocreateJSON(\"collection-object/\",getJSON(\"obj4.json\"));\n \t\tString p3=ss.autocreateJSON(\"collection-object/\",getJSON(\"obj4.json\"));\n \t\tString[] names=ss.getPaths(\"collection-object\",null);\n \t\tassertArrayContainsString(names,p1);\n \t\tassertArrayContainsString(names,p2);\n \t\tassertArrayContainsString(names,p3);\n \t}", "@Test\n public void testElfConstructor()\n {\n Elf elf1 = new Elf();\n assertTrue(elf1.getHealth() <= elf1.getMaxHP());\n assertTrue(elf1.getHealth() >= elf1.getMinHP());\n assertTrue(elf1.getStrength() <= elf1.getMaxStr());\n assertTrue(elf1.getStrength() >= elf1.getMinStr());\n }", "@After\r\n public void cleanTestObject()\r\n {\r\n testLongTermStorage.resetInventory();\r\n }", "@Test\n public void testLisaa33() { // Oluet: 33\n Oluet oluet = new Oluet(); \n Olut karjala1 = new Olut(), karjala2 = new Olut(); \n assertEquals(\"From: Oluet line: 36\", 0, oluet.getLkm()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 37\", 1, oluet.getLkm()); \n oluet.lisaa(karjala2); assertEquals(\"From: Oluet line: 38\", 2, oluet.getLkm()); \n assertEquals(\"From: Oluet line: 39\", 2, oluet.getAlkiot()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 40\", 3, oluet.getLkm()); \n assertEquals(\"From: Oluet line: 41\", 4, oluet.getAlkiot()); \n assertEquals(\"From: Oluet line: 42\", karjala1, oluet.tuoOlut(0)); \n assertEquals(\"From: Oluet line: 43\", karjala2, oluet.tuoOlut(1)); \n assertEquals(\"From: Oluet line: 44\", karjala1, oluet.tuoOlut(2)); \n assertEquals(\"From: Oluet line: 45\", false, oluet.tuoOlut(1) == karjala1); \n assertEquals(\"From: Oluet line: 46\", true, oluet.tuoOlut(1) == karjala2); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 47\", 4, oluet.getLkm()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 48\", 5, oluet.getLkm()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 49\", 6, oluet.getLkm()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 50\", 7, oluet.getLkm()); \n }", "@Test(enabled=false)\n\tpublic void objectPost() {\t\n\t\tPosts posts = new Posts(\"3\", \"Seahawks\", \"Wilson\");\n\t\t\n\t\tResponse res = given().\n\t\twhen().\n\t\tcontentType(ContentType.JSON).\n\t\tbody(posts).\n\t\tpost(\"http://localhost:3000/posts/\");\n\t\n\t\tSystem.out.println(\"Response as object: \"+res.asString());\n\t}", "private void TestBasic() {\n\n\t\tPartTimeEmployee e = new PartTimeEmployee(1, \"One\", 40, 8.75);\n\t\tString result = new String();\n\t\t\n\t\tresult = \" Constructor :\\n\"\n\t\t\t+ String.format(\" %s\\n\", \"PartTimeEmployee(1, \\\"One\\\", 40, 8.75)\")\n\t\t\t+ String.format(\" toString() :\\n\")\t\t\n\t\t\t+ String.format(\" %s\\n\", e)\n\t\t\t+ String.format(\" Attributes :\\n\")\t\n\t\t\t+ String.format(\" %-12s : %s\\n\", \"id\", e.getID())\n\t\t\t+ String.format(\" %-12s : %s\\n\", \"name\", e.getName())\n\t\t\t+ String.format(\" %-12s : %s\\n\", \"hours\", e.getHours())\n\t\t\t+ String.format(\" %-12s : %s\\n\", \"rate\", e.getRate())\n\t\t\t+ String.format(\" Calculated attributes:\\n\")\t\n\t\t\t+ String.format(\" %-12s : %,.2f\\n\", \"salary\", e.calculateSalary());\n\t\tout.print(result);\n\t}", "@Test\r\n public void testCrear() throws Exception {\r\n System.out.println(\"crear\");\r\n String pcodigo = \"bravos\";\r\n String pnombre = \"Arreglar bumper\";\r\n String tipo = \"Enderazado\";\r\n Date pfechaAsignacion = new Date(Calendar.getInstance().getTimeInMillis());\r\n String pplacaVehiculo = \"TX-101\";\r\n MultiReparacion instance = new MultiReparacion();\r\n Reparacion expResult = new Reparacion(pcodigo, pnombre,tipo,pfechaAsignacion,pplacaVehiculo);\r\n Reparacion result = instance.crear(pcodigo, pnombre, tipo, pfechaAsignacion, pplacaVehiculo);\r\n \r\n assertEquals(expResult.getCodigo(), result.getCodigo());\r\n assertEquals(expResult.getNombre(), result.getNombre());\r\n assertEquals(expResult.getTipo(), result.getTipo());\r\n assertEquals(expResult.getPlacaVehiculo(), result.getPlacaVehiculo());\r\n assertEquals(expResult.getFechaAsignacion(), result.getFechaAsignacion());\r\n // TODO review the generated test code and remove the default call to fail.\r\n //fail(\"The test case is a prototype.\");\r\n }", "private void t4(MoreTests o) {\n // any instance includes instance\n readAnyInstance();\n readFrom(this);\n readFrom(o);\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n JSTerm jSTerm0 = new JSTerm();\n JSSubstitution jSSubstitution0 = new JSSubstitution();\n jSTerm0.add((Object) \"c\");\n jSTerm0.isEmpty();\n jSSubstitution0.add((Object) \"c\");\n jSTerm0.add((Object) null);\n Object[] objectArray0 = new Object[3];\n objectArray0[0] = (Object) jSTerm0;\n objectArray0[0] = (Object) jSTerm0;\n objectArray0[2] = (Object) jSTerm0;\n jSTerm0.toArray(objectArray0);\n StringReader stringReader0 = new StringReader(\"aW$w)\");\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(stringReader0);\n JSTerm jSTerm1 = new JSTerm(streamTokenizer0);\n JSPredicateForm jSPredicateForm0 = jSTerm1.clonePF();\n JSPredicateForm jSPredicateForm1 = jSPredicateForm0.applySubstitutionPF(jSSubstitution0);\n jSTerm1.containsAll(jSPredicateForm1);\n // Undeclared exception!\n try { \n jSTerm0.print();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"umd.cs.shop.JSTerm\", e);\n }\n }", "@Test\r\n\tpublic void toStringValid() {\r\n\t\ttestObj.addNativeField(0);\r\n\t\ttestObj.addNativeField(1);\r\n\t\ttestObj.addRelatedTable(0);\r\n\t\ttestObj.addRelatedTable(1);\r\n\t\ttestObj.makeArrays();\r\n\t\ttestObj.toString();\r\n\t\tassertEquals(\"Output string should have valid data\", \"Table: 1\\r\\n{\\r\\nTableName: test\\r\\nNativeFields: 0|1\\r\\nRelatedTables: 0|1\\r\\nRelatedFields: 0|0\\r\\n}\\r\\n\", testObj.toString());\r\n\t}", "public static void main(String[] args) {\n\t\tHeros h1 = new Heros(\"timi\", 123.5, 0.8, 100, 95);\r\n\t\tSupports s1 = new Supports(\"daqiao\", 200.2, 0.3, 50, 80, 30);\r\n\t\ts1.healself();\r\n\t\ts1.heal(h1);\r\n\t\tSystem.out.println(h1.life);\r\n\t\tSystem.out.println(s1.life);\r\n\t\ts1.run();\r\n\t\tHeros ssx = new Heros();\r\n\t\tADheros ad1 = new ADheros();\r\n\t\tAPheros ap1 = new APheros();\r\n\t\tssx.kill(ad1);\r\n\t\tssx.kill(ap1);\r\n\t\tItems it1 = new Items(\"Paul\");\r\n\t\tItems it2 = new Items(\"Kobe\", 180);\r\n\t\tSystem.out.println(it1.toString());\r\n\t\tSystem.out.println(it1.equals(s1));\r\n\t\tSystem.out.println(it1.equals(it2));\r\n\t\t\r\n\t\tOuterClass oc1 = new OuterClass(10);\r\n\t\tOuterClass.InnerClass in1 = oc1.new InnerClass(); //内部类实例化的固定格式!\r\n\t\tSystem.out.println(in1.getOa());\r\n\t\toc1.creatClass();\r\n\r\n\t}", "public void testCTOR() {\n\t\tDepartment tester = new Department();\n\t\tassertEquals(tester.getDeparment_name(), \"Nothing\");\n\t\tassertEquals(tester.getDID(), 0);\n\t}", "public static void main(String[] args) \n\t{\n\t\tArticulo primero=new Articulo(1,\"primer articulo\");\n\t\tArticulo segundo=new Articulo(2,\"segundo articulo\");\n\t\tArticulo tercero=new Articulo(3,\"tercer articulo\");\n\t\t\n\t\t//almacenar estos objetos de tipo articulo en una coleccion TreeSet e imprimirlos para ver en que\n\t\t//orden lo imprimen\n\t\tSet<Articulo> ordenaArticulos=new TreeSet<Articulo>();\n\t\t\n\t\t//agregamos elemntos creadosde tipo articulos a esta coleccion es lo mismo en el orden que lo \n\t\t//agreguemos ya que con el metodo compareTo que implementa la clase articulo los ordena por \n\t\t//numero de articulo que le pasemos por parametro\n\t\tordenaArticulos.add(primero);\n\t\tordenaArticulos.add(tercero);\n\t\tordenaArticulos.add(segundo);\n\t\t\n\t\tfor(Articulo e:ordenaArticulos) \n\t\t{\n\t\t\tSystem.out.println(e.getDescripcion());\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "@Test\n public void testObjectResourceConversion() throws RepositoryException {\n assertExtract(\"/html/rdfa/object-resource-test.html\");\n logger.debug(dumpModelToTurtle());\n assertContains(null, FOAF.getInstance().page, RDFUtils.iri(\"http://en.wikipedia.org/New_York\"));\n }", "public static void main(String[] args) {\n\t\t\n\t\tTutor Branden = new Tutor(\"Branden\", 20);\n\t\tTutee Dan = new Tutee(\"Dan\", 20);\n\t\tTutee Kelvin = new Tutee(\"Kelvin\", 19);\n\t\t\n\t\tPet Snoopie = new Cat(\"Snoopie\", 14, Branden);\n\t\t\n\t\tBranden.addTutee(Dan);\n\t\tBranden.addTutee(Kelvin);\n\t\t\n\t\tSystem.out.println(Branden.getPets());\n\t\t\n\t\tSystem.out.println(Branden.getName());\n\t\t\n\t\tSystem.out.println(Branden.getTutees());\n\t\t\n\t\tSystem.out.println(Kelvin.getTutors());\n\t\t\n\n\t}", "@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}", "@Test\n public void test_constructor_0(){\n\tSystem.out.println(\"Testing TracerIsotopes's enumerations and getters.\");\n //Tests if values are correct for all enumerations, and tests the getters as well. You cannot instantiate new inumerations.\n \n TracerIsotopes ave=TracerIsotopes.concPb205t;\n assertEquals(\"concPb205t\",ave.getName());\n\n ave=TracerIsotopes.concU235t;\n assertEquals(\"concU235t\",ave.getName());\n \n ave=TracerIsotopes.concU236t;\n assertEquals(\"concU236t\",ave.getName()); \n \n String[] list=TracerIsotopes.getNames();\n assertEquals(\"concPb205t\",list[0]);\n assertEquals(\"concU235t\",list[1]);\n assertEquals(\"concU236t\",list[2]);\n \n \n \n }", "@SuppressWarnings(\"null\")\n\tpublic static void main(String[] args) throws Throwable {\n\n\t\tUnderstandObject uso = new UnderstandObject();\n\t\tUnderstandObject uso1 = new UnderstandObject();\n\t\t\n\t/*uso = null;\n\tuso1 = null;*/\n\t\t/*System.out.println(uso.toString());\n\t\tSystem.out.println(uso1.toString());*/\n\t\t\n\t\t//System.out.println(uso1.equals(uso));\n\t\t\n\t\tSystem.gc();\n\t\t//System.out.println(uso);\n\t\t//System.out.println(uso);\n\n\t\t\n\t}", "public static void main(String[] args) {\ndataConversion dt=new dataConversion();\r\ndt.StringtoFundamental();\r\ndt.fundamentaltoObject();\r\n\t}", "@Test\n public void testObject()\n throws Exception\n {\n initialize();\n genericTests();\n for (int i = 0; i < 10; i++)\n {\n permutateObjects();\n genericTests();\n } // for\n }", "public static void main(String[] args)\n {\n\n CityBus citybus1 = new CityBus(3.0, 4, 478, 1955, \"Green\", \"Jerry\");\n CityBus citybus2 = new CityBus(3.0, 4, 478, 1955, \"Green\", \"Jerry\");\n Metro metro1 = new Metro(2.5, 14, 212,1965, \"Orange\", \"Steve\", 8, \"Montreal\");\n Metro metro2 = new Metro(3.5, 22, 387,1965, \"Yellow\", \"Sacha\", 8, \"Toronto\");\n Tram tram1 = new Tram(1.5, 11, 356, 1922, \"Blue\", \"Alexander\", 45);\n Tram tram2 = new Tram(1.75, 6, 78, 1987, \"Silver\", \"Jane\", 57);\n Ferry ferry1 = new Ferry(4.5, 3, 1987, \"Barchetta\");\n Ferry ferry2 = new Ferry(5.0, 5, 1982, \"Strangiato\");\n AirCraft aircraft1 = new AirCraft(2.5, 4, AirCraft.maintenanceTypes.Weekly, AirCraft.classTypes.Balloon);\n PublicTransportation publictransportation1 = new PublicTransportation(2.0, 13);\n\n // Displaying the properties of the created objects\n System.out.printf(\"\\nTesting .toString() method...\\n\");\n System.out.printf(\"-------------------------------\\n\");\n\n System.out.println(\"City Bus 1: \" + citybus1);\n System.out.println(\"City Bus 2: \" + citybus2);\n System.out.println(\"Metro 1 : \" + metro1);\n System.out.println(\"Metro 2 : \" + metro2);\n System.out.println(\"Tram 1 : \" + tram1);\n System.out.println(\"Tram 2 : \" + tram2);\n System.out.println(\"Ferry 1 : \" + ferry1);\n System.out.println(\"Ferry 2 : \" + ferry2);\n System.out.println(\"Aircraft 1 : \" + aircraft1);\n System.out.println(\"Public Transportation 1 : \" + publictransportation1);\n\n // Comparing equality of objects\n System.out.printf(\"\\nTesting .equals() method...\\n\");\n System.out.printf(\"-----------------------------\\n\");\n\n if(citybus1.equals(citybus2))\n {\n System.out.println(\"City Bus 1 = City Bus 2.\");\n }\n\n if(! metro1.equals(metro2))\n {\n System.out.println(\"Metro 1 != Metro 2.\");\n }\n\n // Creating an array of objects\n\n PublicTransportation[] testArray = { citybus1,citybus2,metro1,metro2,tram1,tram2,ferry1,ferry2,aircraft1,publictransportation1};\n\n // Looping through the array to find the lowest and the highest cost.\n System.out.printf(\"\\nFinding the lowest and highest cost in array...\\n\");\n System.out.printf(\"-------------------------------------------------\\n\");\n\n int lowestIndex = 0;\n int highestIndex = 0;\n double lowestCost = Integer.MAX_VALUE;\n double highestCost = 0;\n\n for(int i = 0; i < testArray.length; i++)\n {\n if(testArray[i].getTicketPrice() < lowestCost)\n {\n lowestCost = testArray[i].getTicketPrice();\n lowestIndex = i;\n }\n\n if(testArray[i].getTicketPrice() > highestCost)\n {\n highestCost = testArray[i].getTicketPrice();\n highestIndex = i;\n }\n }\n\n System.out.printf(\"The highest cost is $%.2f, from index %d, corresponding to object \\\"%s\\\".\\n\\n\", highestCost, highestIndex, testArray[highestIndex]);\n System.out.printf(\"The lowest cost is $%.2f, from index %d, corresponding to object \\\"%s\\\"\\n\\n\", lowestCost, lowestIndex, testArray[lowestIndex]);\n System.out.println(\"All done!\");\n }", "@Test\n public void productOfferingTermTest() {\n // TODO: test productOfferingTerm\n }", "@Test\n public void TestInfo(){\n THelper helper = mongoTemplate.findById(\"Y1nnMgn\",THelper.class);\n System.out.println(JSONObject.fromObject(helper).toString());\n }", "@Test\n public void testTraduccion() {\n ArrayList<Association<String, String>> arrayAs = new ArrayList<>();\n String in=\"cat\";\n String es=\"gato\";\n Association h=new Association (in, es);\n arrayAs.add(h);\n in=\"ballon\";\n es=\"globo\";\n Association k=new Association (in, es);\n arrayAs.add(k);\n Diccionario dicc = new Diccionario(arrayAs);//al crear un objeto diccionario igualmente se evalua el metodo de AddAss() ya que en el constructor se llama\n String palabrain=\"cat\";\n String expResult=dicc.traduccion(dicc.getRaiz(), palabrain);\n String palabra = \"gato\";\n assertEquals(expResult, palabra);\n }", "public void testbusquedaAvanzada() {\n// \ttry{\n\t \t//indexarODEs();\n\t\t\tDocumentosVO respuesta =null;//this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzada(\"agregatodos identificador:es-ma_20071119_1_9115305\", \"\"));\n\t\t\t/*\t\tObject [ ] value = { null } ;\n\t\t\tPropertyDescriptor[] beanPDs = Introspector.getBeanInfo(ParamAvanzadoVO.class).getPropertyDescriptors();\n\t\t\tString autor=autor\n\t\t\tcampo_ambito=ambito\n\t\t\tcampo_contexto=contexto\n\t\t\tcampo_descripcion=description\n\t\t\tcampo_edad=edad\n\t\t\tcampo_fechaPublicacion=fechaPublicacion\n\t\t\tcampo_formato=formato\n\t\t\tcampo_idiomaBusqueda=idioma\n\t\t\tcampo_nivelEducativo=nivelesEducativos\n\t\t\tcampo_palabrasClave=keyword\n\t\t\tcampo_procesoCognitivo=procesosCognitivos\n\t\t\tcampo_recurso=tipoRecurso\n\t\t\tcampo_secuencia=conSinSecuencia\n\t\t\tcampo_titulo=title\n\t\t\tcampo_valoracion=valoracion\n\t\t\tfor (int j = 0; j < beanPDs.length; j++) {\n\t\t\t\tif(props.getProperty(\"campo_\"+beanPDs[j].getName())!=null){\n\t\t\t\t\tvalue[0]=\"valor a cargar\";\n\t\t\t\t\tsetPropValue(Class.forName(ParamAvanzadoVO.class.getName()).newInstance(), beanPDs[j],value);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\n\t\t\t*/\n//\t\t\tassertEquals(respuesta.getResultados().length, 1);\n//\t\t\t\n//\t\t\tcomprobarRespuesta(respuesta.getResultados()[0]);\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzada(\"pruebatitulo\", \"\"));\n//\t\t\tSystem.err.println(\"aparar\");\n//\t\t\tassertEquals(respuesta.getResultados().length, 1);\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzada(\"pclave\", \"nivel*\"));\n//\t\t\tassertEquals(respuesta.getResultados().length, 1);\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzada(\"pclave\", \"nived*\"));\n//\t\t\tassertNull(respuesta.getResultados());\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzada(\"pclave\", \"nivel\"));\n//\t\t\tassertNotNull(respuesta.getResultados());\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzada(\"\", \"nivel\"));\n//\t\t\tassertNull(respuesta.getResultados());\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzada(\"pclave\", \"}f2e_-i3299(--5\"));\n//\t\t\tassertNull(respuesta.getResultados());\n\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzadaComunidades(\"verso estrofa\", \"universal pepito\",\"\"));\n//\t\t\tassertNull(respuesta.getResultados());\n\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzadaComunidades(\"descwildcard\", \"ambito0\",\"\"));\n//\t\t\tassertEquals(respuesta.getSugerencias().length, 1);\n//\t\t\t\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzadaComunidades(\"desc*\", \"\",\"\"));\n//\t\t\tassertEquals(respuesta.getResultados().length, 2);\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzadaComunidades(\"keywordAvanzado\", \"ambito0\",\"descripcion\"));\n//\t\t\tassertEquals(respuesta.getResultados().length, 1);\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzadaComunidades(\"keywordAvanzado\", \"ambito0\",\"descripcion compuesta\"));\n//\t\t\tassertEquals(respuesta.getResultados().length, 1);\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzadaComunidades(\"keywordAvanzado\", \"ambito0\",\"descripcion pru*\"));\n//\t\t\tassertEquals(respuesta.getResultados().length, 1);\n//\t\t\t\n//\t\t\trespuesta =this.servicio.busquedaAvanzada(generarParametrosBusquedaAvanzadaComunidades(\"descwild*\", \"\",\"\"));\n//\t\t\tassertEquals(respuesta.getResultados().length, 1);\n// \t}catch(Exception e){\n//\t\t \tlogger.error(\"ERROR: fallo en test buscador-->\",e);\n//\t\t\tthrow new RuntimeException(e);\n// \t}finally{\n// \t\teliminarODE(new String [] { \"asdf\",\"hjkl\"});\n// \t}\n\t\t\tassertNull(respuesta);\n }", "public static void main(String[] args) {\n Produto prod1 = new Produto(1, \"coca-cola\",200.99, true, 10 );\n\n //objeto instanciado pelo construtor 2\n Produto prod2 = new Produto();\n prod2.setCodigo(2);\n prod2.setNome(\"Fanta\");\n prod2.setDisponivel(true);\n prod2.setValor(300.88);\n prod2.setQuantidade(10);\n\n System.out.println(\"Empresa dos Produtos: \");\n\n\n }", "private String getObjectString()\n {\n String returnString = \"Objects:\\n\\t\";\n Set<String> keys = items.keySet();\n if(items.size() <= 0) {\n returnString += \"[None]\";\n return returnString;\n }\n for(String item : keys) {\n returnString += \" [\" + item + \"]\";\n }\n return returnString;\n }", "public static void main(String[] args) throws Exception {\n\t\tPerro p1=new Perro();\r\n\t\tPerro p2 =new Perro(\"Chucho\", \"Pastor Aleman\", 3,true);\r\n\t\tPerroPresa pp1=new PerroPresa();\r\n\t\tPerroPresa pp2=new PerroPresa(\"Dientes\",\"pitbull\",5,true);\r\n\t\tpp1.setNombre(\"ŅamŅam\");\r\n\t\tp1.setEdad(-3);\r\n\t\tSystem.out.println(p1.toString());\r\n\t\tSystem.out.println(p2.toString());\r\n\t\tSystem.out.println(pp1.toString());\r\n\t\tpp1.atacar();\r\n\t\tSystem.out.println(pp2.toString());\r\n\t\tpp2.atacar();\r\n\t}", "public void makeTea(){\n size();\n temp();\n type();\n additives();\n }", "@Test\n public void printPetDetailedListTest() {\n\n }", "public T caseTerminal(Terminal object) {\n\t\treturn null;\n\t}", "public static void main(String[] args) {\n\n System.out.println(obj);\n System.out.println(str);\n System.out.println(nc);\n }", "public void testMacronProcess(){\r\n\t\tDSElement<Verbum> e = words.first;\r\n\t\tfor(int i = 0; i<1000; i++){\r\n\t\t\tVerbum v = e.getItem();\r\n\t\t\tSystem.out.println(v.nom + \" \" + v.macrons + \" \" + v.form1);\r\n\t\t\te = e.getNext();\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\r\n System.out.println(Restaurant.getNbResto2Macarons());\r\n System.out.println(ChefCoq.moyenneNbPersonnes());\r\n\r\n /* System.out.println(cuistot.getNom());\r\n System.out.println(cuistot.getRestaurant().getLocalite());\r\n System.out.println(cuistot.anciennete());\r\n System.out.println(cuistot);\r\n System.out.println(cuistot.salaire());\r\n //resto.setNbMacarons(2);\r\n System.out.println(resto);\r\n ChefCoq chef = new ChefCoq(\"Marc Veyrat\",2010,resto,5);\r\n System.out.println(chef);\r\n System.out.println(chef.getNom()); */\r\n\r\n }", "@Test(timeout = 4000)\n public void test10() throws Throwable {\n JSTerm jSTerm0 = new JSTerm();\n JSSubstitution jSSubstitution0 = new JSSubstitution();\n jSTerm0.add((Object) \"umd.cs.shop.JSParserError\");\n jSSubstitution0.add((Object) jSTerm0);\n JSSubstitution jSSubstitution1 = new JSSubstitution();\n JSTerm jSTerm1 = new JSTerm();\n jSTerm1.add((Object) jSTerm0);\n JSJshopVars.exclamation = (-3277);\n JSPredicateForm jSPredicateForm0 = jSTerm0.clonePF();\n JSPredicateForm jSPredicateForm1 = jSTerm0.applySubstitutionPF(jSSubstitution0);\n Object object0 = new Object();\n SystemInUtil.addInputLine(\"umd.cs.shop.JSParserError\");\n jSPredicateForm0.stream();\n Predicate<String> predicate0 = Predicate.isEqual((Object) \"mI!\");\n Predicate<String> predicate1 = predicate0.negate();\n predicate1.negate();\n Predicate<String> predicate2 = predicate1.negate();\n Predicate<String> predicate3 = predicate1.and(predicate0);\n predicate2.or(predicate3);\n SystemInUtil.addInputLine(\"mI!\");\n predicate0.negate();\n JSSubstitution jSSubstitution2 = new JSSubstitution();\n jSTerm0.print();\n jSTerm1.toStr();\n // Undeclared exception!\n try { \n jSPredicateForm1.matches((JSPredicateForm) jSTerm1);\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // umd.cs.shop.JSTerm cannot be cast to java.lang.String\n //\n verifyException(\"umd.cs.shop.JSPredicateForm\", e);\n }\n }", "public static void main(String[] args) {\n BMW bmw = new BMW();\n Tesla tesla = new Tesla();\n Toyota toyota = new Toyota();\n Jeep jeep = new Jeep();\n\n bmw.start();\n tesla.start();\n toyota.start();\n jeep.start();\n\n // create an arraylist of car, and store 3 toyota objetc, 3 bmw objects and 3 Tesla objects\n\n Car car1 = new BMW();\n Car car2 = new Tesla();\n Car car3 = new Toyota();\n Car car4 = new Jeep();\n\n ArrayList<Car> cars = new ArrayList<>();\n cars.addAll(Arrays.asList(car1, car2, car3, car4, bmw, tesla, toyota, jeep));\n\n System.out.println();\n\n }", "public static void main(String[] args) {\n\n\t\tString peopleAndPets = \"C:/people+pets.owl\"; \n\n\t\tString ip = \"localhost\";\n\t\tint port = 8088;\n\n\t\tRacerClient racer = new RacerClient(ip,port);\t\t\n\n\t\ttry {\n\n\t\t\tracer.openConnection();\n\n\t\t\tracer.loggingOn();\n\t\t\tracer.sendRaw(\"(logging-on)\");\n\n\t\t\tracer.fullReset();\n\n\t\t\tracer.owlReadFile(\"\\\"\"+peopleAndPets+\"\\\"\"); \n\n\t\t\tSystem.out.println(racer.taxonomy()); \n\t\t\tSystem.out.println(racer.taxonomy$()); \n\n\t\t\tRacerList<RacerList>\n\t\t\tres1 = (RacerList<RacerList>)\n\t\t\tracer.taxonomy$(); \n\n\t\t\tfor (RacerList triple : res1) {\n\t\t\t\tSystem.out.println(\"--------\"); \n\t\t\t\tSystem.out.println(\"Concept : \"+triple.getValue().get(0)); \n\t\t\t\tSystem.out.println(\"Parents : \"+triple.getValue().get(1)); \n\t\t\t\tSystem.out.println(\"Children: \"+triple.getValue().get(2)); \n\t\t\t} \n\n\t\t\tSystem.out.println(racer.currentAbox()); \n\t\t\tSystem.out.println(racer.currentAbox$()); \n\n\t\t\tracer.instanceM(\"i\",\"C\"); \n\n\t\t\tSystem.out.println(racer.aboxConsistentP()); \n\t\t\tSystem.out.println(racer.aboxConsistentP(racer.currentAbox())); \n\t\t\tSystem.out.println(racer.aboxConsistentMP(racer.currentAbox())); \n\t\t\tSystem.out.println(racer.aboxConsistentP(racer.currentAbox$())); \n\t\t\tSystem.out.println(racer.aboxConsistentMP(racer.currentAbox$())); \n\n\t\t\tSystem.out.println(racer.racerAnswerQuery(\"(?x ?y)\",\n\t\t\t\t\t\"(and (?x #!:person) (?x ?y #!:has_pet))\")); \n\n\t\t\tRacerList<RacerList<RacerList<RacerSymbol>>>\n\t\t\tres2 = (RacerList<RacerList<RacerList<RacerSymbol>>>)\n\t\t\tracer.racerAnswerQuery$(\"(?x ?y)\",\"(and (?x #!:person) (?x ?y #!:has_pet))\"); \n\n\t\t\tfor (RacerList<RacerList<RacerSymbol>> bindings : res2) {\n\t\t\t\tfor (RacerList<RacerSymbol> binding : bindings) {\n\t\t\t\t\tfor (RacerSymbol varval : binding) {\n\t\t\t\t\t\tSystem.out.println(varval);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\n\n\t\t\tSystem.out.println(racer.retrieveM$(\"(?x ?y)\",\n\t\t\t\t\t\"(and (?x #!:person) (?x ?y #!:has_pet))\")); \n\n\t\t\tRacerList<RacerList<RacerList<RacerSymbol>>>\n\t\t\tres2b = (RacerList<RacerList<RacerList<RacerSymbol>>>)\n\t\t\tracer.racerAnswerQuery$(\"(?x ?y)\",\"(and (?x #!:person) (?x ?y #!:has_pet))\"); \n\n\t\t\tfor (RacerList<RacerList<RacerSymbol>> bindings : res2b) {\n\t\t\t\tfor (RacerList<RacerSymbol> binding : bindings) {\n\t\t\t\t\tfor (RacerSymbol varval : binding) {\n\t\t\t\t\t\tSystem.out.println(varval);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(racer.describeAllQueries()); \n\t\t\tSystem.out.println(racer.describeAllQueries(true)); \n\t\t\tSystem.out.println(racer.describeAllQueries(false)); \n\t\t\tSystem.out.println(racer.describeAllQueries$(true)); \n\t\t\tSystem.out.println(racer.describeAllQueries$(\"nil\")); \n\t\t\tSystem.out.println(racer.describeAllQueries$(\"t\")); \n\t\t\tSystem.out.println(racer.describeAllQueries$(new RacerSymbol(\"nil\"))); \n\t\t\tSystem.out.println(racer.describeAllQueries$(new RacerSymbol(\"t\"))); \n\t\t\tSystem.out.println(racer.describeAllQueries(new RacerSymbol(\"nil\"))); \n\t\t\tSystem.out.println(racer.describeAllQueries(new RacerSymbol(\"t\"))); \n\n\t\t\tRacerList res3 = (RacerList)\n\t\t\t\t\tracer.racerAnswerQuery$(\"(?x)\",\n\t\t\t\t\t\t\t\"(?x #!:person)\",\n\t\t\t\t\t\t\t\":how-many\",3,\n\t\t\t\t\t\t\t\":exclude-permutations\",true);\n\n\t\t\tSystem.out.println(res3); \n\n\t\t\tString res4 = \n\t\t\t\t\tracer.racerAnswerQuery(\"(?x)\",\n\t\t\t\t\t\t\t\"(?x #!:person)\",\n\t\t\t\t\t\t\t\":how-many\",3,\n\t\t\t\t\t\t\t\":exclude-permutations\",true);\n\n\t\t\tSystem.out.println(res4); \n\n\t\t\tRacerList<RacerList<RacerResult>>\n\t\t\tres5 = (RacerList<RacerList<RacerResult>>)\n\t\t\tracer.allConceptAssertions$(); \n\n\t\t\tfor (RacerList<RacerResult> ass : res5) {\n\t\t\t\tSystem.out.println(\"-----------\");\n\t\t\t\tSystem.out.println(\"Individual: \"+ass.getValue().get(0)); \n\t\t\t\tSystem.out.println(\"Concept : \"+ass.getValue().get(1)+\" of \"+ass.getValue().get(1).getClass()); \n\n\t\t\t}\n\n\t\t\tRacerList<RacerList<RacerResult>>\n\t\t\tres6 = (RacerList<RacerList<RacerResult>>)\n\t\t\tracer.allAnnotationConceptAssertions$(); \n\n\t\t\tfor (RacerList<RacerResult> ass : res6) {\n\t\t\t\tSystem.out.println(\"-----------\");\n\t\t\t\tSystem.out.println(\"Individual: \"+ass.getValue().get(0)); \n\t\t\t\tSystem.out.println(\"Concept : \"+ass.getValue().get(1)+\" of \"+ass.getValue().get(1).getClass()); \n\n\t\t\t}\n\n\t\t\tracer.withUniqueNameAssumption(); \n\n\t\t\tracer.aboxConsistentP(); \n\n\t\t\tracer.withNrqlSettings(\":how-many-tuples\",1); \n\t\t\tSystem.out.println(racer.racerAnswerQuery$(\"(?x)\",\"(?x #!:person)\")); \n\n\t\t\tracer.endWithNrqlSettings(); \n\n\t\t\tSystem.out.println(racer.racerAnswerQuery$(\"(?x)\",\"(?x #!:person)\")); \n\n\t\t\tRacerList<RacerSymbol> head = new RacerList();\n\t\t\thead.getValue().add(new RacerSymbol(\"?x\")); \n\t\t\tRacerList body = (RacerList)racer.parseRacerAnswer(\"(?x #!:person)\"); \n\t\t\tSystem.out.println(racer.racerAnswerQuery$(head,body)); \n\t\t\tracer.endWithUniqueNameAssumption(); \n\n\t\t\tSystem.out.println(racer.racerAnswerQuery(head,body)); \n\n\t\t\t// sometimes, type casts and dynamic type checks can't be avoided: \n\n\t\t\tfor(String concept : new String[] {\"top\",\"#!:person\",\"#!:mad_cow\",\"bottom\"}) {\n\n\t\t\t\tSystem.out.println(); \n\t\t\t\tSystem.out.println(\"Retrieving instances of \"+concept+\":\"); \n\n\t\t\t\tRacerResult \n\t\t\t\tres7 = (RacerResult)\n\t\t\t\tracer.conceptInstancesM$(concept); \n\n\t\t\t\tif (res7 instanceof RacerSymbol) { // no instances? nil can't be cast in a RacerList!\n\t\t\t\t\tSystem.out.println(\"No instances!\"); \n\t\t\t\t} else {\n\t\t\t\t\tfor (RacerSymbol ind : (RacerList<RacerSymbol>) res7) {\n\t\t\t\t\t\tSystem.out.println(ind); \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(racer.evaluateM$(\"(+ 1 2)\")); \n\n\t\t\tracer.mirror(\"\\\"http://www.people+pets.owl/people+pets.owl\\\"\",\"\\\"file://\"+peopleAndPets+\"\\\"\");\n\n\t\t\tracer.owlReadDocument(\"\\\"http://www.people+pets.owl/people+pets.owl\\\"\");\n\n\t\t\tracer.fullReset();\n\n\t\t\tracer.mirror(racer.RacerStringArgument(\"http://www.people+pets.owl/people+pets.owl\"),\n\t\t\t\t\tracer.RacerStringArgument(\"file://\"+peopleAndPets));\n\n\t\t\tracer.owlReadDocument(racer.RacerStringArgument(\"http://www.people+pets.owl/people+pets.owl\"));\n\n\t\t\tSystem.out.println(racer.describeAbox(racer.currentAbox())); \n\n\t\t\tSystem.out.println(racer.describeAbox(racer.RacerSymbolArgument(\"file://\"+peopleAndPets))); \n\n\t\t\tSystem.out.println(racer.racerAnswerQuery(\n\t\t\t\t\t\"(?x ?y)\",\n\t\t\t\t\t\"(and (?x #!:person) (?x ?y #!:has_pet))\")); \n\n\t\t\tSystem.out.println(racer.describeQuery(racer.RacerSymbolArgument(\":last\"),racer.RacerBooleanArgument(true)));\n\n\t\t\t// System.out.println(racer.exitServer());\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\n\t\t}\n\n\t}", "public Commande_structureSerializationTest(){\n }", "@Test\n public void testAltaEjemplar() {\n System.out.println(\"AltaEjemplar\");\n Date fechaAdquisicion = new Date(1, 10, 2223);\n Date fechaDevolucion = new Date(1, 10, 2220);\n Date fechaPrestamo = new Date(1, 10, 2222);\n String idEjemplar = \"idEjemplar\";\n String localizacion = \"localizacion\";\n String observaciones = \"observaciones\";\n BibliotecarioController instance = new BibliotecarioController();\n \n Ejemplar result = instance.AltaEjemplar(fechaAdquisicion, fechaDevolucion, fechaPrestamo, idEjemplar, localizacion, observaciones);\n assertEquals(fechaAdquisicion, result.getFechaAdquisicion());\n assertEquals(fechaDevolucion, result.getFechaDevolucion());\n assertEquals(fechaPrestamo, result.getFechaPrestamo());\n assertEquals(idEjemplar, result.getIdEjemplar());\n assertEquals(localizacion, result.getLocalizacion());\n assertEquals(observaciones, result.getObservaciones());\n\n }", "@Test\n public void Oriental()throws ParseException\n {\n System.out.println(\"Oriental Dish\");\n //Elementos del plato\n OrientalDish platoOriental;\n platoOriental = new OrientalDish(0.0);\n platoOriental.setBase(new Product(1, \"Shop Suey\", 5000d));\n platoOriental.addOption(new Product(4, \"Pollo Agridulce\", 5800d));\n platoOriental.setSize(Size.FAMILY);\n \n DishBuilder orientalBuilder = new OrientalDishBuilder();\n orientalBuilder.setDish(platoOriental);\n \n DishDirector director = new DishDirector(orientalBuilder);\n //director.create();\n Dish dish = director.getDish();\n assertEquals(32400, dish.getPrice()); \n }", "@Test\n\tpublic void testNullToTerm() {\n\t\tassertTrue(JAVA_NULL.termEquals(jpc.toTerm(null)));\n\t}", "@Test\n public void _objectTest() {\n // TODO: test _object\n }", "public static void main(String[] args) {\n PA obj1 = new PA(); // this are two objects we just created\n Object obj2 = new PA(); //this are two objects we just created\n obj1.go();\n ((PA)obj2).go();\n\n PB obj3 = new PC();\n obj3.go();\n\n ((PC)obj3).math();\n ((PI)obj3).math();\n\n PB obj4 = new PB();\n obj4.go();\n ((PA)obj4).go();\n ((PI)obj4).math();\n\n }" ]
[ "0.5532183", "0.5519202", "0.5510729", "0.54617995", "0.5452188", "0.5361075", "0.534331", "0.5342234", "0.5311128", "0.52881855", "0.5240855", "0.5194492", "0.51918423", "0.51387805", "0.5133769", "0.513172", "0.5126631", "0.5120182", "0.5102224", "0.5095312", "0.50884956", "0.50744736", "0.50541955", "0.50535464", "0.50528705", "0.50521696", "0.5045427", "0.50436616", "0.5038723", "0.50148064", "0.50090057", "0.50044376", "0.5003616", "0.50035316", "0.50012505", "0.49991074", "0.4972808", "0.49721676", "0.4970185", "0.49618834", "0.49584982", "0.49547216", "0.49523342", "0.49516538", "0.49499324", "0.49496755", "0.4935459", "0.4934156", "0.4934002", "0.49328923", "0.49322736", "0.49311242", "0.4931091", "0.49307024", "0.4929126", "0.49276072", "0.4925824", "0.4923464", "0.4918765", "0.49086744", "0.490706", "0.4899674", "0.4898615", "0.4893855", "0.48906922", "0.48893532", "0.48878998", "0.48820344", "0.4877955", "0.48756966", "0.48747867", "0.48733684", "0.48715934", "0.4870542", "0.48658186", "0.48654452", "0.4864247", "0.4863196", "0.48510614", "0.48493457", "0.4843404", "0.48397264", "0.48382023", "0.48363966", "0.48362345", "0.48353058", "0.4825529", "0.4824666", "0.48244962", "0.48217228", "0.4820911", "0.48168337", "0.48166132", "0.48155242", "0.48128322", "0.48115358", "0.48093015", "0.4801326", "0.47991824", "0.4794648" ]
0.499342
36
Define the AMQP addresses where to receive messages.
public Read withAddresses(List<String> addresses) { checkArgument(addresses != null, "addresses can not be null"); checkArgument(!addresses.isEmpty(), "addresses can not be empty"); return builder().setAddresses(addresses).build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMessageAddress(String address);", "@Override public String brokerAddress() { return brokerAddress; }", "public void setReceivers(String[] address) throws MessagingException\r\n {\r\n int size = address.length;\r\n receivers = new InternetAddress[size];\r\n for(int i=0;i<address.length;i++)\r\n {\r\n receivers[i] = new InternetAddress(address[i]);\r\n }\r\n }", "java.lang.String getBrokerAddress();", "private void setupAmqpEndpoits() {\n\n // NOTE : Last Will and Testament Service endpoint is opened only if MQTT client provides will information\n // The receiver on the unique client publish address will be opened only after\n // connection is established (and CONNACK sent to the MQTT client)\n\n // setup and open AMQP endpoint for receiving on unique client control/publish addresses\n ProtonReceiver receiverControl = this.connection.createReceiver(String.format(AmqpReceiverEndpoint.CLIENT_CONTROL_ENDPOINT_TEMPLATE, this.mqttEndpoint.clientIdentifier()));\n ProtonReceiver receiverPublish = this.connection.createReceiver(String.format(AmqpReceiverEndpoint.CLIENT_PUBLISH_ENDPOINT_TEMPLATE, this.mqttEndpoint.clientIdentifier()));\n this.rcvEndpoint = new AmqpReceiverEndpoint(new AmqpReceiver(receiverControl, receiverPublish));\n\n // setup and open AMQP endpoint to Subscription Service\n ProtonSender ssSender = this.connection.createSender(AmqpSubscriptionServiceEndpoint.SUBSCRIPTION_SERVICE_ENDPOINT);\n this.ssEndpoint = new AmqpSubscriptionServiceEndpoint(ssSender);\n\n // setup and open AMQP endpoint for publishing\n ProtonSender senderPubrel = this.connection.createSender(String.format(AmqpPublishEndpoint.AMQP_CLIENT_PUBREL_ENDPOINT_TEMPLATE, this.mqttEndpoint.clientIdentifier()));\n this.pubEndpoint = new AmqpPublishEndpoint(senderPubrel);\n\n this.rcvEndpoint.openControl();\n this.ssEndpoint.open();\n this.pubEndpoint.open();\n }", "public void setReceiverAddress(java.lang.String _receiverAddress)\n {\n receiverAddress = _receiverAddress;\n }", "public void configure() {\n from(\"as2://\" + PATH_PREFIX + \"/listen?requestUriPattern=/\")\n .to(\"mock:as2RcvMsgs\");\n\n // test route processing exception\n Processor failingProcessor = new Processor() {\n public void process(org.apache.camel.Exchange exchange) throws Exception {\n throw new Exception(PROCESSOR_EXCEPTION_MSG);\n }\n };\n from(\"as2://\" + PATH_PREFIX + \"/listen?requestUriPattern=/process_error\")\n .process(failingProcessor)\n .to(\"mock:as2RcvMsgs\");\n\n // test route for listen with custom MDN parameters\n from(\"as2://\" + PATH_PREFIX\n + \"/listen?requestUriPattern=/mdnTest&from=MdnTestFrom&subject=MdnTestSubjectPrefix\")\n .to(\"mock:as2RcvMsgs\");\n }", "@Override\n public void configure() throws Exception {\n\n from(\"activemq:split-cola\").to(\"log:mensaje-recivido-de-active-mq\");\n }", "@Override\r\n protected void configure() {\r\n bindRequiredName(\"LTAS_SERVICE_NAME\", \"LTAS_SERVICE_NAME\");\r\n bindRequiredName(\"RABBITMQ_HOST\", \"RABBITMQ_HOST\");\r\n bindRequiredName(\"RABBITMQ_PORT\", \"RABBITMQ_PORT\");\r\n bindRequiredName(\"RABBITMQ_USERNAME\", \"RABBITMQ_USERNAME\");\r\n bindRequiredName(\"RABBITMQ_PWD\", \"RABBITMQ_PWD\");\r\n bindRequiredName(\"RABBITMQ_VIRTUALHOST\", \"RABBITMQ_VIRTUALHOST\");\r\n\r\n bind(RabbitMQAPI.class);\r\n bind(RabbitMQService.class);\r\n\r\n }", "public abstract InetSocketAddress listeningAddress();", "public void setReceiver(String address) throws MessagingException\r\n {\r\n String[] re = {address};\r\n setReceivers(re);\r\n }", "public String getBindAddress() {\n return agentConfig.getBindAddress();\n }", "public String getMessageAddress();", "private void setBindingKeys(RabbitMQConfiguration config, String queueName) throws IOException {\n for (String bindingKey : config.getBindingKeys()) {\n channel.queueBind(queueName, config.getExchange(), bindingKey);\n }\n }", "public void setReceiverAddress(java.lang.String receiverAddress) {\r\n this.receiverAddress = receiverAddress;\r\n }", "public void setReceiverAddress(String receiverAddress) {\n this.receiverAddress = receiverAddress;\n }", "public void configure() {\n /*from(ServiceDefinitions.EP_SWITCHYARD + ServiceDefinitions.SVC_SEND_RESULT)\n // Bei Mail ist Body ein\n // org.apache.camel.component.exec.ExecResult, daher umwandeln\n // in String.\n .convertBodyTo(String.class)\n .log(\"Received message for 'OutgoingResultRoute' : ${body}\")\n .to(ServiceDefinitions.EP_SWITCHYARD + ServiceDefinitions.SVC_CALL_NAVISION);*/\n }", "public String getReceiverAddress() {\n return receiverAddress;\n }", "public void setAddresses(List<String> addresses) {\n this.addresses = addresses;\n }", "MessageAddress getMessageAddress();", "public void addReplyTo(List<String> addresses) {\n\t\treplyTo.addAll(addresses);\n\t}", "public String rabbitHost();", "public String getAddresses()\n {\n return _addresses;\n }", "public java.lang.String getReceiverAddress()\n {\n return receiverAddress;\n }", "String getQueueManagerHost();", "String getBindAddress() {\n return bindAddress;\n }", "public void setReceivedHelloFrom(ArrayList<Integer> receivedHelloFrom) {\n this.receivedHelloFrom = receivedHelloFrom;\n }", "String addReceiveQueue();", "public void setAddress(org.nhind.config.Address[] address) {\n this.address = address;\n }", "String getXmppAddress();", "public org.nhind.config.Address[] getAddress() {\n return address;\n }", "public static InetSocketAddress getBindAddress(Configuration conf) {\n return conf.getSocketAddr(JHAdminConfig.MR_HISTORY_ADDRESS,\n JHAdminConfig.DEFAULT_MR_HISTORY_ADDRESS,\n JHAdminConfig.DEFAULT_MR_HISTORY_PORT);\n }", "public java.lang.String getReceiverAddress() {\n return receiverAddress;\n }", "public void addReplyTo(String... address) {\n\t\treplyTo.addAll(java.util.Arrays.asList(address));\n\t}", "public void setAddresses(List<Address> addresses) {\r\n\r\n this.addresses = addresses;\r\n\r\n }", "private List<Messages.Address> mapModelAddressToWireAddress(List<byte[]> addresses) {\n return addresses.stream().map(address -> Messages.Address.newBuilder()\n .setPort(6565)\n .setIpAddress(ByteString.copyFrom(address))\n .build())\n .collect(Collectors.toList());\n }", "@java.lang.Deprecated public io.envoyproxy.envoy.config.core.v3.Address getListeningAddresses(int index) {\n if (listeningAddressesBuilder_ == null) {\n return listeningAddresses_.get(index);\n } else {\n return listeningAddressesBuilder_.getMessage(index);\n }\n }", "@Override\n public void receiverAddressChanged(String receiver) {\n }", "@java.lang.Deprecated public java.util.List<io.envoyproxy.envoy.config.core.v3.Address> getListeningAddressesList() {\n if (listeningAddressesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(listeningAddresses_);\n } else {\n return listeningAddressesBuilder_.getMessageList();\n }\n }", "public void setReplyToQueue ( Queue queue )\r\n {\r\n setReplyToDestination ( queue );\r\n }", "public java.lang.String getReceiverAddress() {\n return receiverAddress;\n }", "private void print_addr() {\n try(final DatagramSocket socket = new DatagramSocket()){\n socket.connect(InetAddress.getByName(\"8.8.8.8\"), 10002);\n System.out.println(socket.getLocalAddress().getHostAddress()+\":\"+port);\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n public void configureMessageBroker(MessageBrokerRegistry registry) {\n registry.setApplicationDestinationPrefixes(\"/app\"); //route messages to /app to Spring app message handling methods (see ChatController)\n registry.enableSimpleBroker(\"/topic/\", \"/queue/\"); //route messages to /topic to the in-memory Message Broker\n }", "public interface AddressListener {\n void onAddressReceived();\n}", "public java.lang.String getReceiverAddress() {\r\n return receiverAddress;\r\n }", "public void setAddresses(final SessionContext ctx, final List<Address> value)\n\t{\n\t\tsetProperty(ctx, ADDRESSES,value == null || !value.isEmpty() ? value : null );\n\t}", "public void setFromAddress(String fromAddress)\n {\n _fromAddress = fromAddress;\n }", "public String getReceiveAddr() {\n return receiveAddr;\n }", "public DestAddress[] getPushProxyAddresses()\r\n {\r\n return pushProxyAddresses;\r\n }", "public List<Address> getAddresses(final SessionContext ctx)\n\t{\n\t\tList<Address> coll = (List<Address>)getProperty( ctx, ADDRESSES);\n\t\treturn coll != null ? coll : Collections.EMPTY_LIST;\n\t}", "byte[] getReplyAddress();", "public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setReceiverAddress(java.lang.String value) {\n validate(fields()[19], value);\n this.receiverAddress = value;\n fieldSetFlags()[19] = true;\n return this;\n }", "String getQueueManagerPort();", "java.lang.String getDelegatorAddress();", "java.lang.String getDelegatorAddress();", "private void setRecipients(MimeMessage msg,\n Message.RecipientType recipientType,\n Collection addresses)\n throws MessagingException\n {\n InternetAddress[] recipients;\n Iterator it;\n int i;\n\n if (addresses.size() > 0)\n {\n recipients = new InternetAddress[addresses.size()];\n\n for (i = 0, it = addresses.iterator(); it.hasNext(); i++)\n {\n EmailAddress addr = (EmailAddress) it.next();\n recipients[i] = addr.getInternetAddress();\n }\n\n msg.setRecipients(recipientType, recipients);\n }\n }", "@java.lang.Override\n @java.lang.Deprecated public io.envoyproxy.envoy.config.core.v3.Address getListeningAddresses(int index) {\n return listeningAddresses_.get(index);\n }", "public FakeDns addresses(List<InetAddress> addresses) {\n this.addresses = new ArrayList<>(addresses);\n return this;\n }", "public List<String> getAddresses() throws RemoteException {\n\t\tList<String> addresses = new ArrayList<String>();\n\t\tif (this.registry != null) {\n\t\t\tfor (IServer server : this.serverList.getServers()) {\n\t\t\t\taddresses.add(server.getFullAddress());\n\t\t\t}\n\t\t}\n\t\treturn addresses;\n\t}", "@Override\n \tpublic void setOutboundInterface(InetAddress arg0) {\n \t}", "public void setSenderAddress(java.lang.String senderAddress) {\r\n this.senderAddress = senderAddress;\r\n }", "protected AmqpTransportConfig() {\n\t\tsuper();\n\t}", "@PostConstruct\n private void init() {\n if(properties != null && properties.getOverride()) {\n LOGGER.info(\"############# Override Rabbit MQ Settings #############\");\n\n amqpAdmin.deleteExchange(DIRECT_EXCHANGE);\n amqpAdmin.declareExchange(\n new DirectExchange(DIRECT_EXCHANGE, true, false));\n\n bindingQueue(DIRECT_EXCHANGE, REGISTER_QUEUE,\n DIRECT_REGISTER_ROUTER_KEY);\n bindingQueue(DIRECT_EXCHANGE, SEND_TEMPLATE_EMAIL_QUEUE,\n SEND_TEMPLATE_EMAIL_QUEUE_ROUTER_KEY);\n bindingQueue(DIRECT_EXCHANGE, SUBJECT_REQUEST_VOTE_QUEUE,\n SUBJECT_REQUEST_VOTE_QUEUE_ROUTER_KEY);\n }\n }", "public void setAddr(String addr) {\n this.addr = addr;\n }", "private void loadAddresses() {\n\t\ttry {\n\t\t\torg.hibernate.Session session = sessionFactory.getCurrentSession();\n\t\t\tsession.beginTransaction();\n\t\t\taddresses = session.createCriteria(Address.class).list();\n\t\t\tsession.getTransaction().commit();\n\t\t\tSystem.out.println(\"Retrieved addresses from database:\"\n\t\t\t\t\t+ addresses.size());\n\t\t} catch (Throwable ex) {\n\t\t\tSystem.err.println(\"Can't retrieve address!\" + ex);\n\t\t\tex.printStackTrace();\n\t\t\t// Initialize the message queue anyway\n\t\t\tif (addresses == null) {\n\t\t\t\taddresses = new ArrayList<Address>();\n\t\t\t}\n\t\t}\n\t}", "public void configure() {\n from(INBOUND_URI + \"?serviceClass=\" + WsTwitterService.class.getName())\n .marshal().xmljson() // convert xml to json\n .transform().jsonpath(\"$.query\") // extract arg0 contents\n .removeHeaders(\"*\")\n .setHeader(Exchange.HTTP_METHOD, new SimpleExpression(\"GET\"))\n // Note, prefer HTTP_PATH + to(<uri>) instead of toD(<uri with path>) for easier unit testing\n .setHeader(Exchange.HTTP_PATH, new SimpleExpression(\"/twitter/${body}\"))\n .to(TWITTER_URI)\n .removeHeader(Exchange.HTTP_PATH)\n .convertBodyTo(byte[].class) // load input stream to memory\n .setHeader(Exchange.HTTP_METHOD, new SimpleExpression(\"POST\"))\n .setHeader(\"recipientList\", new SimpleExpression(\"{{env:WS_RECIPIENT_LIST:http4://localhost:8882/filesystem/}}\"))\n .recipientList().header(\"recipientList\")\n .transform().constant(null);\n }", "public List<String> getAddresses() {\n return mIPs;\n }", "private void storeHostAddresses() {\n savedHostAddresses.clear();\n /* port */\n savedPort = portComboBox.getStringValue();\n /* addresses */\n for (final Host host : getBrowser().getClusterHosts()) {\n final GuiComboBox cb = addressComboBoxHash.get(host);\n final String address = cb.getStringValue();\n if (address == null || \"\".equals(address)) {\n savedHostAddresses.remove(host);\n } else {\n savedHostAddresses.put(host, address);\n }\n host.getBrowser().getDrbdVIPortList().add(savedPort);\n }\n }", "public final void setAdresses(List<Address> addresses) {\r\n\t\tthis.addresses = addresses;\r\n\t}", "public void setBindAddress(String bindAddress) {\n agentConfig.setBindAddress(bindAddress);\n }", "InetSocketAddress peerAddress();", "void setupExternalMessages();", "@Override\n\t\t\tpublic Optional<IAMQPQueue> replyTo() {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\n\t\t\tpublic Optional<IAMQPQueue> replyTo() {\n\t\t\t\treturn null;\n\t\t\t}", "public String getSenderAddress() {\n return senderAddress;\n }", "@Override\n public void registerStompEndpoints(StompEndpointRegistry registry) {\n registry.addEndpoint(\"/messages\").withSockJS();\n }", "public interface AmqpServer extends Entity {\n \n /* AMQP protocol version strings. */\n\n String AMQP_0_8 = \"0-8\";\n String AMQP_0_9 = \"0-9\";\n String AMQP_0_9_1 = \"0-9-1\";\n String AMQP_0_10 = \"0-10\";\n String AMQP_1_0 = \"1-0\";\n\n PortAttributeSensorAndConfigKey AMQP_PORT = Attributes.AMQP_PORT;\n\n BasicAttributeSensorAndConfigKey<String> VIRTUAL_HOST_NAME = new BasicAttributeSensorAndConfigKey<String>(\n String.class, \"amqp.virtualHost\", \"AMQP virtual host name\", \"localhost\");\n\n BasicAttributeSensorAndConfigKey<String> AMQP_VERSION = new BasicAttributeSensorAndConfigKey<String>(\n String.class, \"amqp.version\", \"AMQP protocol version\");\n\n String getVirtualHost();\n\n String getAmqpVersion();\n\n Integer getAmqpPort();\n}", "public void setReceived(InetAddress received)\n throws IllegalArgumentException, SipParseException {\n\t if (LogWriter.needsLogging(LogWriter.TRACE_DEBUG))\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \n\t\t\t\"setReceived() \" + received);\n Via via=(Via)sipHeader;\n if (received==null) \n throw new IllegalArgumentException\n (\"JAIN-EXCEPTION: received is null\");\n else { \n String hostName=received.getHostName();\n if (hostName==null) \n throw new IllegalArgumentException\n (\"JAIN-EXCEPTION: hostName is null\");\n else via.setReceived(hostName); \n }\n }", "public abstract List<String> associateAddresses(NodeMetadata node);", "EndpointAddress getDestinationAddress();", "@Override\n public InetSocketAddress localAddressFor(Handle<GameAppContext> that) \n {\n return manager.localAddressFor(that);\n }", "public void setTo(Address... to) {\n setAddressList(FieldName.TO, to);\n }", "@java.lang.Deprecated public java.util.List<? extends io.envoyproxy.envoy.config.core.v3.AddressOrBuilder> \n getListeningAddressesOrBuilderList() {\n if (listeningAddressesBuilder_ != null) {\n return listeningAddressesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(listeningAddresses_);\n }\n }", "@java.lang.Deprecated public io.envoyproxy.envoy.config.core.v3.AddressOrBuilder getListeningAddressesOrBuilder(\n int index) {\n if (listeningAddressesBuilder_ == null) {\n return listeningAddresses_.get(index); } else {\n return listeningAddressesBuilder_.getMessageOrBuilder(index);\n }\n }", "@java.lang.Override\n @java.lang.Deprecated public io.envoyproxy.envoy.config.core.v3.AddressOrBuilder getListeningAddressesOrBuilder(\n int index) {\n return listeningAddresses_.get(index);\n }", "public List<Address> getWatchedAddresses() {\n try {\n List<Address> addresses = new LinkedList<Address>();\n for (Script script : watchedScripts)\n if (script.isSentToAddress())\n addresses.add(script.getToAddress(params));\n return addresses;\n } finally {\n }\n }", "private void setStreamMediaAddressList(){\n\n if (mCallBack != null){\n mCallBack.onGetServerAddressListCompleted(mServerAddressList);\n }\n }", "@Override\n public InetSocketAddress getICERemoteRelayedAddress(String streamName)\n {\n return null;\n }", "@Override\n public void configureMessageBroker(MessageBrokerRegistry registry) {\n registry.enableSimpleBroker(\"/topic/\");\n }", "@Override\n public InetSocketAddress getICELocalRelayedAddress(String streamName)\n {\n return null;\n }", "public Vector<NetworkAddress> getHostAddresses() { return hostAddresses; }", "public void setTo(Collection<Address> to) {\n setAddressList(FieldName.TO, to);\n }", "public List<Address> getAllAddresses() throws BackendException;", "@java.lang.Override\n public java.lang.String getBrokerAddress() {\n java.lang.Object ref = brokerAddress_;\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 brokerAddress_ = s;\n return s;\n }\n }", "@java.lang.Deprecated public Builder setListeningAddresses(\n int index, io.envoyproxy.envoy.config.core.v3.Address value) {\n if (listeningAddressesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureListeningAddressesIsMutable();\n listeningAddresses_.set(index, value);\n onChanged();\n } else {\n listeningAddressesBuilder_.setMessage(index, value);\n }\n return this;\n }", "public void setAddr(String addr) {\n\t\tthis.addr = addr;\n\t}", "public void setAddress(String adrs) {\n address = adrs;\n }", "public String getDefaultEmailRecipients() {\n return defaultEmailRecipients;\n }", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();" ]
[ "0.6433777", "0.59672296", "0.5830117", "0.5819749", "0.57253104", "0.55760765", "0.55511117", "0.5497889", "0.5494294", "0.54871714", "0.5434198", "0.54115427", "0.5399429", "0.53767693", "0.53517526", "0.5345648", "0.53186613", "0.52936757", "0.5233915", "0.5213214", "0.5188504", "0.51735413", "0.51704997", "0.5159385", "0.5156549", "0.515605", "0.5137124", "0.51234114", "0.5117358", "0.51101303", "0.51063377", "0.5089554", "0.5067974", "0.5065816", "0.50559264", "0.505558", "0.5044119", "0.50333244", "0.5026945", "0.50252897", "0.5015716", "0.5014504", "0.50041384", "0.5003036", "0.49908805", "0.49797088", "0.49764982", "0.49726072", "0.49487263", "0.49477834", "0.49375984", "0.49339378", "0.49271291", "0.49027067", "0.49027067", "0.49010286", "0.4898648", "0.48962077", "0.48931503", "0.48864898", "0.48863152", "0.48830953", "0.48758814", "0.48739254", "0.48729932", "0.4848595", "0.48419234", "0.48285833", "0.48273242", "0.4826527", "0.48260364", "0.48148054", "0.48136473", "0.48136473", "0.4807256", "0.48030818", "0.48023814", "0.4797131", "0.4785824", "0.47854024", "0.47849002", "0.4783181", "0.4775441", "0.47706902", "0.47687143", "0.4767579", "0.4756552", "0.4733996", "0.47313455", "0.47280204", "0.47238535", "0.4717867", "0.4711162", "0.4700609", "0.4696667", "0.46879712", "0.4686855", "0.46866798", "0.46819302", "0.46819302", "0.46819302" ]
0.0
-1
set an empty list to messages when deserialize
private void readObject(java.io.ObjectInputStream stream) throws IOException, ClassNotFoundException { trackers = new ArrayList<>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void clearMsg() {\n msg_ = emptyProtobufList();\n }", "private void clearMsg() {\n msg_ = emptyProtobufList();\n }", "public ListeMessage() {\n\t\tmessagesEntrant = new ArrayList<Message>();\n\t\tmessagesSortant = new ArrayList<Message>();\n\t\tmessages = new ArrayList<Message>();\n\t}", "public MatchMessages() {\n messages = new ArrayList<>();\n }", "void removeAll(){\n\t\tmessages.clear();\n\t}", "private void clearMessageId() {\n messageId_ = emptyLongList();\n }", "void resetMessages() {\n this.messageListExpected = new ArrayList<>();\n indexExpected = 0;\n }", "public messageList()\n {\n\n }", "public Builder clearMessages() {\n if (messagesBuilder_ == null) {\n messages_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000004);\n onChanged();\n } else {\n messagesBuilder_.clear();\n }\n return this;\n }", "public Builder clearMessages() {\n if (messagesBuilder_ == null) {\n messages_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n messagesBuilder_.clear();\n }\n return this;\n }", "protected void clearMessages(){\n\t\twMessages.clear();\n\t}", "public void clear() {\r\n messageMap.clear();\r\n }", "private void clearRequests() {\n requests_ = emptyProtobufList();\n }", "public Builder clearList() {\n if (listBuilder_ == null) {\n if (msgCase_ == 5) {\n msgCase_ = 0;\n msg_ = null;\n onChanged();\n }\n } else {\n if (msgCase_ == 5) {\n msgCase_ = 0;\n msg_ = null;\n }\n listBuilder_.clear();\n }\n return this;\n }", "@Override\n\t\t\tpublic IAMQPPublishAction messages(Collection<byte[]> messages) {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\n\t\t\tpublic IAMQPPublishAction messages(Collection<byte[]> messages) {\n\t\t\t\treturn null;\n\t\t\t}", "public final void clear()\n\t{\n\t\tif (messages != null)\n\t\t{\n\t\t\tmessages.clear();\n\t\t}\n\t}", "public void setMessages(List<String> messages) {\n this.messages = messages;\n }", "public Builder clearListResponse() {\n if (listResponseBuilder_ == null) {\n if (msgCase_ == 6) {\n msgCase_ = 0;\n msg_ = null;\n onChanged();\n }\n } else {\n if (msgCase_ == 6) {\n msgCase_ = 0;\n msg_ = null;\n }\n listResponseBuilder_.clear();\n }\n return this;\n }", "public void setMessageList(List<Object> message)\r\n\t{\r\n\t\tthis.messageList = message;\r\n\t}", "private void clearFriendList() {\n friendList_ = emptyProtobufList();\n }", "public List<Object> getMessageList()\r\n\t{\r\n\t\treturn messageList;\r\n\t}", "@Override\n public synchronized List<Message> receiveMessages() {\n ArrayList<Message> temp = new ArrayList<>(queuedMessages);\n queuedMessages.clear();\n return temp;\n }", "@Override\n public String[] getAllMessages() {\n return messages.toArray(new String[0]);\n }", "public ArrayList<Message> getMessages(){\n return messages;\n }", "public void clearMessages() throws RemoteException {\r\n messages.removeAllElements();\r\n }", "public void clearAll() {\r\n msgMapping.clear();\r\n }", "private void setMessages(ArrayListLock messages) {\n this.messages = messages;\n }", "public MessageManager() {\n this.messageList = new HashMap<>();\n }", "public void stopWhenMessageListIsEmpty() {\n\t\tstopWhenMessageListIsEmpty = true;\n\t}", "private void initMsgs() {\n }", "private void initMsgs() {\n }", "public ArrayList<String> getMessages() {return messages;}", "public void getMessages(){\n if(GUI.getInstance().getBusiness().getCurrentChat() != null) {\n Set<? extends IMessageIn> response = GUI.getInstance().getBusiness().getCurrentChat().getMessages();\n if(response != null){\n messages.addAll(response);\n }\n }\n }", "@Override\n\tpublic List<MessagePojo> getMessagesByName(String name) {\n\t\treturn null;\n\t}", "public synchronized void clearPersistentMessages() {\n _persistent.clear();\n }", "public void setMessages(ArrayList<Message> messages) {\n\t\t\n\t\t//Check messages is not null\n\t\tif (messages == null) { System.out.println(\"could not set messages, null\"); return; } \n\t\t\n\t\t//Set messages in network\n\t\tthis.messages = messages;\n\t\t\n\t\t//return\n\t\treturn;\n\t\t\n\t}", "public void deserialize() {\n\t\t\n\t}", "@Override\n\tpublic List<Message> getAll(Object... args) {\n\t\treturn null;\n\t}", "public void removeAllMessages() {\n\t removeMessages(getMessageList().toArray(new BasicMessage[0]));\n\t}", "public LQT_Message_Queue() {\n\ta_list = new LinkedList<LQT_Message>();\n }", "public messages() {\n }", "public void clearReceived() {\n\t\t_received = false;\n\t}", "@Override\n\tpublic List<Message> getMessagesForUser(String username) {\n\t\treturn null;\n\t}", "@Override\n\tpublic int numberOfMessages() {\n\t\treturn 0;\n\t}", "public Builder clearList() {\n list_ = com.google.protobuf.LazyStringArrayList.EMPTY;\n bitField0_ = (bitField0_ & ~0x08000000);\n onChanged();\n return this;\n }", "public ArrayList<Message> getAllmessage(){return allmessage;}", "@SuppressWarnings({ \"rawtypes\" })\n @Override\n public void init(MsgList providedMsgList) {\n \n }", "public Person() {\n\t\tmessagesReceived = new ArrayList<Message>();\n\t\tmessagesSent = new ArrayList<Message>();\n\t}", "public void clearAllMessageAnnotations()\n {\n _messageAnnotationsMap = null;\n _messageAnnotations = null;\n _message.setMessageAnnotations(null);\n }", "public Builder clearMsgData() {\n bitField0_ = (bitField0_ & ~0x00000002);\n msgData_ = getDefaultInstance().getMsgData();\n onChanged();\n return this;\n }", "public void init() {\r\n\t\ttry {\r\n\t\t\tmessages = new ConcurrentLinkedDeque<>();\r\n\t\t\tout = sock.getOutputStream();\r\n\t\t\tin = sock.getInputStream();\t\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tstartMessageThread();\r\n\t}", "public static ArrayList unload() {\n ArrayList<String> messageToSend = new ArrayList<>();\n \n // This copies all elements instead of doing a shallow copy.\n // This is required to empty the arraylist for future messages.\n messageLogger.forEach(element -> {\n messageToSend.add(element);\n });\n messageLogger.clear();\n return messageToSend;\n }", "private void clearMockUpdates() {\n mockUpdates_ = emptyProtobufList();\n }", "@Override\n public void receiveEmptyMessage(final EmptyMessage message) {\n\n }", "public Builder clearMessage() {\n if (messageBuilder_ == null) {\n message_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n } else {\n messageBuilder_.clear();\n }\n return this;\n }", "public Builder clearMessage() {\n if (messageBuilder_ == null) {\n message_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n } else {\n messageBuilder_.clear();\n }\n return this;\n }", "public Builder clearMessage() {\n if (messageBuilder_ == null) {\n message_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n } else {\n messageBuilder_.clear();\n }\n return this;\n }", "public Builder clearMessage() {\n if (messageBuilder_ == null) {\n message_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n } else {\n messageBuilder_.clear();\n }\n return this;\n }", "public Builder clearMessage() {\n if (messageBuilder_ == null) {\n message_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n } else {\n messageBuilder_.clear();\n }\n return this;\n }", "public List init(Map map) {\n\t\treturn apMessageDao.init(map);\r\n\t}", "public void loadMessages() {\n\t\tList<Message> messages = null;\n\t\ttry {\n\t\t\tmessages = msgHelper.getMessages();\n\t\t} catch (URLException e) {\n\t\t\tLog.d(\"MESSAGE\", \"Tried loading messages without a URL configured.\");\n\t\t\tcancelTask();\n\t\t}\n\t\tif (messages == null) {\n\t\t\treturn;\n\t\t}\n\t\tLog.d(\"MESSAGE\", \"Adding messages: \" + messages.size());\n\t\tif (messages.size() > 0) {\n\t\t\taddMessages(messages);\n\t\t}\n\t\t//pruneMessages(messageList, MAX_MESSAGES);\n\t\tupdateHandler.post(updateRunner);\n\t}", "@OneToMany(cascade = CascadeType.ALL, orphanRemoval = true)\n public List<Message> getMessages() {\n return messages;\n }", "private void clearRefundTo() {\n refundTo_ = emptyProtobufList();\n }", "public void setMessages(Messages messages) {\n\n this.messages = messages;\n }", "public java.util.List<if4031.common.Message> getMessagesList() {\n return messages_;\n }", "public Message(){\n this.body = null;\n this.contact = null;\n }", "private void clearContentIdToEmbeddingTokens() {\n contentIdToEmbeddingTokens_ = emptyProtobufList();\n }", "private void clean() {\n aggregatedValues.clear();\n this.numMessageSent = 0;\n this.numMessageReceived = 0;\n }", "public void clearReceivedEvents() {\n this.receivedEvents.clear();\n }", "public synchronized void resetBMessageReceiptList() {\n bMessageReceiptList = null;\n }", "public List<Message> getAllMessages()\n {\n return new ArrayList<>(messages.values());\n }", "protected abstract T _createEmpty(DeserializationContext ctxt);", "public lostFoundList() {\n\tsuper((StringBuilder)null);\n\tinitHeaders();\n\t}", "public List<Message> getMessages() {\n return messages;\n }", "public void setMessages(String[] messages)\n\t{\n\t\tthis.messages = messages;\n\t}", "java.util.List<Res.Msg>\n getMsgList();", "public Builder setList(edu.usfca.cs.dfs.StorageMessages.List value) {\n if (listBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n msg_ = value;\n onChanged();\n } else {\n listBuilder_.setMessage(value);\n }\n msgCase_ = 5;\n return this;\n }", "private void clearUser() {\n user_ = emptyProtobufList();\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }", "final protected Messages getMessages() {\r\n return messages;\r\n }", "@Override\n\tpublic List<MessagePojo> getMessageBySize(int start, int size) {\n\t\treturn null;\n\t}", "@Override\n\tpublic boolean hasMessages() {\n\t\treturn false;\n\t}", "public void MakeOldMessageList(){\n byte[] nb = new byte[]{1};\n ArrayList<Integer> Ids = catalogue.getmasID();\n ArrayList<byte[]> names = catalogue.getCNameMessages();\n for(int b = 0; b < Ids.size(); b++){\n OldMessagesIDs.add(0);\n }\n for(int b = 0; b < names.size(); b++){\n OldMessages.add(nb);\n }\n\n for(int b = 0; b < Ids.size(); b++){\n OldMessagesIDs.set(b,Ids.get(b));\n }\n for(int b = 0; b < names.size(); b++){\n OldMessages.set(b,names.get(b));\n }\n }", "public java.util.List<if4031.common.Message> getMessagesList() {\n if (messagesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(messages_);\n } else {\n return messagesBuilder_.getMessageList();\n }\n }", "private void clearSeenInfo() {\n seenInfo_ = emptyProtobufList();\n }", "@Override\n public void reset() throws IOException {\n lemmaListIndex = 0;\n lemmaList = Collections.emptyList();\n tagsList.clear();\n super.reset();\n }", "public Builder clearData() {\n data_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }", "public Builder clearData() {\n data_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }", "public Builder clearData() {\n data_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }", "public List<String> getMessages() {\n return messages;\n }", "public QueueAdapter() {\n list = new ArrayList<>();\n }", "public PromoMessages() {\n }", "private void clearTransactions() {\n transactions_ = emptyProtobufList();\n }", "public Builder clearVerbs() {\n verbs_ = com.google.protobuf.LazyStringArrayList.EMPTY;\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n return this;\n }", "private void dequeueMessages()\n\t{\n\t\twhile (_msg_queue.size() > 0)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t_ml.messageReceived( (Serializable) _msg_queue.removeFirst());\n\t\t\t}\n\t\t\tcatch (RuntimeException rte)\n\t\t\t{\n\t\t\t\trte.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public Message() {\n\tkey = MessageKey.NULL;\n\tdata = null;\n\n\tattachment = null;\n }" ]
[ "0.69851005", "0.69851005", "0.65361375", "0.6423786", "0.62506765", "0.617341", "0.61262655", "0.61184883", "0.6070493", "0.6008609", "0.59666663", "0.5965641", "0.5944955", "0.5877284", "0.58609647", "0.58609647", "0.585518", "0.58529735", "0.5817401", "0.5806421", "0.58017486", "0.57868254", "0.57658356", "0.57601094", "0.5751398", "0.5732482", "0.5730381", "0.57296777", "0.5720168", "0.57165843", "0.5696896", "0.5696896", "0.56958246", "0.56782454", "0.56773233", "0.5637049", "0.56138664", "0.5589906", "0.5567627", "0.55638963", "0.5563622", "0.5562243", "0.5561582", "0.5539653", "0.5528059", "0.55242145", "0.55236506", "0.5520859", "0.550619", "0.55022675", "0.5496687", "0.54919577", "0.5491315", "0.5472302", "0.547212", "0.5469157", "0.5469157", "0.5469157", "0.5469157", "0.5469157", "0.54595524", "0.54561025", "0.5451524", "0.5417952", "0.541222", "0.53844935", "0.5377314", "0.53754336", "0.5367729", "0.53590786", "0.5358335", "0.53556997", "0.5352583", "0.5340151", "0.5337853", "0.5312527", "0.53112316", "0.5310119", "0.53095716", "0.53003097", "0.53003097", "0.53003097", "0.53003097", "0.53003097", "0.5277237", "0.52720624", "0.5271612", "0.5255751", "0.52548534", "0.5251075", "0.5233691", "0.5229256", "0.5229256", "0.5227152", "0.5226389", "0.52251625", "0.5223638", "0.52214026", "0.5217573", "0.5213653", "0.5209614" ]
0.0
-1
amqp is a queue system, so, it's possible to have multiple concurrent sources, even if they bind the listener
@Override public List<UnboundedAmqpSource> split(int desiredNumSplits, PipelineOptions pipelineOptions) { List<UnboundedAmqpSource> sources = new ArrayList<>(); for (int i = 0; i < Math.max(1, desiredNumSplits); ++i) { sources.add(new UnboundedAmqpSource(spec)); } return sources; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface MqConsumer {\n}", "@Test\n public void startedSenderReceivingEventsWhileStartingShouldDrainQueues()\n throws Exception {\n Integer lnPort = vm0.invoke(() -> WANTestBase.createFirstLocatorWithDSId(2));\n Integer nyPort = vm1.invoke(() -> WANTestBase.createFirstRemoteLocator(1, lnPort));\n\n createCacheInVMs(lnPort, vm2, vm4);\n createReceiverInVMs(vm2, vm4);\n createCacheInVMs(nyPort, vm3, vm5);\n createReceiverInVMs(vm3, vm5);\n\n vm2.invoke(() -> WANTestBase.createSender(\"ny\", 1, true, 100, 10, false, false, null, true));\n vm4.invoke(() -> WANTestBase.createSender(\"ny\", 1, true, 100, 10, false, false, null, true));\n\n vm3.invoke(() -> WANTestBase.createSender(\"ln\", 2, true, 100, 10, false, false, null, true));\n vm5.invoke(() -> WANTestBase.createSender(\"ln\", 2, true, 100, 10, false, false, null, true));\n\n vm2.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny\", 1, 100,\n isOffHeap()));\n vm4.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny\", 1, 100,\n isOffHeap()));\n\n vm3.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln\", 1, 100,\n isOffHeap()));\n vm5.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln\", 1, 100,\n isOffHeap()));\n\n AsyncInvocation<Void> inv =\n vm2.invokeAsync(() -> WANTestBase.doPuts(getTestMethodName() + \"_PR\", 1000));\n startSenderInVMsAsync(\"ny\", vm2, vm4);\n inv.await();\n\n vm2.invoke(() -> WANTestBase.verifyTmpDroppedEventSize(\"ny\", 0));\n vm4.invoke(() -> WANTestBase.verifyTmpDroppedEventSize(\"ny\", 0));\n\n vm2.invoke(() -> WANTestBase.validateParallelSenderQueueAllBucketsDrained(\"ny\"));\n vm4.invoke(() -> WANTestBase.validateParallelSenderQueueAllBucketsDrained(\"ny\"));\n }", "protected void addChannelToReadCompletePendingQueue() {\n/* 354 */ while (!Http2MultiplexHandler.this.readCompletePendingQueue.offer(this)) {\n/* 355 */ Http2MultiplexHandler.this.processPendingReadCompleteQueue();\n/* */ }\n/* */ }", "@Test\n public void testEvent() throws EventDeliveryException, MQBrokerException, MQClientException, InterruptedException, UnsupportedEncodingException, RemotingException {\n DefaultMQProducer producer = new DefaultMQProducer(producerGroup);\n producer.setNamesrvAddr(nameServer);\n String sendMsg = \"\\\"Hello Flume\\\"\" + \",\" + DateFormatUtils.format(new Date(), \"yyyy-MM-dd hh:mm:ss\");\n producer.start();\n Message msg = new Message(TOPIC_DEFAULT, tag, sendMsg.getBytes(\"UTF-8\"));\n SendResult sendResult = producer.send(msg);\n\n // start source\n Context context = new Context();\n context.put(NAME_SERVER_CONFIG, nameServer);\n context.put(TAG_CONFIG, tag);\n Channel channel = new MemoryChannel();\n Configurables.configure(channel, context);\n List<Channel> channels = new ArrayList<>();\n channels.add(channel);\n ChannelSelector channelSelector = new ReplicatingChannelSelector();\n channelSelector.setChannels(channels);\n ChannelProcessor channelProcessor = new ChannelProcessor(channelSelector);\n\n RocketMQSource source = new RocketMQSource();\n source.setChannelProcessor(channelProcessor);\n Configurables.configure(source, context);\n\n source.start();\n\n // wait for rebalanceImpl start\n Thread.sleep(2000);\n\n sendMsg = \"\\\"Hello Flume\\\"\" + \",\" + DateFormatUtils.format(new Date(), \"yyyy-MM-dd hh:mm:ss\");\n msg = new Message(TOPIC_DEFAULT, tag, sendMsg.getBytes(\"UTF-8\"));\n sendResult = producer.send(msg);\n log.info(\"publish message : {}, sendResult:{}\", sendMsg, sendResult);\n\n PollableSource.Status status = source.process();\n if (status == PollableSource.Status.BACKOFF) {\n fail(\"Error\");\n }\n /*\n wait for processQueueTable init\n */\n Thread.sleep(1000);\n\n producer.shutdown();\n source.stop();\n\n\n /*\n mock flume sink\n */\n Transaction transaction = channel.getTransaction();\n transaction.begin();\n Event event = channel.take();\n if (event == null) {\n transaction.commit();\n fail(\"Error\");\n }\n byte[] body = event.getBody();\n String receiveMsg = new String(body, \"UTF-8\");\n log.info(\"receive message : {}\", receiveMsg);\n\n assertEquals(sendMsg, receiveMsg);\n }", "String addReceiveQueue();", "@Test\n public void startedSenderReceivingEventsWhileStoppingShouldDrainQueues()\n throws Exception {\n Integer lnPort = vm0.invoke(() -> WANTestBase.createFirstLocatorWithDSId(2));\n Integer nyPort = vm1.invoke(() -> WANTestBase.createFirstRemoteLocator(1, lnPort));\n\n createCacheInVMs(lnPort, vm2, vm4);\n createReceiverInVMs(vm2, vm4);\n createCacheInVMs(nyPort, vm3, vm5);\n createReceiverInVMs(vm3, vm5);\n\n vm2.invoke(() -> WANTestBase.createSender(\"ny\", 1, true, 100, 10, false, false, null, false));\n vm4.invoke(() -> WANTestBase.createSender(\"ny\", 1, true, 100, 10, false, false, null, false));\n\n vm3.invoke(() -> WANTestBase.createSender(\"ln\", 2, true, 100, 10, false, false, null, false));\n vm5.invoke(() -> WANTestBase.createSender(\"ln\", 2, true, 100, 10, false, false, null, false));\n\n vm2.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny\", 1, 100,\n isOffHeap()));\n vm4.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny\", 1, 100,\n isOffHeap()));\n\n vm3.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln\", 1, 100,\n isOffHeap()));\n vm5.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln\", 1, 100,\n isOffHeap()));\n\n AsyncInvocation<Void> inv =\n vm2.invokeAsync(() -> WANTestBase.doPuts(getTestMethodName() + \"_PR\", 1000));\n stopSenderInVMsAsync(\"ny\", vm2, vm4);\n inv.await();\n\n startSenderInVMsAsync(\"ny\", vm2, vm4);\n\n vm2.invoke(() -> WANTestBase.verifyTmpDroppedEventSize(\"ny\", 0));\n vm4.invoke(() -> WANTestBase.verifyTmpDroppedEventSize(\"ny\", 0));\n\n vm2.invoke(() -> WANTestBase.validateParallelSenderQueueAllBucketsDrained(\"ny\"));\n vm4.invoke(() -> WANTestBase.validateParallelSenderQueueAllBucketsDrained(\"ny\"));\n }", "@Bean\n public SimpleMessageListenerContainer containeraaaaa(@Qualifier(\"myqueue\") Queue queue,\n ConnectionFactory connectionFactory) {\n SimpleMessageListenerContainer cont = new SimpleMessageListenerContainer(connectionFactory);\n cont.addQueues(queue);\n return cont;\n }", "protected void onQueued() {}", "public void onQueue();", "RequestSender onRefuse(Consumer<Message> consumer);", "String nameOfListenQueue();", "@Override\n public void run() {\n ZMQ.Context context = ZMQ.context(2);\n\n ZMQ.Socket publisher = context.socket(ZMQ.PUB);\n publisher.setAffinity(1);\n publisher.setHWM(0);\n publisher.bind(\"tcp://*:5556\");\n //publisher.bind(\"ipc://weather\");\n\n ZMQ.Socket incoming = context.socket(ZMQ.PULL);\n incoming.setHWM(0);\n incoming.setAffinity(2);\n incoming.bind(\"tcp://*:5557\");\n\n System.out.println(\"Sequencer is alive\");\n\n ZMQ.proxy(incoming, publisher, null);\n // while (! Thread.currentThread().isInterrupted()) {\n // byte[] data = incoming.recv(0);\n // //System.out.printf(\"Received message with %d bytes\\n\", data.length);\n // publisher.send(data, 0);\n // }\n\n publisher.close();\n incoming.close();\n context.term();\n }", "public interface HoldBackQueueListener {\n public void messagePutInHoldBackQueue(Message message);\n public void messageRemovedFromHoldBackQueue(Message message);\n}", "public void drain() {\r\n if (getAndIncrement() == 0) {\r\n SimpleQueue<T> simpleQueue = this.queue;\r\n int i = this.consumed;\r\n int i2 = this.bufferSize;\r\n int i3 = i2 - (i2 >> 2);\r\n boolean z = this.sourceMode != 1;\r\n int i4 = 1;\r\n int i5 = i;\r\n SimpleQueue<T> simpleQueue2 = simpleQueue;\r\n int i6 = i5;\r\n while (true) {\r\n if (simpleQueue2 != null) {\r\n long j = LongCompanionObject.MAX_VALUE;\r\n InnerSubscription[] innerSubscriptionArr = (InnerSubscription[]) this.subscribers.get();\r\n boolean z2 = false;\r\n for (InnerSubscription innerSubscription : innerSubscriptionArr) {\r\n long j2 = innerSubscription.get();\r\n if (j2 != Long.MIN_VALUE) {\r\n j = Math.min(j2 - innerSubscription.emitted, j);\r\n z2 = true;\r\n }\r\n }\r\n long j3 = 0;\r\n if (!z2) {\r\n j = 0;\r\n }\r\n while (true) {\r\n if (j == j3) {\r\n break;\r\n }\r\n boolean z3 = this.done;\r\n try {\r\n Object poll = simpleQueue2.poll();\r\n boolean z4 = poll == null;\r\n if (!checkTerminated(z3, z4)) {\r\n if (z4) {\r\n break;\r\n }\r\n int length = innerSubscriptionArr.length;\r\n for (int i7 = 0; i7 < length; i7++) {\r\n InnerSubscription innerSubscription2 = innerSubscriptionArr[i7];\r\n if (!innerSubscription2.isCancelled()) {\r\n innerSubscription2.downstream.onNext(poll);\r\n innerSubscription2.emitted++;\r\n }\r\n }\r\n if (z) {\r\n i6++;\r\n if (i6 == i3) {\r\n ((Subscription) this.upstream.get()).request((long) i3);\r\n i6 = 0;\r\n }\r\n }\r\n j--;\r\n if (innerSubscriptionArr != this.subscribers.get()) {\r\n break;\r\n }\r\n j3 = 0;\r\n } else {\r\n return;\r\n }\r\n } catch (Throwable th) {\r\n Throwable th2 = th;\r\n Exceptions.throwIfFatal(th2);\r\n ((Subscription) this.upstream.get()).cancel();\r\n simpleQueue2.clear();\r\n this.done = true;\r\n signalError(th2);\r\n return;\r\n }\r\n }\r\n if (checkTerminated(this.done, simpleQueue2.isEmpty())) {\r\n return;\r\n }\r\n }\r\n this.consumed = i6;\r\n i4 = addAndGet(-i4);\r\n if (i4 != 0) {\r\n if (simpleQueue2 == null) {\r\n simpleQueue2 = this.queue;\r\n }\r\n } else {\r\n return;\r\n }\r\n }\r\n }\r\n }", "public interface MessagingQueueListener {\n\n void onMessage(MessageEvent messageEvent);\n}", "public interface PoolingQueueService {\n\n void setIMessageProcessor(final IMessageProcessor iMessageProcessor) throws PoolingQueueException;\n\n MessageMapper cconn(String serialNumber, String contentType, MessageMapper messageMapper);\n\n MessageMapper cpull(String serialNumber);\n\n MessageMapper cpush(String serialNumber, String applicationID, String broadcast, String contentType, MessageMapper messageMapper);\n\n MessageMapper aconn(String serialNumber, String applicationID, String contentType, MessageMapper messageMapper);\n\n MessageMapper apull(String serialNumber, String applicationID, String messageAmount);\n\n MessageMapper apush(String serialNumber, String applicationID, String contentType, MessageMapper messageMapper);\n\n}", "@Override\n public void onDrainComplete()\n {\n }", "public Channel(String name) {\n this.name = name;\n q = new ArrayBlockingQueue(1);\n senderMonitor = new Object();\n\n }", "@Test\n public void subscribe_multiple() throws AblyException {\n /* Ably instance that will emit channel messages */\n AblyRealtime ably1 = null;\n /* Ably instance that will receive channel messages */\n AblyRealtime ably2 = null;\n\n String channelName = \"test.channel.subscribe.multiple\" + System.currentTimeMillis();\n Message[] messages = new Message[] {\n new Message(\"name1\", \"Lorem ipsum dolor sit amet,\"),\n new Message(\"name2\", \"Consectetur adipiscing elit.\"),\n new Message(\"name3\", \"Pellentesque nulla lorem.\")\n };\n\n String[] messageNames = new String[] {\n messages[0].name,\n messages[1].name,\n messages[2].name\n };\n\n try {\n ClientOptions option1 = createOptions(testVars.keys[0].keyStr);\n option1.clientId = \"emitter client\";\n ClientOptions option2 = createOptions(testVars.keys[0].keyStr);\n option2.clientId = \"receiver client\";\n\n ably1 = new AblyRealtime(option1);\n ably2 = new AblyRealtime(option2);\n\n Channel channel1 = ably1.channels.get(channelName);\n channel1.attach();\n new ChannelWaiter(channel1).waitFor(ChannelState.attached);\n\n Channel channel2 = ably2.channels.get(channelName);\n channel2.attach();\n new ChannelWaiter(channel2).waitFor(ChannelState.attached);\n\n /* Create a listener that collect received messages */\n ArrayList<Message> receivedMessageStack = new ArrayList<>();\n MessageListener listener = new MessageListener() {\n List<Message> messageStack;\n\n @Override\n public void onMessage(Message message) {\n messageStack.add(message);\n }\n\n public MessageListener setMessageStack(List<Message> messageStack) {\n this.messageStack = messageStack;\n return this;\n }\n }.setMessageStack(receivedMessageStack);\n channel2.subscribe(messageNames, listener);\n\n /* Start emitting channel with ably client 1 (emitter) */\n channel1.publish(\"nonTrackedMessageName\", \"This message should be ignore by second client (ably2).\", null);\n channel1.publish(messages, null);\n channel1.publish(\"nonTrackedMessageName\", \"This message should be ignore by second client (ably2).\", null);\n\n /* Wait until receiver client (ably2) observes {@code Message}\n * on subscribed channel (channel2) emitted by emitter client (ably1)\n */\n new Helpers.MessageWaiter(channel2).waitFor(messages.length + 2);\n\n /* Validate that,\n * - we received specific messages\n */\n assertThat(receivedMessageStack.size(), is(equalTo(messages.length)));\n\n Collections.sort(receivedMessageStack, messageComparator);\n for (int i = 0; i < messages.length; i++) {\n Message message = messages[i];\n if(Collections.binarySearch(receivedMessageStack, message, messageComparator) < 0) {\n fail(\"Unable to find expected message: \" + message);\n }\n }\n } finally {\n if (ably1 != null) ably1.close();\n if (ably2 != null) ably2.close();\n }\n }", "@CallByThread(\"Netty EventLoop\")\n @Override\n public void run() {\n if (referenced > 0) { // is blocking\n incomingPublishService.drain();\n }\n }", "public interface ConnectionEventListener {\n /** \n * Called on all listeners when a connection is made or broken. \n */\n void connectionActivity(ConnectionEvent ce);\n}", "public interface StreamSource {\n\n /**\n * Gets new streams. This should be called only if one of the streams \n * is dead. \n * @throws TransportException\n */\n void connect() throws TransportException;\n \n /**\n * Closes streams and underlying connections. \n * @throws TransportException\n */\n void disconnect() throws TransportException;\n \n /**\n * @return the stream to which we write outbound messages. \n * @throws TransportException\n */\n OutputStream getOutboundStream() throws TransportException;\n\n /**\n * @return the stream to which we expect the remote server to send messages. \n * @throws TransportException\n */\n InputStream getInboundStream() throws TransportException;\n \n}", "@Test\n public void subscribe_all() throws AblyException {\n /* Ably instance that will emit channel messages */\n AblyRealtime ably1 = null;\n /* Ably instance that will receive channel messages */\n AblyRealtime ably2 = null;\n\n String channelName = \"test.channel.subscribe.all\" + System.currentTimeMillis();\n Message[] messages = new Message[]{\n new Message(\"name1\", \"Lorem ipsum dolor sit amet,\"),\n new Message(\"name2\", \"Consectetur adipiscing elit.\"),\n new Message(\"name3\", \"Pellentesque nulla lorem.\")\n };\n\n try {\n ClientOptions option1 = createOptions(testVars.keys[0].keyStr);\n option1.clientId = \"emitter client\";\n ClientOptions option2 = createOptions(testVars.keys[0].keyStr);\n option2.clientId = \"receiver client\";\n\n ably1 = new AblyRealtime(option1);\n ably2 = new AblyRealtime(option2);\n\n Channel channel1 = ably1.channels.get(channelName);\n channel1.attach();\n new ChannelWaiter(channel1).waitFor(ChannelState.attached);\n\n Channel channel2 = ably2.channels.get(channelName);\n channel2.attach();\n new ChannelWaiter(channel2).waitFor(ChannelState.attached);\n\n /* Create a listener that collects received messages */\n ArrayList<Message> receivedMessageStack = new ArrayList<>();\n MessageListener listener = new MessageListener() {\n List<Message> messageStack;\n\n @Override\n public void onMessage(Message message) {\n messageStack.add(message);\n }\n\n public MessageListener setMessageStack(List<Message> messageStack) {\n this.messageStack = messageStack;\n return this;\n }\n }.setMessageStack(receivedMessageStack);\n\n channel2.subscribe(listener);\n\n /* Start emitting channel with ably client 1 (emitter) */\n channel1.publish(messages, null);\n\n /* Wait until receiver client (ably2) observes {@code }\n * is emitted from emitter client (ably1)\n */\n new Helpers.MessageWaiter(channel2).waitFor(messages.length);\n\n /* Validate that,\n * - we received every message that has been published\n */\n assertThat(receivedMessageStack.size(), is(equalTo(messages.length)));\n\n Collections.sort(receivedMessageStack, messageComparator);\n for (int i = 0; i < messages.length; i++) {\n Message message = messages[i];\n if(Collections.binarySearch(receivedMessageStack, message, messageComparator) < 0) {\n fail(\"Unable to find expected message: \" + message);\n }\n }\n } finally {\n if (ably1 != null) ably1.close();\n if (ably2 != null) ably2.close();\n }\n }", "Pipe listenedBy(PipeListener listener);", "EventChannelSource source();", "protected abstract List<BlockingQueue<CallRunner>> getQueues();", "@Test\n public void subscribe_single() throws AblyException {\n /* Ably instance that will emit channel messages */\n AblyRealtime ably1 = null;\n /* Ably instance that will receive channel messages */\n AblyRealtime ably2 = null;\n\n String channelName = \"test.channel.subscribe.single\" + System.currentTimeMillis();\n String messageName = \"name\";\n Message[] messages = new Message[] {\n new Message(messageName, \"Lorem ipsum dolor sit amet,\"),\n new Message(messageName, \"Consectetur adipiscing elit.\"),\n new Message(messageName, \"Pellentesque nulla lorem.\")\n };\n\n try {\n ClientOptions option1 = createOptions(testVars.keys[0].keyStr);\n option1.clientId = \"emitter client\";\n ClientOptions option2 = createOptions(testVars.keys[0].keyStr);\n option2.clientId = \"receiver client\";\n\n ably1 = new AblyRealtime(option1);\n ably2 = new AblyRealtime(option2);\n\n Channel channel1 = ably1.channels.get(channelName);\n channel1.attach();\n new ChannelWaiter(channel1).waitFor(ChannelState.attached);\n\n Channel channel2 = ably2.channels.get(channelName);\n channel2.attach();\n new ChannelWaiter(channel2).waitFor(ChannelState.attached);\n\n ArrayList<Message> receivedMessageStack = new ArrayList<>();\n MessageListener listener = new MessageListener() {\n List<Message> messageStack;\n\n @Override\n public void onMessage(Message message) {\n messageStack.add(message);\n }\n\n public MessageListener setMessageStack(List<Message> messageStack) {\n this.messageStack = messageStack;\n return this;\n }\n }.setMessageStack(receivedMessageStack);\n channel2.subscribe(messageName, listener);\n\n /* Start emitting channel with ably client 1 (emitter) */\n channel1.publish(\"nonTrackedMessageName\", \"This message should be ignore by second client (ably2).\", null);\n channel1.publish(messages, null);\n channel1.publish(\"nonTrackedMessageName\", \"This message should be ignore by second client (ably2).\", null);\n\n /* Wait until receiver client (ably2) observes {@code Message}\n * on subscribed channel (channel2) emitted by emitter client (ably1)\n */\n new Helpers.MessageWaiter(channel2).waitFor(messages.length + 2);\n\n /* Validate that,\n * - received same amount of emitted specific message\n * - received messages are the ones we emitted\n */\n assertThat(receivedMessageStack.size(), is(equalTo(messages.length)));\n\n Collections.sort(receivedMessageStack, messageComparator);\n for (int i = 0; i < messages.length; i++) {\n Message message = messages[i];\n if(Collections.binarySearch(receivedMessageStack, message, messageComparator) < 0) {\n fail(\"Unable to find expected message: \" + message);\n }\n }\n } finally {\n if (ably1 != null) ably1.close();\n if (ably2 != null) ably2.close();\n }\n }", "public abstract Pipe deliver( Pipe sink );", "public SubscriptionListener() {\n this.protocol = \"stomp\";\n }", "@Override\n\tpublic void listenerStarted(ConnectionListenerEvent evt) {\n\t\t\n\t}", "public void setupConsumers() throws Exception {\n Consumer logConsumer1 = new LogConsumer1(channel);\n String queueName1 = channel.queueDeclare().getQueue();\n channel.queueBind(queueName1, EXCHANGE_NAME, \"\");\n channel.basicConsume(queueName1, true, logConsumer1);\n\n // Consumer 1:\n Consumer logConsumer2 = new LogConsumer2(channel);\n String queueName2 = channel.queueDeclare().getQueue();\n channel.queueBind(queueName2, EXCHANGE_NAME, \"\");\n channel.basicConsume(queueName2, true, logConsumer2);\n\n }", "public interface AsyncConnection {\n \n /**\n * Return <tt>true</tt> is the current connection associated with \n * this event has been suspended.\n */\n public boolean isSuspended();\n \n \n /**\n * Suspend the current connection. Suspended connection are parked and\n * eventually used when the Grizzlet Container initiates pushes.\n */\n public void suspend() throws AlreadyPausedException;\n \n \n /**\n * Resume a suspended connection. The response will be completed and the \n * connection become synchronous (e.g. a normal http connection).\n */\n public void resume() throws NotYetPausedException;\n \n \n /**\n * Advises the Grizzlet Container to start intiating a push operation, using \n * the argument <code>message</code>. All asynchronous connection that has \n * been suspended will have a chance to push the data back to their \n * associated clients.\n *\n * @param message The data that will be pushed.\n */\n public void push(String message) throws IOException;\n \n \n /**\n * Return the GrizzletRequest associated with this AsynchConnection. \n */\n public GrizzletRequest getRequest();\n \n \n /**\n * Return the GrizzletResponse associated with this AsynchConnection. \n */\n public GrizzletResponse getResponse();\n \n \n /**\n * Is this AsyncConnection being in the process of being resumed?\n */\n public boolean isResuming();\n \n \n /**\n * Is this AsyncConnection has push events ready to push back data to \n * its associated client.\n */\n public boolean hasPushEvent();\n \n \n /**\n * Return the <code>message</code> that can be pushed back.\n */\n public String getPushEvent();\n \n \n /**\n * Is the current asynchronous connection defined as an HTTP Get.\n */\n public boolean isGet();\n \n \n /**\n * Is the current asynchronous connection defined as an HTTP Get. \n */\n public boolean isPost();\n \n \n /**\n * Return the number of suspended connections associated with the current\n * {@link Grizzlet}\n */\n public int getSuspendedCount();\n \n \n}", "Set<StreamSessionHandler> getSubscribers();", "public ChessclubJinListenerManager(JinChessclubConnection source){\r\n super(source);\r\n\r\n this.source = source;\r\n }", "public Boolean tcpReuseChannel();", "public interface Transport {\n\n /**\n * This method returns id of the current transport\n * @return\n */\n String id();\n\n /**\n * This methos returns Id of the upstream node\n * @return\n */\n String getUpstreamId();\n\n /**\n * This method returns random\n *\n * @param id\n * @param exclude\n * @return\n */\n String getRandomDownstreamFrom(String id, String exclude);\n\n /**\n * This method returns consumer that accepts messages for delivery\n * @return\n */\n Consumer<VoidMessage> outgoingConsumer();\n\n /**\n * This method returns flow of messages for parameter server\n * @return\n */\n Publisher<INDArrayMessage> incomingPublisher();\n\n /**\n * This method starts this Transport instance\n */\n void launch();\n\n /**\n * This method will start this Transport instance\n */\n void launchAsMaster();\n\n /**\n * This method shuts down this Transport instance\n */\n void shutdown();\n\n /**\n * This method will send message to the network, using tree structure\n * @param message\n */\n void propagateMessage(VoidMessage message, PropagationMode mode) throws IOException;\n\n /**\n * This method will send message to the node specified by Id\n *\n * @param message\n * @param id\n */\n void sendMessage(VoidMessage message, String id);\n\n /**\n * This method will send message to specified node, and will return its response\n *\n * @param message\n * @param id\n * @param <T>\n * @return\n */\n <T extends ResponseMessage> T sendMessageBlocking(RequestMessage message, String id) throws InterruptedException;\n\n /**\n * This method will send message to specified node, and will return its response\n *\n * @param message\n * @param id\n * @param <T>\n * @return\n */\n <T extends ResponseMessage> T sendMessageBlocking(RequestMessage message, String id, long waitTime, TimeUnit timeUnit) throws InterruptedException;\n\n /**\n * This method will be invoked for all incoming messages\n * PLEASE NOTE: this method is mostly suited for tests\n *\n * @param message\n */\n void processMessage(VoidMessage message);\n\n\n /**\n * This method allows to set callback instance, which will be called upon restart event\n * @param callback\n */\n void setRestartCallback(RestartCallback callback);\n\n /**\n * This methd allows to set callback instance for various\n * @param cls\n * @param callback\n * @param <T1> RequestMessage class\n * @param <T2> ResponseMessage class\n */\n <T extends RequestMessage> void addRequestConsumer(Class<T> cls, Consumer<T> consumer);\n\n /**\n * This method will be called if mesh update was received\n *\n * PLEASE NOTE: This method will be called ONLY if new mesh differs from current one\n * @param mesh\n */\n void onMeshUpdate(MeshOrganizer mesh);\n\n /**\n * This method will be called upon remap request\n * @param id\n */\n void onRemap(String id);\n\n /**\n * This method returns total number of nodes known to this Transport\n * @return\n */\n int totalNumberOfNodes();\n\n\n /**\n * This method returns ID of the root node\n * @return\n */\n String getRootId();\n\n /**\n * This method checks if all connections required for work are established\n * @return true\n */\n boolean isConnected();\n\n /**\n * This method checks if this node was properly introduced to driver\n * @return\n */\n boolean isIntroduced();\n\n /**\n * This method checks connection to the given node ID, and if it's not connected - establishes connection\n * @param id\n */\n void ensureConnection(String id);\n}", "void receive(String watcher) throws ProtocolExecutionException;", "void drainFused() {\n int n;\n int n2 = 1;\n Subscriber<T> subscriber = this.actual;\n SimpleQueueWithConsumerIndex<Object> simpleQueueWithConsumerIndex = this.queue;\n do {\n if (this.cancelled) {\n simpleQueueWithConsumerIndex.clear();\n return;\n }\n Throwable throwable = (Throwable)this.error.get();\n if (throwable != null) {\n simpleQueueWithConsumerIndex.clear();\n subscriber.onError(throwable);\n return;\n }\n n = simpleQueueWithConsumerIndex.producerIndex() == this.sourceCount ? 1 : 0;\n if (!simpleQueueWithConsumerIndex.isEmpty()) {\n subscriber.onNext(null);\n }\n if (n != 0) {\n subscriber.onComplete();\n return;\n }\n n2 = n = this.addAndGet(-n2);\n } while (n != 0);\n }", "@Override\n public void binding(String exchangeName, String queueName, String bindingKey, ByteBuffer buf) {\n synchronized (this) {\n try {\n Exchange exchange = _virtualHost.getExchangeRegistry().getExchange(exchangeName);\n if (exchange == null) {\n _logger.error(\"Unknown exchange: \" + exchangeName + \", cannot bind queue : \" + queueName);\n return;\n }\n\n AMQQueue queue = _virtualHost.getQueueRegistry().getQueue(new AMQShortString(queueName));\n if (queue == null) {\n _logger.error(\"Unknown queue: \" + queueName + \", cannot be bound to exchange: \" + exchangeName);\n } else {\n FieldTable argumentsFT = null;\n if (buf != null) {\n argumentsFT = new FieldTable(org.wso2.org.apache.mina.common.ByteBuffer.wrap(buf), buf.limit());\n }\n\n BindingFactory bf = _virtualHost.getBindingFactory();\n\n Map<String, Object> argumentMap = FieldTable.convertToMap(argumentsFT);\n\n boolean isBindingAlreadyPresent = true;\n if (bf.getBinding(bindingKey, queue, exchange, argumentMap) == null) {\n //for direct exchange do an additional check to see if a binding is\n //already added to default exchange. We do not need duplicates as default\n //exchange is an direct exchange\n if (exchange.getName().equals(AMQPUtils.DIRECT_EXCHANGE_NAME)) {\n Exchange testExchange = _virtualHost.getExchangeRegistry().getExchange(\n AMQPUtils.DEFAULT_EXCHANGE_NAME);\n if (bf.getBinding(bindingKey, queue, testExchange,\n argumentMap) == null) {\n isBindingAlreadyPresent = false;\n }\n } else {\n isBindingAlreadyPresent = false;\n }\n }\n if(!isBindingAlreadyPresent) {\n if(_logger.isDebugEnabled()) {\n _logger.debug(\"Binding Sync - Added Binding: (Exchange: \"\n + exchange.getNameShortString() + \", Queue: \" + queueName\n + \", Routing Key: \" + bindingKey + \", Arguments: \" + argumentsFT + \")\");\n }\n bf.restoreBinding(bindingKey, queue, exchange, argumentMap);\n }\n }\n } catch (AMQException e) {\n throw new RuntimeException(e);\n }\n }\n }", "public InMemoryQueueService(){\n this.ringBufferQueue = new QueueMessage[10000];\n }", "private void createAndListen() {\n\n\t\t\n\t}", "public interface BeamBufferListener\n\n{\n \n /**\n * handle new beam when it arrives\n */\n \n public void handleBeamBuffer(ByteBuffer beamBuf);\n\n}", "public interface Master extends Runnable{\n\n /**\n * bind port and begin to accept request\n */\n void bind(WorkerPool workerPool);\n\n /**\n * handle the income requests ,accept and register to worker thread\n */\n void handleRequest();\n}", "@Override\n public void configure() throws Exception {\n\n from(\"activemq:split-cola\").to(\"log:mensaje-recivido-de-active-mq\");\n }", "private void setBindingKeys(RabbitMQConfiguration config, String queueName) throws IOException {\n for (String bindingKey : config.getBindingKeys()) {\n channel.queueBind(queueName, config.getExchange(), bindingKey);\n }\n }", "public interface SocketPrepared extends ListeningChannelErrorHandler {\n\n /**\n * Called after pre-read determines the channel is of sync and the channel\n * is configured non-blocking and unregistered from the async executor.\n *\n * @param preReadData the pre-read data\n * @param socket the blocking socket for further operation\n */\n void onPrepared(ByteBuffer preReadData, Socket socket);\n\n}", "public interface AbstractBroker {\n\n public void connect() throws Exception;\n\n public void subscribe(String queue, String topic) throws Exception;\n\n public void unSubscribe(String topic, String clientId) throws Exception;\n\n public void getMessageWithOutAck(byte[] body, long deliverTag, Consumer consumer);\n}", "public interface OnSendListener {\n void onSend();\n}", "public void handle(QueueItem<T>[] events, SyncProducer producer, Encoder<T> encoder) throws Exception;", "public interface QueueService {\n\n /**\n * 添加元素\n *\n * @param messageQueue\n */\n void add(MessageQueue messageQueue);\n\n\n /**\n * 弹出元素\n */\n MessageQueue poll();\n\n Iterator<MessageQueue> iterator();\n\n\n}", "public static void main(String[] args) {\n ApplicationContext context = new ClassPathXmlApplicationContext(\"spring-rabbitmq-context.xml\");\n\n AmqpTemplate aTemplate = (AmqpTemplate) context.getBean(\"myTemplate\");// getting a reference to the sender bean\n\n List<String> strings = readChangeLogFile();\n\n String routingKey = \"storm.rabbitmq.int.message\";\n\n for (int i = 0; i < 100; i++) {\n for (String msg : strings) {\n aTemplate.convertAndSend(routingKey, msg);\n }\n\n }\n\n }", "private void setupAmqpEndpoits() {\n\n // NOTE : Last Will and Testament Service endpoint is opened only if MQTT client provides will information\n // The receiver on the unique client publish address will be opened only after\n // connection is established (and CONNACK sent to the MQTT client)\n\n // setup and open AMQP endpoint for receiving on unique client control/publish addresses\n ProtonReceiver receiverControl = this.connection.createReceiver(String.format(AmqpReceiverEndpoint.CLIENT_CONTROL_ENDPOINT_TEMPLATE, this.mqttEndpoint.clientIdentifier()));\n ProtonReceiver receiverPublish = this.connection.createReceiver(String.format(AmqpReceiverEndpoint.CLIENT_PUBLISH_ENDPOINT_TEMPLATE, this.mqttEndpoint.clientIdentifier()));\n this.rcvEndpoint = new AmqpReceiverEndpoint(new AmqpReceiver(receiverControl, receiverPublish));\n\n // setup and open AMQP endpoint to Subscription Service\n ProtonSender ssSender = this.connection.createSender(AmqpSubscriptionServiceEndpoint.SUBSCRIPTION_SERVICE_ENDPOINT);\n this.ssEndpoint = new AmqpSubscriptionServiceEndpoint(ssSender);\n\n // setup and open AMQP endpoint for publishing\n ProtonSender senderPubrel = this.connection.createSender(String.format(AmqpPublishEndpoint.AMQP_CLIENT_PUBREL_ENDPOINT_TEMPLATE, this.mqttEndpoint.clientIdentifier()));\n this.pubEndpoint = new AmqpPublishEndpoint(senderPubrel);\n\n this.rcvEndpoint.openControl();\n this.ssEndpoint.open();\n this.pubEndpoint.open();\n }", "public void a() {\n if (getAndIncrement() == 0) {\n Subscriber<? super Flowable<T>> subscriber = this.a;\n MpscLinkedQueue<Object> mpscLinkedQueue = this.f;\n AtomicThrowable atomicThrowable = this.g;\n long j2 = this.l;\n int i2 = 1;\n while (this.e.get() != 0) {\n UnicastProcessor<T> unicastProcessor = this.k;\n boolean z = this.j;\n if (!z || atomicThrowable.get() == null) {\n Object poll = mpscLinkedQueue.poll();\n boolean z2 = poll == null;\n if (z && z2) {\n Throwable terminate = atomicThrowable.terminate();\n if (terminate == null) {\n if (unicastProcessor != 0) {\n this.k = null;\n unicastProcessor.onComplete();\n }\n subscriber.onComplete();\n return;\n }\n if (unicastProcessor != 0) {\n this.k = null;\n unicastProcessor.onError(terminate);\n }\n subscriber.onError(terminate);\n return;\n } else if (z2) {\n this.l = j2;\n i2 = addAndGet(-i2);\n if (i2 == 0) {\n return;\n }\n } else if (poll != m) {\n unicastProcessor.onNext(poll);\n } else {\n if (unicastProcessor != 0) {\n this.k = null;\n unicastProcessor.onComplete();\n }\n if (!this.h.get()) {\n UnicastProcessor<T> create = UnicastProcessor.create(this.b, this);\n this.k = create;\n this.e.getAndIncrement();\n if (j2 != this.i.get()) {\n j2++;\n s6.a.e.d.c.a.b bVar = new s6.a.e.d.c.a.b(create);\n subscriber.onNext(bVar);\n if (bVar.f()) {\n create.onComplete();\n }\n } else {\n SubscriptionHelper.cancel(this.d);\n this.c.dispose();\n atomicThrowable.tryAddThrowableOrReport(new MissingBackpressureException(\"Could not deliver a window due to lack of requests\"));\n this.j = true;\n }\n }\n }\n } else {\n mpscLinkedQueue.clear();\n Throwable terminate2 = atomicThrowable.terminate();\n if (unicastProcessor != 0) {\n this.k = null;\n unicastProcessor.onError(terminate2);\n }\n subscriber.onError(terminate2);\n return;\n }\n }\n mpscLinkedQueue.clear();\n this.k = null;\n }\n }", "@Test\r\n public void noEmitFromOtherFlows() throws Exception {\r\n ModuleURN instanceURN = new ModuleURN(PROVIDER_URN, \"mymodule\");\r\n FlowSpecificListener listener = new FlowSpecificListener();\r\n mManager.addSinkListener(listener);\r\n //Set up a data flow with this module as an emitter.\r\n //No data should be received from within this data flow\r\n DataFlowID emitOnlyflowID = mManager.createDataFlow(new DataRequest[]{\r\n new DataRequest(instanceURN)\r\n });\r\n //Setup two other data flows\r\n Object[] reqParms1 = {\"firstOne\", BigDecimal.TEN, \"uno\"};\r\n Object[] reqParms2 = {\"secondOne\", BigDecimal.ZERO, \"dos\"};\r\n DataFlowID flowID1 = mManager.createDataFlow(new DataRequest[]{\r\n new DataRequest(CopierModuleFactory.INSTANCE_URN, reqParms1),\r\n new DataRequest(instanceURN)\r\n });\r\n DataFlowID flowID2 = mManager.createDataFlow(new DataRequest[]{\r\n new DataRequest(CopierModuleFactory.INSTANCE_URN, reqParms2),\r\n new DataRequest(instanceURN)\r\n });\r\n //Wait for data from each of the flows\r\n //flowID2\r\n while(!listener.getFlows().contains(flowID2)) {\r\n Thread.sleep(100);\r\n }\r\n for(Object o: reqParms2) {\r\n assertEquals(o, listener.getNextDataFor(flowID2));\r\n }\r\n //flowID1\r\n while(!listener.getFlows().contains(flowID1)) {\r\n Thread.sleep(100);\r\n }\r\n for(Object o: reqParms1) {\r\n assertEquals(o, listener.getNextDataFor(flowID1));\r\n }\r\n //No data should be received for the very first data flow\r\n assertThat(listener.getFlows(), Matchers.not(Matchers.hasItem(emitOnlyflowID)));\r\n //verify queue sizes for all of them via JMX\r\n assertEquals(0, getMBeanServer().getAttribute(instanceURN.toObjectName(), SimpleAsyncProcessor.ATTRIB_PREFIX + emitOnlyflowID));\r\n assertEquals(0, getMBeanServer().getAttribute(instanceURN.toObjectName(), SimpleAsyncProcessor.ATTRIB_PREFIX + flowID1));\r\n assertEquals(0, getMBeanServer().getAttribute(instanceURN.toObjectName(), SimpleAsyncProcessor.ATTRIB_PREFIX + flowID2));\r\n //verify that the data for each flow is delivered in a unique thread.\r\n assertEquals(null, listener.getThreadNameFor(emitOnlyflowID));\r\n assertThat(listener.getThreadNameFor(flowID1),\r\n Matchers.startsWith(SimpleAsyncProcessor.ASYNC_THREAD_NAME_PREFIX + \"-\" + instanceURN.instanceName()));\r\n assertThat(listener.getThreadNameFor(flowID2), \r\n Matchers.startsWith(SimpleAsyncProcessor.ASYNC_THREAD_NAME_PREFIX + \"-\" + instanceURN.instanceName()));\r\n assertThat(listener.getThreadNameFor(flowID1), Matchers.not(\r\n Matchers.equalTo(listener.getThreadNameFor(flowID2))));\r\n assertThat(listener.getThreadNameFor(flowID1), Matchers.not(\r\n Matchers.equalTo(Thread.currentThread().getName())));\r\n //Cancel all the data flows\r\n mManager.cancel(emitOnlyflowID);\r\n mManager.cancel(flowID1);\r\n //verify that we only have a single flow attribute left\r\n List<String> list = getAttributes(instanceURN);\r\n assertEquals(1, list.size());\r\n assertThat(list, Matchers.hasItem(SimpleAsyncProcessor.ATTRIB_PREFIX + flowID2));\r\n mManager.cancel(flowID2);\r\n //verify that the module is deleted.\r\n List<ModuleURN> instances = mManager.getModuleInstances(PROVIDER_URN);\r\n assertTrue(instances.toString(), instances.isEmpty());\r\n mManager.removeSinkListener(listener);\r\n }", "private void flushOutbound0() {\n/* 454 */ runPendingTasks();\n/* */ \n/* 456 */ flush();\n/* */ }", "private void bindQueue2Exchange(RoutingContext routingContext) {\n LOGGER.debug(\"Info: bindQueue2Exchange method started;\");\n JsonObject requestJson = routingContext.getBodyAsJson();\n HttpServerRequest request = routingContext.request();\n HttpServerResponse response = routingContext.response();\n String instanceID = request.getHeader(HEADER_HOST);\n JsonObject authenticationInfo = new JsonObject();\n authenticationInfo.put(API_ENDPOINT, \"/management/bind\");\n requestJson.put(JSON_INSTANCEID, instanceID);\n if (request.headers().contains(HEADER_TOKEN)) {\n authenticationInfo.put(HEADER_TOKEN, request.getHeader(HEADER_TOKEN));\n authenticator.tokenInterospect(requestJson.copy(), authenticationInfo, authHandler -> {\n if (authHandler.succeeded()) {\n Future<JsonObject> brokerResult =\n managementApi.bindQueue2Exchange(requestJson, databroker);\n brokerResult.onComplete(brokerResultHandler -> {\n if (brokerResultHandler.succeeded()) {\n LOGGER.info(\"Success: binding queue to exchange\");\n handleSuccessResponse(response, ResponseType.Created.getCode(),\n brokerResultHandler.result().toString());\n } else if (brokerResultHandler.failed()) {\n LOGGER.error(\"Fail: Bad request;\" + brokerResultHandler.cause().getMessage());\n processBackendResponse(response, brokerResultHandler.cause().getMessage());\n }\n });\n } else if (authHandler.failed()) {\n LOGGER.error(\"Fail: Unauthorized;\" + authHandler.cause().getMessage());\n handleResponse(response, ResponseType.AuthenticationFailure);\n }\n });\n } else {\n LOGGER.error(\"Fail: Unauthorized\");\n handleResponse(response, ResponseType.AuthenticationFailure);\n }\n }", "void onAckReceived(int source);", "@Bean\n public Binding directBinding1a(DirectExchange directExchange, Queue directQueue1){//为了实现绑定,必须使用上面已经定义的交换机(方法)名和队列(方法)名\n return BindingBuilder.bind(directQueue1).to(directExchange).with(\"red\");\n }", "public interface SubscriptionListener {\n public void onReceivedMessage(String message);\n}", "public void startInbound();", "public interface ConnectionListenerManager extends Serializable\n{\n /**\n * Add a connection listener.\n * \n * @param connectionListener [in] Supplies a reference to the new\n * listener.\n * \n * @throws ServerException if a listener with the same ID already exists.\n */\n public void add(ConnectionListener connectionListener) throws ServerException;\n \n /**\n * Remove a connection listener.\n * \n * @param listenerID [in] Supplies the unique ID of the connection\n * listener to be removed.\n * \n * @return A reference to the removed listener, or null if it didn't\n * exist.\n */\n public ConnectionListener remove(String listenerID);\n \n /**\n * Check to see if the manager is empty.\n * \n * @return True if the manager does not contain any listeners, false if it\n * contains at least one.\n */\n public boolean isEmpty();\n \n /**\n * Check to see if the listeners are active.\n * \n * @return True if the listeners are active, false if not.\n */\n public boolean isRunning();\n\n /**\n * Get a list of all connection listeners.\n * \n * @return A list of listeners.\n */\n public List<String> listeners();\n \n /**\n * Get a reference to a connection listener.\n * \n * @param listenerID [in] Supplies the unique ID of the listener.\n * \n * @return A reference to the listener, null if it does not exist.\n */\n public ConnectionListener getListener(String listenerID);\n \n /**\n * Start all listeners. One or more listener may fail to start due to an\n * IOException. If all listeners fail to start, this method throws a\n * ServerException. If one or more listeners failed to start, but at\n * least one started successfully, this method will return normally, but\n * with a return value of false, so that the caller knows that one or\n * more listener failed to start, and can check the individual listeners\n * to see which failed, and why. The way this would be done would be to\n * iterate over this object's collection of listeners, checking to see which\n * listeners failed to start. When a non-started listener is encountered,\n * the caller would then attempt to start that listener individually, and\n * then handle the resulting IOException individually. Finally, if all\n * listeners start successfully, this method returns true.\n *\n * @return True if all listeners were started successfully, or false if\n * one or more (but not all!) failed to start properly.\n *\n * @throws ServerException if no listeners were started successfully.\n */\n public boolean startAll() throws ServerException;\n \n /**\n * Stop all listeners.\n */\n public void stopAll();\n}", "@Override\r\n\tnative long createListenerProxy(EventSink eventSink);", "void startListening()\n {\n if (outstanding_accept != null || open_connection != null) {\n return;\n }\n \n outstanding_accept = new AcceptThread(bt_adapter, handler);\n outstanding_accept.start();\n }", "public interface MsgListener {\n\n public void handlerMsg(Channel ctx, SocketMsg msg);\n}", "public BullyMessageListenerFactoryImpl(BullyAlgorithmParticipant self) {\n //We use port as processId since it's coming from the coordinator and guaranteed\n //to be sequential and unique.\n this.self = self;\n }", "@Async.Schedule\n public void listen(IgniteInClosure<? super IgniteInternalFuture<R>> lsnr);", "protected void setup() throws SQLException {\n\t\ttry {\n\t\t\t// get connection factory\n\t\t\tQueueConnectionFactory factory = AQjmsFactory.getQueueConnectionFactory(getOracleDataSource());\n\n\t\t\t// create jms connection\n\t\t\tconn = factory.createQueueConnection();\n\n\t\t\t// set exception listener\n\t\t\tconn.setExceptionListener(this);\n\n\t\t\t// set event listener\n\t\t\t//((com.sun.messaging.jms.Connection) conn).setEventListener(this);\n\n\t\t\t// test if this is a HA connection\n\t\t\t//isHAConnection = ((com.sun.messaging.jms.Connection) conn).isConnectedToHABroker();\n\t\t\t//log(\"Is connected to HA broker cluster: \" + isHAConnection);\n\n\t\t\t// get destination name\n\t\t\tString destName = FailoverQSender.TEST_DEST_NAME;\n\n\t\t\t// create a transacted session\n\t\t\tsession = conn.createQueueSession(true, -1);\n\n\t\t\t// get destination\n\t\t\tqueue = session.createQueue(destName);\n\n\t\t\t// create queue receiver\n\t\t\tqreceiver = session.createReceiver(queue);\n\t\t\t// set isConnected flag to true\n\t\t\tisConnected = true;\n\t\t\t// start the JMS connection\n\t\t\tconn.start();\n\t\t\tlog(\"Ready to receive on destination: \" + destName);\n\t\t} catch (JMSException jmse) {\n\t\t\tisConnected = false;\n\t\t\tlog(jmse);\n\t\t\tclose();\n\t\t}\n\t}", "Consumer getConsumer();", "public MessageSelectingQueueChannel(BlockingQueue<Message<?>> queue) {\n super(queue);\n \n this.queue = queue;\n }", "void subscribeReceiveListener(IDataReceiveListener listener);", "@InSequence(2)\n @Test\n public void worksInMultipleRuns() throws InterruptedException {\n int sum = sendMessages(14);\n runJob();\n Assert.assertEquals(14, collector.getLastItemCount());\n Assert.assertEquals(sum, collector.getLastSum());\n Assert.assertEquals(2, collector.getNumberOfJobs());\n sum = sendMessages(8);// <1> Sending messages from separate connections makes no difference\n\n sum += sendMessages(4);\n runJob();\n Assert.assertEquals(12, collector.getLastItemCount());\n Assert.assertEquals(sum, collector.getLastSum());\n Assert.assertEquals(3, collector.getNumberOfJobs());\n }", "void connect(FmqPool pool);", "public void listen()\n {\n service = new BService (this.classroom, \"tcp\");\n service.register();\n service.setListener(this);\n }", "private Subscribable<Integer> aSubscribableWillAsyncFireIntegerOneToFive() {\n return new Subscribable<Integer>() {\n private final ExecutorService executor = Executors.newSingleThreadExecutor();\n private Future<?> future;\n\n @Override\n public void doSubscribe(final Schedulable<? super Integer> source) {\n future = executor.submit(new Runnable() {\n @Override\n public void run() { //produce integers in a different thread\n for (int i = 1; i < 6; i++) {\n source.schedule(i); //schedule integer 1 to 5 to the callback source\n }\n }\n });\n }\n\n @Override\n public void unsubscribe() { //unsubscribe from the source\n try {\n assert future != null;\n future.get(5, TimeUnit.SECONDS); //wait for all the scheduled values fired\n } catch (Exception e) {\n Throwables.propagate(e); //just hide the checked exception\n }\n }\n };\n }", "public interface Binding extends AutoCloseable, Consumer<Bindings> {\n\n\n}", "@Bean(name = \"mybinding\")\n Binding binding(@Qualifier(\"myqueue\") Queue queue, FanoutExchange exchange) {\n LOG.info(\"Binding queue [\" + queue + \"] to exchange [\" + exchange + \"]\");\n return BindingBuilder.bind(queue).to(exchange);\n }", "public Object consumeBloqueante();", "public interface MessageListener {\n\t\n\t/**\n\t * Method used to consume message\n\t * @param message\tMessage that You want to consume\n\t */\n\tvoid consumeMessage(String message);\n\t\n\t/**\n\t * Method used when You want to get all consumed messages\n\t * @return\tList of messages consumed from a jms queue/topic\n\t */\n\tList<String> getFeeds();\n\n}", "@Override\n public void run(Object[] args, ZContext ctx, Socket pipe)\n {\n Socket subscriber = ctx.createSocket(ZMQ.SUB);\n subscriber.connect(\"tcp://localhost:6001\");\n subscriber.subscribe(\"A\".getBytes(ZMQ.CHARSET));\n subscriber.subscribe(\"B\".getBytes(ZMQ.CHARSET));\n\n int count = 0;\n while (count < 5) {\n String string = subscriber.recvStr();\n if (string == null)\n break; // Interrupted\n count++;\n }\n ctx.destroySocket(subscriber);\n }", "boolean isSink();", "@Bean\n public JmsListenerContainerFactory<?> jmsListenerContainerFactory() {\n DefaultJmsListenerContainerFactory factory = new DefaultJmsListenerContainerFactory();\n factory.setConnectionFactory(connectionFactory());\n factory.setConcurrency(\"1-1\");\n // Potrebno je obezbediti publish/subscribe za topic. Nije neophodno za queue.\n // factory.setPubSubDomain(true);\n return factory;\n }", "void bind(WorkerPool workerPool);", "@Override\n\t\t\t\t\tpublic void completed(Integer result, AsynchronousSocketChannel channel) {\n\n\t\t\t\t\t\t//AsyncSocketTransport.this.transportListeners.forEach(l -> l.onReceived(buf));\n\t\t\t\t\t\tsubscriber.onNext(new Packet(session, buf));\n\n\t\t\t\t\t\t// start to read next message again\n\t\t\t\t\t\tstartRead(channel);\n\t\t\t\t\t}", "private UDPSender(final URI serverURI) {\n\t\tsuper(serverURI);\n\t\t\n\t\t\t\t\n\t\t//InternalLoggerFactory.setDefaultFactory(new Slf4JLoggerFactory());\n\t\tchannelStateListener.addChannelStateAware(this);\n\t\tloggingHandler = new LoggingHandler(InternalLogLevel.ERROR, true);\t\t\n\t\tchannelFactory = new NioDatagramChannelFactory(workerPool);\n\t\tbstrap = new ConnectionlessBootstrap(channelFactory);\n\t\tbstrap.setPipelineFactory(this);\n\t\tbstrap.setOption(\"broadcast\", true);\n\t\tbstrap.setOption(\"localAddress\", new InetSocketAddress(0));\n\t\tbstrap.setOption(\"remoteAddress\", new InetSocketAddress(serverURI.getHost(), serverURI.getPort()));\n\t\tbstrap.setOption(\"receiveBufferSizePredictorFactory\", new FixedReceiveBufferSizePredictorFactory(2048));\n\t\t\n\t\tlisteningSocketAddress = new InetSocketAddress(\"0.0.0.0\", 0);\n\t\t//listeningSocketAddress = new InetSocketAddress(\"127.0.0.1\", 0);\n\t\t\t\n\t\t//senderChannel = (NioDatagramChannel) channelFactory.newChannel(getPipeline());\n\t\tsenderChannel = bstrap.bind();\n\t\tcloseGroup.add(senderChannel);\n\t\tlog(\"Listening on [\" + senderChannel.getLocalAddress()+ \"]\");\t\t\t\t\t\n\t\t\n\t\t\n//\t\tsenderChannel.bind().addListener(new ChannelFutureListener() {\n//\t\t\tpublic void operationComplete(ChannelFuture f) throws Exception {\n//\t\t\t\tif(f.isSuccess()) {\n//\t\t\t\t\tlog(\"Listening on [\" + f.getChannel().getLocalAddress()+ \"]\");\t\t\t\t\t\n//\t\t\t\t} else {\n//\t\t\t\t\tlog(\"Failed to start listener. Stack trace follows\");\n//\t\t\t\t\tf.getCause().printStackTrace(System.err);\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\tsenderChannel.getConfig().setBufferFactory(new DirectChannelBufferFactory());\n//\t\tsenderChannel.connect(socketAddress).addListener(new ChannelFutureListener() {\n//\t\t\t@Override\n//\t\t\tpublic void operationComplete(ChannelFuture future) throws Exception {\n//\t\t\t\tconnected.set(true);\t\n//\t\t\t\tsentryState.setState(SentryState.CALLBACK);\n//\t\t\t}\n//\t\t});\n\t\t\n\t\t\n\t\t//socketAddress = new InetSocketAddress(\"239.192.74.66\", 25826);\n\t\tsendHello();\n\t}", "@Override\n\tpublic void StartListening()\n\t{\n\t\t\n\t}", "@Override\n public void run() {\n //System.out.println(\"TCPReceiver is running\");\n logger.debug(\"TCPReceiver is running\");\n //receivePackage(DataHandler.inQueue);\n while (true){\n try {\n socket = serverSocket.accept();\n multiReceivePackage(this.inQueue);\n } catch (Exception e) {\n //System.out.println(\"[\" + Thread.currentThread().getName() + \"] Receiver 线程内出错。\");\n logger.error(\"[\" + Thread.currentThread().getName() + \"] Receiver 线程内出错。\");\n e.printStackTrace();\n }\n }\n\n\n }", "public interface BufferUsageStrategy\n{\n ByteBuffer onTermAdded(final String destination,\n final long sessionId,\n final long channelId,\n final long termId,\n boolean isSender) throws Exception;\n}", "private void routeQueuedEvent() {\n \t\t\n \t\tfinal SleeTransactionManager txMgr = this.container.getTransactionManager();\n \t\t\t\t\n \t\tboolean rollbackTx = true;\n \t\t\n \t\ttry {\n \n \t\t\tEventContextImpl eventContextImpl = de.getEventRouterActivity().getCurrentEventContext();\n \t\t\tif (eventContextImpl == null) {\t\t\t\t\n \t\t\t\tif (logger.isDebugEnabled())\n \t\t\t\t\tlogger.debug(\"\\n\\n\\nDelivering event : [[[ eventId \"\n \t\t\t\t\t\t\t+ de.getEventTypeId() + \" on ac \"+de.getActivityContextId()+\"\\n\");\n \t\t\t\t\n \t\t\t\t// event context not set, create it \n \t\t\t\teventContextImpl = new EventContextImpl(de,container);\n \t\t\t\tde.getEventRouterActivity().setCurrentEventContext(eventContextImpl);\n \t\t\t\t// do initial event processing\n \t\t\t\tEventTypeComponent eventTypeComponent = container.getComponentRepositoryImpl().getComponentByID(de.getEventTypeId());\n \t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\tlogger.debug(\"Active services for event \"+de.getEventTypeId()+\": \"+eventTypeComponent.getActiveServicesWhichDefineEventAsInitial());\n \t\t\t\t}\n \t\t\t\tfor (ServiceComponent serviceComponent : eventTypeComponent.getActiveServicesWhichDefineEventAsInitial()) {\n \t\t\t\t\tif (de.getService() == null || de.getService().equals(serviceComponent.getServiceID())) {\n \t\t\t\t\t\tinitialEventProcessor.processInitialEvents(serviceComponent, de, txMgr, this.container.getActivityContextFactory());\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\telse {\n \t\t\t\tif (eventContextImpl.isSuspendedNotTransacted()) {\n \t\t\t\t\tif (logger.isDebugEnabled())\n \t\t\t\t\t\tlogger.debug(\"\\n\\n\\nFreezing (due to suspended context) event delivery : [[[ eventId \"\n \t\t\t\t\t\t\t\t+ de.getEventTypeId() + \" on ac \"+de.getActivityContextId()+\"\\n\");\n \t\t\t\t\teventContextImpl.barrierEvent(de);\n \t\t\t\t\treturn;\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tif (logger.isDebugEnabled())\n \t\t\t\t\t\tlogger.debug(\"\\n\\n\\nResuming event delivery : [[[ eventId \"\n \t\t\t\t\t\t\t+ de.getEventTypeId() + \" on ac \"+de.getActivityContextId()+\"\\n\");\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t// For each SBB that is attached to this activity context.\n \t\t\tboolean gotSbb = false;\n \t\t\tdo {\n \t\t\t\t\n \t\t\t\tString rootSbbEntityId = null;\n \t\t\t\tClassLoader invokerClassLoader = null;\n \t\t\t\tSbbEntity sbbEntity = null;\n \t\t\t\tSbbObject sbbObject = null;\n \n \t\t\t\ttry {\n \n \t\t\t\t\t/*\n \t\t\t\t\t * Start of SLEE Originated Invocation Sequence\n \t\t\t\t\t * ============================================== This\n \t\t\t\t\t * sequence consists of either: 1) One \"Op Only\" SLEE\n \t\t\t\t\t * Originated Invocation - in the case that it's a\n \t\t\t\t\t * straightforward event routing for the sbb entity. 2) One\n \t\t\t\t\t * \"Op and Remove\" SLEE Originated Invocation - in the case\n \t\t\t\t\t * it's an event routing to a root sbb entity that ends up\n \t\t\t\t\t * in a remove to the same entity since the attachment count\n \t\t\t\t\t * goes to zero after the event invocation 3) One \"Op Only\"\n \t\t\t\t\t * followed by one \"Remove Only\" SLEE Originated Invocation -\n \t\t\t\t\t * in the case it's an event routing to a non-root sbb\n \t\t\t\t\t * entity that ends up in a remove to the corresponding root\n \t\t\t\t\t * entity since the root attachment count goes to zero after\n \t\t\t\t\t * the event invocation Each Invocation Sequence is handled\n \t\t\t\t\t * in it's own transaction. All exception handling for each\n \t\t\t\t\t * invocation sequence is handled here. Any exceptions that\n \t\t\t\t\t * propagate up aren't necessary to be caught. -Tim\n \t\t\t\t\t */\n \n \t\t\t\t\t// If this fails then we propagate up since there's nothing to roll-back anyway\n \t\t\t\t\t\n \t\t\t\t\ttxMgr.begin();\n \t\t\t\t\t\n \t\t\t\t\tActivityContext ac = null;\n \t\t\t\t\tException caught = null;\n \t\t\t\t\tSbbEntity highestPrioritySbbEntity = null;\n \t\t\t\t\tClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader();\n \t\t\t\t\t\n \t\t\t\t\tSet<String> sbbEntitiesThatHandledCurrentEvent = eventContextImpl.getSbbEntitiesThatHandledEvent();\n \t\t\t\t\t\n \t\t\t\t\ttry {\n \t\t\t\t\t\n \t\t\t\t\t\tac = container.getActivityContextFactory().getActivityContext(de.getActivityContextId(),true);\n \n \t\t\t\t\t\ttry {\n \t\t\t\t\t\t\thighestPrioritySbbEntity = nextSbbEntityFinder.next(ac, de.getEventTypeId(), de.getService(), sbbEntitiesThatHandledCurrentEvent);\n \t\t\t\t\t\t} catch (Exception e) {\n \t\t\t\t\t\t\tlogger.warn(\"Failed to find next sbb entity to deliver the event \"+de+\" in \"+ac.getActivityContextId(), e);\n \t\t\t\t\t\t\thighestPrioritySbbEntity = null;\n \t\t\t\t\t\t}\n \n \t\t\t\t\t\tif (highestPrioritySbbEntity == null) {\n \t\t\t\t\t\t\tgotSbb = false;\n \t\t\t\t\t\t\tsbbEntitiesThatHandledCurrentEvent.clear();\t\t\t\t\t\t\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\tgotSbb = true;\n \t\t\t\t\t\t\tsbbEntitiesThatHandledCurrentEvent.add(highestPrioritySbbEntity.getSbbEntityId());\t\n \t\t\t\t\t\t}\n \n \t\t\t\t\t\tif (gotSbb) {\n \n \t\t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t\t.debug(\"Highest priority SBB entity, which is attached to the ac \"+de.getActivityContextId()+\" , to deliver the event: \"\n \t\t\t\t\t\t\t\t\t\t\t\t+ highestPrioritySbbEntity.getSbbEntityId());\n \t\t\t\t\t\t\t}\n \n \t\t\t\t\t\t\t// CHANGE CLASS LOADER\n \t\t\t\t\t\t\tinvokerClassLoader = highestPrioritySbbEntity.getSbbComponent().getClassLoader();\n \t\t\t\t\t\t\tThread.currentThread().setContextClassLoader(invokerClassLoader);\n \n \t\t\t\t\t\t\tsbbEntity = highestPrioritySbbEntity;\n \t\t\t\t\t\t\trootSbbEntityId = sbbEntity.getRootSbbId();\n \n \t\t\t\t\t\t\tEventRouterThreadLocals.setInvokingService(sbbEntity.getServiceId());\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\t// Assign an sbb from the pool\n \t\t\t\t\t\t\tsbbEntity.assignAndActivateSbbObject();\n \t\t\t\t\t\t\tsbbObject = sbbEntity.getSbbObject();\n \t\t\t\t\t\t\tsbbObject.sbbLoad();\n \n \t\t\t\t\t\t\t// GET AND CHECK EVENT MASK FOR THIS SBB ENTITY\n \t\t\t\t\t\t\tSet eventMask = sbbEntity.getMaskedEventTypes(de.getActivityContextId());\n \t\t\t\t\t\t\tif (!eventMask.contains(de.getEventTypeId())) {\n \n \t\t\t\t\t\t\t\t// TIME TO INVOKE THE EVENT HANDLER METHOD\n \t\t\t\t\t\t\t\tsbbObject.setSbbInvocationState(SbbInvocationState.INVOKING_EVENT_HANDLER);\n \t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t\t\t.debug(\"---> Invoking event handler: ac=\"+de.getActivityContextId()+\" , sbbEntity=\"+sbbEntity.getSbbEntityId()+\" , sbbObject=\"+sbbObject);\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\tsbbEntity.invokeEventHandler(de,ac,eventContextImpl);\n \n \t\t\t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t\t\t.debug(\"<--- Invoked event handler: ac=\"+de.getActivityContextId()+\" , sbbEntity=\"+sbbEntity.getSbbEntityId()+\" , sbbObject=\"+sbbObject);\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\t// check to see if the transaction is marked for\n \t\t\t\t\t\t\t\t// rollback if it is then we need to get out of\n \t\t\t\t\t\t\t\t// here soon as we can.\n \t\t\t\t\t\t\t\tif (txMgr.getRollbackOnly()) {\n \t\t\t\t\t\t\t\t\tthrow new Exception(\"The transaction is marked for rollback\");\n \t\t\t\t\t\t\t\t}\n \n \t\t\t\t\t\t\t\tsbbObject.setSbbInvocationState(SbbInvocationState.NOT_INVOKING);\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\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t\t\t.debug(\"Not invoking event handler since event is masked\");\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \n \t\t\t\t\t\t\t// IF IT'S AN ACTIVITY END EVENT DETACH SBB ENTITY HERE\n \t\t\t\t\t\t\tif (de.getEventTypeId().equals(ActivityEndEventImpl.EVENT_TYPE_ID)) {\n \t\t\t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t\t\t.debug(\"The event is an activity end event, detaching ac=\"+de.getActivityContextId()+\" , sbbEntity=\"+sbbEntity.getSbbEntityId());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\thighestPrioritySbbEntity.afterACDetach(de.getActivityContextId());\n \t\t\t\t\t\t\t}\n \n \t\t\t\t\t\t\t// CHECK IF WE CAN CLAIM THE ROOT SBB ENTITY\n \t\t\t\t\t\t\tif (rootSbbEntityId != null) {\n \t\t\t\t\t\t\t\tif (SbbEntityFactory.getSbbEntity(rootSbbEntityId).getAttachmentCount() != 0) {\n \t\t\t\t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t\t\t\t.debug(\"Not removing sbb entity \"+sbbEntity.getSbbEntityId()+\" , the attachment count is not 0\");\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t// the root sbb entity is not be claimed\n \t\t\t\t\t\t\t\t\trootSbbEntityId = null;\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\t// it's a root sbb\n \t\t\t\t\t\t\t\tif (!sbbEntity.isRemoved()\t&& sbbEntity.getAttachmentCount() == 0) {\n \t\t\t\t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t\t\t\t.debug(\"Removing sbb entity \"+sbbEntity.getSbbEntityId()+\" , the attachment count is not 0\");\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t// If it's the same entity then this is an\n \t\t\t\t\t\t\t\t\t// \"Op and\n \t\t\t\t\t\t\t\t\t// Remove Invocation Sequence\"\n \t\t\t\t\t\t\t\t\t// so we do the remove in the same\n \t\t\t\t\t\t\t\t\t// invocation\n \t\t\t\t\t\t\t\t\t// sequence as the Op\n \t\t\t\t\t\t\t\t\tSbbEntityFactory.removeSbbEntityWithCurrentClassLoader(sbbEntity,true);\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t} catch (Exception e) {\n \t\t\t\t\t\tlogger.error(\"Failure while routing event; second phase. DeferredEvent [\"+ de.getEventTypeId() + \"]\", e);\n \t\t\t\t\t\tif (highestPrioritySbbEntity != null) {\n \t\t\t\t\t\t\tsbbObject = highestPrioritySbbEntity.getSbbObject();\n \t\t\t\t\t\t}\n \t\t\t\t\t\tcaught = e;\n \t\t\t\t\t} \n \t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t// do a final check to see if there is another SBB to\n \t\t\t\t\t// deliver.\n \t\t\t\t\t// We don't want to waste another loop. Note that\n \t\t\t\t\t// rollback\n \t\t\t\t\t// will not has any impact on this because the\n \t\t\t\t\t// ac.DeliveredSet\n \t\t\t\t\t// is not in the cache.\n \t\t\t\t\tif (gotSbb) {\n \t\t\t\t\t\ttry {\n \t\t\t\t\t\t\tif (nextSbbEntityFinder.next(ac, de.getEventTypeId(),de.getService(),sbbEntitiesThatHandledCurrentEvent) == null) {\n \t\t\t\t\t\t\t\tgotSbb = false;\n \t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (Throwable e) {\n \t\t\t\t\t\t\tgotSbb = false;\n \t\t\t\t\t\t} \n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif (!gotSbb) {\n\t\t\t\t\t\tde.eventProcessingSucceed();\n\t\t\t\t\t\tif (logger.isDebugEnabled()) {\n\t\t\t\t\t\t\tlogger.debug(\"Delaying commit for 100ms, needed by wrongly designed tck transaction isolation tests. This only happens with DEBUG log level\");\n\t\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t\t}\t\t\t\t\t\t\n \t\t\t\t\t}\n\t\t\t\t\t\n \t\t\t\t\tThread.currentThread().setContextClassLoader(\n \t\t\t\t\t\t\toldClassLoader);\n \n \t\t\t\t\tboolean invokeSbbRolledBack = handleRollback.handleRollback(sbbObject, caught, invokerClassLoader,txMgr);\n \n \t\t\t\t\tboolean invokeSbbRolledBackRemove = false;\n \t\t\t\t\tClassLoader rootInvokerClassLoader = null;\n \t\t\t\t\tSbbEntity rootSbbEntity = null;\n \n \t\t\t\t\tif (!invokeSbbRolledBack && rootSbbEntityId != null) {\n \t\t\t\t\t\t/*\n \t\t\t\t\t\t * If we get here this means that we need to do a\n \t\t\t\t\t\t * cascading remove of the root sbb entity - since the\n \t\t\t\t\t\t * original invocation was done on a non-root sbb entity\n \t\t\t\t\t\t * then this is done in a different SLEE originated\n \t\t\t\t\t\t * invocation, but inside the same SLEE originated\n \t\t\t\t\t\t * invocation sequence. Confused yet? This is case 3) in\n \t\t\t\t\t\t * my previous comment - the SLEE originated invocation\n \t\t\t\t\t\t * sequence contains two SLEE originated invocations:\n \t\t\t\t\t\t * One \"Op Only\" and One \"Remove Only\" This is the\n \t\t\t\t\t\t * \"Remove Only\" part. We don't bother doing this if we\n \t\t\t\t\t\t * already need to rollback\n \t\t\t\t\t\t */\n \n \t\t\t\t\t\tcaught = null;\n \n \t\t\t\t\t\toldClassLoader = Thread.currentThread().getContextClassLoader();\n \n \t\t\t\t\t\ttry {\n \t\t\t\t\t\t\trootSbbEntity = SbbEntityFactory.getSbbEntity(rootSbbEntityId);\n \n \t\t\t\t\t\t\trootInvokerClassLoader = rootSbbEntity.getSbbComponent().getClassLoader();\n \t\t\t\t\t\t\tThread.currentThread().setContextClassLoader(rootInvokerClassLoader);\n \n \t\t\t\t\t\t\tSbbEntityFactory.removeSbbEntity(rootSbbEntity,true);\n \n \t\t\t\t\t\t} catch (Exception e) {\n \t\t\t\t\t\t\tlogger.error(\"Failure while routing event; third phase. Event Posting [\"+ de + \"]\", e);\n \t\t\t\t\t\t\tcaught = e;\n \t\t\t\t\t\t} finally {\n \n \t\t\t\t\t\t\tThread.currentThread().setContextClassLoader(oldClassLoader);\n \t\t\t\t\t\t}\n \n \t\t\t\t\t\t// We have no target sbb object in a Remove Only SLEE\n \t\t\t\t\t\t// originated invocation\n \t\t\t\t\t\t// FIXME emmartins review\n \t\t\t\t\t\tinvokeSbbRolledBackRemove = handleRollback.handleRollback(null, caught, rootInvokerClassLoader,txMgr);\n \t\t\t\t\t}\n \n \t\t\t\t\t/*\n \t\t\t\t\t * We are now coming to the end of the SLEE originated\n \t\t\t\t\t * invocation sequence We may need to run sbbRolledBack This\n \t\t\t\t\t * is done in the same tx if there is no target sbb entity\n \t\t\t\t\t * in any of the SLEE originated invocations making up this\n \t\t\t\t\t * SLEE originated invocation sequence Otherwise we do it in\n \t\t\t\t\t * a separate tx for each SLEE originated invocation that\n \t\t\t\t\t * has a target sbb entity. In other words we might have a\n \t\t\t\t\t * maximum of 2 sbbrolledback callbacks invoked in separate\n \t\t\t\t\t * tx in the case this SLEE Originated Invocation Sequence\n \t\t\t\t\t * contained an Op Only and a Remove Only (since these have\n \t\t\t\t\t * different target sbb entities) Pretty obvious really! ;)\n \t\t\t\t\t */\n \t\t\t\t\tif (invokeSbbRolledBack && sbbEntity == null) {\n \t\t\t\t\t\t// We do it in this tx\n \t\t\t\t\t\thandleSbbRollback.handleSbbRolledBack(null, sbbObject, null, null, invokerClassLoader, false, txMgr);\n \t\t\t\t\t} else if (sbbEntity != null && !txMgr.getRollbackOnly()\n \t\t\t\t\t\t\t&& sbbEntity.getSbbObject() != null) {\n \n \t\t\t\t\t\tsbbObject.sbbStore();\n \t\t\t\t\t\tsbbEntity.passivateAndReleaseSbbObject();\n \n \t\t\t\t\t}\n \n \t\t\t\t\tif (txMgr.getRollbackOnly()) {\n \t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t.debug(\"Rolling back SLEE Originated Invocation Sequence\");\n \t\t\t\t\t\t}\n \t\t\t\t\t\ttxMgr.rollback();\n \t\t\t\t\t} else {\n \t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t.debug(\"Committing SLEE Originated Invocation Sequence\");\n \t\t\t\t\t\t}\n \t\t\t\t\t\ttxMgr.commit();\n \t\t\t\t\t}\n \n \t\t\t\t\t/*\n \t\t\t\t\t * Now we invoke sbbRolledBack for each SLEE originated\n \t\t\t\t\t * invocation that had a target sbb entity in a new tx - the\n \t\t\t\t\t * new tx creating is handled inside the handleSbbRolledBack\n \t\t\t\t\t * method\n \t\t\t\t\t */\n \t\t\t\t\tif (invokeSbbRolledBack && sbbEntity != null) {\n \t\t\t\t\t\t// Firstly for the \"Op only\" or \"Op and Remove\" part\n \t\t\t\t\t\tsbbEntity.getSbbEntityId();\n \t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t.debug(\"Invoking sbbRolledBack for Op Only or Op and Remove\");\n \n \t\t\t\t\t\t}\n \t\t\t\t\t\t//FIXME: baranowb: de is passed for test: tests/sbb/abstractclass/SbbRolledBackNewTransaction.xml\n \t\t\t\t\t\thandleSbbRollback.handleSbbRolledBack(sbbEntity, null, de, new ActivityContextInterfaceImpl(ac), invokerClassLoader, false, txMgr);\n \t\t\t\t\t}\n \t\t\t\t\tif (invokeSbbRolledBackRemove) {\n \t\t\t\t\t\t// Now for the \"Remove Only\" if appropriate\n \t\t\t\t\t\thandleSbbRollback.handleSbbRolledBack(rootSbbEntity, null, null, null, rootInvokerClassLoader, true, txMgr);\t\t\t\t\t\t\n \t\t\t\t\t}\n \n \t\t\t\t\t/*\n \t\t\t\t\t * A note on exception handling here- Any exceptions thrown\n \t\t\t\t\t * further further up that need to be caught in order to\n \t\t\t\t\t * handle rollback or otherwise maintain consistency of the\n \t\t\t\t\t * SLEE state are all handled further up I.e. We *do not*\n \t\t\t\t\t * need to call rollback here. So any exceptions that get\n \t\t\t\t\t * here do not result in the SLEE being in an inconsistent\n \t\t\t\t\t * state, therefore we just log them and carry on.\n \t\t\t\t\t */\n \n \t\t\t\t\trollbackTx = false;\n \t\t\t\t} catch (RuntimeException e) {\n \t\t\t\t\tlogger.error(\n \t\t\t\t\t\t\t\"Unhandled RuntimeException in event router: \", e);\n \t\t\t\t} catch (Exception e) {\n \t\t\t\t\tlogger.error(\"Unhandled Exception in event router: \", e);\n \t\t\t\t} catch (Error e) {\n \t\t\t\t\tlogger.error(\"Unhandled Error in event router: \", e);\n \t\t\t\t\tthrow e; // Always rethrow errors\n \t\t\t\t} catch (Throwable t) {\n \t\t\t\t\tlogger.error(\"Unhandled Throwable in event router: \", t);\n \t\t\t\t} finally {\n \t\t\t\t\ttry {\n \t\t\t\t\t\tif (txMgr.getTransaction() != null) {\n \t\t\t\t\t\t\tif (rollbackTx) {\n \t\t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t\t.error(\"Rolling back tx in routeTheEvent.\");\n \t\t\t\t\t\t\t\ttxMgr.rollback();\n \t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t\t.error(\"Transaction left open in routeTheEvent! It has to be pinned down and fixed! Debug information follows.\");\n \t\t\t\t\t\t\t\tlogger.error(txMgr\n \t\t\t\t\t\t\t\t\t\t.displayOngoingSleeTransactions());\n \t\t\t\t\t\t\t\ttxMgr.commit();\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t} catch (SystemException se) {\n \n \t\t\t\t\t\tlogger.error(\"Failure in TX operation\", se);\n \t\t\t\t\t}\n \t\t\t\t\tif (sbbEntity != null) {\n \t\t\t\t\t\tif (logger.isDebugEnabled()) {\n \t\t\t\t\t\t\tlogger\n \t\t\t\t\t\t\t\t\t.debug(\"Finished delivering the event \"\n \t\t\t\t\t\t\t\t\t\t\t+ de.getEventTypeId()\n \t\t\t\t\t\t\t\t\t\t\t+ \" to the sbbEntity = \"\n \t\t\t\t\t\t\t\t\t\t\t+ sbbEntity.getSbbEntityId()\n \t\t\t\t\t\t\t\t\t\t\t+ \"]]] \\n\\n\\n\");\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\tEventRouterThreadLocals.setInvokingService(null);\n \t\t\t\t\n \t\t\t\tif (eventContextImpl.isSuspendedNotTransacted()) {\n \t\t\t\t\tif (logger.isDebugEnabled())\n \t\t\t\t\t\tlogger.debug(\"\\n\\n\\nSuspended event delivery : [[[ eventId \"\n \t\t\t\t\t\t\t+ de.getEventTypeId() + \" on ac \"+de.getActivityContextId()+\"\\n\");\n \t\t\t\t\treturn;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// need to ensure gotSbb = false if and only if iter.hasNext()\n \t\t\t\t// == false\n \t\t\t} while (gotSbb);\n \n \t\t\t\n \t\t\t/*\n \t\t\t * End of SLEE Originated Invocation Sequence\n \t\t\t * ==========================================\n \t\t\t * \n \t\t\t */\n \n \t\t\tif (de.getEventTypeId().equals(ActivityEndEventImpl.EVENT_TYPE_ID)) {\n \t\t\t\tactivityEndEventPostProcessor.process(de.getActivityContextId(), txMgr, this.container.getActivityContextFactory());\n \t\t\t} else if (de.getEventTypeId().equals(TimerEventImpl.EVENT_TYPE_ID)) {\n \t\t\t\ttimerEventPostProcessor.process(de,this.container.getTimerFacility());\n\t\t\t}\t\t\t\n \n \t\t\t// we got to the end of the event routing, remove the event context\n \t\t\tde.getEventRouterActivity().setCurrentEventContext(null);\n \t\t\t// manage event references\n \t\t\tDeferredEventReferencesManagement eventReferencesManagement = container.getEventRouter().getDeferredEventReferencesManagement();\n \t\t\teventReferencesManagement.eventUnreferencedByActivity(de.getEvent(), de.getActivityContextId());\n \t\t\t\n \t\t} catch (Exception e) {\n \t\t\tlogger.error(\"Unhandled Exception in event router top try\", e);\n \t\t}\n \t}", "public FailoverQReceiver() throws SQLException {\n\t\t// set up JMS environment\n\t\tsetup();\n\t}", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\tServerSocketChannel socketChannel = ServerSocketChannel.open();\r\n\t\t\tsocketChannel.bind(new InetSocketAddress(8189));\r\n\t\t\tExecutorService service = Executors.newCachedThreadPool();\r\n\t\t\t\r\n\t\t\twhile (true) {\r\n\t\t\t\tSocketChannel socketChannel2 = socketChannel.accept();\r\n\t\t\t\tMultipleTask sTask = new MultipleTask(socketChannel2);\r\n\t\t\t\tservice.execute(sTask);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public interface EventSink {\n\n /**\n * Generate event, that a new peer has been discovered for some torrent.\n *\n * @since 1.5\n */\n void firePeerDiscovered(TorrentId torrentId, Peer peer);\n\n /**\n * Generate event, that a new connection with some peer has been established.\n *\n * @since 1.9\n */\n void firePeerConnected(ConnectionKey connectionKey);\n\n /**\n * Generate event, that a connection with some peer has been terminated.\n *\n * @since 1.9\n */\n void firePeerDisconnected(ConnectionKey connectionKey);\n\n /**\n * Generate event, that local information about some peer's data has been updated.\n *\n * @since 1.9\n */\n void firePeerBitfieldUpdated(TorrentId torrentId, ConnectionKey connectionKey, Bitfield bitfield);\n\n /**\n * Generate event, that processing of some torrent has begun.\n *\n * @since 1.5\n */\n void fireTorrentStarted(TorrentId torrentId);\n\n /**\n * Generate event, that torrent's metadata has been fetched.\n *\n * @since 1.9\n */\n void fireMetadataAvailable(TorrentId torrentId, Torrent torrent);\n\n /**\n * Generate event, that processing of some torrent has finished.\n *\n * @since 1.5\n */\n void fireTorrentStopped(TorrentId torrentId);\n\n /**\n * Generate event, that the downloading and verification\n * of one of torrent's pieces has been finished.\n *\n * @since 1.8\n */\n void firePieceVerified(TorrentId torrentId, int pieceIndex);\n}", "public void onDrainComplete();", "@Override\n protected void channelRead0(ChannelHandlerContext ctx, String msg) throws Exception { // (4)\n Channel incoming = ctx.channel();\n\n String remoteAddress = incoming.remoteAddress().toString();\n logger.info(\"[BudsRpc ][Registry-server] receive data=[{}] from {}\", msg, remoteAddress);\n\n String[] cmd = msg.split(\"\\r\\n\");\n ActionEnum action = ActionEnum.getAction(cmd[0]);\n String service = cmd[1];\n String address = cmd[2];\n String port = cmd[3];\n\n switch (action) {\n case ACTION_REGISTRY:\n Set<Channel> channelSet = registryMap.get(service);\n if (channelSet == null) {\n channelSet = new HashSet<>();\n registryMap.put(service, channelSet);\n }\n channelSet.add(incoming);\n\n Set<String> serviceSet = providerMap.get(remoteAddress);\n if (serviceSet == null) {\n serviceSet = new HashSet<>();\n providerMap.put(remoteAddress, serviceSet);\n }\n serviceSet.add(service);\n\n // 通知订阅者\n notify(service);\n\n case ACTION_SUBSCRIBE:\n ChannelGroup channelGroup = subscribMap.get(service);\n if (channelGroup == null) {\n channelGroup = new DefaultChannelGroup(GlobalEventExecutor.INSTANCE);\n subscribMap.put(service, channelGroup);\n }\n channelGroup.add(incoming);\n break;\n\n }\n\n for (Channel channel : channels) {\n if (channel != incoming) {\n channel.writeAndFlush(\"[\" + incoming.remoteAddress() + \"]\" + msg + \"\\n\");\n } else {\n channel.writeAndFlush(\"[you]\" + msg + \"\\n\");\n }\n }\n }", "void onSomething(org.jboss.netty.buffer.ChannelBuffer buffer);", "List<Command> receive(final String receiveQueueId) throws ZigBeeException;", "private static void send() {\n Map<String, ArrayList<Event>> eventsByStream = new HashMap<>();\n for (Event event : QUEUE) {\n String stream = event.getStream();\n if (!eventsByStream.containsKey(stream) || eventsByStream.get(stream) == null) {\n eventsByStream.put(stream, new ArrayList<>());\n }\n eventsByStream.get(stream).add(event);\n }\n for (String stream : eventsByStream.keySet()) {\n if (Prefs.INSTANCE.isEventLoggingEnabled()) {\n sendEventsForStream(STREAM_CONFIGS.get(stream), eventsByStream.get(stream));\n }\n }\n }", "public interface QueueManager {\n List<Message> messages = null;\n\n int insertQueue(String queueId, Message message);\n\n List<Message> getQueue(String queueId, int num);\n}", "public void run() {\n\t\tPacket p = new Packet(SOURCE_ID, DESTINATION_ID, -1);\r\n\t\tp.type = PacketType.DATA;\r\n\t\tp.nextId = SOURCE_ID;\r\n\t\tp.setRoutingName(this.getClass().getSimpleName());\r\n\t\t\r\n\t\tinit();\r\n\t\t// First event: source node receive pkt from upper layer\r\n\t\tEvent first_e = new Event(EventType.PACKETRECEIVE, SOURCE_ID, p, currentTime, -1);\r\n\t\taddEvent(first_e);\r\n\t\t\r\n\t\twhile(state == State.NOTFINISHED)\r\n\t\t{\t\r\n\t\t\tif(eventList.size() > MAX_EVENT_SIZE)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"!!! ERROR: Scheduler too long !!!\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\tif(eventId >= eventList.size())\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"!!! EventListener Empty !!!\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\tSystem.out.println(\"*****Lista eventi da eseguire *****\");\r\n\t\t\tfor(int i = eventId; i < eventList.size(); i++)\r\n\t\t\t\tSystem.out.println(\"Evento \"+i+\" - \"+eventList.get(i));\r\n\t\t\tSystem.out.println(\"***********\");\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\t//System.out.println(\"event list size = \" + eventList.size());\r\n\t\t\te = eventList.get(eventId);\r\n\t\t\teventId++;\r\n\t\t\t\r\n\t\t\t// Node and time in which event happens\r\n\t\t\tcurrentNode = topo.get(e.nodeId);\r\n\t\t\tcurrentTime = e.time;\r\n\t\t\t\r\n\t\t\t// -------- PACKET IS BEING RECEIVED --------------------------------------------\r\n\t\t\tif(e.type == EventType.PACKETRECEIVE)\r\n\t\t\t{\t\t\t\r\n\t\t\t\tp = e.pkt;\r\n\t\t\t\tint nextId = p.nextId;\r\n\t\t\t\tif(!p.broad && currentNode.id != nextId) {\r\n\t\t\t\t\tSystem.out.println(\"SCHEDULER ERROR: current node is different than the node that received the packet.\");\r\n\t\t\t\t\tSystem.exit(1);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// Check nodes connectivity\r\n\t\t\t\tif(p.getFromId() > -1 && topo.get(p.getFromId()).distance(topo.get(nextId)) > topo.getRange())\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Connection bewteen nodes does not exists.\");\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\treceive(p, topo.get(p.nextId));\r\n\t\t\t\t\r\n\t\t\t\t// DESTINATION REACHED - STOP\r\n\t\t\t\tif(p.type == PacketType.DATA && nextId == DESTINATION_ID) {\r\n\t\t\t\t\tstate = State.SUCCESS;\r\n\t\t\t\t\t//System.out.println(\"=== Packet delivered. Simulation STOP ===\");\r\n\t\t\t\t\thops = p.getHops();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t} \r\n\t\t\t\t\t\r\n\t\t\t\t//packetSizes.add(calculatePacketSize());\r\n\t\t\t\t//trace.forward(topo.get(c_id), topo.get(nextNodeId), hops, calculatePacketSize(), state);\r\n\t\t\t\t\t\r\n\t\t\t\t// EXTRACT PACKET FROM EVENT\r\n\t\t\t\t\t\t\t\r\n\t\t\t}\t\r\n\t\t\r\n\t\t\t// -------- OTHER EVENT TYPES ----------------------------------------\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t//TODO\t\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}", "@Test\n\tpublic void sendMessage() {\n\n\t\tExecutorService executorService = Executors.newFixedThreadPool(1);\n\t\tCountDownLatch endSignal = new CountDownLatch(100);\n\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\tfinal int num = i;\n\t\t\t// Runnable run;\n\t\t\texecutorService.execute(() -> {\n\t\t\t\ttry {\n\t\t\t\t\tmessageSender = new MessageSender();\n\t\t\t\t\tmessageSender.sendMessage(\"bitchin' badass\" + num);\n\t\t\t\t\tendSignal.countDown();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"exception\", e);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\ttry {\n\t\t\tendSignal.await();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tmessageSender.closeAll();\n\n\t\t}\n\t\texecutorService.shutdown();\n\n\n\t\tval consumeFlag = messageConsumer.consume(\"trans_logs_record\");\n\n\t\ttry {\n\t\t\tThread.sleep(5000l);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tAssert.assertEquals(true, consumeFlag);\n\n\t}", "protected Client_listener(ArrayBlockingQueue<Pair<HashMap<Byte, Snake>, Point>> jobs, short listeningPort,\n\t\t\tClient c) {\n\t\tgrilleJobs = jobs;\n\t\tclient = c;\n\t\ttry {\n\t\t\tlistenerChannel = DatagramChannel.open();\n\t\t\tlistenerChannel.socket().bind(new InetSocketAddress(listeningPort));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public interface EventBusProducer {\n void post(final Answer answer);\n}" ]
[ "0.5882503", "0.57716626", "0.57031226", "0.5697532", "0.5682534", "0.5642273", "0.56196463", "0.5586527", "0.557653", "0.55734354", "0.55680424", "0.55449414", "0.55404073", "0.55323845", "0.5525313", "0.550593", "0.5468583", "0.54685193", "0.54612726", "0.5456806", "0.545005", "0.54481137", "0.5437141", "0.5410534", "0.54045594", "0.5396273", "0.53569496", "0.53566825", "0.5353644", "0.5338012", "0.53292876", "0.5321407", "0.5311551", "0.5303773", "0.53010046", "0.5296278", "0.52957", "0.5294972", "0.5290989", "0.52848357", "0.5284518", "0.5268903", "0.5267692", "0.52669597", "0.5261347", "0.52423203", "0.5234546", "0.52320766", "0.52250093", "0.519213", "0.51921284", "0.5190485", "0.5187366", "0.5186803", "0.51805395", "0.51739156", "0.51627576", "0.51571953", "0.5145818", "0.5145701", "0.5133491", "0.51292783", "0.5128324", "0.5121548", "0.5117465", "0.51161015", "0.5112638", "0.5104199", "0.5102335", "0.50964963", "0.5095862", "0.5092686", "0.5092255", "0.5091676", "0.5084998", "0.50671905", "0.50641567", "0.50603986", "0.50545436", "0.5049351", "0.504824", "0.50472915", "0.5043536", "0.5038902", "0.5038333", "0.50370663", "0.50338686", "0.5028444", "0.5026512", "0.50193036", "0.5017273", "0.50160956", "0.50137526", "0.5012281", "0.5009089", "0.5004575", "0.5003788", "0.5002544", "0.499635", "0.4993566", "0.49925417" ]
0.0
-1
Spring Data MongoDB repository for the Copie entity.
@SuppressWarnings("unused") @Repository public interface CopieRepository extends MongoRepository<Copie, String> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OfficeRepository extends MongoRepository<OfficeFile, String> {\n\n}", "public interface ProvinceRepository extends MongoRepository<Province, String> {\n\n}", "public interface PositionRepository extends MongoRepository<Position, String> {\n}", "public interface ProjectMilestoneRepository extends MongoRepository<ProjectMilestone,String> {\n\n}", "public interface PrimaryRepository extends MongoRepository<PrimaryMongoObject, String> {\n}", "public interface ResumeRepository extends MongoRepository<Personal, String> {\n}", "public interface ContactRepository extends MongoRepository<Contact, String> {\n}", "@Repository\npublic interface VetRepository extends MongoRepository<Veterinarian, String> {\n}", "@Repository\npublic interface BiologicalEntityRepository extends MongoRepository<BiologicalEntity, String> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ColheitaRepository extends MongoRepository<Colheita, String> {\n\n}", "public interface AssessmentInspectorMongoRepository extends MongoRepository<AssessmentInspector, String> {\n}", "@Repository\npublic interface IMongoCompanyRepository extends MongoRepository<MongoCompanyDto,Integer> {\n\n MongoCompanyDto findById(int id);\n\n}", "public interface ProductRepository extends MongoRepository<Offer, Integer> {\n}", "public interface AuthorityRepository extends MongoRepository<Authority, String> {\n}", "public interface MovieRepository extends MongoRepository<Movie, String> {\n}", "public interface CustomerRepository extends MongoRepository<Customer, String> {\n Customer getByName(String name);\n}", "public interface PersonRepository extends MongoRepository<Person,String> {\n}", "public interface StoryworldRepository extends MongoRepository<Storyworld, String> {\n}", "public interface ConsumerRepository extends MongoRepository<Consumer, String> {\n Consumer findConsumerByEmail(String email);\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface AttributClientRepository extends MongoRepository<AttributClient, String> {\n @Query(\"{'client.id': ?0}\")\n List<AttributClient> findAllById(String id);\n\n List<AttributClient> findAllByNomAttribut(String id);\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface InvertersRepository extends MongoRepository<Inverters, String> {\n\n}", "@Repository\npublic interface StatsRepository extends MongoRepository<Stats, String> {\n\n}", "@Repository\npublic interface PurchaseRepository extends MongoRepository<Purchase, UUID>\n{\n Collection<Purchase> findPurchaceByUserId(Integer userId);\n}", "public interface TeapotRepository extends MongoRepository<Teapot, String> {\n\n}", "public interface LookupsRepository extends MongoRepository<Lookup,String> {\n\n public Lookup findByTitle(String Guard);\n}", "public interface HospitalLocationMongoService extends MongoRepository<HospitalLocation,String> {\n}", "@Repository\npublic interface GroupRepository extends MongoRepository<Group, Integer>{\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ProductVoiceRepository extends MongoRepository<ProductVoice, String> {\n\n}", "public interface RepositorioCarroFavorito extends MongoRepository<CarroFavorito,String> {\n\n CarroFavorito findByNombre(String nombre);\n}", "public interface FavoriteRepository extends MongoRepository<Favorite,String>{\n}", "public interface MemberRepository extends MongoRepository<EsMember, String> {\n}", "@Repository\npublic interface SettingsRepository extends MongoRepository<Settings, String> {\n\n}", "@Repository\npublic interface ProductRepository extends MongoRepository<ProductPrice, Integer>{\n\tpublic ProductPrice findByProductId(int productId);\n\t\n\n}", "@Repository\npublic interface UserMongoRepository extends MongoRepository<Db_User, Integer> {\n\n}", "@Repository\npublic interface TodoRepository extends MongoRepository<Todo, String>{\n\n}", "public interface PersonMongoRepository extends MongoRepository<Person, String> {\n\n// Person findByName(String name);\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface DownloadFileRepository extends MongoRepository<DownloadFile, String> {\n\n}", "public interface FileRepository extends MongoRepository<FileModel,String> {\n}", "@Repository\npublic interface MongoParserRepository extends MongoRepository<DocumentParserResult,String> {\n}", "@Component\npublic interface BackofficeUserRepository extends MongoRepository<BackofficeUser, String> {\n public BackofficeUser findByUsername(String username);\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface DirectorshipVerificationReportRepository extends MongoRepository<DirectorshipVerificationReport, String> {\n\n}", "public interface TradeRepository extends MongoRepository<TradeRec, String> {\n\n}", "public interface ZoologieInvertebresMollusquesMapper extends MongoRepository<ZoologieInvertebresMollusques, String > {\n List<ZoologieInvertebresMollusques> findAll();\n ZoologieInvertebresMollusques findOne(String id);\n ZoologieInvertebresMollusques save(ZoologieInvertebresMollusques zoologieInvertebresMollusques);\n void delete(ZoologieInvertebresMollusques ZoologieInvertebresMollusques);\n}", "public interface CustomerRepository extends MongoRepository<Customer, String> {\n\n\tCustomer findByFirstName(String firstName);\n\tList<Customer> findByLastName(String lastName);\n\n}", "public interface RepositorioPregunta extends MongoRepository<Pregunta, String> {\n List<Pregunta> findByTema(String tema);\n List<Pregunta> findByArea(String area);\n}", "public interface ArticleRepository extends MongoRepository<Article, String> {\n}", "public interface InventoryRepository extends MongoRepository<Inventory, String>, InventoryRepositoryCustom {\n\n}", "@Repository\npublic interface PlayerRepository extends MongoRepository<Player, String> {\n\n public Player findByFirstName(String name);\n}", "public interface LinkRepository extends MongoRepository<Link, String>\n{\n Link findOneByLink(String link);\n}", "public interface NotificationRepository extends MongoRepository<Notification, String> { }", "public interface OutputRepository extends MongoRepository<Output, String>\n{\n}", "public interface DesktopClassDoRepository extends MongoRepository<QuickBooksClass, UUID> {\n\n QuickBooksClass findByQuickBooksId(String quickBooksId);\n}", "public interface BillInfoRepository extends MongoRepository<BillInfo, String>{\n\n BillInfo findByBillRefNo(String BillRefNo);\n\n}", "public interface VendorRepository extends ReactiveMongoRepository<Vendor, String> {\r\n}", "public interface ServerInstanceRepository extends MongoRepository<SFDCServerInstance, String> {\n List<SFDCServerInstance> findByKey(String key);\n}", "@SuppressWarnings(\"unused\")\npublic interface PhotoRepository extends MongoRepository<Photo, String> {\n\n List<Photo> findByPlaceId(String placeId);\n\n}", "@SuppressWarnings(\"unused\")\npublic interface SlideRepository extends MongoRepository<Slide,String> {\n\n}", "public interface TemplatePoleMissionRepository extends MongoRepository<TemplatePoleMission, String> {\n\t\n\t/**\n\t * Find TemplatePoleMission by id.\n\t *\n\t * @param _id the id\n\t * @return the template pole mission\n\t */\n\tTemplatePoleMission findBy_id(ObjectId _id);\n\t\n\t/**\n\t * Find TemplatePoleMission bypoletype.\n\t *\n\t * @param poletype the poletype\n\t * @return the template pole mission\n\t */\n\tTemplatePoleMission findBypoletype(String poletype);\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface PhotoRepository extends MongoRepository<Photo, String> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface PublisherRepository extends MongoRepository<Publisher, String> {\n\n}", "@SuppressWarnings(\"unused\")\npublic interface ExerciseFacilityRepository extends MongoRepository<ExerciseFacility,String> {\n\n List<ExerciseFacility> findByCoordinatesWithin(Circle c);\n\n List<ExerciseFacility> findByCoordinatesWithin(Box c);\n\n List<ExerciseFacility> findByCoordinatesWithin(Point p, Distance d);\n}", "public interface WeatherRepository extends MongoRepository<Weather, String> {\n Weather findByLocationAndDate(Location location, String date);\n}", "public interface CaseRepo extends MongoRepository<Case, String> {\n // Case findById(String id);\n List<Case> findByInternalId(String internalId);\n}", "@RepositoryRestResource\npublic interface PersonRepository extends MongoRepository<Person, String>{\n\n List<Person> findByName(@Param(\"name\") String name);\n\n List<Person> findPersonByAddressCity(@Param(\"city\") String city);\n\n List<Person> findPersonByAddressHouseNumber(@Param(\"houseNumber\") String houseNumber);\n\n}", "public interface ProductMetaDataRepo extends MongoRepository<ProductMetaData, String>, ProductMetaDataRepoCustom {\n ArrayList<ProductMetaData> findAllByNameContainingIgnoreCase(String name);\n\n ArrayList<ProductMetaData> findByItemCodeContainingIgnoreCase(String itemCode);\n\n ArrayList<ProductMetaData> findByBreweryContainingIgnoreCase(String brewery);\n\n ArrayList<ProductMetaData> findByDistilleryContainingIgnoreCase(String distillery);\n\n ArrayList<ProductMetaData> findByImporterContainingIgnoreCase(String importer);\n}", "public interface UserRepository extends MongoRepository<User, Long> {\n\n User findByName(String name);\n}", "public interface UserSignUpRepository extends MongoRepository<UserEntity, String>{\n}", "public interface TransactionsRepository extends MongoRepository<Transactions, String> {\n}", "public interface OrderRepository extends MongoRepository<Order, Long> , OrderRepositoryCustom{\n\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface PostsRepository extends MongoRepository<Posts, String> {\n}", "@Repository\npublic interface TransactionRepository extends MongoRepository<Transaction, String>, CustomTransactionRepository {\n}", "public interface PersonagemRepository extends MongoRepository<Personagem, String> {\n\n\t/**\n\t * Find by membro id.\n\t *\n\t * @param id the id\n\t * @return the list\n\t */\n\tpublic List<Personagem> findByMembroId(String id);\n\n\t/**\n\t * Find by membro id and classe.\n\t *\n\t * @param id the id\n\t * @param classe the classe\n\t * @return the list\n\t */\n\tpublic List<Personagem> findByMembroIdAndClasse(String id, String classe);\n\n\t/**\n\t * Find by membro id and ativo.\n\t *\n\t * @param membroId the membro id\n\t * @param ativo the ativo\n\t * @return the optional\n\t */\n\tpublic Optional<Personagem> findByMembroIdAndAtivo(String membroId, boolean ativo);\n\t\n\t\n\n}", "public interface PermissionDao extends MongoRepository<Permission, String> {\n\n}", "public interface UserRepository extends ReactiveMongoRepository<User, String> {\n}", "@SuppressWarnings(\"unused\")\npublic interface ApiInfoRepository extends MongoRepository<ApiInfo,String> {\n\n}", "public interface UserRepository extends MongoRepository<User, String> {\n\n public List<User> findAll();\n\n}", "public interface VisitorCountMongoRepository extends MongoRepository<VisitorCount,Long> {\n\n VisitorCount findByDate(Date date);\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface NotesRepository extends MongoRepository<Notes, String> {\n\n}", "public interface ListingsDataRepository extends MongoRepository<ListingData, Long> {\n\n ListingData findByListingId(Long listingId);\n}", "@Repository\npublic interface UserDao extends MongoRepository<User, String> {\n\n List<User> findByName(String name);\n}", "public interface Kun_SettingRepository extends MongoRepository<Kun_Setting,String> {\n\n public List<Kun_Setting> findKun_SettingsByName(String name);\n}", "@Component\npublic interface ModeratorRepository extends MongoRepository<Moderator, Integer> {\n\n Moderator save(Moderator saved);\n\n //Moderator findOne(int id);\n}", "@Repository\npublic interface ISubDivisionRepository extends MongoRepository<SubDivision, ObjectId> {\n Page<SubDivision> findByOrganizationId(@Param(\"organizationId\") ObjectId organizationId, Pageable pageable);\n Page<SubDivision> findByOrganizationIdAndDivisionId(@Param(\"organizationId\") ObjectId organizationId, @Param(\"divisionId\") ObjectId divisionId, Pageable pageable);\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface TActivityRepository extends MongoRepository<TActivity,String> {\n \n}", "public interface ContactRepository extends MongoRepository<Contact, String> {\n\n /**\n * It returns all relevant results with given name.\n */\n List<Contact> findByNameLike(String name);\n\n /**\n * It returns a unique contact for given name and lastName.\n */\n Contact findByNameAndLastName(String name, String lastName);\n}", "public interface SpitDao extends MongoRepository<Spit, String> {\n\n\t//根据上级ID查询吐槽列表(分页)\n\tpublic Page<Spit> findByParentid(String parentid, Pageable pageable);\n\n}", "@Repository\npublic interface ItemComboRepository extends Neo4jRepository<ItemCombo, Long> {\n\n ItemRepository findByCode(String code);\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface PatientRepository extends MongoRepository<Patient, String> {\n\n}", "interface NetworkRepository extends JpaRepository<Network, Long> {\n\n}", "public interface UserAnswersRepository extends MongoRepository<UserAnswers, String> {\n}", "public interface PocRepository extends CrudRepository<Poc> {\n \n Poc findByLiveId(Long liveId);\n \n// Poc findByNameAndCompany(String name, String company);\n\n}", "public interface UserMongoRepository extends MongoRepository<User, String> {\n // Page<User> findByUserName(String userName, Pageable pageable);\n User findByUserName(String userName);\n}", "public interface ShopperPersonRepository extends CrudRepository<ShopperPerson, Long> {\n}", "@Repository\npublic interface ProdutoRepository extends JpaRepository<Produto, Integer>{\n \t\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface DataSetRepository extends MongoRepository<DataSet, String> {\n List<DataSet> findAllByDimensionsContains(Dimension dimension);\n\n List<DataSet> findAllByMeasuresContains(Measure measure);\n}", "public interface CourseRepository extends CrudRepository<Courses, String> { }", "public interface PieRepository extends CrudRepository<Pie, Long> {\n List<Pie> findByName(String name);\n}", "@SuppressWarnings(\"unused\")\npublic interface AuthorRepository extends MongoRepository<Author, String> {\n\n Optional<Author> findOneByUserName(String userName);\n\n}", "public interface AccountTransactionRepository extends MongoRepository<AccountTransactionEnquiry, String> {\n List<AccountTransactionEnquiry> findAll();\n}", "public interface DroitaccesDocumentSearchRepository extends ElasticsearchRepository<DroitaccesDocument, Long> {\n}" ]
[ "0.7134092", "0.7104256", "0.6975631", "0.6873124", "0.68408114", "0.68125194", "0.680301", "0.67859215", "0.67676795", "0.67475504", "0.6736062", "0.67300934", "0.6727448", "0.6719272", "0.67110676", "0.66952103", "0.6678723", "0.6676543", "0.66712147", "0.6650875", "0.663751", "0.659518", "0.65941244", "0.657141", "0.6563348", "0.6559228", "0.65375274", "0.65217113", "0.65207714", "0.65198946", "0.65120417", "0.6498663", "0.64771414", "0.64746493", "0.64704734", "0.6458432", "0.6437332", "0.6425022", "0.64103407", "0.6407249", "0.64069", "0.6406893", "0.640604", "0.6404623", "0.64027184", "0.6381589", "0.6375803", "0.6368314", "0.63620585", "0.6347151", "0.6337208", "0.6319408", "0.63180447", "0.63007647", "0.62999624", "0.6280966", "0.6251548", "0.6246704", "0.6246167", "0.6229234", "0.6202976", "0.6197651", "0.6178063", "0.61679906", "0.61622345", "0.61387956", "0.61356163", "0.6132738", "0.6115653", "0.6087757", "0.60843444", "0.60795665", "0.6072924", "0.60650736", "0.60535735", "0.60414046", "0.6021234", "0.6015336", "0.60138094", "0.5963891", "0.5952769", "0.595207", "0.5947056", "0.5943893", "0.59354997", "0.59272003", "0.5926632", "0.5924865", "0.59025717", "0.59022266", "0.58956265", "0.5873309", "0.58591604", "0.58275175", "0.58218235", "0.5797629", "0.5782573", "0.57783353", "0.5777143", "0.57304084" ]
0.77237666
0
TODO Autogenerated method stub
public static void main(String[] args) { String abd = "The lines are here to sort."; abd = abd.toLowerCase(); abd = abd.substring(0, abd.length()-1); String[] abdArr = abd.split(" "); List<String> list = Arrays.asList(abdArr); Collections.sort(list, new compare()); StringBuilder sb = new StringBuilder(); String fir = list.get(0); //list.remove(0); sb.append(fir.substring(0, 1).toUpperCase() + fir.substring(1) + " "); for(int i=1; i< list.size(); i++){ sb.append(list.get(i) + " " ); } String result = sb.toString(); result = result.substring(0, result.length()-1); result = result+ "."; System.out.println(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
update label when slider value is changed
void slide_numAgents_stateChanged(ChangeEvent e) { lbl_agentCount.setText( Integer.toString( slide_numAgents.getValue() ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void iSliderStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_iSliderStateChanged\n float tmp_value = ((float)this.iSlider.getValue())/10;\n this.paramILabel.setText(\"\" + tmp_value);\n }", "private void ssSliderStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_ssSliderStateChanged\n float tmp_value = ((float)this.ssSlider.getValue())/10;\n this.paramssLabel.setText(\"\" + tmp_value);\n }", "private void dSliderStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_dSliderStateChanged\n float tmp_value = ((float)this.dSlider.getValue())/10;\n this.paramDLabel.setText(\"\" + tmp_value);\n }", "private void pSliderStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_pSliderStateChanged\n float tmp_value = ((float)this.pSlider.getValue())/10;\n this.paramPLabel.setText(\"\" + tmp_value);\n }", "private void ffSliderStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_ffSliderStateChanged\n float tmp_value = ((float)this.ffSlider.getValue())/10;\n this.paramffLabel.setText(\"\" + tmp_value);\n }", "public void stateChanged(ChangeEvent e)\n {\n slideLabel.setText(\"The speed is \" + speedSlider.getValue());\n }", "protected void valueChanged() {\r\n \t\tint newValue = slider.getSelection();\r\n \t\tint oldValue = this.intValue;\r\n \t\tintValue = newValue;\r\n \t\tjava.beans.PropertyChangeEvent event = new java.beans.PropertyChangeEvent(\r\n \t\t\t\tthis, IPropertyEditor.VALUE, oldValue, newValue);\r\n \t\tvalueChangeListener.valueChange(event);\r\n \t}", "public void stateChanged(ChangeEvent event) {\n\t\t\t\t\t\t\t\t\tlabelFilons.setText(((JSlider)event.getSource()).getValue() + \" filons :\");\n\t\t\t\t\t\t\t\t}", "@Override\n public void updateUI() {\n setUI(new RangeSliderUI(this));\n // Update UI for slider labels. This must be called after updating the\n // UI of the slider. Refer to JSlider.updateUI().\n updateLabelUIs();\n }", "@Override\r\n public void stateChanged(ChangeEvent e) {\n gameWindow.getTickDelayLabel().setText(\"Delay: \" + gameWindow.getSlider().getValue()*10 + \" ms\");\r\n }", "public void stateChanged(ChangeEvent e) {\n\t\tJSlider source = (JSlider) e.getSource();\n\t\tif (!source.getValueIsAdjusting()) {\n\t\t\tdgopval = Math.pow(10, -source.getValue() / 10.0);\n\t\t\tpvalLabel.setText(\"X = \" + source.getValue() / 10.0\n\t\t\t\t\t+ \"; p-value threshold is \"\n\t\t\t\t\t+ DREMGui_KeyInputs.doubleToSz(dgopval));\n\t\t\taddGOLabels(rootptr);\n\t\t}\n\t}", "String updateSliderLabel() {\n if (this.direction.equals(\"H\"))\n return \"Percentage of Width : \";\n if (this.direction.equals(\"V\"))\n return \"Percentage of Height : \";\n return \"/!\\\\ Direction issue! Please relaunch the App /!\\\\\";\n }", "public void stateChanged(ChangeEvent evt) {\n lowBox. setText(String. valueOf(lowSlider. getValue()));\n updateThreshold(lowSlider. getValue(), highSlider. getValue()); \n }", "public void stateChanged(ChangeEvent event){\n\t\t\t\t\t\t\tlabelLargeur.setText(2*((JSlider)event.getSource()).getValue()-1 + \" cases :\");\n\t\t\t\t\t\t}", "public void stateChanged(ChangeEvent e) {\r\n Object source = e.getSource();\r\n\r\n if (source instanceof JSlider) {\r\n JSlider slider = (JSlider) source;\r\n if (text != null) {\r\n text.setText(\"<html><font color=#FFFFFF>Volume: \"+slider.getValue()+\"</font></html>\");\r\n text.setLocation(getWidth()/2-text.getWidth()/2, text.getY());\r\n revalidate();\r\n repaint();\r\n }\r\n }\r\n }", "public void stateChanged(ChangeEvent event){\n\t\t\t\t\t\t\tlabelHauteur.setText(2*((JSlider)event.getSource()).getValue()-1 + \" cases :\");\n\t\t\t\t\t\t}", "@Override\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tint amount = betslider.getValue();\n\t\t\t\tbetAmount.setText(\"$\"+amount);\n\t\t\t}", "@Override\n public void stateChanged(ChangeEvent _e) {\n if (_e.getSource() instanceof JSlider){\n mView.setFrequencyTxt(((JSlider) _e.getSource()).getValue());\n mComponent.getCMUpdateThread().setInterval(((JSlider) _e.getSource()).getValue());\n if (mComponent.isPlaying())\n \tmComponent.getSimulationPlayer().setInterval(((JSlider) _e.getSource()).getValue());\n }\n }", "@Override\n public void stateChanged(ChangeEvent e)\n {\n if (e.getSource()==delaySlider)\n {\n// System.out.println(delaySlider.getValue());\n rightPanel.setDelayMS(delaySlider.getValue());\n }\n }", "@Override\r\n\tpublic void stateChanged(ChangeEvent e) {\n\t\tJSlider source = (JSlider)e.getSource();\r\n\t\tif (!source.getValueIsAdjusting()) {\r\n\t\t\tSystem.out.println(source.getValue());\r\n\t\t\tSliderState.setSliderValue(source.getValue());\r\n\t\t}\r\n\t}", "@Override\r\n public void onAction(String name, boolean isPressed, float tpf)\r\n {\n slideLabel.setText(String.format(\"Value : %1.2f\", slider.getValues()[0]));\r\n }", "@Override\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tint perPersonTipPercentage=((JSlider) e.getSource()).getValue();\n\t\t\t\tfloat perPersonNewTip=(((float)perPersonTipPercentage)/100)*(Float.valueOf(TipCalcView.getInstance().totalTip.getText()).floatValue());\n\t\t\n\t\t\t\tDecimalFormat decimalFormat=new DecimalFormat(\"#.##\");\n\t\t\t\tTipTailorView.getInstance().labels[no].setText(String.valueOf(decimalFormat.format(perPersonNewTip)));\n\t\t\t\tTipCalcView.getInstance().perPersonTip.setText(\"Not Applicable\");\n\t\t\t\tTipCalcView.getInstance().perPersonTip.setEditable(false);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "@FXML\n void windSliderEvent() {\n \t\n \tint value = (int) windSlider.getValue();\n \twindText.setText(Integer.toString(value));\n \twindSpeed = value;\n }", "@Override\n public void stateChanged(ChangeEvent e) {\n if (getSliderThreadsPerScan().getValue() == 0) {\n getSliderThreadsPerScan().setValue(1);\n }\n setLabelThreadsPerScanValue(getSliderThreadsPerScan().getValue());\n }", "protected void updateDisplay() {\r\n setValue(Integer.toString(value.getValue()));\r\n }", "public void stateChanged(ChangeEvent evt) {\n highBox. setText(String. valueOf(highSlider. getValue()));\n updateThreshold(lowSlider. getValue(), highSlider. getValue());\n }", "@Override\n\t\t\tpublic void stateChanged(final ChangeEvent evt) {\n\t\t\t\tfinal JSlider mySlider3 = (JSlider) evt.getSource();\n\t\t\t\t//if (source.getValueIsAdjusting()) {\n\t\t\t\tif (mySlider3.getValueIsAdjusting()) {\n\t\t\t\t\t// int freq = (int)source.getValue();\n\t\t\t\t\tfloat freq = (float) mySlider3.getValue();\n\t\t\t\t\tfreq = (freq / FREQ_MAX) * (freq / FREQ_MAX);\n\t\t\t\t\tfreq = freq * FREQ_MAX;\n\t\t\t\t\tfreq = freq + FREQ_MIN;\n\t\t\t\t\tdoPrintValue3(freq);\n\t\t\t\t\t// when the action occurs the doSendSlider method is invoked\n\t\t\t\t\t// with arguments for freq and node\n\t\t\t\t\tdoSendSlider(freq, 1002);\n\t\t\t\t}\n\t\t\t}", "public abstract void updateSlider();", "public void stateChanged(ChangeEvent evt){player.seek(slider.getValue());}", "private void sliderChanged(ChangeEvent e) {\n\t\tif (isTest()) { // TEST TEST TEST TEST !!!!!!!!!!!!!\n\t\t\treturn;\n\t\t}\n\t\n\t\tJSlider source = (JSlider) e.getSource();\n\t\tsliderValue = (int) source.getValue();\n\t\t// System.out.println(windowBase.getName() + \": sliderChanged: \" +\n\t\t// sliderValue);\n\t\tint size = index.data.getPictureSize();\n\t\tif (size == 0) {\n\t\t\tremoveAllPictureViews(); \n\t\t\treturn;\n\t\t}\n\t\t\n\t\t \n\t\tPM_Picture pic = null;\n\t\t\n\t\tif (client.getComponentCount() > 0) {\n\t\t\tObject o = client.getComponent(0);\n\t\t\tif (o instanceof PM_PictureView) {\n\t\t\t\tpic = ((PM_PictureView)o).getPicture();\n\t\t\t}\n\t\t}\n\t\t\n//\t\tSystem.out.println(\"..... sliderChanged\");\n\t\tpaintViewport(pic);\n\t\t// paintViewport(null);\n\t}", "public void sliderChanged(int sliderIndex, String sliderName, double value) {\n\n FractalAlgorithm algorithm = simulator_.getAlgorithm();\n\n if (sliderName.equals(ITER_SLIDER)) {\n algorithm.setMaxIterations((int)value);\n }\n else if (sliderName.equals(TIMESTEP_SLIDER)) {\n simulator_.setTimeStep(value);\n }\n }", "@Override\n public void valueChanged(double control_val) {\n loop_end.setValue((float)control_val);\n // Write your DynamicControl code above this line \n }", "@Override\n protected void positionChanged () {\n\n\n valueLabel.setPosition( this.getX() + ((this.getScaleX() * this.getWidth() - valueLabel.getScaleX() * valueLabel.getWidth()) / 2),\n this.getY() + ((this.getScaleY() * this.getHeight() - valueLabel.getScaleY() * valueLabel.getHeight()) / 2) );\n }", "private void setStringValue(String stringValue) {\r\n \t\tif (null != slider) {\r\n \t\t\ttry {\r\n \t\t\t\tintValue = Integer.parseInt(stringValue);\r\n \t\t\t\tslider.setSelection(intValue);\r\n \t\t\t\t/*\r\n \t\t\t\t * Show value in percents.\r\n \t\t\t\t */\r\n \t\t\t\tString weightsString = \"\" + (intValue / 10) + \"%\"; //$NON-NLS-1$ //$NON-NLS-2$\r\n \t\t\t\tslider.setToolTipText(weightsString);\r\n \t\t\t\tif (null != sliderLabel) {\r\n \t\t\t\t\tsliderLabel.setText(weightsString);\r\n \t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n \t\t\t\t// Do nothing\r\n \t\t\t}\r\n \t\t}\r\n \t}", "@Override\n public void valueChanged(String control_val) {\n if (samplePlayer.isPaused()) {\n // our string will be hh:mm:ss.m\n try {\n String[] units = control_val.split(\":\"); //will break the string up into an array\n int hours = Integer.parseInt(units[0]); //first element\n int minutes = Integer.parseInt(units[1]); //second element\n float seconds = Float.parseFloat(units[2]); // thirsd element\n float audio_seconds = 360 * hours + 60 * minutes + seconds; //add up our values\n\n float audio_position = audio_seconds * 1000;\n setAudioSliderPosition(audio_position);\n } catch (Exception ex) {\n }\n }\n // Write your DynamicControl code above this line \n }", "public void updateValue(float value) {\n\t\tcurrentValue = value;\n\t\tsliderButton.position = buttonPosition();\n\t}", "public void stateChanged(ChangeEvent evt) {\n if (evt.getSource() == bgColorSlider) {\n int bgVal = bgColorSlider.getValue();\n displayLabel.setBackground( new Color(bgVal,bgVal,bgVal) );\n // NOTE: The background color is a shade of gray,\n // determined by the setting on the slider.\n }\n else {\n float hue = fgColorSlider.getValue()/100.0f;\n displayLabel.setForeground( Color.getHSBColor(hue, 1.0f, 1.0f) );\n // Note: The foreground color ranges through all the colors\n // of the spectrum.\n }\n }", "@Override\n\tpublic void stateChanged(ChangeEvent e) {\n\t\tJSlider source = (JSlider) e.getSource();\n\t\tif(!source.getValueIsAdjusting()) {// getValueIsAdjusting 함수는 어떤 이벤트 인스턴스에서 연속적으로 이벤트가 일어 났을 때, \n\t\t\t//해당 이벤트 인스턴스들을 일종의 데이터 체인으로 보고 체인의 마지막 인스턴스 외에서 호출하는 경우 true를 반환하는 함수이다.\n\t\t\t\n\t\t\t\n\t\tint value = (int) slider.getValue();\n\t\timgBtn.setSize(value*10, value*10);// 슬라이더의 상태가 변경되면 호출됨\n\t\t}\n\t}", "@Override\n public void valueChanged(double control_val) {\n playbackRate.setValue((float)control_val);\n // Write your DynamicControl code above this line\n }", "public void setLabel()\r\n {\r\n int i = Converter(Input);\r\n \r\n if(j<i && label.getText().equals(\"Player 1\"))\r\n {\r\n j++;\r\n label.setText(\"Player \"+j);\r\n \r\n }else if(j<i && label.getText().equals(\"Player 2\"))\r\n {\r\n j++;\r\n label.setText(\"Player \"+j);\r\n }else if(j<i && label.getText().equals(\"Player 3\"))\r\n {\r\n j++;\r\n label.setText(\"Player \"+j);\r\n }else if(j==i && label.getText().equals(\"Player \"+j))\r\n {\r\n j=1;\r\n label.setText(\"Player \"+j);\r\n }\r\n \r\n \r\n }", "private void setOnInput(final JFXSlider slider, final JFXTextField textField) {\n textField.textProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n try{\n if(!newValue.isEmpty()){\n if(newValue.substring(newValue.length() - 1).equals(\".\")){\n newValue = newValue + \"0\";\n }\n double input = Double.parseDouble(newValue);\n if(input > slider.getMax()){\n slider.setValue(slider.getMax());\n }else if (input < slider.getMin()){\n slider.setValue(slider.getMin());\n }else{\n slider.setValue(input);\n }\n }\n }catch (NumberFormatException nfe){\n textField.setText(oldValue);\n }\n }\n });\n }", "private void setOnSlide(JFXSlider cogSlider, final JFXTextField cogInput) {\n cogSlider.valueProperty().addListener(new ChangeListener<Number>() {\n @Override\n public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n //TODO Round on 1 or more?\n DecimalFormat df = new DecimalFormat(\"#.#\");\n df.setRoundingMode(RoundingMode.HALF_UP);\n cogInput.setText(df.format(newValue));\n }\n });\n }", "@Override\n public void update(Object source) {\n\t// on change le texte du label de compteur de mouvement puis on repaint\n\t// ce label et on repaint aussi le dessin de la grille\n\tthis.labNbMoves.setText(\"\" + this.board.getNbMoves());\n\tthis.labNbMoves.repaint();\n\tthis.view.repaint();\n }", "@FXML\n void angleSliderEvent() {\n \tint value = (int) angleSlider.getValue();\n \tangleText.setText(Integer.toString(value));\n \tangle = value;\n \tdrawLauncher(value);\n }", "public void updateLabels() {\n\t\t//if credit less than 9 add 0 in front of the credit value \n\t\tif (obj.getCredit() < 10)\n\t\t\tcreditLabel.setText(\"0\" + String.valueOf(obj.getCredit()));\n\t\telse\n\t\t\tcreditLabel.setText(String.valueOf(obj.getCredit()));\n\t\t//if bet less than 9 add 0 in front of the credit value\n\t\tif (obj.getBet() < 10)\n\t\t\tbetLebal.setText(\"0\" + String.valueOf(obj.getBet()));\n\t\telse\n\t\t\tbetLebal.setText(String.valueOf(obj.getBet()));\n\t}", "@Override\n public void valueChanged(final ListSelectionEvent e) {\n if (e.getValueIsAdjusting()) {\n return;\n }\n showObject();\n }", "private void updateHubHelps(BoundedRangeModel subModel , JLabel component) {\n DecimalFormat df = new DecimalFormat(\"#00.00\");\n float prc_current = (float)subModel.getValue() / (float)( subModel.getMaximum() - subModel.getMinimum() ) * 100f;\n float prc_total = this.hub.getWeight( this.hub.indexOf( subModel ) ) / this.hub.getTotalWeight() * 100f;\n component.setText( df.format(prc_current) + \" % of \" + df.format(prc_total) + \" %\" );\n }", "@FXML\r\n private void updateNumDotsLabel() {\r\n numDotsLabel.setText(\"Number of Dots: \" + picture.getNumDots());\r\n }", "public void divisionsChanged(){\r\n voltagePerDivisionLabel.setText(getScienceNumber(VoltagePerDivision) + \"V/Division\");\r\n SecondsPerDivisionLabel.setText(getScienceNumber(secondsPerDivision)+\"S/Div\");\r\n }", "private void updateLabel(JLabel label, int pl) {\n synchronized (label) {\n String val = label.getText();\n int next = Integer.parseInt(val) + pl;\n label.setText(\"\" + next);\n }\n }", "@Override\n protected void onProgressUpdate(String... values) {\n labelStatus.setText(values[0]);\n }", "@Override\n\tpublic void stateChanged(ChangeEvent e) {\n\t\tJSlider difficultySlider = (JSlider) e.getSource();\n\t\n\t\tint newDifficulty = difficultySlider.getValue();\n\t\tmodel.getLevelTemplate().setProbConst(newDifficulty);\n\t}", "public void updatePlayerHealthUI() {\n CharSequence text = String.format(\"Score: %d\", getscore());\n scoreLabel.setText(text);\n }", "public void update(){\n label = tag.getSelectedItemPosition() == 0 ? \"all\" : mLabel[tag.getSelectedItemPosition()];\n Refresh();\n }", "public void switchToLabel() {\n if (deckPanel.getVisibleWidget() == LABEL_INDEX) {\n return;\n }\n // Fires the ValueChanged event.\n setValue(textArea.getText(), true);\n deckPanel.showWidget(LABEL_INDEX);\n }", "public void stateChanged(ChangeEvent e) {\n\n (model.getInterpol()).setBezierIterationen(((JSlider) e.getSource()).getValue());\n }", "@Override\n public void valueChanged(double control_val) {\n samplePlayer.setPosition(control_val);\n setAudioTextPosition(control_val);\n // Write your DynamicControl code above this line \n }", "public abstract void updateLabels();", "void setLabelString() {\n int pad = 5; // fudge to make up for variable width fonts\n float maxVal = Math.max(Math.abs(min), Math.abs(max));\n intDigits = Math.round((float) (Math.log(maxVal) / Math.log(10))) + pad;\n if (min < 0) {\n intDigits++; // add one for the '-'\n }\n // fractDigits is num digits of resolution for fraction. Use base 10 log\n // of scale, rounded up, + 2.\n fractDigits = (int) Math.ceil((Math.log(scale) / Math.log(10)));\n nf.setMinimumFractionDigits(fractDigits);\n nf.setMaximumFractionDigits(fractDigits);\n String value = nf.format(current);\n while (value.length() < (intDigits + fractDigits)) {\n value = value + \" \";\n }\n valueLabel.setText(value);\n }", "public void valueChanged(ListSelectionEvent e) {\n\t\t\t\tif(!e.getValueIsAdjusting()){\n\n\t\t\t\t\tlabel.setText(\"\");\n\n\t\t\t\t\t//get the product\n\t\t\t\t\tProduct product = catalog.getProduct(list.getSelectedValue()+\"\");\n\t\t\t\t\tlabelTypeInfo.setText(product.getType());\n\t\t\t\t\tlabelNameInfo.setText(product.getName());\n\t\t\t\t\tlabelCodeInfo.setText(product.getCode());\n\t\t\t\t\tlabelPriceInfo.setText(product.getPrice() + \"\");\n\n\n\t\t\t\t\t//judge product is coffee or tea milk, output the different value to the label.\n\t\t\t\t\tif (product.getType() == \"Coffee\") {\n\n\t\t\t\t\t\tlabelTempInfo.setText(((Coffee)product).getTemperature());\n\t\t\t\t\t\tlabelTempInfo.setBorder(new LineBorder(Color.BLACK, 1, true));\n\t\t\t\t\t\tlabelOriginInfo.setText(((Coffee)product).getOrigin());\n\t\t\t\t\t\tlabelOriginInfo.setBorder(new LineBorder(Color.BLACK, 1, true));\n\t\t\t\t\t\tlabelSweetInfo.setText(\"\");\n\t\t\t\t\t\tlabelSweetInfo.setBorder(new LineBorder(Color.LIGHT_GRAY, 1, true));\n\n\n\t\t\t\t\t}else if (product.getType() == \"TeaMilk\") {\n\n\t\t\t\t\t\tlabelSweetInfo.setText(((TeaMilk)product).isSweetness() + \"\");\n\t\t\t\t\t\tlabelSweetInfo.setBorder(new LineBorder(Color.BLACK, 1, true));\n\t\t\t\t\t\tlabelTempInfo.setText(\"\");\n\t\t\t\t\t\tlabelTempInfo.setBorder(new LineBorder(Color.LIGHT_GRAY, 1, true));\n\t\t\t\t\t\tlabelOriginInfo.setText(\"\");\n\t\t\t\t\t\tlabelOriginInfo.setBorder(new LineBorder(Color.LIGHT_GRAY, 1, true));\n\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"an Error\");\n\t\t\t\t\t}\n\n\t\t\t\t\t// set the image to the label to display the product appearance.\n\t\t\t\t\tImageIcon icon = new ImageIcon(\"src/image/\" + product.getName() + \".jpg\");\n\t\t\t\t\timageLabel.setIcon(icon);\n\t\t\t\t\timageLabel.setSize(200, 200);\n\t\t\t\t\tpanelImage.add(imageLabel);\t\n\t\t\t\t}\n\n\n\t\t\t}", "public void stateChanged(ChangeEvent e) {\n JSlider source = (JSlider)e.getSource();\n //volume\n if(parameter=='v'){\n System.out.println(\"Panel: \"+numSampler+\" volume: \"+source.getValue());\n }\n //volume\n else if(parameter=='p'){\n System.out.println(\"Panel: \"+numSampler+\" pitch: \"+source.getValue());\n }\n else if(parameter=='f'){\n System.out.println(\"Panel: \"+numSampler+\" filter cutoff: \"+source.getValue());\n }\n }", "private void updateLabel() {\n\t\tString translation = lp.getString(key);\n\t\tsetText(translation);\n\n\t}", "private void sensSliderMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_sensSliderMouseReleased\n this.sens = this.sensSlider.getValue();\n this.controller.setSens(this.sens);\n this.sensPercentLabel.setText(\"\"+this.sens+\"%\");\n }", "@Override\n\tpublic void updateLabels() {\n\n\t}", "void updateSliderPosition(int currentTick);", "protected void createSlider(CompContainer cc, String name, int min, int max, \r\n\t\t\tint t1, int t2, int pointer, final String suffix)\r\n\t{\r\n\t\tcc.label = new JLabel(localer.getBundleText(name));\r\n\t\tcc.label.setName(\"Label-\" + name);\r\n\t\tcc.label.setFont(cc.label.getFont().deriveFont(Font.PLAIN));\r\n\r\n\t\tcc.extraLabel = new JLabel(\"\", JLabel.CENTER);\r\n\t\tcc.extraLabel.setName(\"ChgValue-\" + name);\r\n\t\tcc.extraLabel.setFont(cc.extraLabel.getFont().deriveFont(Font.PLAIN));\r\n\t\tfinal JLabel extra = cc.extraLabel;\r\n\t\t\r\n\t\tString preValue = prefMap.get(name);\r\n\t\tif(preValue == null || preValue.equals(\"\")) // if setting is found in prefs\r\n\t\t\tcc.extraLabel.setText(Integer.toString(pointer) + suffix);\r\n\t\telse\r\n\t\t{\r\n\t\t\tpointer = Integer.parseInt(preValue);\r\n\t\t\tcc.extraLabel.setText(preValue + suffix);\r\n\t\t}\r\n\t\t\r\n\t\tcc.comp = new JSlider(min, max, pointer);\r\n\t\tcc.comp.setName(name);\r\n\t\t\r\n\t\t((JSlider)cc.comp).setPaintTicks(true);\r\n\t\t((JSlider)cc.comp).setSnapToTicks(true);\r\n\t\t((JSlider)cc.comp).setMinorTickSpacing(t1);\r\n\t\t((JSlider)cc.comp).setMajorTickSpacing(t2);\r\n\t\t((JSlider)cc.comp).addChangeListener(new ChangeListener()\r\n\t\t{\r\n\t\t\tpublic void stateChanged(ChangeEvent e)\r\n\t\t\t{\r\n\t\t\t\textra.setText(Integer.toString(\r\n\t\t\t\t\t\t((JSlider)e.getSource()).getValue()) + suffix); \r\n\t\t\t} \r\n\t\t} ); \r\n\t}", "private void updateAgentChangeFromSlider(int progress) {\n\t\tplayer.setAgentNumberChange(progress / 10);\n\n\t}", "public void stateChanged(ChangeEvent e) {\n\n\t\tJSlider src = (JSlider) e.getSource();\n\n\t\tif (src == gainFactorSlider) {\n\t\t\tif (!src.getValueIsAdjusting()) {\n\t\t\t\tint val = (int) src.getValue();\n\t\t\t\tgainFactor = val * 0.25;\n\n\t\t\t}\n\t\t} else if (src == biasFactorSlider) {\n\t\t\tif (!src.getValueIsAdjusting()) {\n\t\t\t\tbiasFactor = (int) src.getValue();\n\n\t\t\t}\n\t\t}\n\n\t}", "public void updateProgressLabel1 (String label1)\n\t{\n\t\t\n\t\tmProgressLabel1.setText(label1);\n\t\tmProgressLabel1.repaint();\n\t\n\t}", "void valueChanged(CalcModel model);", "void valueChanged(CalcModel model);", "public void refreshPointsLabel(){\n\t\tpointsLab.setText(\"Points: \" + points);\n\t}", "@Override\n\tprotected void setValueOnUi() {\n\n\t}", "public void valueChanged(ListSelectionEvent arg0) {\n\t\t\r\n\t}", "public void updateLabels() {\n\t\tfinal PlayerInfo player = ControllerImpl.getController().getCurrentPlayer();\n\t\tplayerLabel.setText(\"Player:\\n\" + player.getName());\n\t\tcashLabel.setText(\"Cash:\\n\" + player.getMoney());\n\t\tnetWorthLabel.setText(\"Net Worth:\\n\" + player.totalAssets());\n\t\tprisonLabel.setText(player.isInJail() ? \"In jail\" : \"Free\");\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n label = new javax.swing.JLabel();\n cantBrillo = new javax.swing.JSlider();\n ok = new javax.swing.JButton();\n cantidad = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n label.setFont(new java.awt.Font(\"Lucida Grande\", 0, 14)); // NOI18N\n label.setText(\"Selecciona la cantidad de Brillo\");\n\n cantBrillo.setFont(new java.awt.Font(\"Lucida Grande\", 0, 14)); // NOI18N\n cantBrillo.setMaximum(255);\n cantBrillo.setValue(0);\n cantBrillo.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n cantBrilloStateChanged(evt);\n }\n });\n\n ok.setText(\"Aceptar\");\n ok.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n okActionPerformed(evt);\n }\n });\n\n cantidad.setText(\"0\");\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 .addGap(103, 103, 103)\n .addComponent(label, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addGap(37, 37, 37)\n .addComponent(cantidad, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(cantBrillo, javax.swing.GroupLayout.PREFERRED_SIZE, 312, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(49, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(ok)\n .addGap(17, 17, 17))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(label, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(cantidad, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cantBrillo, javax.swing.GroupLayout.DEFAULT_SIZE, 39, Short.MAX_VALUE))\n .addGap(14, 14, 14)\n .addComponent(ok)\n .addContainerGap())\n );\n\n pack();\n }", "String updateLabel(String oldLabel, String newLabel);", "public void stateChanged(ChangeEvent event)\n {\n JSlider source = (JSlider) event.getSource();\n if (!source.getValueIsAdjusting())\n {\n SensorInfo.getInstance().setSliderSpeed(source.getValue());\n Controller.getInstance().setMotors();\n }\n }", "public void stateChanged(ChangeEvent e)\n {\n simulation.setSpeed(speedSlider.getValue());\n }", "@Override\n public void valueChanged(double control_val) {\n float current_audio_position = (float)samplePlayer.getPosition();\n\n if (current_audio_position < control_val){\n samplePlayer.setPosition(control_val);\n }\n loop_start.setValue((float)control_val);\n // Write your DynamicControl code above this line \n }", "public void updateLabelsAndCharts() {\n\t\terror.setText(\"\");\r\n\t\tPerson p = this.listviewPersons.getSelectionModel().getSelectedItem();\r\n\t\tif (p == null) {\r\n\t\t\tdots.setText(\"\");\r\n\t\t} else {\r\n\t\t\tdots.setText(dotsReadable(p));\r\n\t\t\tif (personToData.containsKey(p)) {\r\n\t\t\t\tData<String, Integer> d = personToData.get(p);\r\n\t\t\t\td.setYValue(p.getDots());\r\n\t\t\t}\r\n\t\t\tif (personToPiechartData.containsKey(p)) {\r\n\t\t\t\tPieChart.Data pd = personToPiechartData.get(p);\r\n\t\t\t\tpd.setPieValue(Math.max(p.getDots(), 0));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n DecimalFormat df = new DecimalFormat(\"#.#\");\n df.setRoundingMode(RoundingMode.HALF_UP);\n cogInput.setText(df.format(newValue));\n }", "public void update() {\r\n\t\tlabel.setText(time / 60 + \":\" + ((time % 60 <= 9)? (\"0\" + time % 60) : (time % 60)));\r\n\t}", "public void onSliderChanged() {\r\n\r\n // So we can get the date of where our slider is pointing\r\n int sliderValue = (int) dateSlider.getValue();\r\n System.out.println(sliderValue);\r\n\r\n // When the slider is moved, only the correct button will appear\r\n if(sliderValue == 0) {\r\n eventButton1.setVisible(true);\r\n eventButton2.setVisible(false);\r\n eventButton3.setVisible(false);\r\n eventButton4.setVisible(false);\r\n eventButton5.setVisible(false);\r\n } else if(sliderValue == 6) {\r\n eventButton1.setVisible(false);\r\n eventButton2.setVisible(true);\r\n eventButton3.setVisible(false);\r\n eventButton4.setVisible(false);\r\n eventButton5.setVisible(false);\r\n } else if(sliderValue == 12) {\r\n eventButton1.setVisible(false);\r\n eventButton2.setVisible(false);\r\n eventButton3.setVisible(true);\r\n eventButton4.setVisible(false);\r\n eventButton5.setVisible(false);\r\n } else if(sliderValue == 18) {\r\n eventButton1.setVisible(false);\r\n eventButton2.setVisible(false);\r\n eventButton3.setVisible(false);\r\n eventButton4.setVisible(true);\r\n eventButton5.setVisible(false);\r\n } else if(sliderValue == 25) {\r\n eventButton1.setVisible(false);\r\n eventButton2.setVisible(false);\r\n eventButton3.setVisible(false);\r\n eventButton4.setVisible(false);\r\n eventButton5.setVisible(true);\r\n }\r\n }", "public void sliderChange(int r, int g, int b)\n {\n String outPutR;\n String outPutG;\n String outPutB;\n \n //************output to binary()*******//\n if(binaryRBtn.isSelected() == true)\n { \n outPutR = Integer.toBinaryString(r);\n outPutG = Integer.toBinaryString(g);\n outPutB = Integer.toBinaryString(b);\n\n messageRed = (\"\" + outPutR); \n messageGreen = (\"\" + outPutG);\n messageBlue = (\"\" + outPutB);\n }\n //********output to hex()************//\n else if(hexDecRBtn.isSelected() == true)\n {\n outPutR = Integer.toHexString(r);\n outPutG = Integer.toHexString(g);\n outPutB = Integer.toHexString(b);\n \n \n messageRed = (\"\" + outPutR);\n messageGreen = (\"\" + outPutG);\n messageBlue = (\"\" + outPutB);\n }\n //**********output to Octal()********//\n else if(octalRBtn.isSelected() == true)\n {\n outPutR = Integer.toOctalString(r);\n outPutG = Integer.toOctalString(g);\n outPutB = Integer.toOctalString(b);\n \n \n messageRed = (\"\" + outPutR);\n messageGreen = (\"\" + outPutG);\n messageBlue = (\"\" + outPutB);\n }\n //*********output to decimal()********//\n else if(decimalRBtn.isSelected() == true)\n {\n outPutR = Integer.toString(r);\n outPutG = Integer.toString(g);\n outPutB = Integer.toString(b);\n \n \n messageRed = (\"\" + outPutR);\n messageGreen = (\"\" + outPutG);\n messageBlue = (\"\" + outPutB);\n }\n \n //******Bar Display rise and fall()******//\n redHeight=1; \n greenHeight=1; \n blueHeight=1;\n \n redHeight += rSliderValue;\n greenHeight += gSliderValue;\n blueHeight += bSliderValue;\n \n redYvalue = 475;\n redYvalue -=rSliderValue;\n \n greenYvalue = 475;\n greenYvalue -=gSliderValue;\n \n blueYvalue = 475;\n blueYvalue -=bSliderValue;\n \n repaint();\n \n }", "public void update_statusfield(StatusField field,String text)\r\n {\r\n JLabel targetfield;\r\n if (field==StatusField.STATUSFIELD1) {targetfield=this.statusfield1;}\r\n else if (field==StatusField.STATUSFIELD2) {targetfield=this.statusfield2;}\r\n else {targetfield=this.statusfield3;}\r\n \r\n targetfield.setText(text);\r\n targetfield.repaint();\r\n }", "public void notifyScoreChange(int score) {\n scoreLabel.setText(String.valueOf(score));\n }", "void regListValueChanged(){\r\n\t\tseries = dealer.getSeriesQueue();\r\n\t\tIterator<BuzzardSeriesInfo> it = series.iterator();\r\n\t\tint i=0;\r\n\t\tint selInd = reList.getSelectedIndex();\r\n\t\twhile(i<=selInd&&it.hasNext()){\r\n\t\t\tinfo = it.next();\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tnrLabel.setText(nrLabelText + String.valueOf(info.getNoOfMatches()));\r\n\t\t// Welch Freude... wir sehen den Fragezeichenoperator in action ;)\r\n\t\tviLabel.setText(viLabelText + (info.isSimulated()?\"Ja\":\"Nein\"));\r\n\t\tgeList.clear();\r\n\t\tgeList.displayPlayers(info.getPlayers());\r\n\t}", "@Override\n\tpublic void valueChanged(ListSelectionEvent e) {\n\t\tJList list = (JList) e.getSource();\n\t\t// System.out.println(list.getSelectedIndex() + \" \" +results.size() );\n\t\tif (results.size() < list.getSelectedIndex()\n\t\t\t\t|| list.getSelectedIndex() < 0) {\n\t\t\tupdateLabel(results.toArray(new String[0])[0]);\n\t\t} else\n\t\t\tupdateLabel(results.toArray(new String[0])[list.getSelectedIndex()]);\n\t}", "public void valueChanged(TreeSelectionEvent e) {\n\t}", "public void valueChanged(ListSelectionEvent e)\n\t\t\t{\n\t\t\t}", "@Override\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\ttexto.setFont(new Font((String) miCombo.getSelectedItem(), Font.PLAIN,miSlider.getValue()));\n\t\t\t}", "private void updatePriceLabel(double aPrice) {\n price = aPrice;\n String out = String.format(\"<html><b>Price</b><br>$%.2f</html>\", price);\n priceLabel.setText(out);\n }", "public JOptionPaneSlider(int minValue, int maxValue, int initialValue) {\n\t\tsuper();\n\t\t\n\t\tthis.slider = new JSlider(minValue, maxValue, initialValue);\n\t\tthis.slider.setMajorTickSpacing(50);\n\t\tthis.slider.setPaintTicks(true);\n\t\tthis.slider.setPaintLabels(true); \n\t\tthis.slider.setPreferredSize(new Dimension(400, 43));\n\t\tthis.slider.addChangeListener(new ActionSlider());\n\t\t\n\t\tthis.labelValueSelected = new JLabel();\n\t\tthis.setSelectedValue(initialValue);\n\t\t\n\t\tthis.setMessage(new Object[] {this.labelValueSelected, this.slider});\n\t\tthis.setMessageType(JOptionPane.QUESTION_MESSAGE);\n\t\tthis.setOptionType(JOptionPane.OK_CANCEL_OPTION);\n\t}", "public void valueChanged(ListSelectionEvent e) {\n\t\t\n\t}", "public void valueChanged (TreeSelectionEvent event)\n {\n updateSelection();\n }", "public void adjustmentValueChanged( AdjustmentEvent e ) {\n\trefreshControls();\n }", "public void status(){\n lblStats.setText(\"\"+level+\"L\");\n }", "@Override\n\tpublic void valueChanged(ListSelectionEvent e) {\n\t\t// TODO Auto-generated method stub\n\t\tString name = ((JList) e.getSource()).getName();\n\t\tif (name.equals(\"pred\")){\n\t\t\tint selected = displayPred.getSelectedIndex();\n\t\t\tif (selected == -1)\n\t\t\t\tselected = 0;\n\t\t\tString loc = predParticles.get(selected).getPath();\n\t\t\tvm.updateParticleGame(loc);\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\tint selected = displayPrey.getSelectedIndex();\n\t\t\tString loc = preyParticles.get(selected).getPath();\n\t\t\tvm.updateParticleGame(loc);\n\t\t}\n\t}", "private void updateValue(Widget sender){\r\n\t\tint index = getWidgetIndex(sender) - 1;\r\n\t\tTaskParam param = taskDef.getParamAt(index);\r\n\t\tparam.setValue(((TextBox)sender).getText());\r\n\t\ttaskDef.setDirty(true);\r\n\t}" ]
[ "0.7825323", "0.7623903", "0.75807315", "0.7550163", "0.7492765", "0.73455125", "0.72795194", "0.72778326", "0.7076501", "0.70749396", "0.7031691", "0.70091546", "0.6970237", "0.69644666", "0.6956101", "0.6938193", "0.6894269", "0.6823621", "0.6781353", "0.67785174", "0.67772263", "0.67462504", "0.6732244", "0.6725158", "0.6708209", "0.6692311", "0.66672987", "0.66571116", "0.65736836", "0.6565914", "0.65590215", "0.65446293", "0.6479102", "0.6450721", "0.6450554", "0.64383465", "0.6431091", "0.6413845", "0.63910496", "0.6386997", "0.6369461", "0.6359397", "0.6308909", "0.6285697", "0.62728", "0.62719905", "0.6269978", "0.6266108", "0.6265327", "0.6264664", "0.62640893", "0.62597793", "0.6247041", "0.6245499", "0.6240689", "0.6213727", "0.6205251", "0.620148", "0.6190215", "0.6171497", "0.6170521", "0.6168323", "0.61682653", "0.61572033", "0.61289096", "0.61148506", "0.6108651", "0.60734975", "0.6060835", "0.60351455", "0.60351455", "0.6014382", "0.598465", "0.5971517", "0.5967362", "0.59628654", "0.5960281", "0.59561956", "0.5955813", "0.5941774", "0.5934538", "0.59340465", "0.59188217", "0.5908021", "0.5906363", "0.59017766", "0.59012616", "0.589878", "0.58974946", "0.5897307", "0.58862597", "0.5879639", "0.5868285", "0.5868083", "0.58639", "0.5861332", "0.5856154", "0.5852127", "0.5845183", "0.58257896" ]
0.6006508
72
Maintains the enbabled/disabled state of key controls, depending on whether the sim is running or stopped.
void enableControls( boolean starting ) { btn_start.setEnabled( !starting ); btn_stop.setEnabled( starting ); slide_numAgents.setEnabled( !starting ); btn_Exit.setEnabled( !starting ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"serial\")\n private void enableGamePlayKeys() {\n if (CLASSIC_MODE.equals(myGameMode)) {\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, 0), \"left\");\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, 0), \"right\");\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0), \"down\");\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0), \"rotateCW\");\n }\n else {\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, 0), \"left\");\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, 0), \"right\");\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0), \"down\");\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0), \"rotateCW\");\n }\n\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, 0), \"drop\");\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_P, 0), \"pause\");\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_Z, 0), \"rotateCCW\");\n\n getActionMap().put(\"left\", new AbstractAction() {\n @Override\n public void actionPerformed(final ActionEvent theEvent) {\n myBoard.left();\n }\n });\n\n getActionMap().put(\"right\", new AbstractAction() {\n @Override\n public void actionPerformed(final ActionEvent theEvent) {\n myBoard.right();\n }\n });\n\n getActionMap().put(\"down\", new AbstractAction() {\n @Override\n public void actionPerformed(final ActionEvent theEvent) {\n myBoard.down();\n }\n });\n\n getActionMap().put(\"rotateCW\", new AbstractAction() {\n @Override\n public void actionPerformed(final ActionEvent theEvent) {\n myBoard.rotateCW();\n }\n });\n\n getActionMap().put(\"rotateCCW\", new AbstractAction() {\n @Override\n public void actionPerformed(final ActionEvent theEvent) {\n myBoard.rotateCCW();\n }\n });\n\n getActionMap().put(\"right\", new AbstractAction() {\n @Override\n public void actionPerformed(final ActionEvent theEvent) {\n myBoard.right();\n }\n });\n\n getActionMap().put(\"drop\", new AbstractAction() {\n @Override\n public void actionPerformed(final ActionEvent theEvent) {\n myBoard.drop();\n }\n });\n\n getActionMap().put(\"pause\", new AbstractAction() {\n @Override\n public void actionPerformed(final ActionEvent theEvent) {\n if (myTimer.isRunning()) {\n pauseTimer();\n } else {\n startTimer();\n }\n }\n });\n }", "@Override\r\n\tpublic void enable() {\n\t\tcurrentState.enable();\r\n\t}", "private void setupKeyMaps() {\n JPanel c = (JPanel) ((JLayeredPane) ((JRootPane) this.getComponents()[0]).getComponents()[1]).getComponents()[0];\n for (Component com : c.getComponents()) {\n if (com.getClass() == JButton.class || com.getClass() == JCheckBox.class || com.getClass() == JToggleButton.class) {\n ((JComponent) com).getInputMap(JComponent.WHEN_FOCUSED).put(\n KeyStroke.getKeyStroke(\"SPACE\"), \"none\");\n }\n if (com.getClass() == JTabbedPane.class) {\n for (Component com2 : ((JTabbedPane) com).getComponents()) {\n for (Component com3 : ((JPanel) com2).getComponents()) {\n if (com3.getClass() == JButton.class || com3.getClass() == JCheckBox.class || com3.getClass() == JToggleButton.class) {\n ((JComponent) com3).getInputMap(JComponent.WHEN_FOCUSED).put(\n KeyStroke.getKeyStroke(\"SPACE\"), \"none\");\n }\n }\n }\n }\n }\n \n getRootPane().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(\n KeyStroke.getKeyStroke(\"SPACE\"), \"spacePressed\");\n getRootPane().getActionMap().put(\"spacePressed\", new AbstractAction(){\n private static final long serialVersionUID = 1L;\n @Override\n public void actionPerformed(ActionEvent e) {\n changeButton.doClick();\n }\n });\n \n getRootPane().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(\n KeyStroke.getKeyStroke(\"ESCAPE\"), \"escapePressed\");\n getRootPane().getActionMap().put(\"escapePressed\", new AbstractAction(){\n @Override\n public void actionPerformed(ActionEvent e) {\n bodiesComboBox.setSelectedIndex(-1);\n }\n });\n \n sunRadioButton.getInputMap(JComponent.WHEN_FOCUSED).put(\n KeyStroke.getKeyStroke(\"ENTER\"), \"enterPressed\");\n sunRadioButton.getActionMap().put(\"enterPressed\", new AbstractAction(){\n @Override\n public void actionPerformed(ActionEvent e) {\n sunRadioButton.setSelected(true);\n }\n });\n \n planetRadioButton.getInputMap(JComponent.WHEN_FOCUSED).put(\n KeyStroke.getKeyStroke(\"ENTER\"), \"enterPressed\");\n planetRadioButton.getActionMap().put(\"enterPressed\", new AbstractAction(){\n @Override\n public void actionPerformed(ActionEvent e) {\n planetRadioButton.setSelected(true);\n }\n });\n \n addNewBodyButton.getInputMap(JComponent.WHEN_FOCUSED).put(\n KeyStroke.getKeyStroke(\"ENTER\"), \"enterPressed\");\n addNewBodyButton.getActionMap().put(\"enterPressed\", new AbstractAction(){\n @Override\n public void actionPerformed(ActionEvent e) {\n addNewBodyButton.doClick();\n }\n });\n \n bodiesComboBox.getInputMap(JComponent.WHEN_FOCUSED).put(\n KeyStroke.getKeyStroke(\"ENTER\"), \"enterPressed\");\n bodiesComboBox.getActionMap().put(\"enterPressed\", new AbstractAction(){\n @Override\n public void actionPerformed(ActionEvent e) {\n bodiesComboBox.setPopupVisible(!bodiesComboBox.isPopupVisible());\n }\n });\n \n colorComboBoxAdd.getInputMap(JComponent.WHEN_FOCUSED).put(\n KeyStroke.getKeyStroke(\"ENTER\"), \"enterPressed\");\n colorComboBoxAdd.getActionMap().put(\"enterPressed\", new AbstractAction(){\n @Override\n public void actionPerformed(ActionEvent e) {\n colorComboBoxAdd.setPopupVisible(!colorComboBoxAdd.isPopupVisible());\n }\n });\n \n moveableCheckBoxEdit.getInputMap(JComponent.WHEN_FOCUSED).put(\n KeyStroke.getKeyStroke(\"ENTER\"), \"enterPressed\");\n moveableCheckBoxEdit.getActionMap().put(\"enterPressed\", new AbstractAction(){\n @Override\n public void actionPerformed(ActionEvent e) {\n moveableCheckBoxEdit.setSelected(!moveableCheckBoxEdit.isSelected());\n }\n });\n \n moveableCheckBoxAdd.getInputMap(JComponent.WHEN_FOCUSED).put(\n KeyStroke.getKeyStroke(\"ENTER\"), \"enterPressed\");\n moveableCheckBoxAdd.getActionMap().put(\"enterPressed\", new AbstractAction(){\n @Override\n public void actionPerformed(ActionEvent e) {\n moveableCheckBoxAdd.setSelected(!moveableCheckBoxAdd.isSelected());\n }\n });\n }", "private void setBtnState(){\n recordBtn.setEnabled(!recording);\n stopBtn.setEnabled(recording);\n pauseBtn.setEnabled(playing & !paused);\n resumeBtn.setEnabled(paused);\n }", "@SuppressWarnings(\"serial\")\n private void enableStartupKeys() {\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_C, 0), \"controls\");\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_A, 0), \"about\");\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_E, 0), \"end game\");\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_N, 0), \"new game\");\n\n getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_N, 0), \"new game\");\n getActionMap().put(\"new game\", new AbstractAction() {\n @Override\n public void actionPerformed(final ActionEvent theEvent) {\n endGame();\n if (myGameOver || myWelcome) {\n startNewGame();\n }\n }\n });\n\n getActionMap().put(\"controls\", new AbstractAction() {\n @Override\n public void actionPerformed(final ActionEvent theEvent) {\n pauseTimer();\n displayControlDialog();\n if (!myWelcome) {\n startTimer();\n }\n }\n });\n\n getActionMap().put(\"about\", new AbstractAction() {\n @Override\n public void actionPerformed(final ActionEvent theEvent) {\n pauseTimer();\n displayAboutDialog();\n if (!myWelcome) {\n startTimer();\n }\n }\n });\n\n getActionMap().put(\"end game\", new AbstractAction() {\n @Override\n public void actionPerformed(final ActionEvent theEvent) {\n endGame();\n }\n });\n }", "public void setupFocusable(){\n setFocusable(true);\n setFocusTraversalKeysEnabled(false);\n fwdButton.setFocusable(false);\n revButton.setFocusable(false);\n leftButton.setFocusable(false);\n rightButton.setFocusable(false);\n this.powerIcon.setFocusable(false);\n lServoWarn.setFocusable(false);\n startToggle.setFocusable(false);\n modeToggleButton.setFocusable(false);\n sensSlider.setFocusable(false);\n }", "private void enableControls(boolean b) {\n\n\t}", "public Keyboard(){\n \n for(boolean k: keys){\n k=false;\n }\n }", "private void enableSet(){\n addSubmit.setDisable(true);\n removeSubmit.setDisable(true);\n setSubmit.setDisable(false);\n addCS.setDisable(true);\n removeCS.setDisable(true);\n setCS.setDisable(false);\n addIT.setDisable(true);\n removeIT.setDisable(true);\n setIT.setDisable(false);\n addECE.setDisable(true);\n removeECE.setDisable(true);\n setECE.setDisable(false);\n partTime.setDisable(true);\n fullTime.setDisable(true);\n management.setDisable(true);\n dateAddText.setDisable(true);\n dateRemoveText.setDisable(true);\n dateSetText.setDisable(false);\n nameAddText.setDisable(true);\n nameRemoveText.setDisable(true);\n nameSetText.setDisable(false);\n hourlyAddText.setDisable(true);\n annualAddText.setDisable(true);\n managerRadio.setDisable(true);\n dHeadRadio.setDisable(true);\n directorRadio.setDisable(true);\n //codeAddText.setDisable(true);\n hoursSetText.setDisable(false);\n }", "public GameKeyLisener() {\r\n\t\tplayerA_up_key_Pressed = false;\r\n\t\tplayerA_down_key_Pressed = false;\r\n\t\tplayerA_right_key_Pressed=false;\r\n\t\tplayerA_left_key_Pressed=false;\r\n\t\t\r\n\t\tplayerB_up_key_Pressed = false;\r\n\t\tplayerB_down_key_Pressed = false;\r\n\t\tplayerB_right_key_Pressed = false;\r\n\t\tplayerB_left_key_Pressed = false;\r\n\t\t\r\n\t\tenterKeyPressed = false;\r\n\t}", "protected void setBetweenVolumeStateOnButtons() {\n mVolDownButton.setEnabled(true);\n mVolUpButton.setEnabled(true);\n }", "protected void setInitialState() {\n btnPause.setEnabled(true);\n btnResume.setEnabled(false);\n btnStop.setEnabled(true); \n }", "public void enable(){\r\n\t\tthis.activ = true;\r\n\t}", "boolean updateEnabling();", "private void checkEnableDisable() {\n\t\tif (_trainingSet.getCount() > 0) {\n\t\t\t_saveSetMenuItem.setEnabled(true);\n\t\t\t_saveSetAsMenuItem.setEnabled(true);\n\t\t\t_trainMenuItem.setEnabled(true);\n\t\t} else {\n\t\t\t_saveSetMenuItem.setEnabled(false);\n\t\t\t_saveSetAsMenuItem.setEnabled(false);\n\t\t\t_trainMenuItem.setEnabled(false);\n\t\t}\n\n\t\tif (_currentTrainGrid == null) {\n\t\t\t_deleteGridMenuItem.setEnabled(true);\n\t\t} else {\n\t\t\t_deleteGridMenuItem.setEnabled(true);\n\t\t}\n\n\t\tif (_index > 0) {\n\t\t\t_leftGridMenuItem.setEnabled(true);\n\t\t\t_leftBtn.setEnabled(true);\n\t\t\t_firstGridMenuItem.setEnabled(true);\n\t\t\t_firstBtn.setEnabled(true);\n\t\t} else {\n\t\t\t_leftGridMenuItem.setEnabled(false);\n\t\t\t_leftBtn.setEnabled(false);\n\t\t\t_firstGridMenuItem.setEnabled(false);\n\t\t\t_firstBtn.setEnabled(false);\n\t\t}\n\n\t\tif (_index < _trainingSet.getCount() - 1) {\n\t\t\t_rightGridMenuItem.setEnabled(true);\n\t\t\t_rightBtn.setEnabled(true);\n\t\t\t_lastGridMenuItem.setEnabled(true);\n\t\t\t_lastBtn.setEnabled(true);\n\t\t} else {\n\t\t\t_rightGridMenuItem.setEnabled(false);\n\t\t\t_rightBtn.setEnabled(false);\n\t\t\t_lastGridMenuItem.setEnabled(false);\n\t\t\t_lastBtn.setEnabled(false);\n\t\t}\n\n\t\tif (_index >= _trainingSet.getCount()) {\n\t\t\t_indexLabel.setText(String.format(NEW_INDEX_LABEL, _trainingSet.getCount()));\n\t\t} else {\n\t\t\t_indexLabel.setText(String.format(INDEX_LABEL, _index + 1, _trainingSet.getCount()));\n\t\t}\n\n\t\t_resultLabel.setText(EMPTY_RESULT_LABEL);\n\t}", "private void lockButton(){\n\t\tconversionPdf_Txt.setEnabled(false);\n\t\tavisJury.setEnabled(false);\n\t\tstatistique.setEnabled(false);\n\t\tbData.setEnabled(false);\n\t\tbDataTraining.setEnabled(false);\n\t\tbCompare.setEnabled(false);\n\t}", "public void setControlKeyState( final int keyIndex, final boolean state ) throws RemoteException {\r\n controlKeyStates[ keyIndex ] = state;\r\n }", "void bindKeys() {\n // ahh, the succinctness of java\n KeyboardFocusManager kfm = KeyboardFocusManager.getCurrentKeyboardFocusManager();\n\n kfm.addKeyEventDispatcher( new KeyEventDispatcher() {\n public boolean dispatchKeyEvent(KeyEvent e) {\n String action=null;\n if(e.getID() != KeyEvent.KEY_PRESSED) \n return false;\n if(e.getModifiers() != 0)\n return false;\n switch(e.getKeyCode()) {\n case KeyEvent.VK_UP:\n action = \"forward\";\n movingForward=true;\n turnval = 0;\n break;\n case KeyEvent.VK_DOWN:\n action=\"backward\";\n movingForward=false;\n turnval = 0;\n break;\n case KeyEvent.VK_LEFT:\n if(movingForward) {\n turnval = (turnval==0) ? 100 : turnval-turnval/2;\n if(turnval<10) { action=\"spinleft\"; turnval=0; }\n else action = \"turn\"+turnval;\n }\n else action = \"spinleft\";\n //action = (movingForward) ? \"turn100\" : \"spinleft\";\n break;\n case KeyEvent.VK_RIGHT:\n if(movingForward) {\n turnval = (turnval==0) ? -100 : turnval-turnval/2;\n if(turnval>-10) { action=\"spinright\"; turnval=0; }\n else action = \"turn\"+turnval;\n }\n else action = \"spinright\";\n //action = (movingForward) ? \"turn-100\" : \"spinright\";\n break;\n case KeyEvent.VK_SPACE:\n action=\"stop\";\n movingForward=false;\n turnval = 0;\n break;\n case KeyEvent.VK_L:\n action=\"blink-leds\";\n break;\n case KeyEvent.VK_R:\n action=\"reset\";\n break;\n case KeyEvent.VK_T:\n action=\"test\";\n break;\n case KeyEvent.VK_V:\n vacuuming = !vacuuming;\n action = (vacuuming) ? \"vacuum-on\":\"vacuum-off\";\n break;\n case KeyEvent.VK_1:\n action=\"50\";\n break;\n case KeyEvent.VK_2:\n action=\"100\";\n break;\n case KeyEvent.VK_3:\n action=\"150\";\n break;\n case KeyEvent.VK_4:\n action=\"250\";\n break;\n case KeyEvent.VK_5:\n action=\"400\";\n break;\n case KeyEvent.VK_6:\n action=\"500\";\n break;\n }\n\n if(action!=null)\n getCurrentTab().actionPerformed(new ActionEvent(this,0,action));\n //System.out.println(\"process '\"+e.getKeyCode()+\"' \"+e);\n return true;\n } \n });\n }", "private void disableInputs() {\n bulbPressTime.setEnabled(false);\n intervalTime.setEnabled(false);\n numTicks.setEnabled(false);\n startBtn.setEnabled(false);\n connStatus.setText(getString(R.string.StatusRunning));\n connStatus.setTextColor(getColor(R.color.green));\n }", "@Override\n public void enableProductionButtons() {\n gameboardPanel.disableEndTurnButton();\n gameboardPanel.disableEndOfProductionButton();\n gameboardPanel.enableProductionButtons();\n leaderCardsPanel.enableProductionButtons();\n }", "@Override\r\n\tpublic void disable() {\n\t\tcurrentState.disable();\r\n\t}", "protected void updateEnabled() {\n\t\tFieldGroup control = getUIControl();\n\t\tif (control != null) {\n\t\t\tCollection<? extends IRidget> ridgets = getRidgets();\n\t\t\tfor (IRidget ridget : ridgets) {\n\t\t\t\tridget.setEnabled(isEnabled());\n\t\t\t}\n\t\t\tcontrol.setEnabled(isEnabled());\n\t\t}\n\t}", "private void setUIStatePlaying(){\n play.setEnabled(false);\n pause.setEnabled(true);\n stop.setEnabled(true);\n }", "@Override\n public void keyReleased(KeyEvent e) {\n\n switch (KeyEvent.getKeyText(e.getKeyCode())) {\n case \"W\":\n wKeyPressed = false;\n break;\n case \"A\":\n aKeyPressed = false;\n break;\n case \"S\":\n sKeyPressed = false;\n break;\n case \"D\":\n dKeyPressed = false;\n break;\n case \"Space\":\n ApplicationStatus.getInstance().setApplicationRunning(!ApplicationStatus.getInstance().isApplicationRunning());\n break;\n case \"F1\":\n ApplicationStatus.getInstance().setStatus(ApplicationStatus.Status.TRAINING);\n break;\n case \"F2\":\n ApplicationStatus.getInstance().setStatus(ApplicationStatus.Status.TESTING);\n break;\n }\n }", "public void toggleEnable();", "public void enable() {\n operating = true;\n }", "private void enableInput(Scene gameScene){\n gameScene.setOnKeyPressed(new EventHandler<KeyEvent>() {\n @Override\n public void handle(KeyEvent event) {\n oldState = levelCreator.CloneDynamicGrid(dynamicLevel);\n\n switch (event.getCode()) {\n case UP:\n dynamicLevel.updatePlayerPos(Direction.UP);\n break;\n case W:\n dynamicLevel.updatePlayerPos(Direction.UP);\n break;\n case DOWN:\n dynamicLevel.updatePlayerPos(Direction.DOWN);\n break;\n case S:\n dynamicLevel.updatePlayerPos(Direction.DOWN);\n break;\n case LEFT:\n dynamicLevel.updatePlayerPos(Direction.LEFT);\n break;\n case A:\n dynamicLevel.updatePlayerPos(Direction.LEFT);\n break;\n case RIGHT:\n dynamicLevel.updatePlayerPos(Direction.RIGHT);\n break;\n case D:\n dynamicLevel.updatePlayerPos(Direction.RIGHT);\n break;\n case R:\n initLevel();\n default:\n dynamicLevel.updatePlayerPos(Direction.NOTHING);\n break;\n }\n colDetector.HandleCollision(baseLevel, dynamicLevel, oldState);\n }\n\n });\n }", "protected void setMinVolumeStateOnButtons() {\n mVolDownButton.setEnabled(false);\n mVolUpButton.setEnabled(true);\n }", "public static void driverControls() {\n\t\tif (driverJoy.getYButton()) {\n\t\t\tif (!yPrevious) {\n\t\t\t\tyEnable = !yEnable;\n\t\t\t\tif (yEnable) {\n\t\t\t\t\tClimber.frontExtend();\n\t\t\t\t} else {\n\t\t\t\t\tClimber.frontRetract();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tyPrevious = driverJoy.getYButton();\n\n\t\t// Toggle switch for the front climbing pneumatics\n\t\tif (driverJoy.getBButton()) {\n\t\t\tif (!bPrevious) {\n\t\t\t\tbEnable = !bEnable;\n\t\t\t\tif (bEnable) {\n\t\t\t\t\tClimber.backExtend();\n\t\t\t\t} else {\n\t\t\t\t\tClimber.backRetract();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tbPrevious = driverJoy.getBButton();\n\n\t\t// Toggles for extending and retracting the hatch\n\t\tif (driverJoy.getAButton()) {\n\t\t\tSystem.out.println((Arm.getSetPosition() == Constants.HATCH_ONE) + \"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\");\n\t\t\tif (!aPrevious) {\n\t\t\t\taEnable = !aEnable;\n\t\t\t\tif (aEnable) {\n\t\t\t\t\tif (Arm.getSetPosition() == Constants.HATCH_ONE && Arm.isWithinDeadband())// && Arm.isWithinDeadband()) //TODO add this in\n\t\t\t\t\t\tHatchIntake.extend();\n\t\t\t\t} else\n\t\t\t\t\tHatchIntake.retract();\n\t\t\t}\n\t\t}\n\t\taPrevious = driverJoy.getAButton();\n\n\t\t// Start to open servo, back to close\n\t\tif (driverJoy.getStartButton()) {\n\t\t\tHatchIntake.openServo();\n\t\t}\n\t\tif (driverJoy.getBackButton()) {\n\t\t\tHatchIntake.closeServo();\n\t\t}\n\n\t\t// Toggles for extending and retracting the crab\n\t\tif (driverJoy.getXButton()) {\n\t\t\tif (!xPrevious) {\n\t\t\t\txEnable = !xEnable;\n\t\t\t\tif (xEnable) {\n\t\t\t\t\tCrab.extend();\n\t\t\t\t} else {\n\t\t\t\t\tCrab.retract();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\txPrevious = driverJoy.getXButton();\n\n\t\t// Make crab move left or right\n\t\tif (driverJoy.getBumper(Hand.kLeft)) {\n\t\t\tCrab.driveLeft();\n\t\t} else if (driverJoy.getBumper(Hand.kRight)) {\n\t\t\tCrab.driveRight();\n\t\t} else {\n\t\t\tCrab.driveStop();\n\t\t}\n\n\t\t// Intake controls\n\t\tif (driverJoy.getTriggerAxis(Hand.kRight) > .1) {\n\t\t\tIntake.runIntake();\n\t\t} else if (driverJoy.getTriggerAxis(Hand.kLeft) > .1) {\n\t\t\tIntake.runOuttake();\n\t\t} else {\n\t\t\tIntake.stopIntake();\n\t\t}\n\n\t\t// Drive controls front back\n\t\tif (Math.abs(driverJoy.getY(Hand.kLeft)) > .12) {\n\t\t\tspeedStraight = driverJoy.getY(Hand.kLeft);\n\t\t} else {\n\t\t\tspeedStraight = 0;\n\t\t}\n\t\t// Drive controls left right\n\t\tif (Math.abs(driverJoy.getX(Hand.kRight)) > .12) {\n\t\t\tturn = driverJoy.getX(Hand.kRight);\n\t\t} else {\n\t\t\tturn = 0;\n\t\t}\n\t\tDriveTrain.drive(speedStraight, turn);\n\t}", "private void setButtonsEnabledState() {\n if (mBroadcastingLocation) {\n mStartButton.setEnabled(false);\n mStopButton.setEnabled(true);\n } else {\n mStartButton.setEnabled(true);\n mStopButton.setEnabled(false);\n }\n }", "private void setButtons(boolean en){\n btnQuit.setEnabled(!en);\n btnResign.setEnabled(en);\n btnNewGame.setEnabled(!en);\n }", "public void setupInitEnable(){\n fwdButton.setEnabled(false);\n revButton.setEnabled(false);\n leftButton.setEnabled(false);\n rightButton.setEnabled(false);\n this.powerIcon.setEnabled(false);\n lServoWarn.setEnabled(false);\n rServoWarn.setEnabled(false); \n slideAuto.setEnabled(true); \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 }", "public void enableKillSwitch(){\n isClimbing = false;\n isClimbingArmDown = false;\n Robot.isKillSwitchEnabled = true;\n }", "@Override\r\n public void keyPressed(KeyEvent e)\r\n {\r\n if (mode == 0){\r\n mode = 1; //starts the game\r\n }\r\n\r\n if(e.getKeyChar() == 'w')\r\n {\r\n buttons[0][0] = true;\r\n }\r\n if(e.getKeyChar() == 'a')\r\n {\r\n buttons[0][1] = true;\r\n }\r\n if(e.getKeyChar() == 's')\r\n {\r\n buttons[0][2] = true;\r\n }\r\n if(e.getKeyChar() == 'd')\r\n {\r\n buttons[0][3] = true;\r\n }\r\n if(e.getKeyChar() == 'f')\r\n {\r\n buttons[0][4] = true;\r\n }\r\n if(e.getKeyChar() == 'g')\r\n {\r\n buttons[0][5] = true;\r\n }\r\n if(e.getKeyCode() == KeyEvent.VK_UP)\r\n {\r\n buttons[1][0] = true;\r\n }\r\n if(e.getKeyCode() == KeyEvent.VK_LEFT)\r\n {\r\n buttons[1][1] = true;\r\n }\r\n if(e.getKeyCode() == KeyEvent.VK_DOWN)\r\n {\r\n buttons[1][2] = true;\r\n }\r\n if(e.getKeyCode() == KeyEvent.VK_RIGHT)\r\n {\r\n buttons[1][3] = true;\r\n }\r\n if(e.getKeyChar() == '.')\r\n {\r\n buttons[1][4] = true;\r\n }\r\n if(e.getKeyChar() == '/')\r\n {\r\n buttons[1][5] = true;\r\n }\r\n }", "public boolean[] getControlKeyStates() {\r\n return controlKeyStates;\r\n }", "public void enable()\n\t{\n\t\tplayButton.setEnabled(true);\n\t\tpassButton.setEnabled(true);\n\t\tbigTwoPanel.setEnabled(true);\n\t}", "public static void resume()\n\t{\n\t\ttfBet.setEnabled(false);\n\t\tbtnPlay.setEnabled(false);\n\t\tbtnHit.setEnabled(true);\n\t\tbtnStay.setEnabled(true);\n\t\tbtnDouble.setEnabled(false);\n\t}", "public void stateChanged() {\r\n if (nextBigStepButton != null) {\r\n nextBigStepButton.setEnabled(!automata.isAtEnd());\r\n }\r\n if (prevBigStepButton != null) {\r\n prevBigStepButton.setEnabled(!automata.isAtStart());\r\n }\r\n\r\n nextStepButton.setEnabled(!automata.isAtEnd());\r\n prevStepButton.setEnabled(!automata.isAtStart());\r\n restartButton.setEnabled(!automata.isAtStart());\r\n\r\n autoButton.setState(controller.getExecutionMode());\r\n autoButton.setEnabled(!automata.isAtEnd());\r\n }", "private void setKeyCode() {\n if (key.equals(KeyCode.W) || key.equals(KeyCode.UP)) {\n key = KeyCode.UP;\n right_key = true;\n } else if (key.equals(KeyCode.S) || key.equals(KeyCode.DOWN)) {\n key = KeyCode.DOWN;\n right_key = true;\n } else if (key.equals(KeyCode.A) || key.equals(KeyCode.LEFT)) {\n key = KeyCode.LEFT;\n right_key = true;\n } else if (key.equals(KeyCode.D) || key.equals(KeyCode.RIGHT)) {\n key = KeyCode.RIGHT;\n right_key = true;\n } else {\n key = KeyCode.PLUS;\n }\n }", "private void moikhoacontrol(boolean b) {\n\t\tbtnSua.setEnabled(b);\n\t\tbtnluu.setEnabled(b);\n\t\tbtnxoa.setEnabled(b);\n\t\tbtnThoat.setEnabled(b);\n\t\tbtnTim.setEnabled(b);\n\t\t\n\t}", "public static void suspend()\n\t{\n\t\ttfBet.setEnabled(false);\n\t\tbtnPlay.setEnabled(false);\n\t\tbtnHit.setEnabled(false);\n\t\tbtnStay.setEnabled(false);\n\t\tbtnDouble.setEnabled(false);\n\t}", "public void setKeyDown() {\r\n keys[KeyEvent.VK_P] = false;\r\n }", "@Override\n\tpublic void keyReleased(KeyEvent e) {\n\t\tint i=0;\n\t\tfor (Component c : this.westPanel.getComponents()) {\n\t\t if (c instanceof JTextField) {\n\t\t \tJTextField field = (JTextField) c;\n\t\t \tif (field.equals(callPutFlagField)) { // callPutFlag must be 'p' or 'c'\n\t\t \t\tif (!field.getText().equals(\"c\") && !field.getText().equals(\"p\")) {\n\t\t \t\t\tfield.setBackground(Color.RED);\n\t\t \t\t\tstartButton.setEnabled(false);\n\t\t \t\t} else {\n\t\t \t\t\tfield.setBackground(Color.WHITE);\n\t\t \t\t\tstartButton.setEnabled(true);\n\t\t \t\t}\n\t\t \t} else if (i > 0 && i < 7) { // S, X T, R, B, V must be double\n\t\t \t\tif (Pattern.matches(fpRegex, field.getText())) {\t\n\t\t \t\t\tfield.setBackground(Color.WHITE);\n\t\t \t\t\tstartButton.setEnabled(true);\n\t\t \t\t} else {\n\t\t \t\t\tfield.setBackground(Color.RED);\n\t\t \t\t\tstartButton.setEnabled(false);\n\t\t \t }\n\t\t \t} else { // Steps, Simulation must be Integer\n\t\t \t\tif (isInteger(field.getText())) {\n\t\t \t\t\tfield.setBackground(Color.WHITE);\n\t\t \t\t\tstartButton.setEnabled(true);\n\t\t \t\t} else {\n\t\t \t\t\tfield.setBackground(Color.RED);\n\t\t \t\t\tstartButton.setEnabled(false);\n\t\t \t\t}\n\t\t \t}\n\t\t \ti++;\n\t\t }\n\t\t}\n\t}", "public void enable() {\n\t\tm_enabled = true;\n\t\tm_controller.reset();\n\t}", "public void actionPerformed(ActionEvent ae)\n{\n String str = ae.getActionCommand();\n if(str.equals(\"Deal\"))\n {\n\t\t//dealCards();\n\t\tcontrolP.deal.setEnabled(false);\n\t\t//Set rest of buttons active\n\t\tcontrolP.check.setEnabled(true);\n\t\tcontrolP.bet.setEnabled(true);\n\t\tcontrolP.call.setEnabled(false);\n\t\tcontrolP.raise.setEnabled(false);\n\t\tcontrolP.allIn.setEnabled(true);\n\t\tcontrolP.fold.setEnabled(true);\n\n\t\tmain.initGame();\n\n\n\n\t}\n\telse\n\tif(str.equals(\"Bet\"))\n\t{\n\t\tmain.playerBet();\n\t\tmain.userBet = true;\n\t\tmain.userAction = true;\n\t\t//controlP.bet.setEnabled(false);\n\t}\n\telse\n\tif(str.equals(\"Check\"))\n\t{\n\t\tmain.playerCheck();\n\t\tmain.userCheck = true;\n\t\tmain.userAction = true;\n\t\t//controlP.check.setEnabled(false);\n\t}\n\telse\n\tif(str.equals(\"Call\"))\n\t{\n\t\tmain.playerCall();\n\t\tmain.userAction = true;\n\t\tmain.userCall = true;\n\t\t//controlP.call.setEnabled(false);\n\t}\n\telse\n\tif(str.equals(\"Raise\"))\n\t{\n\t\tmain.playerRaise();\n\t\tmain.userAction = true;\n\t\tmain.userRaise = true;\n\t\t//controlP.raise.setEnabled(false);\n\t}\n\telse\n\tif(str.equals(\"All In\"))\n\t{\n\t\tmain.playerAllIn();\n\t\tcontrolP.deal.setEnabled(true);\n\t\tcontrolP.check.setEnabled(false);\n\t\tcontrolP.bet.setEnabled(false);\n\t\tcontrolP.call.setEnabled(false);\n\t\tcontrolP.raise.setEnabled(false);\n\t\tcontrolP.allIn.setEnabled(false);\n\t\tcontrolP.fold.setEnabled(false);\n\t\tmain.userAction = true;\n\t\tmain.userAllIn = true;\n\t\t//controlP.allIn.setEnabled(false);\n\t}\n\telse\n\tif(str.equals(\"Fold\"))\n\t{\n\t\tmain.playerFold();\n\t\tmain.userFold = true;\n\t\tcontrolP.deal.setEnabled(true);\n\t\tcontrolP.check.setEnabled(false);\n\t\tcontrolP.bet.setEnabled(false);\n\t\tcontrolP.call.setEnabled(false);\n\t\tcontrolP.raise.setEnabled(false);\n\t\tcontrolP.allIn.setEnabled(false);\n\t\tcontrolP.fold.setEnabled(false);\n\t}\n\telse\n\tif(str.equals(\"Exit\"))\n\t{\n\t\t//Exit the System\n\t\tint answer = JOptionPane.showConfirmDialog(null, \"Do you really want to exit?\", \"Exit PokerShark\", JOptionPane.YES_NO_OPTION);\n\t\tif(answer == 0)\n\t\t{\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t}\n\n}", "public void enable(){\n if(criticalStop) return;\n getModel().setStatus(true);\n }", "public void enableAllButtons(){\n\t\tbtnConfirmOrNext.setEnabled(true);\n\t\tbtnStop.setEnabled(true);\n\t\tbtnListenAgain.setEnabled(true);\t\t\n\t}", "private void toggleButtonsEnabled() {\r\n final Button headsBtn = findViewById(R.id.b_heads);\r\n final Button tailsBtn = findViewById(R.id.b_tails);\r\n final Button startBtn = findViewById(R.id.b_startGame);\r\n\r\n headsBtn.setEnabled(false);\r\n tailsBtn.setEnabled(false);\r\n startBtn.setEnabled(true);\r\n }", "@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 enableInputs();", "protected void setMaxVolumeStateOnButtons() {\n mVolDownButton.setEnabled(true);\n mVolUpButton.setEnabled(false);\n }", "public void enableProductionButtons(){\n for(int i = 0; i < 3; i++){\n productionButtons[i].setText(\"Activate\");\n if (gui.getViewController().getGame().getProductionCard(i) != null){\n productionButtons[i].setEnabled(true);\n } else {\n productionButtons[i].setEnabled(false);\n }\n productionButtons[i].setToken(true);\n Gui.removeAllListeners(productionButtons[i]);\n productionButtons[i].addActionListener(new ActivateProductionListener(gui,productionButtons[i], i));\n }\n\n baseProductionPanel.enableButton();\n }", "private void enableButtons() {\n\t\tcapture.setEnabled(true);\r\n\t\tstop.setEnabled(true);\r\n\t\tselect.setEnabled(true);\r\n\t\tfilter.setEnabled(true);\r\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tACTION_B_ENABLE(e);\r\n\t\t\t}", "void keyPressed() {\n if (key == 'w') {\n up = true;\n }\n if (key == 's') {\n down = true;\n }\n if (key == 'a') {\n left = true;\n\n }\n if (key == 'd') {\n right = true;\n\n }\n \n if (key == 27) {\n pause = !pause;\n }\n\n // player.turnToDir(0);\n}", "public void addKeyListeners() {\n\t\t\tkeyAdapter = new KeyAdapter(){\n\t\t\t\t@Override\n\t\t\t\tpublic void keyPressed(KeyEvent e){\n\t\t\t\t\tchar command;\n\t\t\t\t\tif (e.getKeyCode() == KeyEvent.VK_SHIFT) {\n//\t\t\t\t\t\tSystem.out.println(\"FORWARD\");\n\t\t\t\t\t\tcommand = 'F';\n\t\t\t\t\t} else if (e.getKeyCode() == KeyEvent.VK_RIGHT) {\n//\t\t\t\t\t\tSystem.out.println(\"TURN RIGHT\");\n\t\t\t\t\t\tcommand = 'R';\n\t\t\t\t\t} else if (e.getKeyCode() == KeyEvent.VK_LEFT){\n//\t\t\t\t\t\tSystem.out.println(\"TURN LEFT\");\n\t\t\t\t\t\tcommand = 'L';\n\t\t\t\t\t//Let's disable 'F', 'R' and 'L' keys because they're captured by the arrow keys above\n\t\t\t\t\t} else if (e.getKeyCode() == KeyEvent.VK_F || e.getKeyCode() == KeyEvent.VK_R || e.getKeyCode() == KeyEvent.VK_L) {\n\t\t\t\t\t\tcommand = '-';\t//this signifies an invalid command.\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcommand = Character.toUpperCase(e.getKeyChar());\n\t\t\t\t\t}\n\n\n\t\t\t\t\tif (currentState == GameState.PLAYING) {\n\t\t\t\t\t\t//If this is tutorial mode, check status first to see if this action should be allowed at all.\n\t\t\t\t\t\t//If not approved, end this method immediately\n\t\t\t\t\t\tif (SAR.this.isTutorialMode()) {\n\t\t\t\t\t\t\tboolean actionApproved = tutorial.checkTutorialActionApproved(command);\n\t\t\t\t\t\t\tif (!actionApproved) return;\n\t\t\t\t\t\t} else if (SAR.this.isPracticeMissionHumanMode()) {\n\t\t\t\t\t\t\tboolean actionApproved = practiceDrillHuman.checkMissionActionApproved(command);\n\t\t\t\t\t\t\tif (!actionApproved) return;\n\t\t\t\t\t\t} else if (SAR.this.isPracticeMissionAIMode()) {\n\t\t\t\t\t\t\tboolean actionApproved = practiceDrillAI.checkMissionActionApproved(command);\n\t\t\t\t\t\t\tif (!actionApproved) return;\n\t\t\t\t\t\t} else if (SAR.this.isFinalMissionMode()){\n\t\t\t\t\t\t\tif (!finalMission.checkMissionActionApproved(command)) return;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//Depending on whether the control mode is \"H\" for manual control only, \"R\" for automated control only,\n\t\t\t\t\t\t//or \"B\" for both modes enabled, certain commands will be disabled / enabled accordingly.\n\t\t\t\t\t\t//For instance, in mode \"R\", only the spacebar command will be recognized.\n\t\t\t\t\t\tif ( (\"H\".contains(SAR.this.controlMode) && \"FRLGSQO\" .contains(String.valueOf(command))) ||\n\t\t\t\t\t\t\t (\"R\".contains(SAR.this.controlMode) && \" \" .contains(String.valueOf(command))) ||\n\t\t\t\t\t\t\t (\"B\".contains(SAR.this.controlMode) && \"FRLGSQO \".contains(String.valueOf(command))) ) {\n\t\t\t\t\t\t\tboolean validKeyTyped = updateGame(currentPlayer, command, 0); // invoke update method with the given command\n\t\t\t\t\t\t\t// Switch player (in the event that we have a 2-player mission)\n\t\t\t\t\t\t\tif(validKeyTyped) {\n\t\t\t\t\t\t\t\tSAR.this.numOfMoves++;\n\t\t\t\t\t\t\t\tPlayer nextPlayer = (currentPlayer == h1 ? h2 : h1);\n\t\t\t\t\t\t\t\tif (nextPlayer.isAlive())\n\t\t\t\t\t\t\t\t\tcurrentPlayer = nextPlayer;\n//\t\t\t\t\t\t\t\tSystem.out.printf(\"Total no. of moves so far: %s\\n\", numOfMoves);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//end nested if\n\n\t\t\t\t\t\t//If we're in tutorial mode, we need to check to see\n\t\t\t\t\t\t//if user has completed what the tutorial asked them to do\n\t\t\t\t\t\tif (SAR.this.isTutorialMode()) {\n\t\t\t\t\t\t\ttutorial.checkTutorialStatus(String.valueOf(command));\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (Character.toUpperCase(command) == 'A') { // this command can be used when mission is over to restart mission\n\t\t\t\t\t\tif (SAR.this.isTutorialMode()) {\n\t\t\t\t\t\t\tinitTutorial();\t//If this was a tutorial mode, restart the same tutorial\n//\t\t\t\t\t\t\ttutorial = new Tutorial(SAR.this);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse initMission();\t\t\t\t\t\t\t\t\t//otherwise, initialize mission again\n\t\t\t\t\t} else if(Character.toUpperCase(command) == 'O' && !SAR.this.isTutorialOrMissionMode()) {\t// open options window as long as this isn't' tutorial mode\n\t\t\t\t\t\topenOptionsWindow();\t//custom method\n\t\t\t\t\t}\n\t\t\t\t\t// Refresh the drawing canvas\n\t\t\t\t\trepaint(); // Call-back paintComponent().\n\n\t\t\t\t}\n\t\t\t\t//end public void keyPressed\n\t\t\t};\n\t\t\t//end keyAdapter initialization\n\t\t\taddKeyListener(keyAdapter);\n\t\t}", "private void setUIStateStopped(){\n countdownLabel.setText(\"Stopped\");\n play.setEnabled(true);\n pause.setEnabled(false);\n stop.setEnabled(false);\n }", "private void setButtonsEnable(boolean b){\n addButton.setEnabled(b);\n clearButton.setEnabled(b);\n peelOffButton.setEnabled(b);\n buttonControlPanel.setEnabled(b);\n progressCheckBox.setEnabled(b);\n }", "private void unlockButton() {\n\t\tconversionPdf_Txt.setEnabled(true);\n\t\tavisJury.setEnabled(true);\n\t\tstatistique.setEnabled(true);\n bData.setEnabled(true);\n\t}", "private void buttonEnable(){\n\t\t\taddC1.setEnabled(true);\n\t\t\taddC2.setEnabled(true);\n\t\t\taddC3.setEnabled(true);\n\t\t\taddC4.setEnabled(true);\n\t\t\taddC5.setEnabled(true);\n\t\t\taddC6.setEnabled(true);\n\t\t\taddC7.setEnabled(true);\n\t\t}", "@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\tkeys[e.getKeyCode()]=true;\t}", "void enableDigital();", "@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 }", "private void setUIStatePaused(){\n countdownLabel.setText(\"Paused\");\n play.setEnabled(true);\n pause.setEnabled(false);\n stop.setEnabled(true);\n }", "@Override\r\n public void keyReleased(KeyEvent e)\r\n {\r\n \r\n if(e.getKeyChar() == 'w')\r\n {\r\n buttons[0][0] = false;\r\n }\r\n if(e.getKeyChar() == 'a')\r\n {\r\n buttons[0][1] = false;\r\n }\r\n if(e.getKeyChar() == 's')\r\n {\r\n buttons[0][2] = false;\r\n }\r\n if(e.getKeyChar() == 'd')\r\n {\r\n buttons[0][3] = false;\r\n }\r\n if(e.getKeyChar() == 'f')\r\n {\r\n buttons[0][4] = false;\r\n }\r\n if(e.getKeyChar() == 'g')\r\n {\r\n buttons[0][5] = false;\r\n }\r\n if(e.getKeyCode() == KeyEvent.VK_UP)\r\n {\r\n buttons[1][0] = false;\r\n }\r\n if(e.getKeyCode() == KeyEvent.VK_LEFT)\r\n {\r\n buttons[1][1] = false;\r\n }\r\n if(e.getKeyCode() == KeyEvent.VK_DOWN)\r\n {\r\n buttons[1][2] = false;\r\n }\r\n if(e.getKeyCode() == KeyEvent.VK_RIGHT)\r\n {\r\n buttons[1][3] = false;\r\n }\r\n if(e.getKeyChar() == '.')\r\n {\r\n buttons[1][4] = false;\r\n }\r\n if(e.getKeyChar() == '/')\r\n {\r\n buttons[1][5] = false;\r\n }\r\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 enable() {\r\n m_enabled = true;\r\n }", "public void keyPressed(KeyEvent e) {\n if (e.getKeyCode() == KeyEvent.VK_RIGHT) {\n right = true;\n }\n if (e.getKeyCode() == KeyEvent.VK_LEFT) {\n left = true;\n }\n if (e.getKeyCode() == KeyEvent.VK_UP) {\n up = true;\n }\n if (e.getKeyCode() == KeyEvent.VK_DOWN) {\n down = true;\n }\n // space bar = shoot\n if (e.getKeyCode() == KeyEvent.VK_SPACE) {\n spacebar = true;\n }\n // key 3 = Grenade Launcher\n if (e.getKeyCode() == KeyEvent.VK_3){\n if (SwitchCount > 50) {\n if (three == false){\n ship.counter = 75;\n three = true;\n two = false;\n one = false;\n }\n SwitchCount = 0;\n }\n }\n // key 2 = Energy Blaster\n if (e.getKeyCode() == KeyEvent.VK_2){\n if (SwitchCount > 50) {\n if (two == false){\n ship.counter = 175;\n three = false;\n two = true;\n one = false;\n }\n SwitchCount = 0;\n }\n }\n // key 1 = Bullets\n if (e.getKeyCode() == KeyEvent.VK_1){\n if (SwitchCount > 50) {\n if (one == false){\n ship.counter = 75;\n three = false;\n two = false;\n one = true;\n }\n SwitchCount = 0;\n }\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 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 }", "private void updateKeyboard() {\n\n int keysLimit;\n if(totalScreens == keyboardScreenNo) {\n keysLimit = partial;\n for (int k = keysLimit; k < (KEYS.length - 2); k++) {\n TextView key = findViewById(KEYS[k]);\n key.setVisibility(View.INVISIBLE);\n }\n } else {\n keysLimit = KEYS.length - 2;\n }\n\n for (int k = 0; k < keysLimit; k++) {\n TextView key = findViewById(KEYS[k]);\n int keyIndex = (33 * (keyboardScreenNo - 1)) + k;\n key.setText(keyList.get(keyIndex).baseKey); // KP\n key.setVisibility(View.VISIBLE);\n // Added on May 15th, 2021, so that second and following screens use their own color coding\n String tileColorStr = COLORS[Integer.parseInt(keyList.get(keyIndex).keyColor)];\n int tileColor = Color.parseColor(tileColorStr);\n key.setBackgroundColor(tileColor);\n }\n\n }", "private void updateEnabledState() {\n updateEnabledState(spinner, spinner.isEnabled()); }", "private void deActivateButtons(){\n limiteBoton.setEnabled(false);\n derivadaBoton.setEnabled(false);\n integralBoton.setEnabled(false);\n}", "public void enableButtons() {\n //a loop to go through all buttons\n for (int i = 0; i < currentBoard.getSizeX(); i++) {\n Inputbuttons[i].setEnabled(true);\n }\n }", "public void loadKeyboard() {\n keysInUse = keyList.size();\n partial = keysInUse % (KEYS.length - 2);\n totalScreens = keysInUse / (KEYS.length - 2);\n if (partial != 0) {\n totalScreens++;\n }\n\n int visibleKeys;\n if (keysInUse > KEYS.length) {\n visibleKeys = KEYS.length;\n } else {\n visibleKeys = keysInUse;\n }\n\n for (int k = 0; k < visibleKeys; k++) {\n TextView key = findViewById(KEYS[k]);\n key.setText(keyList.get(k).baseKey);\n String tileColorStr = COLORS[Integer.parseInt(keyList.get(k).keyColor)];\n int tileColor = Color.parseColor(tileColorStr);\n key.setBackgroundColor(tileColor);\n }\n if (keysInUse > KEYS.length) {\n TextView key34 = findViewById(KEYS[KEYS.length - 2]);\n key34.setBackgroundResource(R.drawable.zz_backward_green);\n key34.setRotationY(getResources().getInteger(R.integer.mirror_flip));\n key34.setText(\"\");\n TextView key35 = findViewById(KEYS[KEYS.length - 1]);\n key35.setRotationY(getResources().getInteger(R.integer.mirror_flip));\n key35.setBackgroundResource(R.drawable.zz_forward_green);\n key35.setText(\"\");\n }\n\n for (int k = 0; k < KEYS.length; k++) {\n\n TextView key = findViewById(KEYS[k]);\n if (k < keysInUse) {\n key.setVisibility(View.VISIBLE);\n key.setClickable(true);\n } else {\n key.setVisibility(View.INVISIBLE);\n key.setClickable(false);\n }\n\n }\n\n }", "public void setWorkInstructionKeysChanged(boolean value) {\n\t\tthis.workInstructionKeysChanged = value;\n\t}", "@FXML\n public void handleKeyRelease() {\n String text = nameField.getText();\n boolean disableButtons = text.isEmpty() || text.trim().isEmpty(); //.trim() is used to set the button disable for space input\n helloButton.setDisable(disableButtons);\n byeButton.setDisable(disableButtons);\n }", "public void keyPressed() {\r\n \t\tkeys[keyCode] = true;\r\n \t}", "@Override\n\t\t\tprotected void updateEnabled() {\n\t\t\t}", "@Override\r\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\tint key = e.getKeyCode();\r\n\t\t\t\tif(key == KeyEvent.VK_UP)\r\n\t\t\t\t\tisPress01 = false;\r\n\r\n\t\t\t\tif(key == KeyEvent.VK_DOWN)\r\n\t\t\t\t\tisPress02 = false;\r\n\r\n\t\t\t\tif(key == KeyEvent.VK_LEFT)\r\n\t\t\t\t\tisPress03 = false;\r\n\r\n\t\t\t\tif(key == KeyEvent.VK_RIGHT)\r\n\t\t\t\t\tisPress04 = false;\r\n\t\t\t}", "private void setControlsEnabled(boolean value){\r\n txtRolodexId.setEditable(value);\r\n txtLastUpdate.setEditable(value);\r\n txtUpdateUser.setEditable(value);\r\n txtLastName.setEditable(value);\r\n txtFirstName.setEditable(value);\r\n txtMiddleName.setEditable(value);\r\n txtSuffix.setEditable(value);\r\n txtPrefix.setEditable(value);\r\n txtTitle.setEditable(value);\r\n txtSponsorCode.setEditable(value);\r\n txtOrganization.setEditable(value);\r\n txtAddress1.setEditable(value);\r\n txtAddress2.setEditable(value);\r\n txtAddress3.setEditable(value);\r\n txtCity.setEditable(value);\r\n txtCounty.setEditable(value);\r\n //Modified for case#3278 - State Combobox is made non editable\r\n cmbState.setEditable(false);\r\n cmbState.setEnabled(value);\r\n cmbState.setForeground(Color.black);\r\n cmbCountry.setEnabled(value);\r\n txtPostalCode.setEditable(value);\r\n txtPhone.setEditable(value);\r\n txtEMail.setEditable(value);\r\n txtFax.setEditable(value);\r\n txtComments.setEditable(value);\r\n }", "private void enableDice() {\n\t\ttogglebtnD1.setDisable(false);\n\t\ttogglebtnD2.setDisable(false);\n\t\ttogglebtnD3.setDisable(false);\n\t\tendTurnButton.setDisable(false);\n\t}", "@Override\r\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\tctrl = false;\r\n\t}", "private void disableButtons()\r\n {\r\n }", "private void activateButtons(){\n limiteBoton.setEnabled(true);\n derivadaBoton.setEnabled(true);\n integralBoton.setEnabled(true);\n}", "void setKeyBox(boolean keyBox);", "@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 }", "void enableBtn() {\n findViewById(R.id.button_play).setEnabled(true);\n findViewById(R.id.button_pause).setEnabled(true);\n findViewById(R.id.button_reset).setEnabled(true);\n }", "void enableMod();", "@Override\n\t\t\tpublic boolean onKeyDown (int keycode) {\n\t\t\t\treturn false;\n\t\t\t}", "private void disableComponents() {\r\n maintainSponsorHierarchyBaseWindow.btnChangeGroupName.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnCreateNewGroup.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnDelete.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnMoveDown.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnMoveUp.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnSave.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnPanel.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnPanel.setSelected(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmChangeGroupName.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmCreateNewGroup.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmDelete.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmMoveDown.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmMoveUp.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmSave.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmPanel.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmPanel.setSelected(false);\r\n }", "public void enable() {\n\t\tenabled = true;\n\t\t//System.out.println(\"Enabled Controller\");\n\t}", "private void releaseAllKeys()\n\t{\n\t\tupPressed = downPressed = rightPressed = leftPressed = false;\n\t}", "private void setButtonsEnabledState() {\n if (mRequestingLocationUpdates) {\n mStartUpdatesButton.setEnabled(false);\n mStopUpdatesButton.setEnabled(true);\n } else {\n mStartUpdatesButton.setEnabled(true);\n mStopUpdatesButton.setEnabled(false);\n }\n }", "protected void disableButtons() {\n if (mFalseButton.isPressed() || mTrueButton.isPressed())\n mFalseButton.setEnabled(false);\n mTrueButton.setEnabled(false);\n }", "private void allowContinueOrStop(){\r\n\t\troll.setEnabled(false);\r\n\t\tsubmit.setEnabled(false);\r\n\t\tagain.setEnabled(true);\r\n\t\tnoMore.setEnabled(true);\r\n\t\tstatusLabel.setText(\"Feeling lucky?\");\r\n\t\tupdate();\r\n\t}", "public void keyPressed(KeyEvent e) {\n\t\tswitch (e.getKeyCode())\n {\n \t\t\tcase KeyEvent.VK_ESCAPE:\n if(GAME_RUNNING == true)\n {\n /* stop running */\n switchGameState(GameState.EDITING);\n }\n else\n {\n if(SELECT_MODE == SelectMode.SELECTED)\n {\n /* deselect current widget */\n SELECT_MODE = SelectMode.NONE;\n selectedWidget = null;\n canvas.repaint();\n }\n else if(SELECT_MODE == SelectMode.DRAGGING)\n {\n /* cancel dragging */\n SELECT_MODE = SelectMode.SELECTED;\n canvas.repaint();\n }\n else if(SELECT_MODE == SelectMode.ADDING)\n {\n /* cancel adding */\n SELECT_MODE = SelectMode.NONE;\n selectedWidget = null;\n canvas.repaint();\n }\n else\n {\n /* not running and no widget selected */\n //TODO: show main menu\n }\n }\n\t\t\t\tbreak;\n case KeyEvent.VK_DELETE:\n if(GAME_RUNNING == false)\n {\n if(SELECT_MODE == SelectMode.SELECTED)\n {\n /* game not running and we're in selected mode */\n /* delete currently selected widget */\n timWorld.removeWidget(selectedWidget);\n\n String widgetType = selectedWidget.getClass().getName();\n ws.addWidget(widgetType.substring(widgetType.lastIndexOf(\".\")+1,widgetType.length()), 1);\n\n SELECT_MODE = SelectMode.NONE;\n selectedWidget = null;\n\n canvas.repaint();\n }\n }\n break;\n case KeyEvent.VK_LEFT:\n if(GAME_RUNNING == false && SELECT_MODE == SelectMode.SELECTED)\n {\n /* game is not running and we have a widget selected */\n if(selectedWidget != null)\n {\n /* rotate is counter clockwise */\n selectedWidget.rotateCounterClockwise();\n canvas.repaint();\n }\n }\n break;\n case KeyEvent.VK_RIGHT:\n if(GAME_RUNNING == false && SELECT_MODE == SelectMode.SELECTED)\n {\n /* game is not running and we have a widget selected */\n if(selectedWidget != null)\n {\n /* rotate it clockwise */\n selectedWidget.rotateClockwise();\n canvas.repaint();\n }\n }\n break;\n\t\t}\n\t}", "public abstract void wgb_onDisable();", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJToggleButton x = (JToggleButton) e.getSource();\n\t\t\t\tif(x.isSelected()){\n\t\t\t\t\tif(host_txtfield.getText().trim().isEmpty()){\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please provide a hostname\", \"Lock Settings\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif(port_txtfield.getText().trim().isEmpty()){\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please provide a port\", \"Lock Settings\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif(dbname_txtfield.getText().trim().isEmpty()){\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please provide a database name\", \"Lock Settings\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\thost_txtfield.setEnabled(false);\n\t\t\t\t\tport_txtfield.setEnabled(false);\n\t\t\t\t\tdbname_txtfield.setEnabled(false);\n\t\t\t\t\tuseLocalSettings_checkBox.setEnabled(false);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tif(!useLocalSettings_checkBox.isSelected()){\n\t\t\t\t\t\thost_txtfield.setEnabled(true);\n\t\t\t\t\t\tport_txtfield.setEnabled(true);\n\t\t\t\t\t}\n\t\t\t\t\tdbname_txtfield.setEnabled(true);\n\t\t\t\t\tuseLocalSettings_checkBox.setEnabled(true);\n\t\t\t\t}\n\t\t\t}" ]
[ "0.6654354", "0.6429442", "0.6245888", "0.6237441", "0.61838824", "0.6181442", "0.612142", "0.6117446", "0.6080401", "0.6067103", "0.60594594", "0.60306466", "0.6020231", "0.6016363", "0.59715205", "0.596552", "0.59451777", "0.5934001", "0.5927231", "0.5920345", "0.5918914", "0.589618", "0.58882636", "0.58837116", "0.58817166", "0.5875275", "0.5871451", "0.586792", "0.5864071", "0.5852367", "0.5842112", "0.58396745", "0.5836461", "0.582825", "0.58258057", "0.58185667", "0.5818096", "0.5816344", "0.58073866", "0.57983357", "0.57931626", "0.57891846", "0.5787239", "0.5774119", "0.5773039", "0.57668066", "0.5761112", "0.5760211", "0.5743615", "0.5738611", "0.57376295", "0.57338697", "0.5720079", "0.57136977", "0.57134", "0.5713255", "0.5709486", "0.5693661", "0.56930923", "0.56903386", "0.5687123", "0.5683944", "0.56688255", "0.56614524", "0.56585926", "0.56576407", "0.56518966", "0.5648379", "0.5644558", "0.5636874", "0.5632708", "0.5625031", "0.562021", "0.5618698", "0.56019926", "0.55971634", "0.55664396", "0.5559864", "0.55554104", "0.5550482", "0.55499876", "0.5546425", "0.5544953", "0.5541336", "0.5539301", "0.55379844", "0.55369467", "0.5533242", "0.5527307", "0.55249435", "0.5523389", "0.5521359", "0.55148315", "0.550773", "0.55070746", "0.5505627", "0.55015564", "0.5485336", "0.54849184", "0.54803425" ]
0.5506173
95
When the user clicks the exit button, tell the host to shut down
void btn_Exit_actionPerformed(ActionEvent e) { // TODO : changer le behaviour oneshot ? le remplacer par le notre ? m_owner.addBehaviour( new OneShotBehaviour() { public void action() { ((TinderSupervisorAgent) myAgent).terminateHost(); } } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void shutDown();", "public void shutDown();", "public void notifyExit()\r\n {\r\n if (isClientConnected)\r\n sendDisconnectTag();\r\n bs.close(); // Announce termination to client\r\n bs.cancel(); // Shut down waiting server\r\n System.exit(0);\r\n }", "public void onExit();", "public void exit() {\r\n \t\t// Send a closing signat to main window.\r\n \t\tmainWindow.dispatchEvent(new WindowEvent(mainWindow, WindowEvent.WINDOW_CLOSING));\r\n \t}", "@Override\n public void exit(EventObject event)\n {\n shutdown();\n }", "public void shutdown(){\n \tSystem.out.println(\"SHUTTING DOWN..\");\n \tSystem.exit(0);\n }", "public void exit();", "private void exit() {\n\n // Farewell message\n pOutput.println(\"Good Bye!\");\n pOutput.close();\n\n try {\n pClient.close();\n\n } catch (final IOException ex) {\n pShellService.error(\"Shell::exit()\", ex);\n }\n\n // Clean up\n pShellService = null;\n }", "void onExit();", "public void shutdown() {\r\n System.exit(0);\r\n }", "public void exit(String s) {\r\n\t\ttry {\r\n\t\t\trunning = false;\r\n\t\t\tsocket.close();\r\n\t\t\tin.close();\r\n\t\t\tout.close();\r\n\t\t\tJOptionPane.showMessageDialog(null, s, \"Server\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\tgui.restart();\r\n\t\t} catch(Exception e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}", "public void lobbyExitButton(MouseEvent event){\n event.consume();\n Client.sendMessageToServer(new Disconnection());\n Platform.exit();\n System.exit(APP_CLOSED_BY_LOBBY_EXIT_BUTTON);\n }", "void jmiExit_actionPerformed(ActionEvent e) {\n System.out.println(\"Exiting Carrier Agent \");\n unregisterWithMasterServer(); //unregister when exited\n logWriter.writeLog(\"Terminating agent.\");\n System.exit(0);\n }", "public void clickedQuitButton(Button button) {\r\n System.exit(0);\r\n }", "public void shutdown() {\n YbkService.stop(ErrorDialog.this);\r\n System.runFinalizersOnExit(true);\r\n // schedule actual shutdown request on a background thread to give the service a chance to stop on the\r\n // foreground thread\r\n new Thread(new Runnable() {\r\n\r\n public void run() {\r\n try {\r\n Thread.sleep(500);\r\n } catch (InterruptedException e) {\r\n }\r\n System.exit(-1);\r\n }\r\n }).start();\r\n }", "private void terminateWindow() {\n\t\tJOptionPane.showMessageDialog(null, \"Shut down server\", \"Successful\", JOptionPane.INFORMATION_MESSAGE);\n\t\tSystem.exit(0);\n\t}", "public void ShutDown()\n {\n bRunning = false;\n \n LaunchLog.Log(COMMS, LOG_NAME, \"Shut down instruction received...\");\n\n for(LaunchServerSession session : Sessions.values())\n {\n LaunchLog.Log(COMMS, LOG_NAME, \"Closing session...\");\n session.Close();\n }\n \n LaunchLog.Log(COMMS, LOG_NAME, \"...All sessions are closed.\");\n }", "private static void exit() {\n dvm.exit();\n stop = true;\n }", "private static void exit(){\n\t\t\n\t\tMain.run=false;\n\t\t\n\t}", "private void jmiExitActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\r\n }", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "private void btnExitActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\n }", "public void exitProgram() {\n\t\tgoOffline();\n\t\tmainWindow.dispose();\n\t\tif (config_ok)\n\t\t\tsaveConnectionConfiguration();\n\t\tSystem.exit(0);\n\t\t\n\t}", "public void shutdown();", "public void shutdown();", "public void shutdown();", "public void shutdown();", "private void exit() {\n this.isRunning = false;\n }", "private void quit()\n\t{\n\t\tapplicationView.showChatbotMessage(quitMessage);\n\t\tSystem.exit(0);\n\t\t\n\t}", "public void exitServer()\n\t{\n\t\tSystem.exit(1);\n\t}", "public static String EXIT(){\n\t\tSystem.out.println(\"Shutting down client...\");\n\t\tSystem.exit(0);\n\t\treturn \"\";\n\t\t\n\t}", "public abstract void exit();", "private void shutdown() {\n\t\ttry {\n\t\t\tsock.close();\n\t\t\tgame.handleExit(this);\n\t\t\tstopped = true;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "public void stop() {\r\n\t\t// Tell the Gui Agent to shutdown the system\r\n\t\tGui.shutdown = true;\r\n\t}", "public void quit()\r\n {\r\n brokerage.logout(this);\r\n myWindow = null;\r\n }", "public void exit () {\r\n System.out.println(\"Desligando aplicação...\");\r\n this.stub.killStub();\r\n }", "@FXML\n\tvoid exit(ActionEvent event) throws IOException {\n\t\t// close the client\n\t\ttry {\n\t\t\tClientUI.client.closeConnection();\n\t\t} catch (IOException e) {\n\t\t\tUsefulMethods.instance().display(\"Fail to close client!\");\n\t\t\tUsefulMethods.instance().printException(e);\n\t\t}\n\t\tSystem.exit(0);\n\t}", "public void Quit();", "void exit();", "private void exitButtonListener() {\n JButton exitButton = gui.getExit_Button();\n ActionListener actionListener = (ActionEvent actionEvent) -> {\n scheduler.shutdown();\n connection.startClient(lbInfo.getIp(), lbInfo.getPort());\n connection.sendMessage(\"exit:\" + connectionHandler.getServerId());\n };\n\n exitButton.addActionListener(actionListener);\n }", "public void shutdown()\n {\n // todo\n }", "private void exitAction() {\n\t}", "private void quitApp() {\n\t\tlogger.trace(\"quitApp() is called\");\n\t\t\n \tint answer = JOptionPane.showConfirmDialog(null, \"Exit App?\");\n \tif (answer == JOptionPane.YES_OPTION){\n \t\tstopServer(); \n \t\tsaveData();\n \t\tlogger.trace(\"Server app exits\");\n \t\tSystem.exit(0);\n \t}\n }", "@Override\r\n\tpublic void exit() {\n\t\t\r\n\t}", "public void showExit();", "public void shutdown() {\n mGameHandler.shutdown();\n mTerminalNetwork.terminate();\n }", "protected void exit() {\n\t\tSystem.exit(0);\n\t}", "@Override\n public void exit()\n {\n\t ((ControllerHost)getHost()).showPopupNotification(\"Chord Buddy Exited\");\n }", "private void quitService() {\n output.println(\"Quit command\");\n output.println(\"End session\");\n }", "public void exit(ActionEvent actionEvent) {\r\n //Closes hibernate and then the program.\r\n controller.exit();\r\n System.exit(0);\r\n }", "private void jb_closeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jb_closeActionPerformed\n System.exit(0);\n }", "public void exitClient()\n\t{\n\t\ttry{\n\t\t\tif(sock.isConnected()){\n\t\t\tsock.close();\n\t\t\t//listenerSock.close();\n\t\t\tSystem.out.println(\"restart your client.....\");\n\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e){\n\t\t}\n\t}", "private void exit()\n {\n try\n {\n connect.close();\n }\n catch (javax.jms.JMSException jmse)\n {\n jmse.printStackTrace();\n }\n\n System.exit(0);\n }", "@FXML\n public void handleExit() {\n try {\n duke.end();\n System.exit(0);\n } catch (IOException ioe) {\n System.err.println(ioe.getMessage());\n }\n }", "public void exit() {\r\n\t\tdispose();\r\n\t}", "@Override\n\tpublic void onExit() {\n\t\t\n\t}", "protected void quit() {\n if (display != null) {\n display.close();\n }\n System.exit(0);\n }", "private void exitApp()\n {\n if(spider.isCrawling())\n {\n stopCrawler();\n showTransition(1000);\n Timer task = new Timer(1000, (ActionEvent e)->\n {\n System.exit(0);\n });\n\n task.setRepeats(false);\n task.start();\n }\n \n else System.exit(0);\n }", "public void quit() {System.exit(0);}", "public void serverWasShutdown();", "public void onGuiClosed() {\r\n\t\tif (!this.sentPacket) {\r\n\t\t\tElevatorsCore.say(\"Exiting gui!\");\r\n\t\t\tthis.exit(200, false);\r\n\t\t}\r\n\t}", "public void exit() {\n loader.getApplet().stop();\n loader.getApplet().destroy();\n }", "private void btn_ExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_ExitActionPerformed\n System.exit(0);\n }", "private void systemExit()\n{\n WindowEvent winClosing = new WindowEvent(this,WindowEvent.WINDOW_CLOSING);\n}", "public void exit() {\n\t\tSystem.exit(0);\n\t}", "public void exit() {\n\t\tSystem.exit(0);\n\t}", "public void Exit(){\n\t\t\t\tclose();\n\t\t\t}", "public void quit() {\n\t\tSystem.exit(0);\n\t}", "@Override\n\tpublic void Quit() {\n\t\t\n\t}", "public void exitButtonClicked() {\r\n\t\tSystem.exit(0); \r\n\t\treturn;\r\n\t}", "public void shutdown() {\n\t\t\n\t}", "@Override\n\tpublic void exit() {\n\t\t\n\t}", "@Override\n\tpublic void exit() {\n\t\t\n\t}", "private void exitButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exitButtonActionPerformed\n System.exit(0);\n }", "@Override\n\tpublic void exit() {\n\n\t}", "protected void handleExit() {\r\n\t\texitRecieved = true;\r\n\t\tterminate();\r\n\t}", "private void sairButtonActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\n }", "public void quit();", "private void jb_CloseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jb_CloseActionPerformed\n System.exit(0);\n }", "@FXML\r\n\t public void QuitOnAction(Event e) {\r\n\t \tlogger.error(\"Pressed quit!\");\r\n\t \tBookGateway.getInstance().stopConnection();\r\n\t \tSystem.exit(0);\r\n\t }", "public void shutdown() {\n this.isShutdown = true;\n }", "abstract public void exit();", "@Override\n\tpublic void exit() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}" ]
[ "0.74588114", "0.74179816", "0.7405984", "0.7367587", "0.7353887", "0.73525846", "0.7339528", "0.7326538", "0.7318292", "0.7308996", "0.7252478", "0.7191532", "0.71606845", "0.7159008", "0.71507394", "0.71389765", "0.7124429", "0.7112896", "0.7112587", "0.70824283", "0.70807153", "0.70708245", "0.70708245", "0.70708245", "0.70708245", "0.70708245", "0.70708245", "0.70708245", "0.70708245", "0.70708245", "0.70708245", "0.70708245", "0.70708245", "0.70708245", "0.70708245", "0.70708245", "0.70708245", "0.70708245", "0.7069673", "0.7067338", "0.7056224", "0.7056224", "0.7056224", "0.7056224", "0.7042635", "0.7026599", "0.70201015", "0.7018343", "0.698499", "0.69571525", "0.69543505", "0.695121", "0.69467914", "0.69452", "0.69392496", "0.69186854", "0.691808", "0.69083333", "0.6889112", "0.68867934", "0.6872093", "0.6864887", "0.68563586", "0.68558896", "0.6824878", "0.68206567", "0.6819933", "0.681712", "0.6816737", "0.680822", "0.68038213", "0.6803586", "0.679403", "0.67938244", "0.6793355", "0.67910033", "0.678471", "0.67800856", "0.67729515", "0.67672193", "0.67666745", "0.6763587", "0.6763587", "0.6762201", "0.67599005", "0.6754299", "0.6750489", "0.6748464", "0.6735347", "0.6735347", "0.6735061", "0.6721627", "0.6716575", "0.6715971", "0.6712434", "0.6709667", "0.67014974", "0.67011577", "0.670072", "0.66944706" ]
0.709596
19
((TinderSupervisorAgent) myAgent).inviteGuests( slide_numGuests.getValue() );
public void action() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void e_Guest(){\n\t\tList<Action> Actions=getCurrentElement().getActions();\n\t\tString ActionValue=Actions.get(0).getScript();\n\t\tNumOfGuests=TrimAction(ActionValue, \"n=\");\n\t\tGuestRow= Integer.parseInt(NumOfGuests);\n\t}", "void onAgentSelected(int agentPosition);", "public void addGuest(Invitato Guest){\n /*\n se il numero di posti è maggiore di zero il tavolo è disponibile , quando il numero di posti cala a zero,\n la disponibilità del tavolo viene meno.\n */\n if (disponibile) {\n AssegnamentiTavolo.add(Guest);\n num_posti--;\n }\n // controllo quanti posti sono rimasti se sono zero metto il tavolo non disponible\n if(num_posti == 0){\n endAssignment();\n }\n }", "int getNumberOfGuests();", "public void addAgent(String name)\r\n {\n \r\n }", "Agent getAgent();", "public int getGuestCount() { return _scroller.getGuestCount(); }", "public void v_Verify_Guest2_Displayed(){\n\t}", "public void v_Verify_Guest1_Displayed(){\n\t}", "public void v_Verify_Guest6_Displayed(){\n\t}", "void enableAgentSelectionControl();", "public void v_Verify_Guest5_Displayed(){\n\t}", "public void v_Verify_Guest10_Displayed(){\n\t}", "public static void incrementGuestRoomCount() {numGuestRooms++;}", "public int getguestID(){\n return givedata.returnGuestID();\n }", "public void v_Verify_Guest11_Displayed(){\n\t}", "public void v_Verify_Guest4_Displayed(){\n\t}", "public void v_Verify_Guest7_Displayed(){\n\t}", "public void editAgentProfile(Agent agent);", "public void v_Verify_Guest9_Displayed(){\n\t}", "public void v_GuestRegistration(){\n\t\tResult=\"Pass\";\n\t\tLF.AddActualResult(Result);\n\t}", "public void editTransactionAgent(Agent agent);", "public void v_Verify_Guest3_Displayed(){\n\t}", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "public void v_Verify_Guest12_Displayed(){\n\t}", "public void startAgent(String agName);", "public interface ProvaAgent {\n\n void receive(ProvaList terms) throws Exception;\n\n void send(String dest, ProvaList terms) throws Exception;\n\n String getAgentName();\n\n}", "public void v_Verify_Guest8_Displayed(){\n\t}", "default void interactWith(Lever lever) {\n\t}", "void showSelectedAgentView();", "public EntityID getAssignedAgentID();", "public View getGuest(int anIndex) { return _scroller.getGuest(anIndex); }", "@Override\r\n\t\tpublic void action() {\n\t\t\tswitch (state) {\r\n\t\t\tcase REGISTER:\r\n\t\t\t\tSystem.out.println(\"Philosopher Agent \"\r\n\t\t\t\t\t\t+ myAgent.getAID().getName()\r\n\t\t\t\t\t\t+ \" trying to register\");\r\n\t\t\t\t\r\n\t\t\t\t// searching for waiter agent\r\n\t\t\t\twhile(waiter == null) {\r\n\t\t\t\t\twaiter = searchWaiterAgent(\"waiter-service\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tACLMessage cfp = new ACLMessage(ACLMessage.CFP);\r\n\t\t\t\tcfp.addReceiver(waiter);\r\n\t\t\t\tcfp.setContent(\"philosopher-agent\");\r\n\t\t\t\tcfp.setConversationId(\"philosopher-waiter-fork\");\r\n\t\t\t\tcfp.setReplyWith(\"cfp\"+System.currentTimeMillis());\r\n\t\t\t\tSystem.out.println(\"Philosopher Agent \"\r\n\t\t\t\t\t\t+ myAgent.getAID().getName()\r\n\t\t\t\t\t\t+ \" send registration request \" + cfp);\r\n\t\t\t\tmyAgent.send(cfp);\r\n\t\t\t\t\r\n\t\t\t\t// Prepare template to get response\r\n\t\t\t\t//mt = MessageTemplate.and(MessageTemplate.MatchConversationId(\"philosopher-waiter-fork\"),\r\n\t\t\t\t//\t\tMessageTemplate.MatchInReplyTo(request.getReplyWith()));\r\n\t\t\t\tmt = MessageTemplate.MatchConversationId(\"philosopher-waiter-fork\");\r\n\t\t\t\tstate = State.REGISTERED;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase REGISTERED:\r\n\t\t\t\tACLMessage response = myAgent.receive();\r\n\t\t\t\tif (response != null && response.getConversationId().equals(\"philosopher-waiter-fork\")) {\r\n\t\t\t\t\tif (response.getPerformative() == ACLMessage.SUBSCRIBE) {\r\n\t\t\t\t\t\t// behaviour can be finished\r\n\t\t\t\t\t\tregistered = true;\r\n\t\t\t\t\t\tSystem.out.println(\"Philosopher Agent \"\r\n\t\t\t\t\t\t\t\t+ myAgent.getAID().getName()\r\n\t\t\t\t\t\t\t\t+ \" registered Successfully\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tregistered = false;\r\n\t\t\t\t\t\tSystem.out.println(\"Philosopher Agent \"\r\n\t\t\t\t\t\t\t\t+ myAgent.getAID().getName()\r\n\t\t\t\t\t\t\t\t+ \" registration in progress\");\r\n\t\t\t\t\t\tstate = State.REGISTER;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tSystem.out.println(myAgent.getAID().getName() + \" blocked\");\r\n\t\t\t\t\tblock();\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}", "public void v_Verify_Guest2_Hidden(){\n\t}", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "public void passivate()\n {\n }", "public void agentAdded(Simulation simulation, IAgent agent) {\n }", "public void selectAgent(int selected) {\n this.selected = selected;\n }", "public void v_Verify_Guest6_Hidden(){\n\t}", "public void takeTurn(IViewRequestor requestor);", "public String getAgentName ()\n {\n return agentName;\n\n }", "public int getNumberOfAgents()\n {\n return this.numberOfAgents;\n }", "void passivate();", "public Call inviteAddress(Address addr);", "public Integer getAgent() {\r\n return agent;\r\n }", "public void setGuestAddress(int value) {\n this.guestAddress = value;\n }", "default void interactWith(Teleporter tp) {\n\t}", "public void v_Verify_Guest10_Hidden(){\n\t}", "public WaiterAgent(String name, RestaurantGui gui, AStarTraversal aStar,\n\t\t Restaurant restaurant, Table[] tables) {\n\tsuper();\n\tthis.gui = gui;//main gui\n\tthis.name = name;\n\tthis.aStar = aStar;\n\tthis.restaurant = restaurant;//the layout for astar\n\twaiter = new Waiter(name.substring(0,2), new Color(255, 0, 0), restaurant);\n\t//currentPosition = new Position(3,13);\n\tcurrentPosition = new Position(waiter.getX(), waiter.getY());\n\tcurrentPosition.moveInto(aStar.getGrid());\n\toriginalPosition = currentPosition;//save this for moving into\n\tthis.tables = tables;\n\n\tString query =\n \"1 (?person)(and (person ?person)(hasname ?person \\\"\" + name+\"\\\"))\";\n loomInstance = PowerloomHelper.retrieve1(query);\n if (loomInstance!=null){\n PowerloomHelper.getloomMap().put(loomInstance, this);\n System.out.println(\"Found person in knowledge base: \" + loomInstance);\n }\n else {\n System.out.println(\"No waiter found. Instantiating...\");\n loomInstance = PowerloomHelper.instantiate(\"person\",this);//puts it in map\n\n String h = PowerloomHelper.instantiate(\"home\",null);\n query = \"(and (workingWaiter \" + loomInstance + \")\"\n +\"(haslocation \" +h+\" \"+gui.getneighborhoodInstance()\n +\") (lives \"+ loomInstance+\" \"+h+\")(hasname \"\n + loomInstance+\" \\\"\"+name+\"\\\"))\";\n print(\"asserting facts about new instance:\"+query);\n PLI.sAssertProposition(query, PowerloomHelper.getWorkingModule(), null);\n }\n\n }", "@Test\n public void testSendInvite()\n {\n System.out.println(\"sendInvite\");\n Account invite = null;\n Account sender = null;\n Party instance = null;\n instance.sendInvite(invite, sender);\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 travaille();", "public void v_Verify_Guest4_Hidden(){\n\t}", "public void actionPerformed(ActionEvent arg0) {\r\n\t\tif(list.getSelectedIndex()<0)\r\n\t\t\treturn;\r\n\t\tThrDialogInviter dialogInvite = new ThrDialogInviter(sipManager,getParent());\r\n\t\tListItem item = (ListItem) list.getModel().getElementAt(list.getSelectedIndex());\r\n\t\tdialogInvite.setNombreUsuario(item.getValue());\r\n\t\tdialogInvite.setX(x/2 - 100);\r\n\t\tdialogInvite.setY(y/5 + 100);\r\n\t\tdialogInvite.start();\r\n\t}", "@Test\n public void vote() {\n System.out.println(client.makeVotes(client.companyName(0), \"NO\"));\n }", "public void v_Verify_Guest11_Hidden(){\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tg=new Guest(randomGenerator.nextBoolean(),randomGenerator.nextBoolean());\n\t\t\t\tguestQueue.add(g);\n\t\t\t\tSystem.out.println(g.isWillMassage());\n\t\t\t\tqueueCount.setText(\"\"+guestQueue.size());\n\t\t\t\tif (g.isMember()){\n\t\t\t\t\tactivityLog.append(\"A member is in Queue.\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tactivityLog.append(\"A non-member is in Queue.\\n\");\n\t\t\t\t}\n\t\t\t}", "public Supervisor getSupervisor(){\r\n return supervisor;\r\n }", "public void townAssistantsAdd(Player player, Town town, List<Resident> invited) {\n\t\tArrayList<Resident> remove = new ArrayList<Resident>();\n\t\tfor (Resident newMember : invited)\n\t\t\ttry {\n\t\t\t\ttown.addAssistant(newMember);\n\t\t\t\tplugin.deleteCache(newMember.getName());\n\t\t\t\tplugin.getTownyUniverse().getDataSource().saveResident(newMember);\n\t\t\t} catch (AlreadyRegisteredException e) {\n\t\t\t\tremove.add(newMember);\n\t\t\t}\n\t\tfor (Resident newMember : remove)\n\t\t\tinvited.remove(newMember);\n\n\t\tif (invited.size() > 0) {\n\t\t\tString msg = player.getName() + \" raised \";\n\t\t\tfor (Resident newMember : invited)\n\t\t\t\tmsg += newMember.getName() + \", \";\n\t\t\tmsg += \"to town assistants.\";\n\t\t\tplugin.getTownyUniverse().sendTownMessage(town, ChatTools.color(msg));\n\t\t\tplugin.getTownyUniverse().getDataSource().saveTown(town);\n\t\t} else\n\t\t\tplugin.sendErrorMsg(player, \"None of those names were valid.\");\n\t}", "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "public void show( Agent agent, Percept percept );", "public void v_Verify_Guest5_Hidden(){\n\t}", "protected abstract RemoteFactory.Agent<Msg, Ref> make_Agent();", "static public int getGUEST() {\n return 2;\n }", "public static void helloAgent(){\n\t\tHelloAgent agent = new HelloAgent();\r\n\t\r\n\t}", "public void v_Verify_Guest9_Hidden(){\n\t}", "public void bookRoom(int hotelId, String roomNumber, int people){\n\n\n\n }", "public void editAgentCredential(Agent agent);", "private native static int shout_set_agent(long shoutInstancePtr, String agent);", "InviteEntity accept(Integer inviteId);", "public void v_Verify_Guest7_Hidden(){\n\t}", "@Remote\npublic interface PassengerStatefulEJBRemote {\n\n Passenger getPassenger();\n void createPassengers(String ssn, String firstName, String lastName, Integer frequentFlyerMiles, byte[] picture, Date dateOfBirth, PassengerType passengerType, Date lastFlight);\n void pickPassenger(long id);\n void setAddress(Address address);\n void addCreditCard(CreditCard creditCard);\n void addTicket(double price, Status status);\n void checkOut();\n}", "public void v_Verify_Guest3_Hidden(){\n\t}", "public void shoot(Agent agent) throws RemoteException {\n\t}", "private void freeAgent() {\n }", "public void displayAll(){\n System.out.println(\"guestCounter: \" + guestCounter);\n for(int i=0;i<guestCounter;i++){\n guest[i].dispGuest();\n }\n }", "public static void addPassengers(ActorRef checkPoint, int num){\n\t\tfor(int i=0; i<num; i++){\n\t\t\tcount++;\n\t\t\tcheckPoint.tell(new PassengerEnters(count));\n\t\t}\t\t\t\n\t}", "boolean hasAgent();", "public void makeAndSendAgentID(){\n sendID(id, x, y);\n }", "public void clickAddAgent() throws Exception {\n\t\twaitForElement.waitForElement(locators.clickAddAgent);\n\t\twdriver.findElement(By.xpath(locators.clickAddAgent)).click();\n\t}", "public int getAgentsQty();", "public interface InviteService extends Service, ActorService {\r\n\r\n @AsyncInvocation\r\n void save();\r\n @AsyncInvocation\r\n void insert(DbRow dbRow);\r\n @AsyncInvocation\r\n void update(DbRow dbRow);\r\n @AsyncInvocation\r\n void bindInviteCode(RoleInvitePo roleInvitePoFrom, RoleBeInvitePo roleBeInvitePo);\r\n\r\n}", "public void addGuest(Guest guest) {\n guestList.add(guest);\n storeData();\n }", "private void clickInvite(){\n WebDriverHelper.clickElement(inviteButton);\n }", "public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }", "public void nationAssistantsAdd(Player player, Nation nation, List<Resident> invited) {\n\t\tArrayList<Resident> remove = new ArrayList<Resident>();\n\t\tfor (Resident newMember : invited)\n\t\t\ttry {\n\t\t\t\tnation.addAssistant(newMember);\n\t\t\t\tplugin.deleteCache(newMember.getName());\n\t\t\t\tplugin.getTownyUniverse().getDataSource().saveResident(newMember);\n\t\t\t} catch (AlreadyRegisteredException e) {\n\t\t\t\tremove.add(newMember);\n\t\t\t}\n\t\tfor (Resident newMember : remove)\n\t\t\tinvited.remove(newMember);\n\n\t\tif (invited.size() > 0) {\n\t\t\tString msg = player.getName() + \" raised \";\n\t\t\tfor (Resident newMember : invited)\n\t\t\t\tmsg += newMember.getName() + \", \";\n\t\t\tmsg += \"to nation assistants.\";\n\t\t\tplugin.getTownyUniverse().sendNationMessage(nation, ChatTools.color(msg));\n\t\t\tplugin.getTownyUniverse().getDataSource().saveNation(nation);\n\t\t} else\n\t\t\tplugin.sendErrorMsg(player, \"None of those names were valid.\");\n\t}", "public void action() {\n try {\n //System.out.println(\"LoadAgent\"+neighId[i]);\n DFAgentDescription template = new DFAgentDescription();\n ServiceDescription sd = new ServiceDescription();\n sd.setName(\"DSO agent\");\n template.addServices(sd);\n DFAgentDescription[] result = DFService.search(myAgent, template);\n AgentAIDs[0] = result[0].getName();\n sd.setName(\"PV Agent\");\n template.addServices(sd);\n result = DFService.search(myAgent, template);\n AgentAIDs[2] = result[0].getName();\n sd.setName(\"Load Agent\");\n template.addServices(sd);\n result = DFService.search(myAgent, template);\n AgentAIDs[3] = result[0].getName();\n\n } catch (FIPAException ex) {\n Logger.getLogger(CurtailAgent.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n //initializa GUI and add listeners\n appletVal = new SetCellValues();\n appletVal.playButton.addActionListener(new listener());\n appletVal.playButton.setEnabled(true);\n appletVal.resetButton.addActionListener(new listener());\n appletVal.resetButton.setEnabled(true);\n //operate microgrid\n addBehaviour(operate);\n\n }", "public void sendUserToEspectate(String userNameToEspectate, GameController gc, GameView gv) {\n connect();\n try {\n doStream.writeUTF(\"ESPECTATE\");\n doStream.writeUTF(userNameToEspectate);\n gc.setPGDirect(true);\n String missatge;\n ArrayList<String> historial = new ArrayList<>();\n missatge = diStream.readUTF();\n if (missatge.equals(\"found\")) {\n missatge = diStream.readUTF();\n while (!missatge.equals(\"END_HISTORIAL\")) {\n System.out.println(\"PARTE HISTORIAL MOVIMIENTOS: \" + missatge);\n historial.add(missatge);\n missatge = diStream.readUTF();\n }\n gc.readyReplay(historial);\n gc.startReplay();\n }else{\n System.out.println(\"Repetit\");\n }\n } catch(IOException e){\n e.printStackTrace();\n }\n\n }", "@Override\n\tpublic void msgHereIsMyChoice(Customer customerAgent, String choice) {\n\t\t\n\t}", "public void actionOffered();", "public interface IPSAgent\n{\n /**\n * This method is the first one to be called by the Agent Manager just after\n * instantiating the implementing class object. This is called only once in\n * the object's life cycle.\n * @param configData - DOM Element representing the configuration data\n * defined in the configuration file. The implementor dictates the DTD for\n * the element depending on what he needs.\n * @throws PSAgentException if initialization fails for any reason\n */\n void init(Element configData) throws PSAgentException;\n\n /**\n * This method is the engine of the agent and called any time a service from\n * this agent is requested by the Agent Manager.\n * @param action - name of the action to be excuted by the agent.\n * @param params - Map (name, value pairs) of all parameters from the\n * request\n * @param response <code>IPSAgentHandlerResponse</code> object that can be\n * used to set the results of execution of the action. If the requested\n * action is not implmented or enough parameters are not supplied to execute\n * the action, the result can be set to error.\n */\n void executeAction(String action, Map params,\n IPSAgentHandlerResponse response);\n\n /**\n * This method is called by the Agent Manager while shuttingdown. May be\n * used to do any cleaning.\n */\n void terminate();\n}", "@Override\npublic void noninvesters() {\n\t\n}", "@Override\r\n public void engage(){\r\n isEngaged = true;\r\n Reporter.report(this, Reporter.Msg.ENGAGING);\r\n }", "public void v_Verify_Guest12_Hidden(){\n\t}", "private void notifyStakeholder(){\n }", "@Test(description = \"TA - 290 Verify Order with 2 'Ready to Ship' Items with different SKU/sPurchase with Multishipment for Guest user\")\n\tpublic void verifyGuestOrderWithMutlishipment()throws InterruptedException{\n\t\tUIFunctions.addMultipleProducts(\"TumiTestData\",\"GuestDetails\");\n\t\tclick(minicart.getMiniCartSymbol(), \"Cart Image\");\n\t\tclick(minicart.getProceedCheckOut(), \"Proceed to Checkout\");\n\t\tclick(mainCart.getProceedCart(), \"Proceed to Checkout\");\n\t\tinput(singlePage.getEmailAddress(), testData.get(\"EmailID\"), \"Email ID\");\n\t\t//UIFunctions.waitForContinueToEnable();\n\t\tclick(singlePage.getContinueAsGuest(), \"Contiue as Guest\");\n\t\tUIFunctions.addMultiship();\n\t\tUIFunctions.addMultishipAddressWithCardDeatils(\"TumiTestData\",\"CreditCardDetailsMultishipmnet\");\n\t\tUIFunctions.completeOrder();\n\n\t\t\n\t}", "@Override\n public void actionPerformed(ActionEvent ae) {\n try {\n\n // We try to obtain a remote reference to the grade remote object\n // that lives on the client. (using the registry object obtained from\n // the constructor above)\n \n MedicineInterface p = (MedicineInterface) r.lookup(\"MedicineInterface\");\n\n \n // Get the grade (in numbers) as it is written inside the text field\n // Please note that we are able to interact with the gui elements through\n // the getters that we have set up earlier\n \n // Also we are parsing to int below because by default, the text field\n // will return a string\n \n \n String name = gui.getjTextField1().getText();\n\n String type = gui.getjTextField4().getText();\n\n String expiredDate = gui.getjTextField2().getText();\n\n int amount = Integer.parseInt(gui.getjTextField5().getText());\n\n int price = Integer.parseInt(gui.getjTextField3().getText());\n\n\n \n // Once we have the grade as numbers, we can pass it to the remote\n // function getGrade using our remote reference g\n \n \n\n p.postMedicine(name,type,expiredDate,amount,price);\n\n \n // Once we got the result from our remote object, we can set it to\n // appear inside the gui using the jLabel\n \n\n\n gui.getjLabel7().setText(\"Medicine posted\");\n\n \n } catch (RemoteException ex) {\n Logger.getLogger(PostMedicineController.class.getName()).log(Level.SEVERE, null, ex);\n } catch (NotBoundException ex) {\n Logger.getLogger(PostMedicineController.class.getName()).log(Level.SEVERE, null, ex);\n }\n catch (Exception ex) {\n System.out.println(\"Exception occured\");\n }\n }", "protected void setup() {\n DFAgentDescription dfd = new DFAgentDescription();\n dfd.setName(getAID());\n ServiceDescription sd = new ServiceDescription();\n sd.setName(\"Storage Agent\");\n sd.setType(\"Storage\");\n dfd.addServices(sd);\n try {\n DFService.register(this, dfd);\n } catch (FIPAException fe) {\n fe.printStackTrace();\n }\n waitForAgents = new waitAgents();\n receiveAgents = new receiveFromAgents();\n operate = new opMicrogrid();\n decision = new takeDecision();\n\n addBehaviour(waitForAgents);\n\n //add a ticker behavior to monitor PV production, disable PLay button in the meanwhile\n addBehaviour(new TickerBehaviour(this, 5000) {\n protected void onTick() {\n if (AgentsUp == 0) {\n appletVal.playButton.setEnabled(false);\n ACLMessage msg = new ACLMessage(ACLMessage.INFORM);\n msg.addReceiver(new AID(AgentAIDs[2].getLocalName(), AID.ISLOCALNAME));\n msg.setContent(\"Inform!!!\");\n send(msg);\n String stripedValue = \"\";\n msg = receive();\n if (msg != null) {\n // Message received. Process it\n String val = msg.getContent().toString();\n stripedValue = (val.replaceAll(\"[\\\\s+a-zA-Z :]\", \"\"));\n //PV\n if (val.contains(\"PV\")) {\n System.out.println(val);\n PV = Double.parseDouble(stripedValue);\n appletVal.playButton.setEnabled(true);\n appletVal.SetAgentData(PV, 0, 2);\n }\n\n } else {\n block();\n }\n\n }\n }\n });\n\n }", "public void sendInvitations(){\r\n for(int i = 0; i< emails.size(); i++){\r\n System.out.println(\"Inviting: \" + emails.get(i));\r\n }\r\n\r\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void vote(int index,Person voter,ArrayList<String> choices){\n votingList.get(index).vote(voter,choices);\n\n }" ]
[ "0.6366486", "0.60234815", "0.592561", "0.58934903", "0.58842057", "0.5849877", "0.5843164", "0.5764457", "0.57488966", "0.57173246", "0.5715057", "0.56801015", "0.5667557", "0.5666438", "0.56279284", "0.5622965", "0.5618788", "0.5581987", "0.55538934", "0.55478084", "0.55167043", "0.55040956", "0.5502266", "0.54743725", "0.546777", "0.5464933", "0.54338664", "0.5407972", "0.5361087", "0.5299931", "0.5277524", "0.52750474", "0.5268491", "0.52570057", "0.5253816", "0.5253524", "0.523833", "0.52284193", "0.5215834", "0.5210002", "0.5207089", "0.52022773", "0.5196819", "0.51811457", "0.51548725", "0.5151709", "0.51455593", "0.51442707", "0.5135756", "0.5131975", "0.5128077", "0.51194465", "0.5116272", "0.5104786", "0.51012754", "0.51000756", "0.50859386", "0.50847614", "0.5071126", "0.5060928", "0.5060893", "0.5059674", "0.5053657", "0.50509316", "0.50490886", "0.50474584", "0.5047018", "0.50432837", "0.503557", "0.50208646", "0.50207734", "0.50177443", "0.501434", "0.5006731", "0.50060576", "0.5003091", "0.5002814", "0.50013894", "0.49909222", "0.49908495", "0.49878317", "0.49865815", "0.49825925", "0.49733457", "0.49726942", "0.49679795", "0.49587676", "0.49581245", "0.49512473", "0.494924", "0.49452847", "0.49436617", "0.49427965", "0.4940794", "0.49348277", "0.49348196", "0.4932854", "0.49240345", "0.4918773", "0.4918773", "0.49131826" ]
0.0
-1
The window closing event is the same as clicking exit.
void this_windowClosing(WindowEvent e) { // simulate the user having clicked exit btn_Exit_actionPerformed( null ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void windowClosing(WindowEvent e) {\n\t\t \t\tif (close){\n\t\t \t\t\tSystem.exit(0);\n\t\t \t\t}\n\t\t \t}", "public void exit() {\r\n \t\t// Send a closing signat to main window.\r\n \t\tmainWindow.dispatchEvent(new WindowEvent(mainWindow, WindowEvent.WINDOW_CLOSING));\r\n \t}", "public void windowClosing(WindowEvent e) {\n System.exit(0);\n }", "@Override\n public void windowClosing(WindowEvent e)\n {\n gui.exitApp();\n }", "public void windowClosed(WindowEvent e){}", "public void windowClosing(WindowEvent e) {\n System.exit(0);\n }", "@Override\n\tpublic void windowClose(CloseEvent e) {\n\t\t\n\t}", "public abstract void windowClose(CloseEvent e);", "public void windowClosing(WindowEvent e)\r\n\t{\n\t\tSystem.exit(0);\r\n\t}", "@Override\n\tpublic void windowClosing(WindowEvent e) {\n\t\tSystem.exit(0);\t\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\tSystem.exit(0);\n\t}", "public void windowClosing(WindowEvent arg0) {\n\n }", "public void windowClosing(WindowEvent e) {\n\t\tSystem.exit(0);\n\t}", "@Override\n\tpublic void windowClosing(WindowEvent e) {\n\t\tSystem.exit(0);\n\t\t\n\t}", "public void windowClosing (WindowEvent e)\n\t\t\t\t{\n\t\t\t\talertQuit();\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}", "public void windowClosing (WindowEvent e) {\n\t bf.shutdown ();\n\t System.exit (0);\n\t}", "private void systemExit()\n{\n WindowEvent winClosing = new WindowEvent(this,WindowEvent.WINDOW_CLOSING);\n}", "@Override\r\n\tpublic void windowClosing(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosing(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosing(WindowEvent arg0) {\n\t\t\r\n\t}", "public void windowClosing(WindowEvent comeInWindowEvent) {\n\t\tGUICommon.mainFrame.dispose();\n\t\tSystem.exit(0);\n\t}", "protected void windowClosed() {\r\n\r\n\t\t// Exit\tapplication.\r\n\t\tSystem.exit(0);\r\n\t}", "@Override\n\tpublic void windowClosing(WindowEvent e) {\n\t\tSystem.exit(0);\n\t}", "@Override\n\tpublic void windowClosing(WindowEvent e) {\n\t\tSystem.exit(0);\n\t}", "@Override\n\tpublic void windowClosing(WindowEvent e) {\n\t\tSystem.exit(0);\n\t}", "public void windowClosed(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosing(WindowEvent event) {\r\n\t\tif (event.getWindow() == this) {\r\n\t\t\tdispose();\r\n\r\n\t\t\t// Overriding the ApplicationFrame behavior\r\n\t\t\t// Do not shutdown the JVM\r\n\t\t\t// System.exit(0);\r\n\t\t\t// -----------------------------------------\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void windowClosing(WindowEvent arg0) {\n\t\tSystem.exit(0);\r\n\t}", "@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\twindow_Closing(e);\n\t\t\t}", "@Override\n\tpublic void windowClosing(WindowEvent arg0) {\n\t\tSystem.exit(0);\n\t}", "public void windowClosing(WindowEvent e) {\n\t\t\t\t\n\t\t\t\tsetVisible(false);\n\t\t\t\tdispose();\n\t\t\t\tSystem.exit(0);\n\t\t\t }", "public void windowClosing(WindowEvent e) {\n if (!askSave()) {\n return;\n }\n System.exit(0);\n }", "public void windowClosing(WindowEvent e) {\n\t\t\t\tout.println(\"bye\");\n\t\t\t}", "public void windowClosed(WindowEvent e) {\n\r\n\t}", "@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tSystem.exit(0);\n\n\t\t\t}", "@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tSystem.out.println(\"Window Closing\");\n\t\t\t\tcheckSaveOnExit();\n\t\t\t}", "@Override\n public void windowClosing(WindowEvent evt) {\n System.exit(0); // Terminate the program\n }", "@Override\n public void windowClosing(WindowEvent e) {\n System.exit(0);\n }", "public void windowClosing(WindowEvent e) {\n\t\t\t\tsetVisible(false);\n\t\t\t\tdispose();\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "public void\n windowClosing(WindowEvent event) {\n dispose();\n // terminate the program\n System.exit(0);\n }", "public void close() {\r\n dispatchEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));\r\n }", "public void windowClosing(WindowEvent wE) {\n\t\t\t\tBPCC_Logger.logDebugMessage(classNameForLogger, logMessage_xButtonClicked);\r\n\t\t\t\texitApplication();\r\n\t\t\t}", "public void windowClosing(WindowEvent we)\r\n\t{\r\n\t\t// CURRENTLY THIS DOES NOTHING\r\n\t}", "public void windowClosing(WindowEvent e)\r\n\t\t\t\t{\r\n\t\t\t\t\tWatchMeFrame.this.windowClosed();\r\n\t\t\t\t}", "@Override\n public void windowClosing(WindowEvent we) {\n finishDialog();\n }", "@Override\n\tpublic void windowClosing(WindowEvent e) {\n\t}", "@Override\n\tpublic void windowClosing(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowClosing(WindowEvent e) {\n\t\t\n\t}", "@Override\r\n public void windowClosed(WindowEvent e) {\r\n System.out.println(\"Window closed.\");\r\n }", "@Override\n public void windowClosing(WindowEvent evt) {\n System.exit(0); // Terminate the program\n }", "public void onWindowClosing(Window.ClosingEvent event) {\n VTextField.flushChangesFromFocusedTextField();\n \n // Send the closing state to server\n connection.updateVariable(id, \"close\", true, false);\n connection.sendPendingVariableChangesSync();\n }", "@Override\r\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\n public void windowClosing(WindowEvent e) {\n System.exit(0);\n // super.windowClosing(e);\n }", "private void close() {\n WindowEvent winClose = new WindowEvent(this,WindowEvent.WINDOW_CLOSING);\n Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(winClose);\n \n }", "@Override\n\tpublic void windowClosing(WindowEvent arg0) {\n\t\tSystem.exit(0); // Terminate the program\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent arg0) {\n\n\t}", "public void windowClosing(WindowEvent wE) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "public void windowClosing(WindowEvent wE) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "@Override\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent arg0)\n\t{\n\t\t\n\t}", "@Override\n\tpublic void windowClosed(WindowEvent arg0)\n\t{\n\t\t\n\t}", "public void close() {\r\n\t\t\r\n\t\tWindowEvent winClosingEvent = new WindowEvent(this,WindowEvent.WINDOW_CLOSING);\r\n\t\tToolkit.getDefaultToolkit().getSystemEventQueue().postEvent(winClosingEvent);\r\n\t}", "@Override\n\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\n\t\t}", "public void windowClosed(WindowEvent wE) {\n\t\t\t}", "@Override\n public void windowClosed(WindowEvent arg0) {\n\n }", "private void thisWindowClosing(java.awt.event.WindowEvent e) {\n closeThisWindow();\n }", "@Override\n\t\t\tpublic void windowClosed(WindowEvent arg0) {\n\n\t\t\t}", "@Override\n public void windowClosing(WindowEvent e) {\n closeWindow();\n }", "@Override\r\n\t\tpublic void windowClosed(WindowEvent e) {\n\t\t}", "public void handleWindowClosingEvent(WindowEvent e)\n {\n\t //debug(\"handleWindowClosingEvent:\"+e);\n\t // finalize in background: \n\t signalFinalize();\n }", "public void windowClosing(WindowEvent we) {\n \t\t\t\toptionPane.setValue(\"Close\");\n \t\t\t}", "@Override\n\tpublic void windowClosed(WindowEvent e) {\n\t}", "private void close() {\n WindowEvent winClosingEvent = new WindowEvent(this, WindowEvent.WINDOW_CLOSING);\n Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(winClosingEvent);\n }", "@Override\n\t\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t}", "@Override\n\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t\n\t\t}", "public void windowClosing(WindowEvent we)\r\n {\n\t\tif(currentView != null){\r\n\t\t\taskIfTheUserWantsToSaveTabs();\r\n\t\t}\r\n\t\tSystem.exit(0);\r\n }", "private void close() {\n WindowEvent winClosingEvent = new WindowEvent(this,WindowEvent.WINDOW_CLOSING);\nToolkit.getDefaultToolkit().getSystemEventQueue().postEvent(winClosingEvent);\n }", "@Override\r\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowClosed(WindowEvent e) {\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tcloseApplication();\n\t\t\t}", "@Override\n\t\t\tpublic void windowClosed(WindowEvent e) {\n\n\t\t\t}", "private void close() {\n WindowEvent winClosingEvent = new WindowEvent(this,WindowEvent.WINDOW_CLOSING);\n Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(winClosingEvent);\n }", "public void windowClosed(WindowEvent arg0) {\n\n }", "@Override\n\t\t\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }", "@Override\n public void windowClosing(WindowEvent e) {\n }" ]
[ "0.8627464", "0.85575604", "0.8485298", "0.84637403", "0.8420234", "0.84114164", "0.8381609", "0.8373726", "0.835284", "0.83493423", "0.83448595", "0.8342217", "0.8323606", "0.83230525", "0.8320834", "0.8298657", "0.82877743", "0.8287096", "0.8287096", "0.8287096", "0.827458", "0.82694453", "0.82645166", "0.82645166", "0.82645166", "0.8236131", "0.8211733", "0.8203353", "0.8186564", "0.81816584", "0.8165323", "0.8159375", "0.81591135", "0.81576294", "0.81555885", "0.81474173", "0.81357044", "0.8118818", "0.81131226", "0.8112385", "0.81085247", "0.8108021", "0.80818564", "0.8069989", "0.80692685", "0.8059681", "0.8050299", "0.80412763", "0.80412763", "0.8038754", "0.80336463", "0.8031019", "0.80239606", "0.80239606", "0.80239606", "0.80239606", "0.80239606", "0.80239606", "0.80239606", "0.80205655", "0.8019637", "0.8019277", "0.80154204", "0.801259", "0.801259", "0.8007143", "0.8007143", "0.80066955", "0.80066955", "0.7999837", "0.799541", "0.7995037", "0.79909784", "0.79871064", "0.79849577", "0.7983922", "0.7982601", "0.79771936", "0.7976514", "0.79739237", "0.7971327", "0.79605514", "0.79551506", "0.79551506", "0.7952072", "0.79513913", "0.79486614", "0.79486614", "0.79486614", "0.79460335", "0.7942707", "0.79420424", "0.7941058", "0.7937738", "0.7937738", "0.79340017", "0.79340017", "0.79340017", "0.79340017", "0.79340017" ]
0.8565841
1
Created by noxoomo on 06/11/2016.
public interface Sampler<T> { T sample(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\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 dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\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\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "private void poetries() {\n\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void getExras() {\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n public void init() {\n }", "public void mo4359a() {\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 public void memoria() {\n \n }", "@Override\n void init() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\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 sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void init() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n public int describeContents() { return 0; }", "private void init() {\n\n\t}", "private void m50366E() {\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\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tpublic void debite() {\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\r\n\tpublic void init() {}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n public void initialize() { \n }", "public void mo6081a() {\n }", "private void kk12() {\n\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "Petunia() {\r\n\t\t}", "protected boolean func_70814_o() { return true; }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "protected void mo6255a() {\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\n public void initialize() {\n \n }", "@Override\n public void initialize() {}" ]
[ "0.6316806", "0.6121875", "0.60821146", "0.60512054", "0.59675604", "0.5962873", "0.59562796", "0.59488744", "0.59488744", "0.59243476", "0.59204805", "0.5899878", "0.58598524", "0.58517665", "0.57954824", "0.57872957", "0.5782493", "0.5764424", "0.57602656", "0.57576853", "0.57436293", "0.57401955", "0.57401955", "0.5737678", "0.5729442", "0.57235014", "0.57235014", "0.57235014", "0.57235014", "0.57235014", "0.57235014", "0.5722912", "0.5708459", "0.5694631", "0.56869143", "0.56863296", "0.5686326", "0.5684211", "0.5680115", "0.567587", "0.567587", "0.567587", "0.567587", "0.567587", "0.5672276", "0.56717974", "0.56650907", "0.566412", "0.566412", "0.56472784", "0.56403285", "0.56332356", "0.5608488", "0.5605083", "0.5596748", "0.5592142", "0.5590745", "0.5590343", "0.5590343", "0.55889475", "0.5574732", "0.55737305", "0.55737305", "0.55737305", "0.5572366", "0.55676365", "0.556673", "0.5558767", "0.5558767", "0.5558767", "0.5558767", "0.5558767", "0.5558767", "0.5558767", "0.55558246", "0.5555655", "0.5555655", "0.5555655", "0.554368", "0.5543096", "0.5543096", "0.5543096", "0.5542017", "0.5538652", "0.55288017", "0.5521029", "0.55026025", "0.5496685", "0.54947686", "0.5488445", "0.5487656", "0.54861283", "0.5481779", "0.5481779", "0.54717964", "0.5467121", "0.54618305", "0.54591715", "0.5455068", "0.54502", "0.54473484" ]
0.0
-1
this is for fragment tabs
@Override public Fragment getItem(int position) { switch (position) { case 0: FragmentAboutUs aboutFragment = new FragmentAboutUs(); return aboutFragment; case 1: FragmentContactUs contactUsFragment = new FragmentContactUs(); return contactUsFragment; case 2: FragmentDonate donateFragment = new FragmentDonate(); return donateFragment; case 3: FragmentHelp helpFragment = new FragmentHelp(); return helpFragment; default: return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onTabChanged(String tabId) {\n FragmentManager fragmentManager = TabMainActivity.this.getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n int position = fragmentTabHost.getCurrentTab();\n for (int i = 0; i < list.size(); i++) {\n if (position == i) {\n transaction.show(list.get(i));\n } else {\n transaction.hide(list.get(i));\n }\n }\n transaction.commit();\n//\t viewPage.setCurrentItem(position);\n }", "@Override\r\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n\t\t if (mFragment == null) {\r\n\t\t // If not, instantiate and add it to the activity\r\n\t\t mFragment = Fragment.instantiate(mActivity, mClass.getName());\r\n\t\t ft.add(android.R.id.content, mFragment, mTag);\r\n\t\t } else {\r\n\t\t // If it exists, simply attach it in order to show it\r\n\t\t ft.show(mFragment);//选择的时候,让之前隐藏的显示出来\r\n\t\t }\r\n\r\n\t}", "@Override\n public void onTabSelected(TabLayout.Tab tab) {\n if (tab.getIcon() != null)\n tab.getIcon().setColorFilter(getApplicationContext().getResources().getColor(R.color.colorIconSelected), PorterDuff.Mode.SRC_IN);\n\n // set the current page position\n current_page = tab.getPosition();\n\n // if the current page is the ListMatesFragment, remove the searchView\n if(mToolbar_navig_utils!=null){\n if(current_page==2)\n mToolbar_navig_utils.getSearchView().setVisibility(View.GONE);\n else\n mToolbar_navig_utils.getSearchView().setVisibility(View.VISIBLE);\n }\n\n // refresh title toolbar (different according to the page selected)\n if(mToolbar_navig_utils !=null)\n mToolbar_navig_utils.refresh_text_toolbar();\n\n // Disable pull to refresh when mapView is displayed\n if(tab.getPosition()==0)\n swipeRefreshLayout.setEnabled(false);\n else\n swipeRefreshLayout.setEnabled(true);\n }", "private void setupTabs() {\n }", "private void setTab() {\n\t\tTabHost.TabSpec showSpec = host.newTabSpec(ShowFragment.TAG);\r\n\t\tshowSpec.setIndicator(showLayout);\r\n\t\tshowSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(showSpec);\r\n\r\n\t\tTabHost.TabSpec addSpec = host.newTabSpec(AddRecordFrag.TAG);\r\n\t\taddSpec.setIndicator(addLayout);\r\n\t\taddSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(addSpec);\r\n\r\n\t\tTabHost.TabSpec chartSpec = host.newTabSpec(ChartShowFrag.TAG);\r\n\t\tchartSpec.setIndicator(chartLayout);\r\n\t\tchartSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(chartSpec);\r\n\t}", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n Fragment fragment3 = null;\n Fragment fragment1 = null;\n Fragment fragment2 = null;\n switch (tab.getPosition()) {\n case 0:\n // The first is Selected\n if(fragment1 == null) {\n fragment1 = new SelectedFragment();\n }\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.container, fragment1).commit();\n break;\n case 1:\n // The second is Search\n if(fragment2 == null){\n fragment2 = new AllFragment();\n }\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.container, fragment2).commit();\n break;\n case 2:\n // The third is My City\n if(fragment3 == null){\n fragment3 = new NearbyFragment();\n }\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.container, fragment3).commit();\n break;\n default:\n break;\n }\n }", "private void barLayoutManager(int sTab) {\n\n Fragment fragment = null;\n String title = \"\";\n\n if (selectedTab != sTab) {\n selectedTab = sTab;\n barDisableAll();\n\n switch (sTab) {\n\n case TAB_NINJA:\n fragment = NinjaFragment.newInstance();\n title = resources.getString(R.string.tab_ninja);\n imgNinja.setImageDrawable(resources.getDrawable(R.drawable.ic_banana_sel));\n tvNinja.setTextColor(resources.getColor(R.color.barTextEnabled));\n break;\n\n case TAB_FRUITER:\n fragment = FruiterFragment.newInstance();\n title = resources.getString(R.string.tab_fruiter);\n imgFruiter.setImageDrawable(resources.getDrawable(R.drawable.ic_like_sel));\n tvFruiter.setTextColor(resources.getColor(R.color.barTextEnabled));\n break;\n\n case TAB_HACK:\n fragment = HackXORFragment.newInstance();\n title = resources.getString(R.string.tab_hack);\n imgHack.setImageDrawable(resources.getDrawable(R.drawable.ic_lock_sel));\n tvHack.setTextColor(resources.getColor(R.color.barTextEnabled));\n break;\n\n case TAB_NEWS:\n fragment = NewsFragment.newInstance();\n title = resources.getString(R.string.tab_news);\n imgNews.setImageDrawable(resources.getDrawable(R.drawable.ic_news_sel));\n tvNews.setTextColor(resources.getColor(R.color.barTextEnabled));\n break;\n\n default:\n break;\n }\n\n getSupportActionBar().setTitle(title);\n\n if (fragment != null) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.frame_container, fragment, \"frag\" + sTab).commit();\n supportInvalidateOptionsMenu();\n }\n }\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\r\n\t\t\t\tif(StaticVariables.fragmentIndexCurrentTabSchedular==31)\r\n\t\t\t\t{\r\n\t\t\t\t\tStaticVariables.fragmentIndexCurrentTabSchedular=34;\r\n\t\t\t\t}\r\n\t\t\t\telse if(StaticVariables.fragmentIndexCurrentTabSchedular==40)\r\n\t\t\t\t{\r\n\t\t\t\t\tStaticVariables.fragmentIndexCurrentTabSchedular=41;\r\n\t\t\t\t}\r\n\r\n\t\t\t\telse if(StaticVariables.fragmentIndexCurrentTabSchedular==48)\r\n\t\t\t\t{\r\n\t\t\t\t\tStaticVariables.fragmentIndexCurrentTabSchedular=49;\r\n\t\t\t\t}\r\n\t\t\t\telse if(StaticVariables.fragmentIndexCurrentTabSchedular==65)\r\n\t\t\t\t{\r\n\t\t\t\t\tStaticVariables.fragmentIndexCurrentTabSchedular=66;\r\n\r\n\t\t\t\t}\r\n\t\t\t\tswitchingFragments(new AddCustomFragment());\r\n\t\t\t\t/*getFragmentManager().beginTransaction().add(R.id.realtabcontent,\r\n\t\t\t\t\t\tnew AddCustomFragment()).addToBackStack(StaticVariables.fragmentIndex+\"\").commit();*/\r\n\t\t\t}", "@Override\n\t\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\t\t\t\n\t\t}", "private void addTabs() {\n TabsPagerAdapter tabsAdapter = new TabsPagerAdapter(getSupportFragmentManager());\n viewPager = (ViewPager) findViewById(R.id.pager);\n viewPager.setAdapter(tabsAdapter);\n\n TabLayout tabLayout = (TabLayout) findViewById(R.id.tabLayout);\n tabLayout.setTabGravity(TabLayout.GRAVITY_FILL);\n tabLayout.setupWithViewPager(viewPager);\n\n tabLayout.getTabAt(0).setIcon(R.drawable.connect);\n tabLayout.getTabAt(1).setIcon(R.drawable.speak);\n tabLayout.getTabAt(2).setIcon(R.drawable.walk);\n tabLayout.getTabAt(3).setIcon(R.drawable.camera);\n tabLayout.getTabAt(4).setIcon(R.drawable.moves);\n }", "private void initTab() {\n\n linearLayoutCookingMethod = (AdvancedPagerSlidingTabStrip) findViewById(R.id.linearLayoutCookingMethod);\n mViewPager = (ViewPager) findViewById(R.id.viewPager_main_activity);\n if (mFragments != null)\n mFragments.clear();\n else\n mFragments = new ArrayList<>();\n for (int i = 0; i < SanyiSDK.rest.queues.size(); i++) {\n FragmentTable fragmentTable = new FragmentTable();\n fragmentTable.setQueueId(i);\n mFragments.add(fragmentTable);\n }\n historyFragment = new FragmentHistory();\n mFragments.add(historyFragment);\n myPagerAdapter = new PagerAdapter(getSupportFragmentManager(), mFragments);\n mViewPager.setAdapter(myPagerAdapter);\n mViewPager.setOffscreenPageLimit(SanyiSDK.rest.queues.size()); //SanyiSDK.rest.queues.size()这个的值不包含历史队伍\n mViewPager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {\n @Override\n public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {\n\n }\n\n //每次滑动viewpager都要请求一次数据\n @Override\n public void onPageSelected(int position) {\n queryTicket();\n }\n\n @Override\n public void onPageScrollStateChanged(int state) {\n\n }\n });\n linearLayoutCookingMethod.setViewPager(mViewPager);\n linearLayoutCookingMethod.setOnPageChangeListener(new ViewPager.OnPageChangeListener() {\n @Override\n public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {\n\n }\n\n @Override\n public void onPageSelected(int position) {\n// if (position < mFragments.size() - 1) {\n// ((FragmentTable) mFragments.get(position)).refresh();\n// } else {\n// ((FragmentHistory) mFragments.get(position)).refresh();\n// }\n }\n\n @Override\n public void onPageScrollStateChanged(int state) {\n\n }\n });\n\n }", "private void addControl() {\n // Gan adapter va danh sach tab\n PagerAdapter adapter = new PagerAdapter(getSupportFragmentManager());\n // Them noi dung cac tab\n adapter.AddFragment(new TourMapTab());\n adapter.AddFragment(new TourInfoTab());\n adapter.AddFragment(new TourMapImageTab());\n // Set adapter danh sach tab\n ViewPager viewPager = ActivityManager.getInstance().activityTourTabsBinding.viewpager;\n TabLayout tabLayout = ActivityManager.getInstance().activityTourTabsBinding.tablayout;\n viewPager.setAdapter(adapter);\n tabLayout.setupWithViewPager(viewPager);\n // Them vach ngan cach cac tab\n View root = tabLayout.getChildAt(0);\n if (root instanceof LinearLayout) {\n ((LinearLayout) root).setShowDividers(LinearLayout.SHOW_DIVIDER_MIDDLE);\n GradientDrawable drawable = new GradientDrawable();\n drawable.setColor(getResources().getColor(R.color.colorPrimaryDark));\n drawable.setSize(2, 1);\n ((LinearLayout) root).setDividerPadding(10);\n ((LinearLayout) root).setDividerDrawable(drawable);\n }\n // Icon cac tab\n tabLayout.getTabAt(0).setIcon(R.drawable.tour_map_icon_select);\n tabLayout.getTabAt(1).setIcon(R.mipmap.tour_info_icon);\n tabLayout.getTabAt(2).setIcon(R.mipmap.tour_map_image_icon);\n\n // Doi mau tab icon khi click\n tabLayout.addOnTabSelectedListener(new TabLayout.ViewPagerOnTabSelectedListener(viewPager) {\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n super.onTabSelected(tab);\n switch (tab.getPosition()){\n case 0:\n tab.setIcon(R.drawable.tour_map_icon_select);\n break;\n case 1:\n tab.setIcon(R.drawable.tour_info_icon_select);\n break;\n case 2:\n tab.setIcon(R.mipmap.tour_map_image_icon_select);\n break;\n default:\n break;\n }\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n super.onTabUnselected(tab);\n switch (tab.getPosition()){\n case 0:\n tab.setIcon(R.mipmap.tour_map_icon);\n break;\n case 1:\n tab.setIcon(R.mipmap.tour_info_icon);\n break;\n case 2:\n tab.setIcon(R.mipmap.tour_map_image_icon);\n break;\n default:\n break;\n }\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n super.onTabReselected(tab);\n }\n }\n );\n }", "@Override\n\tpublic void onTabChange() {\n\t}", "void onTabReselected(int position);", "@Override\n public void onTabSelected(Tab tab, FragmentTransaction ft) {\n viewPager.setCurrentItem(tab.getPosition());\n if (tab.getPosition() == 1) {\n HomeFragment homeFragment = (HomeFragment)getSupportFragmentManager()\n .findFragmentByTag(\"android:switcher:\"+viewPager.getId()+\":\"+tab.getPosition());\n homeFragment.init();\n }\n }", "private void fuenteTab() {\n\n\n View view=LayoutInflater.from(this).inflate(R.layout.vista_pestanias,null);\n TextView tv=(TextView) view.findViewById(R.id.pestanias_txt);\n ImageView imv=(ImageView) view.findViewById(R.id.imagenPestanias);\n imv.setImageResource(R.drawable.detalles);\n tv.setTypeface(fuente2);\n tv.setText(\"Detalles\");\n tabLayout.getTabAt(0).setCustomView(view);\n\n view=LayoutInflater.from(this).inflate(R.layout.vista_pestanias,null);\n tv=(TextView) view.findViewById(R.id.pestanias_txt);\n imv=(ImageView) view.findViewById(R.id.imagenPestanias);\n imv.setImageResource(R.drawable.marciano);\n tv.setTypeface(fuente2);\n tv.setText(\"Juegos\");\n tabLayout.getTabAt(1).setCustomView(view);\n\n view=LayoutInflater.from(this).inflate(R.layout.vista_pestanias,null);\n tv=(TextView) view.findViewById(R.id.pestanias_txt);\n imv=(ImageView) view.findViewById(R.id.imagenPestanias);\n imv.setImageResource(R.drawable.tienda);\n tv.setTypeface(fuente2);\n tv.setText(\"Tienda\");\n tabLayout.getTabAt(2).setCustomView(view);\n\n }", "@Override\r\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n viewPager.setCurrentItem(tab.getPosition());\r\n\t\t\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_friends, container, false);\r\n tabLayout = (TabLayout)rootView.findViewById(R.id.tab_layout);\r\n\r\n //Initializing viewPager\r\n viewPager = (ViewPager)rootView.findViewById(R.id.pager);\r\n tabLayout.addTab(tabLayout.newTab().setText(\"Friends\"));\r\n tabLayout.addTab(tabLayout.newTab().setText(\"Requests\"));\r\n tabLayout.addTab(tabLayout.newTab().setText(\"Search\"));\r\n tabLayout.setTabGravity(TabLayout.GRAVITY_FILL);\r\n\r\n\r\n FriendPagerAdapter friendPagerAdapter = new FriendPagerAdapter(getChildFragmentManager(),tabLayout.getTabCount());\r\n viewPager.setAdapter(friendPagerAdapter);\r\n\r\n viewPager.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(tabLayout));\r\n tabLayout.setOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {\r\n @Override\r\n public void onTabSelected(TabLayout.Tab tab) {\r\n viewPager.setCurrentItem(tab.getPosition());\r\n /* switch (tab.getPosition()){\r\n case 0:\r\n break;\r\n case 1:\r\n break;\r\n }*/\r\n\r\n\r\n }\r\n\r\n @Override\r\n public void onTabUnselected(TabLayout.Tab tab) {\r\n viewPager.setCurrentItem(tab.getPosition());\r\n }\r\n\r\n @Override\r\n public void onTabReselected(TabLayout.Tab tab) {\r\n viewPager.setCurrentItem(tab.getPosition());\r\n }\r\n\r\n });\r\n return rootView;\r\n }", "private void initTab()\n {\n \n }", "public void tabSelected();", "public void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft)\n {\n // Check if the fragment is already initialized\n if (mFragment == null)\n {\n // If not, instantiate and add it to the activity\n mFragment = Fragment.instantiate(mActivity, mClass.getName());\n ft.add(android.R.id.content, mFragment, mTag);\n }\n else\n {\n // If it exists, simply attach it in order to show it\n ft.attach(mFragment);\n }\n\n if(mTag.equals(MiNoteConstants.NOTES_TAB))\n {\n createNotes(true);\n\n isNoteTabSelected = true;\n\n if(areNoteButtonCreated)\n {\n makeNoteButtonsInvisible();\n }\n }\n else if(mTag.equals(MiNoteConstants.EVENTS_TAB))\n {\n createNotes(false);\n\n isNoteTabSelected = false;\n\n if(areNoteButtonCreated)\n {\n makeNoteButtonsInvisible();\n }\n }\n }", "private void setTabLayout() {\n View view = LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n TextView title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n ImageView imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.MOVIES);\n imgIcon.setImageResource(R.mipmap.ic_home);\n mTabLayout.getTabAt(0).setCustomView(view);\n\n view =\n LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n count = (TextView) view.findViewById(R.id.item_tablayout_count_txt);\n imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.FAVOURITE);\n imgIcon.setImageResource(R.mipmap.ic_favorite);\n count.setVisibility(View.VISIBLE);\n mTabLayout.getTabAt(1).setCustomView(view);\n\n view =\n LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.SETTINGS);\n imgIcon.setImageResource(R.mipmap.ic_settings);\n mTabLayout.getTabAt(2).setCustomView(view);\n\n view =\n LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.ABOUT);\n imgIcon.setImageResource(R.mipmap.ic_info);\n mTabLayout.getTabAt(3).setCustomView(view);\n }", "@Override\r\n\t\t\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\r\n\t\t\t}", "@Override\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\t\t\n\t}", "@Override\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\t\t\n\t}", "@Override\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\t\t\n\t}", "@Override\r\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\r\n\t\t// on tab selected\r\n\t\t// showing respected fragment view at view pager\r\n\t\tviewPager.setCurrentItem(tab.getPosition());\r\n\t}", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n \t\n \tFragment fragment;\n \t\n \tif (tab.getPosition() == 0)\n \t\tfragment = new FragmentDraw();\n \telse if (tab.getPosition() == 1)\n \t\tfragment = new FragmentPlayback();\n \telse\n \t\tthrow new NotImplementedException();\n \t\n getFragmentManager()\n \t\t.beginTransaction()\n .replace(R.id.container, fragment)\n .commit();\n }", "@Override\n public void onTabSelected(TabLayout.Tab tab) {\n Fragment fragment = null;\n switch (tab.getPosition()) {\n case 0:\n fragment = new FirstFragment();\n break;\n case 1:\n fragment = new SecondFragment();\n //flipCard();\n break;\n case 2:\n fragment = new ThirdFragment();\n break;\n }\n\n flipCard(fragment);\n //FragmentManager fm = getSupportFragmentManager();\n //FragmentTransaction ft = fm.beginTransaction();\n //ft.replace(R.id.simpleFrameLayout, fragment);\n //ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);\n //ft.commit();\n }", "public void onTabReselected(ActionBar.Tab tab, FragmentTransaction ft) {\n }", "private void configure_tabs() {\n Objects.requireNonNull(tabs.getTabAt(0)).setIcon(R.drawable.baseline_map_white_24);\n Objects.requireNonNull(Objects.requireNonNull(tabs.getTabAt(0)).getIcon()).setColorFilter(getResources().getColor(R.color.colorIconSelected), PorterDuff.Mode.SRC_IN);\n Objects.requireNonNull(tabs.getTabAt(1)).setIcon(R.drawable.baseline_view_list_white_24);\n Objects.requireNonNull(Objects.requireNonNull(tabs.getTabAt(1)).getIcon()).setColorFilter(getResources().getColor(R.color.colorIconNotSelected), PorterDuff.Mode.SRC_IN);\n Objects.requireNonNull(tabs.getTabAt(2)).setIcon(R.drawable.baseline_people_white_24);\n Objects.requireNonNull(Objects.requireNonNull(tabs.getTabAt(2)).getIcon()).setColorFilter(getResources().getColor(R.color.colorIconNotSelected), PorterDuff.Mode.SRC_IN);\n swipeRefreshLayout.setEnabled(false);\n\n // Set on Tab selected listener\n tabs.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n // Change color of the tab -> orange\n if (tab.getIcon() != null)\n tab.getIcon().setColorFilter(getApplicationContext().getResources().getColor(R.color.colorIconSelected), PorterDuff.Mode.SRC_IN);\n\n // set the current page position\n current_page = tab.getPosition();\n\n // if the current page is the ListMatesFragment, remove the searchView\n if(mToolbar_navig_utils!=null){\n if(current_page==2)\n mToolbar_navig_utils.getSearchView().setVisibility(View.GONE);\n else\n mToolbar_navig_utils.getSearchView().setVisibility(View.VISIBLE);\n }\n\n // refresh title toolbar (different according to the page selected)\n if(mToolbar_navig_utils !=null)\n mToolbar_navig_utils.refresh_text_toolbar();\n\n // Disable pull to refresh when mapView is displayed\n if(tab.getPosition()==0)\n swipeRefreshLayout.setEnabled(false);\n else\n swipeRefreshLayout.setEnabled(true);\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n\n // if the searchView is opened, close it\n if(mToolbar_navig_utils !=null) {\n if (mToolbar_navig_utils.getSearchView() != null) {\n if (!mToolbar_navig_utils.getSearchView().isIconified()) {\n mToolbar_navig_utils.getSearchView().setIconified(true);\n\n // Recover the previous list of places nearby generated\n switch (current_page) {\n case 0:\n getPageAdapter().getMapsFragment().recover_previous_state();\n break;\n case 1:\n getPageAdapter().getListRestoFragment().recover_previous_state();\n break;\n }\n }\n }\n }\n\n // Change color of the tab -> black\n if (tab.getIcon() != null)\n tab.getIcon().setColorFilter(getApplicationContext().getResources().getColor(R.color.colorIconNotSelected), PorterDuff.Mode.SRC_IN);\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n }\n });\n }", "@Override\r\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\r\n\t}", "@Override\n public void onTabChanged(LinearLayout selectedTab, int selectedIndex, int oldIndex) {\n Toast.makeText(MainActivity.this,\"Tab \"+ selectedIndex+\" Selected.\",Toast.LENGTH_SHORT).show();\n }", "private void eric_function()\n\t{\n \ttabHost = (TabHost) findViewById(R.id.mytab1);\n \ttabHost.setup();\n \t \n \t//tabHost.setBackgroundColor(Color.argb(150, 20, 80, 150));\n \ttabHost.setBackgroundResource(R.drawable.ic_launcher);\n \t\n \t\n \t//\n \tTabSpec tabSpec;\n \t// 1\n \ttabSpec = tabHost.newTabSpec(tab_list[0]);\n \ttabSpec.setIndicator(\"a.1\");\n \ttabSpec.setContent(R.id.widget_layout_blue2);\n \ttabHost.addTab(tabSpec);\n \t// 2\n \ttabSpec = tabHost.newTabSpec(tab_list[1]);\n \ttabSpec.setIndicator(\"a2\");\n \ttabSpec.setContent(R.id.widget_layout_green2);\n \ttabHost.addTab(tabSpec); \t\n \t// 3\n \ttabSpec = tabHost.newTabSpec(tab_list[2]);\n \ttabSpec.setIndicator(\"a3\");\n \ttabSpec.setContent(R.id.widget_layout_red2);\n \ttabHost.addTab(tabSpec); \t\n \t//\n\t\ttabHost.setOnTabChangedListener(listener1);\n \t//\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public void onTabSelected(Tab tab, android.app.FragmentTransaction ft) {\n FragmentTransaction sft = mActivity.getSupportFragmentManager().beginTransaction();\n // Check if the fragment is already initialized\n MainActivity.tab = tab.getPosition();\n switch (tab.getPosition()) {\n case 0:\n // My List\n // access the actionbar of the MainActivity.java and changes the subtitle\n mActivity.getActionBar().setSubtitle(Html.fromHtml(\"<font color=\\\"#848484\\\">\" + \"My List\" + \"</font>\"));\n break;\n \n case 1:\n // Favorites\n // access the actionbar of the MainActivity.java and changes the subtitle\n mActivity.getActionBar().setSubtitle(Html.fromHtml(\"<font color=\\\"#848484\\\">\" + \"Favorites \" + \"</font>\"));\n break;\n \n case 2:\n // Search\n // access the actionbar of the MainActivity.java and changes the subtitle\n mActivity.getActionBar().setSubtitle(Html.fromHtml(\"<font color=\\\"#848484\\\">\" + \"Search\" + \"</font>\"));\n break;\n\n case 3:\n // Recipes\n // access the actionbar of the MainActivity.java and changes the subtitle\n mActivity.getActionBar().setSubtitle(Html.fromHtml(\"<font color=\\\"#848484\\\">\" + \"Recipes\" + \"</font>\"));\n break;\n\n default:\n break;\n }\n if (mFragment == null) {\n // If not, instantiate and add it to the activity\n mFragment = Fragment.instantiate(mActivity, mClass.getName());\n sft.add(mfragmentContainerId, mFragment, mTag);\n } else {\n // If it exists, simply attach it in order to show it\n sft.attach(mFragment);\n }\n sft.commit();\n }", "@Override\r\n\t\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n\t\t\tif (mFragment == null) {\r\n\t\t\t\t// If not, instantiate and add it to the activity\r\n\t\t\t\tBundle bundle = new Bundle();\r\n\t\t\t\tbundle.putString(\"mode\", mTag);\r\n\t\t\t\tbundle.putSerializable(\"setDate\", mDate);\r\n\r\n\t\t\t\tmFragment = Fragment.instantiate(mActivity, mClass.getName(),\r\n\t\t\t\t\t\tbundle);\r\n\r\n\t\t\t\tft.add(android.R.id.content, mFragment, mTag);\r\n\r\n\t\t\t} else {\r\n\t\t\t\t// If it exists, simply attach it in order to show it\r\n\t\t\t\tft.attach(mFragment);\r\n\t\t\t}\r\n\r\n\t\t}", "@Override\r\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\t\t\r\n\t}", "@Override\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\n\t}", "@Override\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\n\t}", "@Override\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\n\t}", "@Override\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\n\t}", "@Override\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_network, container, false);\n tabAR=(TabLayout)view. findViewById(R.id.tablayoutAR);\n tab1AR=(TabItem)view. findViewById(R.id.tabitem1AR);\n tab2AR=(TabItem)view. findViewById(R.id.tabitem2AR);\n viewpgrARN=(ViewPager)view. findViewById(R.id.viewPagerARNB);\n pageAdapterARN = new PageAdapterNei(getFragmentManager(), tabAR.getTabCount());\n viewpgrARN.setAdapter(pageAdapterARN);\n tabAR.setOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n\n viewpgrARN.setCurrentItem(tab.getPosition());\n if(tab.getPosition()==0||tab.getPosition()==1)\n {\n pageAdapterARN.notifyDataSetChanged();\n }\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n\n }\n });\n\n viewpgrARN.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(tabAR));\n\n\n return view;\n }", "public void onTabSelected(Tab tab, FragmentTransaction ft) {\n\t // Check if the fragment is already initialized\n\t \tmActivity.invalidateOptionsMenu();\n\t if (mFragment == null) {\n\t // If not, instantiate and add it to the activity\n\t mFragment = Fragment.instantiate(mActivity, mClass.getName());\n\t ft.add(android.R.id.content, mFragment, mTag);\n\t } else {\n\t // If it exists, simply attach it in order to show it\n\t ft.attach(mFragment);\n\t }\n\t }", "@Override\r\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\r\n\t}", "@Override\r\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n\r\n\t\tviewPager.setCurrentItem(tab.getPosition());\r\n\r\n\t}", "@Override\n public int getCount() {\n return numbOfTabs;\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n setContentView(R.layout.tab_main_layout);\n sp = getSharedPreferences(Constents.SHARE_CONFIG, Context.MODE_PRIVATE);\n // 实例化tabhost\n fragmentTabHost = (FragmentTabHost) findViewById(android.R.id.tabhost);\n fragmentTabHost.setup(this, getSupportFragmentManager(), R.id.maincontent);\n fragmentTabHost.setOnTabChangedListener(new OnTabChangeListener() {\n\n @Override\n public void onTabChanged(String tabId) {\n // TODO Auto-generated method stub\n FragmentManager fragmentManager = TabMainActivity.this.getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n int position = fragmentTabHost.getCurrentTab();\n for (int i = 0; i < list.size(); i++) {\n if (position == i) {\n transaction.show(list.get(i));\n } else {\n transaction.hide(list.get(i));\n }\n }\n transaction.commit();\n//\t viewPage.setCurrentItem(position);\n }\n });\n\n for (int i = 0; i < texts.length; i++) {\n TabSpec spec = fragmentTabHost.newTabSpec(texts[i]).setIndicator(getView(i));\n\n fragmentTabHost.addTab(spec, fragmentArray[i], null);\n\n // 设置背景(必须在addTab之后,由于需要子节点(底部菜单按钮)否则会出现空指针异常)\n // fragmentTabHost.getTabWidget().getChildAt(i).setBackgroundResource(R.drawable.bt_selector);\n }\n initPager();\n\n mWeiboShareAPI = WeiboShareSDK.createWeiboAPI(\n this, Constents.Sina_APP_ID);\n if (savedInstanceState != null) {\n mWeiboShareAPI.handleWeiboResponse(getIntent(), this);\n }\n if (null == mPositionService) {\n mPositionService = new PositionService(this);\n mPositionService.registerListener(this);\n mPositionService.start();\n }\n\n }", "@Override\r\n\t\t\tpublic void onTabChanged(String tabId) {\n\t\t\t\tFragmentManager manager = getFragmentManager();\r\n\t\t\t\tshowFragment = (ShowFragment) manager\r\n\t\t\t\t\t\t.findFragmentByTag(ShowFragment.TAG);\r\n\t\t\t\taddRecordFrag = (AddRecordFrag) manager\r\n\t\t\t\t\t\t.findFragmentByTag(AddRecordFrag.TAG);\r\n\t\t\t\tchartShowFrag = (ChartShowFrag) manager\r\n\t\t\t\t\t\t.findFragmentByTag(ChartShowFrag.TAG);\r\n\t\t\t\tfTransaction = manager.beginTransaction();\r\n\t\t\t\tif (showFragment != null) {\r\n\t\t\t\t\tfTransaction.detach(showFragment);\r\n\t\t\t\t}\r\n\t\t\t\tif (addRecordFrag != null) {\r\n\t\t\t\t\tfTransaction.detach(addRecordFrag);\r\n\t\t\t\t}\r\n\t\t\t\tif (chartShowFrag != null) {\r\n\t\t\t\t\tfTransaction.detach(chartShowFrag);\r\n\t\t\t\t}\r\n\t\t\t\tif (tabId.equalsIgnoreCase(ShowFragment.TAG)) {\r\n\t\t\t\t\tsetShow();\r\n\t\t\t\t\tcurrent = SHOW;\r\n\t\t\t\t} else if (tabId.equalsIgnoreCase(AddRecordFrag.TAG)) {\r\n\t\t\t\t\tsetAddRecord();\r\n\t\t\t\t\tcurrent = ADD;\r\n\t\t\t\t} else if (tabId.equalsIgnoreCase(ChartShowFrag.TAG)) {\r\n\t\t\t\t\tsetChartShow();\r\n\t\t\t\t\tcurrent = CHART;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tswitch (current) {\r\n\t\t\t\t\tcase SHOW:\r\n\t\t\t\t\t\tsetShow();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase ADD:\r\n\t\t\t\t\t\tsetAddRecord();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase CHART:\r\n\t\t\t\t\t\tsetChartShow();\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\tfTransaction.commit();\r\n\t\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_companyframe, container, false);\n\n\n main_layout = rootView.findViewById(R.id.main_layout);\n\n mSectionsPagerAdapter = new SectionsPagerAdapter(getActivity().getSupportFragmentManager());\n\n // Set up the ViewPager with the sections adapter.\n mViewPager = rootView.findViewById(R.id.container);\n\n\n tabLayout = rootView.findViewById(R.id.tabs);\n\n mViewPager.setAdapter(mSectionsPagerAdapter);\n mViewPager.setOffscreenPageLimit(0);\n tabLayout.setupWithViewPager(mViewPager);\n\n tab_icon.add(R.drawable.ic_companytax);\n tab_icon.add(R.drawable.ic_taxcode);\n tab_icon.add(R.drawable.ic_viewtax);\n\n tab_name.add(\"Company Taxes\");\n tab_name.add(\"Tax Code\");\n tab_name.add(\"Calculate Tax\");\n\n\n // loop through all navigation tabs\n for (int i = 0; i < tabLayout.getTabCount(); i++) {\n\n LinearLayout linearLayout = (LinearLayout) LayoutInflater.from(getActivity()).inflate(R.layout.tab_item, null);\n\n TextView tab_label = linearLayout.findViewById(R.id.label);\n ImageView tab_pic = linearLayout.findViewById(R.id.img);\n\n\n tab_pic.setImageResource(tab_icon.get(i));\n tab_label.setText(tab_name.get(i));\n\n tabLayout.getTabAt(i).setCustomView(linearLayout);\n }\n\n\n tabLayout.setOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n currentIndeX = tab.getPosition();\n\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n\n\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n\n }\n });\n\n\n return rootView;\n }", "public void onTabSelected(Tab tab, FragmentTransaction ft) {\n\t\t\tft.setCustomAnimations(R.animator.fragment_slide_left_enter,\n\t\t\t\t\tR.animator.fragment_slide_right_exit);\n\n\t\t\tif (mFragment == null) {\n\t\t\t\tmFragment = Fragment.instantiate(mActivity, mClass.getName(),\n\t\t\t\t\t\tmArgs);\n\t\t\t\tft.add(android.R.id.content, mFragment, mTag);\n\t\t\t} else {\n\t\t\t\tft.attach(mFragment);\n\t\t\t}\n\t\t\tmCurrentFragment = (FlingFragment) mFragment;\n\t\t}", "@Override\n \t\t\tpublic void onTabSelected(\n \t\t\t\t\tcom.actionbarsherlock.app.ActionBar.Tab tab,\n \t\t\t\t\tandroid.support.v4.app.FragmentTransaction ft) {\n \t\t\t\tmViewPager.setCurrentItem(tab.getPosition());\n \t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\tif (hMapTabs.size() > 0) {\n\n\t\t\t\t\t\t\tif (mTabHost.getTabWidget().getChildAt(2)\n\t\t\t\t\t\t\t\t\t.isSelected()) {\n\t\t\t\t\t\t\t\tif (hMapTabs.get(Const.TABS[2]).size() > 1) {\n\t\t\t\t\t\t\t\t\tresetFragment();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmTabHost.getTabWidget().setCurrentTab(2);\n\t\t\t\t\t\t\tmTabHost.setCurrentTab(2);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public void setListeners() {\n\t\tmTabHost.getTabWidget().getChildAt(0)\n\t\t\t\t.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tif (hMapTabs.size() > 0) {\n\n\t\t\t\t\t\t\tif (mTabHost.getTabWidget().getChildAt(0)\n\t\t\t\t\t\t\t\t\t.isSelected()) {\n\t\t\t\t\t\t\t\tif (hMapTabs.get(Const.TABS[0]).size() > 1) {\n\t\t\t\t\t\t\t\t\tresetFragment();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmTabHost.getTabWidget().setCurrentTab(0);\n\t\t\t\t\t\t\tmTabHost.setCurrentTab(0);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t// Listener for Feed tab//\n\n\t\tmTabHost.getTabWidget().getChildAt(1)\n\t\t\t\t.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tif (hMapTabs.size() > 0) {\n\n\t\t\t\t\t\t\tif (mTabHost.getTabWidget().getChildAt(1)\n\t\t\t\t\t\t\t\t\t.isSelected()) {\n\t\t\t\t\t\t\t\tif (hMapTabs.get(Const.TABS[1]).size() > 1) {\n\t\t\t\t\t\t\t\t\tresetFragment();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmTabHost.getTabWidget().setCurrentTab(1);\n\t\t\t\t\t\t\tmTabHost.setCurrentTab(1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t/* Listener for Tab 3 */\n\t\tmTabHost.getTabWidget().getChildAt(2)\n\t\t\t\t.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tif (hMapTabs.size() > 0) {\n\n\t\t\t\t\t\t\tif (mTabHost.getTabWidget().getChildAt(2)\n\t\t\t\t\t\t\t\t\t.isSelected()) {\n\t\t\t\t\t\t\t\tif (hMapTabs.get(Const.TABS[2]).size() > 1) {\n\t\t\t\t\t\t\t\t\tresetFragment();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmTabHost.getTabWidget().setCurrentTab(2);\n\t\t\t\t\t\t\tmTabHost.setCurrentTab(2);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "@Override\n public int getCount() {\n return totalTabs;\n }", "@Override\n public int getCount() {\n return totalTabs;\n }", "@Override\n public int getCount() {\n return totalTabs;\n }", "@Override\n public int getCount() {\n return totalTabs;\n }", "@Override\n public int getCount() {\n return totalTabs;\n }", "@Override\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n viewPager.setCurrentItem(tab.getPosition());\n\t}", "@Override\n public int getCount() {\n return number_tabs;\n }", "private void initTabs() {\n\t\tmContainer.removeAllViews();\n\n\t\tif(mAdapter==null||mViewPager==null){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<mViewPager.getAdapter().getCount();i++){\n\t\t\tfinal int index=i;\n\t\t\tButton tabs= (Button) mAdapter.getView(index);\n\t\t\tLayoutParams layoutParams=new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n\t\t\tlayoutParams.weight=1;\n\t\t\tmContainer.addView(tabs,layoutParams);\n\t\t\t\n\t\t\ttabs.setOnClickListener(new OnClickListener(){\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tif(mViewPager.getCurrentItem()==index){\n\t\t\t\t\t\tselectTab(index);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmViewPager.setCurrentItem(index, true);\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\tselectTab(0);\n\t}", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft) {\n mTabPager.setCurrentItem(tab.getPosition());\n // jumpFlag = true;\n }", "@Override\n public void onTabReselected(TabLayout.Tab tab) {\n\n }", "@Override\r\n\t\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\t\t}", "@Override\n public int getCount() {\n return tabs.length;\n }", "@Override\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n\t\tft.replace(R.id.fragment_container, fragment);\n\n\t}", "public void applyTab();", "public void onCreateTabClicked(View view) {\n if (mAdapter.isEmpty()) {\n Toast.makeText(this, R.string.you_must_create_at_least_one_tab, Toast.LENGTH_LONG).show();\n return;\n }\n ArrayList<TabInformation> list = new ArrayList<>(mAdapter.getTabInformation());\n startActivity(new Intent(this, DisplayTabsActivity.class).putExtra(TAB_CONTENT, list));\n }", "public void setUptoptabbar(){\n\n\n FragmentPagerItemAdapter adapter = new FragmentPagerItemAdapter(\n getSupportFragmentManager(), FragmentPagerItems.with(this)\n\n .add(\"All Songs\", All_Song_Fragment.class)\n .add(\"Albums\",All_Album_Fragment.class)\n .add(\"Artists\",All_Artist_Fragment.class)\n .add(\"Genres\",All_Song_Fragment.class)\n .add(\"Playlists\",All_Song_Fragment.class)\n .create());\n ViewPager viewPager = (ViewPager) findViewById(R.id.viewpager);\n viewPager.setAdapter(adapter);\n\n SmartTabLayout viewPagerTab = (SmartTabLayout) findViewById(R.id.viewpagertab);\n viewPagerTab.setViewPager(viewPager);\n }", "@Override\n\tpublic void onTabChanged(String tabName) {\n\t\tmSelectedTab = tabName;\n\n\t\t// ImageView imgStatus = (ImageView) findViewById(R.id.imgInfoIcon);\n\t\t//\n\t\t// // Get the color of the icon depending on system state\n\t\t// int iconColor = android.graphics.Color.BLACK\n\t\t// if (systemState == Status.ERROR)\n\t\t// iconColor = android.graphics.Color.RED\n\t\t// else if (systemState == Status.WARNING)\n\t\t// iconColor = android.graphics.Color.YELLOW\n\t\t// else if (systemState == Status.OK)\n\t\t// iconColor = android.graphics.Color.GREEN\n\t\t//\n\t\t// // Set the correct new color\n\t\t// imgView.setColorFilter(iconColor, Mode.MULTIPLY);\n\n\t\tif (hMapTabs.get(tabName).size() == 0) {\n\n\t\t\tif (tabName.equals(Const.EVENTS)) {\n\t\t\t\taddFragments(tabName, new EventsFragment(), null, false, true);\n\t\t\t} else if (tabName.equals(Const.FEED)) {\n\t\t\t\taddFragments(tabName, new FeedFragment(), null, false, true);\n\t\t\t} else if (tabName.equals(Const.INFO)) {\n\t\t\t\taddFragments(tabName, new InfoFragment(), null, false,\n\t\t\t\t\t\ttrue);\n\t\t\t}\n\t\t} else {\n\t\t\taddFragments(\n\t\t\t\t\ttabName,\n\t\t\t\t\thMapTabs.get(tabName).get(hMapTabs.get(tabName).size() - 1),\n\t\t\t\t\tnull, false, false);\n\t\t}\n\t}", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tif (hMapTabs.size() > 0) {\n\n\t\t\t\t\t\t\tif (mTabHost.getTabWidget().getChildAt(1)\n\t\t\t\t\t\t\t\t\t.isSelected()) {\n\t\t\t\t\t\t\t\tif (hMapTabs.get(Const.TABS[1]).size() > 1) {\n\t\t\t\t\t\t\t\t\tresetFragment();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmTabHost.getTabWidget().setCurrentTab(1);\n\t\t\t\t\t\t\tmTabHost.setCurrentTab(1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public void tabChange() {\r\n\t}", "void setupViewPager(){\n SectionStatePagerAdapter adapter=new SectionStatePagerAdapter(getSupportFragmentManager());\n adapter.addFragment(new RecodingFragment(),\"Recording\");\n adapter.addFragment(new NoteFragment(),\"Notes\");\n ViewPager viewPager=findViewById(R.id.container);\n viewPager.setAdapter(adapter);\n TabLayout tableLayout= findViewById(R.id.tabs);\n tableLayout.setupWithViewPager(viewPager);\n tableLayout.getTabAt(0).setIcon(R.drawable.ic_your_voice);\n tableLayout.getTabAt(1).setIcon(R.drawable.ic_to_do_later);\n }", "public void SlidingTab(){\n adapter = new ViewPagerShoppingAdapter(getSupportFragmentManager(),Titles,Numboftabs);\r\n\r\n // Assigning ViewPager View and setting the adapter\r\n pager = (ViewPager) findViewById(R.id.pager);\r\n pager.setAdapter(adapter);\r\n\r\n // Assiging the Sliding Tab Layout View\r\n tabs = (SlidingTabLayout) findViewById(R.id.tabs);\r\n tabs.setDistributeEvenly(true); // To make the Tabs Fixed set this true, This makes the tabs Space Evenly in Available width\r\n\r\n // Setting Custom Color for the Scroll bar indicator of the Tab View\r\n tabs.setCustomTabColorizer(new SlidingTabLayout.TabColorizer() {\r\n @Override\r\n public int getIndicatorColor(int position) {\r\n return getResources().getColor(R.color.tabsScrollColor);\r\n }\r\n });\r\n\r\n // Setting the ViewPager For the SlidingTabsLayout\r\n tabs.setViewPager(pager);\r\n }", "@Override\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n\t\n\t\tmAdapter.notifyDataSetChanged();\n\t\tviewPager.setCurrentItem(tab.getPosition());\n\t\n\t}", "private void setUpFragments(Bundle savedInstanceState) {\n List<Fragment> fragments = new ArrayList<>(5);\n\n fragments.add(HomeFragment.newInstance(0));\n fragments.add(SearchFragment.newInstance(0));\n fragments.add(NearbyFragment.newInstance(0));\n fragments.add(FavoritesFragment.newInstance(0));\n fragments.add(FriendsFragment.newInstance(0));\n\n navController = new FragNavController(getSupportFragmentManager(), R.id.container, fragments);\n\n bottomBar = BottomBar.attach(this, savedInstanceState);\n bottomBar.setItemsFromMenu(R.menu.bottombar_menu, new OnMenuTabClickListener() {\n @Override\n public void onMenuTabSelected(int menuItemId) {\n switch (menuItemId) {\n case R.id.id1:\n navController.switchTab(INDEX_RECENTS);\n break;\n /* case R.id.id2:\n navController.switchTab(INDEX_SEARCH);\n break;*/\n case R.id.id2:\n navController.switchTab(INDEX_NEARBY);\n break;\n case R.id.id3:\n navController.switchTab(INDEX_FAVORITES);\n break;\n case R.id.id4:\n navController.switchTab(INDEX_FRIENDS);\n break;\n }\n }\n\n @Override\n public void onMenuTabReSelected(int menuItemId) {\n\n }\n });\n }", "@Override\r\n public void onTabSelected(Tab tab, FragmentTransaction ft) {\n viewPager.setCurrentItem(tab.getPosition());\r\n }", "@Override\n public void onSelected(List<View> tabViews, int position) {\n }", "public void tabSelected(TabLayout.Tab tab) {\n clearBackstack();\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n if (tab.getPosition() == 0) {\n transaction.replace(R.id.home_page_frame_layout, HomeFragment.newInstance(user));\n } else if (tab.getPosition() == 1) {\n transaction.replace(R.id.home_page_frame_layout, WallsFragment.newInstance(user));\n } else if (tab.getPosition() == 2) {\n transaction.replace(R.id.home_page_frame_layout, ProjectsFragment.newInstance(user));\n } else if (tab.getPosition() == 3) {\n transaction.replace(R.id.home_page_frame_layout, UserInfoFragment.newInstance(user));\n }\n transaction.addToBackStack(null);\n transaction.commit();\n }", "@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n mViewPager = (ViewPager) view.findViewById(R.id.viewpager);\n mViewPager.setAdapter(new TabsPagerAdapter(getActivity().getSupportFragmentManager()));\n mViewPager.setOffscreenPageLimit(0);\n\n\n\n // Give the SlidingTabLayout the ViewPager, this must be done AFTER the ViewPager has had\n // it's PagerAdapter set.\n mSlidingTabLayout = (SlidingTabLayout) view.findViewById(R.id.sliding_tabs);\n //mSlidingTabLayout.setCustomTabView(R.layout.custom_tab_title, R.id.tabtext);\n\n mSlidingTabLayout.setDividerColors(Color.parseColor(\"#EEEEEE\"));\n TypedValue tv = new TypedValue();\n if (getActivity().getApplicationContext().getTheme().resolveAttribute(android.R.attr.actionBarSize, tv, true))\n {\n actionBarHeight = TypedValue.complexToDimensionPixelSize(tv.data, getActivity().getResources().getDisplayMetrics());\n }\n mSlidingTabLayout.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, actionBarHeight));\n mSlidingTabLayout.setSelectedIndicatorColors(Color.parseColor(\"#d32f2f\"));\n mSlidingTabLayout.setBackgroundColor(Color.parseColor(\"#FFFFFF\"));\n mSlidingTabLayout.setCustomTabView(R.layout.tab_custom_layout, 0);\n\n mSlidingTabLayout.setViewPager(mViewPager);\n\n\n }", "@Override\n public void onTabReselected(TabLayout.Tab tab) {}", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft) {\n viewPager.setCurrentItem(tab.getPosition());\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\r\n\t\t\r\n\t\tgetActivity().getActionBar();\r\n\r\n\t\tmRoot = inflater.inflate(R.layout.mopwheathome, null);\r\n\t\t\r\n\t\tmTabHost = (FragmentTabHost)mRoot.findViewById(android.R.id.tabhost);\r\n\t\tmTabHost.setup(getActivity(),getChildFragmentManager(), R.id.realtabcontent);\r\n\r\n\t\tmTabHost.addTab(mTabHost.newTabSpec(\"0\").setIndicator(\"Demo Farmer\"),\r\n\t\t\t\tDemoFarmer.class, null);\r\n\t\t\r\n\t\tmTabHost.addTab(mTabHost.newTabSpec(\"1\").setIndicator(\"Observations\"),\r\n\t\t\t\tObservations.class, null);\r\n\t\t\r\n\t\t for(int i=0;i<mTabHost.getTabWidget().getChildCount();i++)\r\n\t\t {\r\n\t\t\t \r\n\t\t\t mTabHost.getTabWidget().getChildAt(i).setBackgroundColor(Color.parseColor(\"#96E0D2\"));\r\n\t\t\t \r\n\t\t } \r\n\t\t mTabHost.getTabWidget().getChildAt(Integer.parseInt(\"0\")).setBackgroundColor(Color.parseColor(\"#65D2BD\"));\r\n\t\t \r\n\t\t mTabHost.setOnTabChangedListener(new OnTabChangeListener() {\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onTabChanged(String tabId) {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(Activity.INPUT_METHOD_SERVICE);\r\n\t\t\t\t imm.toggleSoftInput(InputMethodManager.HIDE_IMPLICIT_ONLY, 0);\r\n\t\t\t\t */\r\n\t\t\t\t\t for(int i=0;i<mTabHost.getTabWidget().getChildCount();i++)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t mTabHost.getTabWidget().getChildAt(i).setBackgroundColor(Color.parseColor(\"#96E0D2\"));\r\n\t\t\t\t\t } \r\n\t\t\t\t\t mTabHost.getTabWidget().getChildAt(Integer.parseInt(tabId)).setBackgroundColor(Color.parseColor(\"#65D2BD\"));\r\n\t\t\t\t}\r\n\t\t\t});\t\t\t\t\t \r\n\t\t\t\r\n\t\t\treturn mRoot;\r\n\t}", "public void onTabReselected(ActionBar.Tab tab, FragmentTransaction ft) {\n }", "@Override\r\n public CharSequence getPageTitle(int position) {\n\r\n return tabs[position];\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_tab, container, false);\n\n Toolbar toolbar = (Toolbar) view.findViewById(R.id.toolbar);\n AppCompatActivity activity = (AppCompatActivity) getActivity();\n activity.setSupportActionBar(toolbar);\n\n // Initializing the TabLayout\n topTap = (TabLayout) view.findViewById(R.id.tab_top);\n topTap.addTab(topTap.newTab().setText(\"DOMPET\"));\n topTap.addTab(topTap.newTab().setText(\"CASH IN\"));\n topTap.addTab(topTap.newTab().setText(\"CASH OUT\"));\n topTap.setTabGravity(TabLayout.GRAVITY_FILL);\n topTap.setTabMode(TabLayout.MODE_FIXED);\n topTap.setSelectedTabIndicatorColor(Color.YELLOW);\n\n // Initializing ViewPager\n viewPager = (ViewPager) view.findViewById(R.id.viewpager);\n viewPager.setOffscreenPageLimit(2);\n\n // Creating TabPagerAdapter adapter\n TabPagerAdapter pagerAdapter = new TabPagerAdapter(activity.getSupportFragmentManager(), topTap.getTabCount());\n viewPager.setAdapter(pagerAdapter);\n viewPager.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(topTap));\n\n // Set TabSelectedListener\n topTap.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {\n\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n viewPager.setCurrentItem(tab.getPosition());\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n\n }\n });\n\n return view;\n }", "@Override\r\n\t\tpublic void onTabReselected(Tab tab, android.app.FragmentTransaction ft) {\n\t\t}", "@Override\n public int getCount() {\n return mNumOfTabs;\n }", "@Override\n public int getCount() {\n return mNumOfTabs;\n }", "@Override\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n\t\tft.replace(R.id.stationsFragmentContainer, this.fragment);\n\t\treturn;\n\t}", "@Override\n public Fragment getItem(int position) {\n if(position==0){\n return new TabItemFragment();\n }else{\n return new AnotherTabItemFragment();\n }\n\n }", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tif (hMapTabs.size() > 0) {\n\n\t\t\t\t\t\t\tif (mTabHost.getTabWidget().getChildAt(0)\n\t\t\t\t\t\t\t\t\t.isSelected()) {\n\t\t\t\t\t\t\t\tif (hMapTabs.get(Const.TABS[0]).size() > 1) {\n\t\t\t\t\t\t\t\t\tresetFragment();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmTabHost.getTabWidget().setCurrentTab(0);\n\t\t\t\t\t\t\tmTabHost.setCurrentTab(0);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public void tabChanged()\n {\n super.tabChanged();\n }", "@Override\n public void onTabSelected(TabLayout.Tab tab) {\n Log.e(\"selectedTab\", String.valueOf(tab.getPosition()));\n switch(tab.getPosition()) {\n case 0:\n allCategoryLayout.setVisibility(View.VISIBLE);\n /* basicLayout.setVisibility(View.INVISIBLE);\n liviingLayout.setVisibility(View.INVISIBLE);\n scienceLayout.setVisibility(View.INVISIBLE);\n micsLayout.setVisibility(View.INVISIBLE);*/\n break;\n case 1:\n // allCategoryLayout.setVisibility(View.INVISIBLE);\n basicLayout.setVisibility(View.VISIBLE);\n /*liviingLayout.setVisibility(View.INVISIBLE);\n scienceLayout.setVisibility(View.INVISIBLE);\n micsLayout.setVisibility(View.INVISIBLE);*/\n break;\n case 2:\n /* allCategoryLayout.setVisibility(View.INVISIBLE);\n basicLayout.setVisibility(View.INVISIBLE);*/\n liviingLayout.setVisibility(View.VISIBLE);\n /* scienceLayout.setVisibility(View.INVISIBLE);\n micsLayout.setVisibility(View.INVISIBLE);*/\n break;\n case 3:\n /* allCategoryLayout.setVisibility(View.INVISIBLE);\n basicLayout.setVisibility(View.INVISIBLE);\n liviingLayout.setVisibility(View.INVISIBLE);*/\n scienceLayout.setVisibility(View.VISIBLE);\n// micsLayout.setVisibility(View.INVISIBLE);\n break;\n case 4:\n /* allCategoryLayout.setVisibility(View.INVISIBLE);\n basicLayout.setVisibility(View.INVISIBLE);\n liviingLayout.setVisibility(View.INVISIBLE);\n scienceLayout.setVisibility(View.INVISIBLE);*/\n micsLayout.setVisibility(View.VISIBLE);\n break;\n }\n }", "void goToWalletTab(FragmentActivity activity);", "@Override\r\n\tpublic void onFragmentStart() {\n\t}", "@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n adapter = new ViewPagerAdapter(getChildFragmentManager(),Titles,Numboftabs);\n\n // Assigning ViewPager View and setting the adapter\n pager = (ViewPager) getView().findViewById(R.id.pager);\n pager.setAdapter(adapter);\n\n // Assiging the Sliding Tab Layout View\n tabs = (SlidingTabLayout) getView().findViewById(R.id.tabs);\n tabs.setDistributeEvenly(true); // To make the Tabs Fixed set this true, This makes the tabs Space Evenly in Available width\n\n // Setting Custom Color for the Scroll bar indicator of the Tab View\n tabs.setCustomTabColorizer(new SlidingTabLayout.TabColorizer() {\n @Override\n public int getIndicatorColor(int position) {\n return getResources().getColor(R.color.tabsScrollColor);\n }\n });\n\n // Setting the ViewPager For the SlidingTabsLayout\n tabs.setViewPager(pager);\n }", "void goToContactsTab(FragmentActivity activity);", "@Override\n public Fragment getItem(int position) {\n switch (position){\n case 0:\n Tab1Food tab1 = new Tab1Food();\n Bundle foodArgs = new Bundle();\n foodArgs.putString(\"user\", new Gson().toJson(currentUser));\n foodArgs.putString(\"event\", new Gson().toJson(currentEvent));\n tab1.setArguments(foodArgs);\n return tab1;\n case 1:\n Tab2Equipment tab2 = new Tab2Equipment();\n Bundle equipArgs = new Bundle();\n equipArgs.putString(\"user\", new Gson().toJson(currentUser));\n equipArgs.putString(\"event\", new Gson().toJson(currentEvent));\n tab2.setArguments(equipArgs);\n return tab2;\n default:\n return null;\n }\n }" ]
[ "0.73148674", "0.71655387", "0.71631825", "0.71084714", "0.7100772", "0.6978308", "0.69486594", "0.69486207", "0.69472307", "0.6931241", "0.69150585", "0.6901848", "0.6880856", "0.68705577", "0.6852641", "0.68299913", "0.6829226", "0.68260604", "0.68231606", "0.6795531", "0.6793937", "0.679157", "0.67889947", "0.6785058", "0.6785058", "0.6785058", "0.6778979", "0.677768", "0.67753017", "0.6772858", "0.67581534", "0.6756489", "0.67509353", "0.6746498", "0.6731801", "0.67296964", "0.67204416", "0.67204416", "0.67161953", "0.67161953", "0.67161953", "0.67161953", "0.67161953", "0.670529", "0.6702229", "0.66981953", "0.6692874", "0.6683804", "0.66761214", "0.66646653", "0.6658828", "0.66376436", "0.6635213", "0.66330373", "0.66262776", "0.66245997", "0.66245997", "0.66245997", "0.66245997", "0.66245997", "0.66171044", "0.6617003", "0.6616043", "0.66119504", "0.65962654", "0.65815926", "0.6580212", "0.65766734", "0.65685725", "0.65683794", "0.65683347", "0.65666616", "0.65547234", "0.655278", "0.6541943", "0.65350974", "0.6519978", "0.65193284", "0.65186775", "0.6516281", "0.6515368", "0.6507664", "0.65048873", "0.64855665", "0.6483907", "0.6477375", "0.64764076", "0.6475828", "0.64752054", "0.64706695", "0.64706695", "0.6460893", "0.6458369", "0.6452439", "0.6446009", "0.64365536", "0.643343", "0.64274794", "0.64273137", "0.6424599", "0.6424446" ]
0.0
-1
this counts total number of tabs
@Override public int getCount() { return totalTabs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getTabCount() {\n\t\treturn tabMap.size();\n\t}", "@Override\n\tpublic int getTabCount() {\n\t\treturn 0;\n\t}", "public int getNumberOfTabs() {\n\t\treturn this.tabPanelsMap.size();\n\t}", "public static int getTabViewCount() {\n return tabViews.size();\n }", "private int getChatTabCount()\n {\n return (chatTabbedPane == null) ? 0 : chatTabbedPane.getTabCount();\n }", "@Override\r\n\t\tpublic int getCount() {\r\n\t\t\treturn getTabs().size();\r\n\t\t}", "@Override\n public int getCount() {\n return NUMBER_OF_TABS;\n }", "@Override\n public int getCount() {\n return mNumOfTabs;\n }", "@Override\n public int getCount() {\n return mNumOfTabs;\n }", "private String getNumberOfTabs(int numOfTabs) {\r\n String tabs = \"\";\r\n // If numOfTabs is 0, return an empty string\r\n if (numOfTabs == 0)\r\n return \"\";\r\n // Loop through until the number of tabs required is added to tabs\r\n while (numOfTabs > 0) {\r\n // Add a tab character to tabs\r\n tabs += \"\\t\";\r\n // Decrement numOfTabs\r\n numOfTabs--;\r\n }\r\n // Return the string of numOfTabs of tabs\r\n return tabs;\r\n }", "@Override\n public int getCount() {\n return TOTAL_TABS;\n }", "@Override\n public int getCount() {\n return tabCount;\n }", "@Override\n public int getCount() {\n return numbOfTabs;\n }", "@Override\n public int getCount() {\n return tabCount;\n }", "@Override\n public int getCount() {\n return tabCount;\n }", "@Override\n public int getCount() {\n return tabCount;\n }", "@Override\n public int getCount() {\n return tabs.length;\n }", "public int getTabindex();", "@Override\n public int getCount() {\n return number_tabs;\n }", "@Override\n public int getCount() {\n return tabTitles.length;\n }", "@Override\n\tpublic int getCount() {\n\t\tLog.d(\"tab1share\", String.valueOf(jsonArray.length()));\n\t\treturn jsonArray.length();\n\n\t}", "int getTablesCount();", "int getSheetCount();", "public StatusPage countHistoryEntries ( ) throws InterruptedException {\n wait.until ( ExpectedConditions.elementToBeClickable ( uiHistory ) );\n wait.until ( ExpectedConditions.visibilityOf ( uiHistory ) );\n Thread.sleep ( 7000 );\n uiHistory.click ();\n count2 = getSizeHistoryEntries ();\n System.out.println ( count2 );\n return new StatusPage ( this.driver );\n\n }", "public int getCount() {\n \t\tint total = 0;\n \t\tfor(Adapter adapter : this.sections.values())\n \t\t\ttotal += adapter.getCount() + 1;\n \t\treturn total;\n \t}", "int getContentsCount();", "public void count() {\n APIlib.getInstance().addJSLine(jsBase + \".count();\");\n }", "@Override\n public int getCount() {\n return bmsTabList.size();\n }", "@Override\n public int getChildrenCount() {\n return 1 + mRecentTabsManager.getRecentlyClosedEntries().size();\n }", "@Override\r\n public int getCount() {\n return TAB_TITLES.length;\r\n }", "private void setupTabs() {\n }", "int countByExample(AdminTabExample example);", "private int numOnglet(){\n int selIndex = jTabPane_Accueil.getSelectedIndex();\n return selIndex;\n }", "public static int getCount() {\r\n\t\treturn count;\r\n\t}", "public static int getCount() {\r\n\t\treturn count;\r\n\t}", "public static int getCount() {\r\n\t\treturn count;\r\n\t}", "@Override\n\tpublic int count() {\n\t\treturn 4;\n\t}", "public int LengthTab(NodesVector nvector) {\n\t\tint L = 0;\n\t\tNodes nodes;\n\n\t\tfor (int i = 1; i < nvector.size(); i++) {\n\t\t\tnodes = (Nodes) nvector.elementAt(i);\n\t\t\tL = (L + nodes.path.size()) - 1;\n\t\t}\n\n\t\treturn (((L + NbPipes) * NbDiam) + NbNodes) - 1 + (NbDiam * NbPipes);\n\t}", "public static int getCount(){\n\t\treturn countFor;\n\t}", "public int numPages() {\n \t//numOfPages = (int)(this.fileName.length()/BufferPool.PAGE_SIZE);\n return numOfPages;\n }", "int getLevelTableListCount();", "@Override\n public int getCount() {\n return tabNamesIndex.length;\n }", "public int getCount(){\n int c = 0;\n for(String s : this.counts){\n c += Integer.parseInt(s);\n }\n return c;\n }", "Integer getTotalStepCount();", "@Override\n\t\tpublic int getCount() {\n\t\t\treturn App.getInstance().getSettlements().size();\n\t\t}", "public int totalNum(){\n return wp.size();\n }", "int getTotalCount();", "public static int getCount() {\n\t\treturn count;\n\t}", "int getProgressCount();", "int getProgressCount();", "int getProgressCount();", "@BeforeSuite\n\tpublic void numofTestCases() throws ClassNotFoundException {\n\t\tappiumService.TOTAL_NUM_OF_TESTCASES=GetMethods.TotalTestcase(\"_Stability_\", this.getClass());\n\n\n\n\t}", "public int getCount() {\r\n\t\treturn count;\r\n\t}", "public int getCount() {\r\n\t\treturn count;\r\n\t}", "public static final String tab(int count) {\n if (count == 1)\n return TAB;\n return repeat(\"TAB\"/*I18nOK:EMS*/, count);\n }", "public int countBars() {\n\t\treturn bars.size();\n\t}", "public int getCount() {\n\t\t\treturn count;\n\t\t}", "public Integer getPageCount();", "@Override\n\t\tpublic int getCount() {\n\t\t\t// Show 3 total pages.\n\t\t\treturn 3;\n\t\t}", "int getPagesize();", "int getKeyspacesCount();", "public int getCount() {\n\t\treturn count;\r\n\t}", "public int getCount() {\n\t\t\treturn arrTitle.size();\n\t\t}", "public int getCount() {\n\t\t\treturn arrTitle.size();\n\t\t}", "@Override\n\tpublic int countIndex() {\n\t\treturn logoMapper.selectCountLogo()+headbannerMapper.selecCountHB()+succefulMapper.selecCountSucc()+solutionMapper.selecCountSolu();\n\t}", "public int numPages() {\n // some code goes here\n //System.out.println(\"File length :\" + f.length());\n\n return (int) Math.ceil(f.length() * 1.0 / BufferPool.PAGE_SIZE * 1.0);\n }", "public int getCount() {\n return Title.size();\n }", "public int showCounts() {\n return showCount;\n }", "public int size(){\n\t\tListUtilities start = this.returnToStart();\n\t\tint count = 1;\n\t\twhile(start.nextNum != null){\n\t\t\tcount++;\n\t\t\tstart = start.nextNum;\n\t\t}\n\t\treturn count;\n\t}", "public void getDepartureFlightcount()\n\t{\n\t\tUserdefinedFunctions.scrollTillBottomPage();\n\t\twaitForSeconds(5);\n\t\tUserdefinedFunctions.scrollTillBottomPage();\n\t\twaitForSeconds(5);\n\t\tUserdefinedFunctions.scrollTillBottomPage();\n\t\twaitForSeconds(5);\n\t\tUserdefinedFunctions.scrollTillBottomPage();\n\t\twaitForSeconds(5);\n\t\tUserdefinedFunctions.scrollTillBottomPage();\n\t\twaitForSeconds(5);\n\t\t//List<WebElement> depatureFlight = driver.findElements(By.xpath(\"//div[@class='fli-list splitVw-listing']/input[@name='splitowJourney']\"));\n\t\tint count = depatureFlight.size();\n\t\tSystem.out.println(\"Total number of departure Flight records: \"+count);\n\t}", "private int totalNumberOfSpansInWebappTrace() {\n return 3;\n }", "public int getNumberOfSheets() {\n\t\treturn 0;\n\t}", "public void applyTab();", "void setTabLength(int tabLength) {\n\tGC gc = getGC();\n\tStringBuffer tabBuffer = new StringBuffer(tabLength);\n\tfor (int i = 0; i < tabLength; i++) {\n\t\ttabBuffer.append(' ');\n\t}\n\ttabWidth = gc.stringExtent(tabBuffer.toString()).x;\n\tdisposeGC(gc);\n}", "public int getCount() {\n\t\treturn count;\n\t}", "@Test\n @Order(6)\n void tabuSizeTest() {\n for (String taillardFilename : SearchTestUtil.taillardFilenames) {\n System.out.println(\"-----------------\");\n System.out.println(\"Run \" + taillardFilename);\n System.out.println(\"-----------------\");\n tabuSizeTestWith(taillardFilename);\n }\n }", "public int getCount() {\n\t\treturn count;\n\t}", "public int getCount() {\n\t\treturn count;\n\t}", "public int getCount() {\n\t\treturn count;\n\t}", "public int getCount() {\n\t\treturn count;\n\t}", "public int getCount()\r\n {\r\n return counts.peekFirst();\r\n }", "int getEntryCount();", "public void count() {\n\t\talgae = -1;\n\t\tcrab = -1;\n\t\tbigFish = -1;\n\t\tfor(GameObjects o: objects) {\n\t\t\tswitch(o.toString()) {\n\t\t\tcase \"algae\":\n\t\t\t\talgae +=1;\n\t\t\t\tbreak;\n\t\t\tcase \"crab\":\n\t\t\t\tcrab +=1;\n\t\t\t\tbreak;\n\t\t\tcase \"big fish\":\n\t\t\t\tbigFish +=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "protected int getTotalPages(FacesContext context) {\n String forValue = (String) getAttributes().get(\"for\");\n UIData uiData = (UIData) getForm(context).findComponent(forValue);\n if (uiData == null) {\n return 0;\n }\n int rowsPerPage = uiData.getRows(); \n int totalRows = uiData.getRowCount();\n int result = totalRows / rowsPerPage;\n if (0 != (totalRows % rowsPerPage)) {\n result++;\n }\n return result;\n }", "int getViewsCount();", "int getInfoCount();", "int getInfoCount();", "int getInfoCount();", "public int count() {\n\t\treturn count;\n\t}", "@Override\n\tpublic int numberOfAccounts() {\n\t\treturn counter;\n\t}", "public int numPages() {\n // some code goes here\n return (int)Math.ceil(f.length()/BufferPool.PAGE_SIZE);\n \n }", "@Override\r\n\tpublic Integer getActivity_logins_cnt() {\n\t\treturn super.getActivity_logins_cnt();\r\n\t}", "public int getCount() {\n\t return title.size(); \r\n\t }", "public int numberOfTires() {\n int tires = 4;\n return tires;\n }", "public int getFirstVisibleTab() {\n\t\treturn 0;\n\t}", "protected void showTabs() {\r\n\t\tif (getPageCount() > 1) {\r\n\t\t\tsetPageText(0, getString(\"_UI_SelectionPage_label\"));\r\n\t\t\tif (getContainer() instanceof CTabFolder) {\r\n\t\t\t\t((CTabFolder) getContainer()).setTabHeight(SWT.DEFAULT);\r\n\t\t\t\tPoint point = getContainer().getSize();\r\n\t\t\t\tgetContainer().setSize(point.x, point.y - 6);\r\n\t\t\t}\r\n\t\t}\r\n\t}" ]
[ "0.78797615", "0.7776552", "0.7701029", "0.7615727", "0.7274281", "0.71613234", "0.71197826", "0.70094234", "0.70094234", "0.6966805", "0.6800914", "0.6787976", "0.6716183", "0.6556896", "0.6556896", "0.6556896", "0.6309332", "0.6303997", "0.63001716", "0.62541217", "0.61903375", "0.6162676", "0.6118123", "0.6105375", "0.6079549", "0.60709417", "0.60669094", "0.60627544", "0.603447", "0.60164285", "0.59972405", "0.5987704", "0.5947316", "0.5918908", "0.5918908", "0.5918908", "0.59133565", "0.58995813", "0.5887291", "0.58782095", "0.586286", "0.5862399", "0.5856207", "0.5853861", "0.5851403", "0.5848476", "0.584264", "0.5837451", "0.5809609", "0.5809609", "0.5809609", "0.5790375", "0.57666034", "0.57666034", "0.5763818", "0.5760591", "0.57541347", "0.57493246", "0.5748915", "0.5747214", "0.5726209", "0.5717761", "0.5709395", "0.5709395", "0.5707825", "0.5707293", "0.57037324", "0.570364", "0.5702202", "0.57015693", "0.5700314", "0.5698517", "0.5694424", "0.56878406", "0.5684313", "0.5674246", "0.56707674", "0.56707674", "0.56707674", "0.56707674", "0.56658554", "0.5650149", "0.56497496", "0.5646639", "0.56429535", "0.5634775", "0.5634775", "0.5634775", "0.5634742", "0.5612666", "0.56074816", "0.560623", "0.560615", "0.56004554", "0.5599781", "0.5592842" ]
0.69367236
14
Author: dingran Date: 2016/4/20 Description:
public interface TokenService { /** *查找 * @param token * @return */ TokenPo findByToken(String token); /** * 查找 * @param userCode * @return */ TokenPo findByUserCode(String userCode); /** * 保存 * @param tokenPo * @return */ TokenPo save(TokenPo tokenPo); /** * * @param id */ void delete(Long id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "public static void listing5_14() {\n }", "public void mo4359a() {\n }", "public void mo21877s() {\n }", "public void mo38117a() {\n }", "public static void listing5_16() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n public void perish() {\n \n }", "public void mo97908d() {\n }", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo21779D() {\n }", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "public static void listing5_15() {\n }", "public void mo21785J() {\n }", "public void mo21878t() {\n }", "public void mo12930a() {\n }", "public void mo3749d() {\n }", "private void kk12() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo21793R() {\n }", "public void mo21794S() {\n }", "public void mo21795T() {\n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo3376r() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo21792Q() {\n }", "public void autoDetails() {\n\t\t\r\n\t}", "private void strin() {\n\n\t}", "public void mo21782G() {\n }", "public void mo9848a() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo5382o() {\n }", "public void mo1531a() {\n }", "public void mo21825b() {\n }", "public void mo21791P() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public void mo6081a() {\n }", "public void mo44053a() {\n }", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo21789N() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public void verliesLeven() {\r\n\t\t\r\n\t}", "public void mo56167c() {\n }", "static void feladat9() {\n\t}", "public void method_4270() {}", "public void mo21787L() {\n }", "public void mo21879u() {\n }", "public void mo21783H() {\n }", "@Override\n public int describeContents() { return 0; }", "public static void shoInfo() {\n\t\tSystem.out.println(description);\n\t \n\t}", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "public void mo115188a() {\n }", "void mo17013d();", "public String getDescription()\n/* */ {\n/* 74 */ return this.description;\n/* */ }", "private void m50366E() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "void pramitiTechTutorials() {\n\t\n}", "@Override\n public String getDescription() {\n return DESCRIPTION;\n }", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo2470d() {\n }", "public void mo115190b() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "public final void mo91715d() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public Pitonyak_09_02() {\r\n }", "static void feladat7() {\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo21880v() {\n }", "static void feladat4() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "void mo21073d();", "private void getStatus() {\n\t\t\n\t}", "public void mo12628c() {\n }", "public void skystonePos6() {\n }", "public void mo97906c() {\n }", "public void mo6944a() {\n }", "@Override\n\tpublic String getDesription() {\n\t\treturn \"Implemented by Dong Zihe and Huang Haowei based on \\\"Dong Z, Wen L, Huang H, et al. \"\n\t\t\t\t+ \"CFS: A Behavioral Similarity Algorithm for Process Models Based on \"\n\t\t\t\t+ \"Complete Firing Sequences[C]//On the Move to Meaningful Internet Systems: \"\n\t\t\t\t+ \"OTM 2014 Conferences. Springer Berlin Heidelberg, 2014: 202-219.\\\"\";\n\t}", "@Override\r\n\tpublic void description() {\n\t\tSystem.out.println(\"Seorang yang mengendarai kendaraan dan bekerja\");\r\n\t}", "static void feladat5() {\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}" ]
[ "0.62940115", "0.62638855", "0.6191453", "0.6093544", "0.6089508", "0.6016933", "0.59968597", "0.59895885", "0.59895885", "0.59895885", "0.59895885", "0.59895885", "0.59895885", "0.59895885", "0.5973315", "0.59613395", "0.596035", "0.59547013", "0.5948168", "0.59447664", "0.5940886", "0.59321773", "0.59281313", "0.59278405", "0.59032667", "0.5887497", "0.5882355", "0.5882303", "0.58692884", "0.58492196", "0.58474433", "0.584625", "0.58414257", "0.58396685", "0.5837554", "0.5835688", "0.58312243", "0.582576", "0.5813712", "0.5806819", "0.5795551", "0.57949", "0.5789467", "0.57843846", "0.57783926", "0.5772854", "0.57688075", "0.5743961", "0.57409465", "0.57409465", "0.57265663", "0.57232445", "0.5705772", "0.5704379", "0.5704379", "0.5703463", "0.5692432", "0.56746066", "0.56674427", "0.5664316", "0.5662955", "0.56613195", "0.5646537", "0.56464416", "0.5642129", "0.5641467", "0.5639878", "0.56398493", "0.56280553", "0.56245786", "0.5622486", "0.56203383", "0.5615608", "0.5611412", "0.56060475", "0.5598171", "0.55937266", "0.5590508", "0.55889773", "0.55886173", "0.55875033", "0.55848616", "0.55827874", "0.55764234", "0.55745375", "0.5569733", "0.55674547", "0.5565487", "0.5562621", "0.5558856", "0.5553223", "0.5552219", "0.5551277", "0.5550352", "0.55497223", "0.55475634", "0.5543403", "0.5542511", "0.5539236", "0.55355203", "0.5533426" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<OaAutoInfo> getDataList() throws Exception { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<OaAutoInfo> getDataList(String param) throws Exception { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
update home page here accordingly status, availability n all. this.masterServer.iterateDict();
public void run() { InputStream istream = null; try { istream = (this.socket).getInputStream(); } catch (IOException e) { e.printStackTrace(); } DataInputStream dstream = new DataInputStream(istream); username = null; try { username = dstream.readLine(); System.out.println(username + " on server side! (username)"); this.masterServer.addUserName(username); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } // pause thread to read in from client. String friendUsername = null; try { friendUsername = dstream.readLine(); System.out.println(friendUsername + " on server side!!!!! (friendUsername)"); findFriendsThread(friendUsername); } catch (IOException e) { e.printStackTrace(); } try { dstream.close(); } catch (IOException e) { e.printStackTrace(); } try { istream.close(); } catch (IOException e) { e.printStackTrace(); } //this.masterServer.addUserName(username); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateGIUnoResponse()\n {\n updateInfo.setText( \"Server is not up :(\" );\n }", "public static synchronized void refresh() {\n homes = new HashMap();\n prvHomes = new HashMap();\n ejb30Cache = new HashMap();\n iniCtx = null;\n }", "private void setLaunchPageStatus() {\n double rWidth = rootPanel.getWidth();\n double rHeight = rootPanel.getHeight();\n // set login page advertisement icon\n loginAdsIcons[0] = new ImageIcon(rootPath.concat(\"/img/xingbake1.jpg\"));\n loginAdsIcons[1] = new ImageIcon(rootPath.concat(\"/img/xingbake2.jpg\"));\n loginAdsIcons[2] = new ImageIcon(rootPath.concat(\"/img/xingbake3.jpg\"));\n loginAdsIcons[3] = new ImageIcon(rootPath.concat(\"/img/kendeji1.jpg\"));\n loginAdsIcons[4] = new ImageIcon(rootPath.concat(\"/img/kendeji2.jpg\"));\n double raRatio = 0.33;\n for(ImageIcon icon: loginAdsIcons) {\n Utils.setIconByHeight(raRatio,rHeight,icon);\n }\n launchAdsLabel.setText(\"\");\n // set wifi icons\n wifiLaunchIcons[0] = new ImageIcon(rootPath + \"/img/launch1.png\");\n wifiLaunchIcons[1] = new ImageIcon(rootPath + \"/img/launch2.png\");\n wifiLaunchIcons[2] = new ImageIcon(rootPath + \"/img/launch3.png\");\n wifiLaunchIcons[3] = new ImageIcon(rootPath + \"/img/launch4.png\");\n double rlRatio = 0.2;\n for(ImageIcon icon: wifiLaunchIcons) {\n Utils.setIconByWidth(rlRatio,rWidth,icon);\n }\n launchIcon = wifiLaunchIcons[3];\n Utils.setIconByWidth(rlRatio,rWidth,rootPath.concat(\"/img/unLaunch.png\"));\n wifiIconLabel.setText(\"\");\n // set visibility\n connectStatusL.setVisible(false);\n connectStatusL.setText(\"\");\n // set connect status icon\n connectedIcon = new ImageIcon(rootPath + \"/img/connected.png\");\n connectedOpaqueIcon = new ImageIcon(rootPath + \"/img/connected_opaque.png\");\n unconnectedIcon = new ImageIcon(rootPath + \"/img/unconnected.png\");\n connectingIcon = new ImageIcon(rootPath + \"/img/connecting.png\");\n double rcRatio = 0.03;\n ImageIcon connIcons[] = {connectedIcon,connectedOpaqueIcon,unconnectedIcon,connectingIcon};\n for(ImageIcon icon: connIcons) {\n Utils.setIconByWidth(rcRatio,rWidth,icon);\n }\n // set icons\n connectStatusL.setIcon(connectedIcon);\n }", "public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic void run(){\n\t\tConcurrentHashMap<String,String> destView;\n\t\tDouble numProbability = 0.0;\n\t\tDouble randomProbability = 0.0;\n\t\twhile(true){\t\n\t\t\tConcurrentHashMap<String, String> activeServerViewMap= ViewManager.getActiveServersList(ServerView.serverView);\n\t\t\tSystem.out.println(\"Active server view size \" + activeServerViewMap.size());\n\t\t\ttry {\n\t\t\t\tnumProbability = (double) (1.0/(activeServerViewMap.size()+1.0)); //plus 1 coz self has been excluded but we need this list\n\t\t\t\tRandom random = new Random();\n\t\t\t\trandomProbability = random.nextDouble();\n\t\t\t\tSystem.out.println(\"Num probab \" + numProbability);\n\t\t\t\tSystem.out.println(\"Random probab \" + randomProbability);\n\n\t\t\t\tSystem.out.println(\"View daemon running\");\n\t\t\t\tString[] arr = EnterServlet.serverID.toString().split(\"/\");\n\t\t\t\tString serverId = arr[arr.length-1];\n\t\t\t\tServerView.serverView.put(serverId,upState+DELIMITER_LEVEL2+System.currentTimeMillis());\n\n\t\t\t\tif (numProbability < randomProbability) {\n\t\t\t\t\t//updating self\n\t\t\t\t\tSystem.out.println(\"Should send exchange views now\");\n\t\t\t\t\tArrayList<String> serversList = new ArrayList<String>();\n\t\t\t\t\tfor(String key : ServerView.serverView.keySet()){\n\t\t\t\t\t\tserversList.add(key);\n\t\t\t\t\t}\n\t\t\t\t\tserversList.remove(serverId);\n\t\t\t\t\t/*java.util.Collections.shuffle((List<?>) serverSet);\n\t\t\t\t\tIterator<String> serverIterator = serverSet.iterator();\n\t\t\t\t\tString chosenServer = (String) serverIterator.next();*/\n\t\t\t\t\tCollections.shuffle(serversList);\n\t\t\t\t\tString chosenServer = serversList.get(0);\n\t\t\t\t\tSystem.out.println(\"Chosen server \" + chosenServer);\n\t\t\t\t\t\n\t\t\t\t\tdestView=new ConcurrentHashMap<String,String>(RPC.RPCClient.ExchangeViewClient(chosenServer, ServerView.serverView));\n\t\t\t\t\tConcurrentHashMap<String,String> mergedView=new ConcurrentHashMap<String,String>(ViewManager.mergeViews(ServerView.serverView,destView));\n\t\t\t\t\tViewManager.mergeViewWithSelf(mergedView);\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"Gossip with another server\");\n\t\t\t\t\t\n\t\t\t\t} else {\n//\t\t\t\t\t//call simpleDB\n\t\t\t\t\tSystem.out.println(\"Gossip with simple DB\");\n\t\t\t\t\tSimpleDbAccess.gossipWithSimpleDb();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tThread.sleep((GOSSIP_SECS/2) + new Random().nextInt(GOSSIP_SECS));\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "private void refreshHomePage()\r\n {\r\n Stage currentStage = (Stage) viewCoinAnchorPane.getScene().getWindow();\r\n //currentStage.hide();\r\n FXMLLoader fxmlLoader = new FXMLLoader();\r\n String filePath = \"/com/jjlcollectors/fxml/homepage/HomePage.fxml\";\r\n URL location = HomePageController.class.getResource(filePath);\r\n fxmlLoader.setLocation(location);\r\n fxmlLoader.setBuilderFactory(new JavaFXBuilderFactory());\r\n try\r\n {\r\n Parent root = fxmlLoader.load(location.openStream());\r\n } catch (IOException ex)\r\n {\r\n MyLogger.log(Level.SEVERE, LOG_CLASS_NAME + \" couldn't load homepage to refresh coin update!\", ex);\r\n }\r\n HomePageController homePageController = (HomePageController) fxmlLoader.getController();\r\n homePageController.refreshCoinList();\r\n }", "public void updateServerData() throws IOException {\n Iterator it = gameServers.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry<InetSocketAddress, GameServer> pair = (Map.Entry) it.next();\n pair.getValue().requestInfo();\n pair.getValue().requestPlayers();\n pair.getValue().requestRules();\n }\n }", "synchronized void checkAlive() {\n printAct(\"==>Checking all my Entries if alive \");\n Iterator it = map.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry<Integer, FileLocation> entry = (Map.Entry) it.next();\n FileLocation location = entry.getValue();\n try {\n InetSocketAddress server = new InetSocketAddress(location.getIP(), location.getPort());\n Socket s = new Socket();\n s.connect(server, 200); //connect with to the AppliCation with a timeout\n ObjectOutputStream out = new ObjectOutputStream(s.getOutputStream());\n out.writeInt(2); //request 2 = file request\n out.writeInt(5); //\"random\" port, specific for this request\n out.close();\n s.close();\n } catch (java.net.SocketTimeoutException ex) {\n this.removeKey(entry.getKey());\n } catch (IOException ex) {\n this.removeKey(entry.getKey());\n }\n }\n printAct(\"==>Checked all my Entries if alive \");\n }", "private void updateInfo() {\n /* Show the current server address in use */\n String text = String.format(getResources().getString(R.string.main_activity_server_address),\n Utils.getAddress(), Utils.getPort());\n serverTextView.setText(text);\n\n /* Show information about current player */\n Player player = SharedDataManager.getPlayer(this);\n /* No player is logged in */\n if (player == null) {\n playerTextView.setText(getString(R.string.your_nickname));\n return;\n }\n /* Player is logged in, show some information about him */\n text = String.format(getResources().getString(R.string.main_activity_player_title),\n player.getNickname(), player.getScore());\n playerTextView.setText(text);\n }", "public void setLaunchPage() {\n resetLaunchPageStatus();\n\n // set recognised ssid\n ssidLabel.setVisible(true);\n Color backColor = rootPanel.getBackground();\n int backRed = backColor.getRed();\n int backGreen = backColor.getGreen();\n int backBlue = backColor.getBlue();\n new Thread(() -> {\n try {\n int j=backGreen,k=backBlue;\n for(int i=backRed;i>0&&retStatus==-1;i-=3){\n j-=3;k-=3;\n if(j < 0) j=0;\n if(k < 0) k=0;\n ssidLabel.setForeground(new Color(i,j,k));\n sleep(100);\n }\n } catch (InterruptedException e) {\n System.out.println(e.getMessage());\n }\n }).start();\n\n // set break connection button to visible\n breakConnBtn.setVisible(true);\n registerBtn.setVisible(false);\n\n // set launch status based on login info\n new Thread(() -> {\n try {\n // store img status icon thread to local\n connStatusImgThread = Thread.currentThread();\n // set wifi icons\n int wifiIconIndex = 0;\n int wifiIconLen = wifiLaunchIcons.length;\n ImageIcon connStatusIcon = connectingIcon;\n String connStr = \"正在连接\";\n connectStatusL.setVisible(true);\n connectStatusL.setText(connStr);\n while(retStatus == -1) {\n connectStatusL.setIcon(connStatusIcon);\n wifiIconLabel.setIcon(wifiLaunchIcons[wifiIconIndex]);\n connStatusIcon = (connStatusIcon == connectingIcon ? connectedOpaqueIcon : connectingIcon);\n sleep(600);\n wifiIconIndex = (++wifiIconIndex) % wifiIconLen;\n }\n ssidLabel.setForeground(Color.black);\n if(retStatus == 0) {\n setBreakdownStatus();\n } else if(retStatus == 64) {\n wifiIconLabel.setIcon(wifiLaunchIcons[3]);\n connectStatusL.setIcon(connectedIcon);\n connectStatusL.setText(\"已连接 \");\n // set wallet left value\n setLoginStatus(1);\n //========== do deduction ==========//\n File file = new File(configSetting.getWpaCmdPath().concat(\"/testLeftToken\"));\n BufferedReader leftCoinReader = new BufferedReader(new FileReader(file));\n String leftCoinStr = leftCoinReader.readLine();\n if(! leftCoinStr.contains(\"registerReward\")) {\n //====== read balance from blockchain =====//\n if(Utils.getTestChain()) {\n BufferedReader tokenReader = new BufferedReader(new FileReader(rootPath.concat(\"/wpa_setup/testLeftToken\")));\n BufferedReader coinReader = new BufferedReader(new FileReader(rootPath.concat(\"/wpa_setup/testLeftCoin\")));\n leftToken = Double.valueOf(tokenReader.readLine());\n leftCoin = Double.valueOf(coinReader.readLine());\n// currency.put(\"leftToken\",Double.valueOf(tokenReader.readLine()));\n// currency.put(\"leftCoin\",Double.valueOf(coinReader.readLine()));\n tokenReader.close();\n coinReader.close();\n } else {\n try {\n ProcessBuilder pb = new ProcessBuilder(\n \"node\",\n rootPath.concat(\"/js_contact_chain/get_value.js\")\n );\n pb.redirectErrorStream(true);\n Process process = pb.start();\n BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));\n StringBuilder sb = new StringBuilder();\n String line;\n System.out.println(\"========== get reward from blockchain ==========\");\n // tricky getting coin and token\n while ((line = reader.readLine()) != null) {\n sb.append(line);\n if (Pattern.matches(\"Token:[0-9]*\",line)) {\n leftToken = Double.valueOf(line.split(\":\")[1]);\n// currency.put(\"leftToken\",Double.valueOf(line.split(\":\")[1]));\n }\n if (Pattern.matches(\"Coin:[0-9]*\",line)) {\n leftCoin = Double.valueOf(line.split(\":\")[1]);\n// currency.put(\"leftCoin\",Double.valueOf(line.split(\":\")[1]));\n }\n System.out.println(\"<reward>\" + line + \"<reward>\");\n }\n process.waitFor();\n } catch (IOException e) {\n System.out.println(e.getMessage());\n }\n // deduct 10 coin in backend\n new Thread(() -> {\n int tryout = 3;\n while(tryout > 0) {\n try {\n ArrayList<String> cmd = new ArrayList<>();\n cmd.add(\"node\");\n cmd.add(rootPath.concat(\"/js_contact_chain/client.js\"));\n cmd.add(\"DeductionToken\");\n cmd.add(\"0x01c96e4d9be1f4aef473dc5dcf13d8bd1d4133cd\");\n cmd.add(\"e16a1130062b37f038b9df02f134d7ddd9009c54c62bd92d4ed42c0dba1189a8\");\n cmd.add(\"0xf439bf68fc695b4a62f9e3322c75229ba5a0ff33\");\n ProcessBuilder pb = new ProcessBuilder(cmd);\n Process process = pb.start();\n BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));\n String line;\n // tricky getting data\n boolean isSuccess = false;\n while ((line = reader.readLine()) != null) {\n System.out.println(line);\n if (line.contains(\"status\")) {\n String[] tmpArry = line.split(\":\");\n String status = tmpArry[1];\n status = status.substring(1, status.length() - 1);\n isSuccess = Boolean.valueOf(status);\n }\n }\n if(isSuccess) {\n break;\n }\n System.out.println(\"[ERROR] Transaction failed! Deduct token failed!\");\n process.waitFor();\n } catch (IOException|InterruptedException e) {\n System.out.println(e.getMessage());\n }\n tryout--;\n }\n }).start();\n }\n leftToken = Arith.sub(leftToken,10);\n // record item\n writeRecord(\"-10: 登陆\",tokenHistoryFP);\n } else {\n String[] tmpStr = leftCoinStr.split(\":\");\n leftToken = Double.valueOf(tmpStr[1]);\n leftCoin = 0;\n// currency.put(\"leftToken\",Double.valueOf(tmpStr[1]));\n// currency.put(\"leftCoin\",0.0);\n writeRecord(\"+\"+leftToken+\": 注册\",tokenHistoryFP);\n }\n sleep(200);\n String historyStr = readRecord(historyReadlineNum,tokenHistoryFP);\n tokenHistoryLabel.setText(historyStr);\n } else {\n wifiIconLabel.setIcon(unLaunchIcon);\n connectStatusL.setIcon(unconnectedIcon);\n connectStatusL.setText(\"未连接 \");\n }\n setPageStatus();\n // set login page advertisement\n new Thread(() -> {\n try {\n int adsIndex = 0;\n int adsLen = loginAdsIcons.length;\n while (loginStatus == 1) {\n launchAdsLabel.setIcon(loginAdsIcons[adsIndex]);\n sleep(2500);\n adsIndex = ++adsIndex % adsLen;\n }\n } catch (InterruptedException e) {\n System.out.println(e.getMessage());\n }\n }).start();\n } catch (InterruptedException|IOException ex) {\n System.out.println(ex.getMessage());\n }\n }).start();\n }", "public void start(int state) {\n\n JPanel leftPanel;\n JPanel rightPanel;\n\n JScrollPane scrollPane;\n\n ALabel label1;\n ALabel label2;\n ALabel label3;\n ALabel label4;\n ALabel label5;\n\n JLabel imgLabel1;\n JLabel imgLabel2;\n\n final ATextField tfield1;\n final ATextField atf_login;\n final ATextField atf_key;\n final APasswordField pfield1;\n final APasswordField pfield2;\n\n final JButton b_ok;\n final JButton b_load;\n final JButton b_help;\n final JButton b_about;\n final JButton b_option;\n final JButton b_cancel;\n final JButton b_newProfile;\n final JButton b_delProfile;\n final JButton b_exitProfile;\n final JButton b_recoverProfile;\n\n final JTable profilesTable;\n final JTable serversTable;\n\n this.indexScreen = state;\n\n switch (state) {\n\n // ********************\n // *** First Screen ***\n // ********************\n\n case FIRST_INIT:\n // We try to contact the wotlas web server...\n this.nbTry = 1;\n Timer timer = new Timer(5000, this);\n timer.start();\n\n this.serverConfigManager.getLatestConfigFiles(this);\n timer.stop();\n\n if (!this.serverConfigManager.hasRemoteServersInfo()) {\n JOptionPane.showMessageDialog(this, \"We failed to contact the wotlas web server. So we could not update\\n\" + \"our servers addresses. If this is not the first time you start wotlas on\\n\" + \"your computer, you can try to connect with the previous server config\\n\" + \"files. Otherwise please restart wotlas later.\\n\\n\" + \"Note also that wotlas is not firewall/proxy friendly. See our FAQ for\\n\" + \"more details ( from the help section or 'wotlas.html' local file ).\", \"Warning\", JOptionPane.WARNING_MESSAGE);\n } else // Wotlas News\n {\n new JHTMLWindow(this, \"Wotlas News\", ClientDirector.getRemoteServerConfigHomeURL() + \"news.html\", 320, 400, false, ClientDirector.getResourceManager());\n }\n\n // Load images of buttons\n this.im_cancelup = ClientDirector.getResourceManager().getImageIcon(\"cancel-up.gif\");\n this.im_canceldo = ClientDirector.getResourceManager().getImageIcon(\"cancel-do.gif\");\n this.im_cancelun = ClientDirector.getResourceManager().getImageIcon(\"cancel-un.gif\");\n this.im_okup = ClientDirector.getResourceManager().getImageIcon(\"ok-up.gif\");\n this.im_okdo = ClientDirector.getResourceManager().getImageIcon(\"ok-do.gif\");\n this.im_okun = ClientDirector.getResourceManager().getImageIcon(\"ok-un.gif\");\n this.im_recoverup = ClientDirector.getResourceManager().getImageIcon(\"recover-up.gif\");\n this.im_recoverdo = ClientDirector.getResourceManager().getImageIcon(\"recover-do.gif\");\n this.im_recoverun = ClientDirector.getResourceManager().getImageIcon(\"recover-un.gif\");\n this.im_delup = ClientDirector.getResourceManager().getImageIcon(\"delete-up.gif\");\n this.im_deldo = ClientDirector.getResourceManager().getImageIcon(\"delete-do.gif\");\n this.im_delun = ClientDirector.getResourceManager().getImageIcon(\"delete-un.gif\");\n this.im_exitup = ClientDirector.getResourceManager().getImageIcon(\"exit-up.gif\");\n this.im_exitdo = ClientDirector.getResourceManager().getImageIcon(\"exit-do.gif\");\n this.im_loadup = ClientDirector.getResourceManager().getImageIcon(\"load-up.gif\");\n this.im_loaddo = ClientDirector.getResourceManager().getImageIcon(\"load-do.gif\");\n this.im_loadun = ClientDirector.getResourceManager().getImageIcon(\"load-un.gif\");\n this.im_newup = ClientDirector.getResourceManager().getImageIcon(\"new-up.gif\");\n this.im_newdo = ClientDirector.getResourceManager().getImageIcon(\"new-do.gif\");\n this.im_aboutup = ClientDirector.getResourceManager().getImageIcon(\"about-up.gif\");\n this.im_aboutdo = ClientDirector.getResourceManager().getImageIcon(\"about-do.gif\");\n this.im_helpup = ClientDirector.getResourceManager().getImageIcon(\"help-up.gif\");\n this.im_helpdo = ClientDirector.getResourceManager().getImageIcon(\"help-do.gif\");\n this.im_optionsup = ClientDirector.getResourceManager().getImageIcon(\"options-up.gif\");\n this.im_optionsdo = ClientDirector.getResourceManager().getImageIcon(\"options-do.gif\");\n\n this.indexScreen = ClientManager.MAIN_SCREEN;\n state = ClientManager.MAIN_SCREEN;\n\n // Hide the Log Window ?\n if (!ClientDirector.getClientConfiguration().getDisplayLogWindow()) {\n // ADD by DIEGO : REMOVE by DIEGO if( !ClientDirector.SHOW_DEBUG )\n ClientDirector.getLogStream().setVisible(false);\n }\n\n // Test if an account exists\n if (this.profileConfigList.size() == 0) {\n start(ClientManager.ACCOUNT_CREATION_SCREEN);\n return;\n }\n\n case MAIN_SCREEN:\n\n setTitle(\"Wotlas - Account selection...\");\n SoundLibrary.getMusicPlayer().stopMusic();\n\n // Create panels\n leftPanel = new JPanel();\n leftPanel.setLayout(new BoxLayout(leftPanel, BoxLayout.Y_AXIS));\n rightPanel = new JPanel();\n rightPanel.setLayout(new FlowLayout(FlowLayout.CENTER, getRightWidth(), 5));\n\n // Create buttons\n b_about = new JButton(this.im_aboutup);\n b_about.setRolloverIcon(this.im_aboutdo);\n b_about.setPressedIcon(this.im_aboutdo);\n b_about.setBorderPainted(false);\n b_about.setContentAreaFilled(false);\n b_about.setFocusPainted(false);\n\n b_option = new JButton(this.im_optionsup);\n b_option.setRolloverIcon(this.im_optionsdo);\n b_option.setPressedIcon(this.im_optionsdo);\n b_option.setBorderPainted(false);\n b_option.setContentAreaFilled(false);\n b_option.setFocusPainted(false);\n\n b_ok = new JButton(this.im_okup);\n b_ok.setRolloverIcon(this.im_okdo);\n b_ok.setPressedIcon(this.im_okdo);\n b_ok.setDisabledIcon(this.im_okun);\n b_ok.setBorderPainted(false);\n b_ok.setContentAreaFilled(false);\n b_ok.setFocusPainted(false);\n\n b_cancel = new JButton(this.im_cancelup);\n b_cancel.setRolloverIcon(this.im_canceldo);\n b_cancel.setPressedIcon(this.im_canceldo);\n b_cancel.setDisabledIcon(this.im_cancelun);\n b_cancel.setBorderPainted(false);\n b_cancel.setContentAreaFilled(false);\n b_cancel.setFocusPainted(false);\n\n b_load = new JButton(this.im_loadup);\n b_load.setRolloverIcon(this.im_loaddo);\n b_load.setPressedIcon(this.im_loaddo);\n b_load.setDisabledIcon(this.im_loadun);\n b_load.setBorderPainted(false);\n b_load.setContentAreaFilled(false);\n b_load.setFocusPainted(false);\n\n b_help = new JButton(this.im_helpup);\n b_help.setRolloverIcon(this.im_helpdo);\n b_help.setPressedIcon(this.im_helpdo);\n b_help.setBorderPainted(false);\n b_help.setContentAreaFilled(false);\n b_help.setFocusPainted(false);\n\n b_newProfile = new JButton(this.im_newup);\n b_newProfile.setRolloverIcon(this.im_newdo);\n b_newProfile.setPressedIcon(this.im_newdo);\n b_newProfile.setDisabledIcon(this.im_newdo);\n b_newProfile.setBorderPainted(false);\n b_newProfile.setContentAreaFilled(false);\n b_newProfile.setFocusPainted(false);\n\n b_recoverProfile = new JButton(this.im_recoverup);\n b_recoverProfile.setRolloverIcon(this.im_recoverdo);\n b_recoverProfile.setPressedIcon(this.im_recoverdo);\n b_recoverProfile.setDisabledIcon(this.im_recoverun);\n b_recoverProfile.setBorderPainted(false);\n b_recoverProfile.setContentAreaFilled(false);\n b_recoverProfile.setFocusPainted(false);\n\n b_delProfile = new JButton(this.im_delup);\n b_delProfile.setRolloverIcon(this.im_deldo);\n b_delProfile.setPressedIcon(this.im_deldo);\n b_delProfile.setDisabledIcon(this.im_delun);\n b_delProfile.setBorderPainted(false);\n b_delProfile.setContentAreaFilled(false);\n b_delProfile.setFocusPainted(false);\n\n b_exitProfile = new JButton(this.im_exitup);\n b_exitProfile.setRolloverIcon(this.im_exitdo);\n b_exitProfile.setPressedIcon(this.im_exitdo);\n b_exitProfile.setBorderPainted(false);\n b_exitProfile.setContentAreaFilled(false);\n b_exitProfile.setFocusPainted(false);\n\n // *** Left JPanel ***\n\n imgLabel1 = new JLabel(ClientDirector.getResourceManager().getImageIcon(\"welcome-title.jpg\"));\n imgLabel1.setAlignmentX(Component.CENTER_ALIGNMENT);\n leftPanel.add(imgLabel1);\n\n imgLabel2 = new JLabel(ClientDirector.getResourceManager().getImageIcon(\"choose.gif\"));\n imgLabel2.setAlignmentX(Component.CENTER_ALIGNMENT);\n leftPanel.add(imgLabel2);\n\n leftPanel.add(Box.createRigidArea(new Dimension(0, 10)));\n\n // Creates a table of profiles\n ProfileConfigListTableModel profileConfigListTabModel = new ProfileConfigListTableModel(this.profileConfigList, this.serverConfigManager);\n profilesTable = new JTable(profileConfigListTabModel);\n profilesTable.setDefaultRenderer(Object.class, new ATableCellRenderer());\n profilesTable.setBackground(Color.white);\n profilesTable.setForeground(Color.black);\n profilesTable.setSelectionBackground(Color.lightGray);\n profilesTable.setSelectionForeground(Color.white);\n profilesTable.setRowHeight(24);\n profilesTable.getColumnModel().getColumn(2).setPreferredWidth(-1);\n\n // selection\n profilesTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n ListSelectionModel rowProfilesSM = profilesTable.getSelectionModel();\n rowProfilesSM.addListSelectionListener(new ListSelectionListener() {\n public void valueChanged(ListSelectionEvent e) {\n //Ignore extra messages.\n if (e.getValueIsAdjusting()) {\n return;\n }\n ListSelectionModel lsm = (ListSelectionModel) e.getSource();\n if (lsm.isSelectionEmpty()) {\n //no rows are selected\n } else {\n int selectedRow = lsm.getMinSelectionIndex();\n ClientManager.this.currentProfileConfig = ClientManager.this.profileConfigList.getProfiles()[selectedRow];\n b_load.setEnabled(true);\n b_delProfile.setEnabled(true);\n }\n }\n });\n\n // show table\n scrollPane = new JScrollPane(profilesTable);\n profilesTable.setPreferredScrollableViewportSize(new Dimension(0, 170));\n scrollPane.getViewport().setBackground(Color.white);\n JScrollBar jsb_01 = scrollPane.getVerticalScrollBar();\n leftPanel.add(scrollPane);\n\n // *** Right Panel ***\n\n b_load.setEnabled(false);\n b_load.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n start(ClientManager.ACCOUNT_LOGIN_SCREEN);\n }\n });\n rightPanel.add(b_load);\n\n b_newProfile.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n start(ClientManager.ACCOUNT_CREATION_SCREEN);\n }\n });\n rightPanel.add(b_newProfile);\n\n rightPanel.add(new JLabel(ClientDirector.getResourceManager().getImageIcon(\"separator.gif\"))); // SEPARATOR\n\n b_recoverProfile.setEnabled(true);\n b_recoverProfile.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n start(ClientManager.RECOVER_ACCOUNT_SCREEN);\n }\n });\n rightPanel.add(b_recoverProfile);\n\n b_delProfile.setEnabled(false);\n\n b_delProfile.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n start(ClientManager.DELETE_ACCOUNT_SCREEN);\n }\n });\n\n rightPanel.add(b_delProfile);\n\n rightPanel.add(new JLabel(ClientDirector.getResourceManager().getImageIcon(\"separator.gif\"))); // SEPARATOR\n\n b_option.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n new JConfigurationDlg(ClientManager.this);\n }\n });\n rightPanel.add(b_option);\n\n b_help.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n new JHTMLWindow(ClientManager.this, \"Help\", ClientDirector.getResourceManager().getHelpDocsDir() + \"index.html\", 640, 340, false, ClientDirector.getResourceManager());\n }\n });\n rightPanel.add(b_help);\n\n rightPanel.add(new JLabel(ClientDirector.getResourceManager().getImageIcon(\"separator.gif\"))); // SEPARATOR\n\n b_about.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n try {\n new JAbout(ClientManager.this);\n } catch (RuntimeException ei) {\n Debug.signal(Debug.ERROR, this, ei);\n }\n }\n });\n rightPanel.add(b_about);\n\n b_exitProfile.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n ClientDirector.getDataManager().exit();\n }\n });\n rightPanel.add(b_exitProfile);\n\n // *** Adding the panels ***\n\n setLeftPanel(leftPanel);\n setRightPanel(rightPanel);\n showScreen();\n break;\n\n // ********************************\n // *** Connection to GameServer ***\n // ********************************\n\n case ACCOUNT_LOGIN_SCREEN:\n setTitle(\"Wotlas - Login...\");\n\n // Create panels\n leftPanel = new JPanel();\n leftPanel.setLayout(new BoxLayout(leftPanel, BoxLayout.Y_AXIS));\n rightPanel = new JPanel();\n\n // Create buttons\n b_ok = new JButton(this.im_okup);\n b_ok.setRolloverIcon(this.im_okdo);\n b_ok.setPressedIcon(this.im_okdo);\n b_ok.setDisabledIcon(this.im_okun);\n b_ok.setBorderPainted(false);\n b_ok.setContentAreaFilled(false);\n b_ok.setFocusPainted(false);\n\n b_cancel = new JButton(this.im_cancelup);\n b_cancel.setRolloverIcon(this.im_canceldo);\n b_cancel.setPressedIcon(this.im_canceldo);\n b_cancel.setDisabledIcon(this.im_cancelun);\n b_cancel.setBorderPainted(false);\n b_cancel.setContentAreaFilled(false);\n b_cancel.setFocusPainted(false);\n\n // *** Left JPanel ***\n\n label1 = new ALabel(\"Welcome \" + this.currentProfileConfig.getLogin() + \",\");\n label1.setAlignmentX(Component.CENTER_ALIGNMENT);\n leftPanel.add(label1);\n label1.setFont(this.f.deriveFont(18f));\n\n leftPanel.add(Box.createRigidArea(new Dimension(0, 10)));\n JPanel mainPanel_01 = new JPanel();\n mainPanel_01.setBackground(Color.white);\n\n JPanel formPanel_01_left = new JPanel(new GridLayout(2, 1, 5, 5));\n formPanel_01_left.setBackground(Color.white);\n formPanel_01_left.add(new JLabel(ClientDirector.getResourceManager().getImageIcon(\"enter-password.gif\")));\n formPanel_01_left.add(new JLabel(ClientDirector.getResourceManager().getImageIcon(\"your-key.gif\")));\n mainPanel_01.add(formPanel_01_left);\n JPanel formPanel_01_right = new JPanel(new GridLayout(2, 1, 5, 10));\n formPanel_01_right.setBackground(Color.white);\n pfield1 = new APasswordField(10);\n pfield1.setFont(this.f.deriveFont(18f));\n\n if (this.currentProfileConfig.getPassword() != null) {\n pfield1.setText(this.currentProfileConfig.getPassword());\n }\n\n pfield1.addKeyListener(new KeyAdapter() {\n @Override\n public void keyReleased(KeyEvent e) {\n if (e.getKeyCode() == KeyEvent.VK_ENTER) {\n b_ok.doClick();\n }\n }\n });\n\n formPanel_01_right.add(pfield1);\n ALabel alabel = new ALabel(this.currentProfileConfig.getLogin() + \"-\" + this.currentProfileConfig.getKey());\n alabel.setFont(this.f.deriveFont(16f));\n formPanel_01_right.add(alabel);\n mainPanel_01.add(formPanel_01_right);\n leftPanel.add(mainPanel_01);\n\n // *** Right Panel ***\n\n b_ok.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n char charPasswd[] = pfield1.getPassword();\n if (charPasswd.length < 4) {\n JOptionPane.showMessageDialog(ClientManager.this, \"Password must have at least 5 characters !\", \"New Password\", JOptionPane.ERROR_MESSAGE);\n } else {\n String passwd = new String(charPasswd);\n\n ClientDirector.getDataManager().setCurrentProfileConfig(ClientManager.this.currentProfileConfig);\n\n ClientManager.this.currentServerConfig = ClientManager.this.serverConfigManager.getServerConfig(ClientManager.this.currentProfileConfig.getServerID());\n\n JGameConnectionDialog jgconnect = new JGameConnectionDialog(ClientManager.this, ClientManager.this.currentServerConfig.getServerName(), ClientManager.this.currentServerConfig.getGameServerPort(), ClientManager.this.currentServerConfig.getServerID(), ClientManager.this.currentProfileConfig.getLogin(), passwd, ClientManager.this.currentProfileConfig.getLocalClientID(), ClientManager.this.currentProfileConfig.getOriginalServerID(), ClientDirector.getDataManager());\n\n if (jgconnect.hasSucceeded()) {\n ClientManager.this.currentProfileConfig.setPassword(passwd);\n\n if (ClientManager.rememberPasswords) {\n ClientManager.this.profileConfigList.save();\n }\n\n Debug.signal(Debug.NOTICE, null, \"ClientManager connected to GameServer\");\n start(ClientManager.DATAMANAGER_DISPLAY);\n } else {\n Debug.signal(Debug.ERROR, this, \"ClientManager ejected from GameServer\");\n start(ClientManager.MAIN_SCREEN);\n }\n }\n }\n });\n rightPanel.add(b_ok);\n\n b_cancel.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n start(ClientManager.MAIN_SCREEN);\n }\n });\n rightPanel.add(b_cancel);\n\n // *** Adding the panels ***\n setLeftPanel(leftPanel);\n setRightPanel(rightPanel);\n showScreen();\n\n if (this.automaticLogin && this.currentProfileConfig.getPassword() != null) {\n this.automaticLogin = false; // works only once...\n b_ok.doClick(); // we launch the connection procedure\n }\n\n break;\n\n // ********************************\n // *** To Delete An Account ***\n // ********************************\n\n case DELETE_ACCOUNT_SCREEN:\n setTitle(\"Wotlas - Delete Account...\");\n\n // Create panels\n leftPanel = new JPanel();\n leftPanel.setLayout(new BoxLayout(leftPanel, BoxLayout.Y_AXIS));\n rightPanel = new JPanel();\n\n // Create buttons\n b_delProfile = new JButton(this.im_delup);\n b_delProfile.setRolloverIcon(this.im_deldo);\n b_delProfile.setPressedIcon(this.im_deldo);\n b_delProfile.setDisabledIcon(this.im_delun);\n b_delProfile.setBorderPainted(false);\n b_delProfile.setContentAreaFilled(false);\n b_delProfile.setFocusPainted(false);\n\n b_cancel = new JButton(this.im_cancelup);\n b_cancel.setRolloverIcon(this.im_canceldo);\n b_cancel.setPressedIcon(this.im_canceldo);\n b_cancel.setDisabledIcon(this.im_cancelun);\n b_cancel.setBorderPainted(false);\n b_cancel.setContentAreaFilled(false);\n b_cancel.setFocusPainted(false);\n\n // *** Left JPanel ***\n\n label1 = new ALabel(\"Delete \" + this.currentProfileConfig.getPlayerName() + \" ?\");\n label1.setAlignmentX(Component.CENTER_ALIGNMENT);\n leftPanel.add(label1);\n label1.setFont(this.f.deriveFont(18f));\n\n leftPanel.add(Box.createRigidArea(new Dimension(0, 10)));\n\n JPanel mainPanel_02 = new JPanel();\n mainPanel_02.setBackground(Color.white);\n JPanel formPanel_02_left = new JPanel(new GridLayout(2, 1, 5, 5));\n formPanel_02_left.setBackground(Color.white);\n formPanel_02_left.add(new JLabel(ClientDirector.getResourceManager().getImageIcon(\"enter-password.gif\")));\n formPanel_02_left.add(new JLabel(ClientDirector.getResourceManager().getImageIcon(\"your-key.gif\")));\n mainPanel_02.add(formPanel_02_left);\n JPanel formPanel_02_right = new JPanel(new GridLayout(2, 1, 5, 10));\n formPanel_02_right.setBackground(Color.white);\n pfield1 = new APasswordField(10);\n pfield1.setFont(this.f.deriveFont(18f));\n\n pfield1.addKeyListener(new KeyAdapter() {\n @Override\n public void keyReleased(KeyEvent e) {\n if (e.getKeyCode() == KeyEvent.VK_ENTER) {\n b_delProfile.doClick();\n }\n }\n });\n\n if (this.currentProfileConfig.getPassword() != null) {\n pfield1.setText(this.currentProfileConfig.getPassword());\n }\n\n formPanel_02_right.add(pfield1);\n ALabel alabel2 = new ALabel(this.currentProfileConfig.getLogin() + \"-\" + this.currentProfileConfig.getKey());\n alabel2.setFont(this.f.deriveFont(16f));\n formPanel_02_right.add(alabel2);\n mainPanel_02.add(formPanel_02_right);\n leftPanel.add(mainPanel_02);\n\n // *** Right Panel ***\n\n b_delProfile.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n char charPasswd[] = pfield1.getPassword();\n String passwd = \"\";\n if (charPasswd.length < 4) {\n JOptionPane.showMessageDialog(ClientManager.this, \"Password must have at least 5 characters !\", \"New Password\", JOptionPane.ERROR_MESSAGE);\n } else {\n for (int i = 0; i < charPasswd.length; i++) {\n passwd += charPasswd[i];\n }\n\n ClientManager.this.currentServerConfig = ClientManager.this.serverConfigManager.getServerConfig(ClientManager.this.currentProfileConfig.getServerID());\n\n JDeleteAccountDialog jdconnect = new JDeleteAccountDialog(ClientManager.this, ClientManager.this.currentServerConfig.getServerName(), ClientManager.this.currentServerConfig.getAccountServerPort(), ClientManager.this.currentServerConfig.getServerID(), ClientManager.this.currentProfileConfig.getLogin() + \"-\" + ClientManager.this.currentProfileConfig.getOriginalServerID() + \"-\" + ClientManager.this.currentProfileConfig.getLocalClientID(), passwd);\n\n if (jdconnect.hasSucceeded()) {\n Debug.signal(Debug.NOTICE, this, \"Account deleted.\");\n\n // Save accounts informations\n if (!ClientManager.this.profileConfigList.removeProfile(ClientManager.this.currentProfileConfig)) {\n Debug.signal(Debug.ERROR, this, \"Failed to delete player profile !\");\n } else {\n ClientManager.this.profileConfigList.save();\n }\n }\n\n start(ClientManager.MAIN_SCREEN); // return to main screen\n }\n }\n });\n rightPanel.add(b_delProfile);\n\n b_cancel.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n start(ClientManager.MAIN_SCREEN);\n }\n });\n rightPanel.add(b_cancel);\n\n // *** Adding the panels ***\n setLeftPanel(leftPanel);\n setRightPanel(rightPanel);\n showScreen();\n break;\n\n // *********************************\n // *** Recover an existing account ****\n // *********************************\n\n case RECOVER_ACCOUNT_SCREEN:\n\n setTitle(\"Wotlas - Recover Login\");\n\n // Create panels\n leftPanel = new JPanel();\n leftPanel.setLayout(new BoxLayout(leftPanel, BoxLayout.Y_AXIS));\n rightPanel = new JPanel();\n\n // Create buttons\n b_ok = new JButton(this.im_okup);\n b_ok.setRolloverIcon(this.im_okdo);\n b_ok.setPressedIcon(this.im_okdo);\n b_ok.setDisabledIcon(this.im_okun);\n b_ok.setBorderPainted(false);\n b_ok.setContentAreaFilled(false);\n b_ok.setFocusPainted(false);\n\n b_cancel = new JButton(this.im_cancelup);\n b_cancel.setRolloverIcon(this.im_canceldo);\n b_cancel.setPressedIcon(this.im_canceldo);\n b_cancel.setDisabledIcon(this.im_cancelun);\n b_cancel.setBorderPainted(false);\n b_cancel.setContentAreaFilled(false);\n b_cancel.setFocusPainted(false);\n\n // *** Left JPanel ***\n\n label1 = new ALabel(\"To recover an existing account, please enter :\");\n label1.setAlignmentX(Component.CENTER_ALIGNMENT);\n label1.setFont(this.f.deriveFont(18f));\n leftPanel.add(label1);\n\n leftPanel.add(Box.createRigidArea(new Dimension(0, 10)));\n\n JPanel mainPanel_03 = new JPanel();\n mainPanel_03.setBackground(Color.white);\n JPanel formPanel_03_left = new JPanel(new GridLayout(2, 1, 5, 5));\n formPanel_03_left.setBackground(Color.white);\n formPanel_03_left.add(new JLabel(ClientDirector.getResourceManager().getImageIcon(\"your-key.gif\")));\n formPanel_03_left.add(new JLabel(ClientDirector.getResourceManager().getImageIcon(\"enter-password.gif\")));\n mainPanel_03.add(formPanel_03_left);\n JPanel formPanel_03_right = new JPanel(new GridLayout(2, 1, 5, 10));\n formPanel_03_right.setBackground(Color.white);\n atf_key = new ATextField(10);\n formPanel_03_right.add(atf_key);\n\n pfield1 = new APasswordField(10);\n pfield1.setFont(this.f.deriveFont(18f));\n pfield1.addKeyListener(new KeyAdapter() {\n @Override\n public void keyReleased(KeyEvent e) {\n if (e.getKeyCode() == KeyEvent.VK_ENTER) {\n b_ok.doClick();\n }\n }\n });\n formPanel_03_right.add(pfield1);\n\n mainPanel_03.add(formPanel_03_right);\n leftPanel.add(mainPanel_03);\n\n // *** Right Panel ***\n\n b_ok.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n char charPasswd[] = pfield1.getPassword();\n\n if (charPasswd.length < 4) {\n JOptionPane.showMessageDialog(ClientManager.this, \"Password must have at least 5 characters !\", \"Password\", JOptionPane.ERROR_MESSAGE);\n } else {\n\n ClientManager.this.currentProfileConfig = new ProfileConfig();\n\n String tempKey = atf_key.getText();\n int index = tempKey.indexOf('-');\n if (index < 0) {\n JOptionPane.showMessageDialog(ClientManager.this, \"Your key must have the following format : login-xx-yy.\\nExample: bob-1-36\", \"Bad Format\", JOptionPane.ERROR_MESSAGE);\n start(ClientManager.MAIN_SCREEN);\n return;\n }\n\n ClientManager.this.currentProfileConfig.setLogin(tempKey.substring(0, index));\n ClientManager.this.currentProfileConfig.setPlayerName(\"\");\n ClientManager.this.currentProfileConfig.setPassword(new String(charPasswd));\n\n tempKey = tempKey.substring(index + 1);\n index = tempKey.indexOf('-');\n\n if (index < 0) {\n JOptionPane.showMessageDialog(ClientManager.this, \"Your key must have the following format : login-xx-yy.\\nExample: bob-1-36\", \"Bad Format\", JOptionPane.ERROR_MESSAGE);\n start(ClientManager.MAIN_SCREEN);\n return;\n }\n\n try {\n ClientManager.this.currentProfileConfig.setServerID(Integer.parseInt(tempKey.substring(0, index)));\n ClientManager.this.currentProfileConfig.setOriginalServerID(Integer.parseInt(tempKey.substring(0, index)));\n ClientManager.this.currentProfileConfig.setLocalClientID(Integer.parseInt(tempKey.substring(index + 1)));\n } catch (NumberFormatException nfes) {\n JOptionPane.showMessageDialog(ClientManager.this, \"Your key must have the following format : login-xx-yy.\\nExample: bob-1-36\", \"Bad Format\", JOptionPane.ERROR_MESSAGE);\n start(ClientManager.MAIN_SCREEN);\n return;\n }\n\n ClientDirector.getDataManager().setCurrentProfileConfig(ClientManager.this.currentProfileConfig);\n ClientManager.this.currentServerConfig = ClientManager.this.serverConfigManager.getServerConfig(ClientManager.this.currentProfileConfig.getServerID());\n\n if (ClientManager.this.currentServerConfig == null) {\n JOptionPane.showMessageDialog(ClientManager.this, \"Failed to find the associated server.\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n start(ClientManager.MAIN_SCREEN);\n return;\n }\n\n JGameConnectionDialog jgconnect = new JGameConnectionDialog(ClientManager.this, ClientManager.this.currentServerConfig.getServerName(), ClientManager.this.currentServerConfig.getGameServerPort(), ClientManager.this.currentServerConfig.getServerID(), ClientManager.this.currentProfileConfig.getLogin(), new String(charPasswd), ClientManager.this.currentProfileConfig.getLocalClientID(), ClientManager.this.currentProfileConfig.getOriginalServerID(), ClientDirector.getDataManager());\n\n if (jgconnect.hasSucceeded()) {\n Debug.signal(Debug.NOTICE, null, \"ClientManager connected to GameServer\");\n jgconnect.getConnection().queueMessage(new AccountRecoverMessage(atf_key.getText()));\n\n start(ClientManager.DATAMANAGER_DISPLAY);\n } else {\n Debug.signal(Debug.ERROR, this, \"ClientManager ejected from GameServer\");\n start(ClientManager.MAIN_SCREEN);\n }\n }\n }\n });\n rightPanel.add(b_ok);\n\n b_cancel.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n start(ClientManager.MAIN_SCREEN);\n }\n });\n rightPanel.add(b_cancel);\n\n // *** Adding the panels ***\n\n setLeftPanel(leftPanel);\n setRightPanel(rightPanel);\n showScreen();\n break;\n\n // ***********************************\n // *** Connection to AccountServer ***\n // ***********************************\n\n case ACCOUNT_CREATION_SCREEN:\n\n this.serverConfigManager.getLatestConfigFiles(this);\n\n // Launching Wizard\n hide();\n JAccountCreationWizard accountCreationWz = new JAccountCreationWizard();\n break;\n\n // **************************************\n // *** A new account has been created ***\n // **************************************\n\n case ACCOUNT_INFO_SCREEN:\n\n setTitle(\"Wotlas - Account creation...\");\n\n if (this.currentProfileConfig == null) {\n start(ClientManager.MAIN_SCREEN);\n break;\n }\n\n // Set the appropriate server config.\n this.currentServerConfig = this.serverConfigManager.getServerConfig(this.currentProfileConfig.getServerID());\n\n // Create panels\n leftPanel = new JPanel();\n //leftPanel.setLayout(new BoxLayout(leftPanel, BoxLayout.Y_AXIS));\n leftPanel.setLayout(new GridLayout(1, 1, 5, 5));\n rightPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, getRightWidth(), 10));\n\n // Create buttons\n b_ok = new JButton(this.im_okup);\n b_ok.setRolloverIcon(this.im_okdo);\n b_ok.setPressedIcon(this.im_okdo);\n b_ok.setDisabledIcon(this.im_okun);\n b_ok.setBorderPainted(false);\n b_ok.setContentAreaFilled(false);\n b_ok.setFocusPainted(false);\n\n b_cancel = new JButton(this.im_cancelup);\n b_cancel.setRolloverIcon(this.im_canceldo);\n b_cancel.setPressedIcon(this.im_canceldo);\n b_cancel.setDisabledIcon(this.im_cancelun);\n b_cancel.setBorderPainted(false);\n b_cancel.setContentAreaFilled(false);\n b_cancel.setFocusPainted(false);\n\n // *** Left Panel ***/\n JEditorPane editorPane = new JEditorPane(\"text/html\", \"<html>Your new account has been <br>\" + \"successfully created! <br>\" + \"Remember your key to access <br>\" + \"wotlas from anywhere : <b>\" + this.currentProfileConfig.getLogin() + \"-\" + this.currentProfileConfig.getKey() + \"</b><br>Click OK to enter WOTLAS....</html>\");\n leftPanel.add(editorPane, BorderLayout.CENTER);\n editorPane.setEditable(false);\n\n // *** Right Panel ***/\n\n b_ok.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n JGameConnectionDialog jgconnect = new JGameConnectionDialog(ClientManager.this, ClientManager.this.currentServerConfig.getServerName(), ClientManager.this.currentServerConfig.getGameServerPort(), ClientManager.this.currentServerConfig.getServerID(), ClientManager.this.currentProfileConfig.getLogin(), ClientManager.this.currentProfileConfig.getPassword(), ClientManager.this.currentProfileConfig.getLocalClientID(), ClientManager.this.currentProfileConfig.getOriginalServerID(), ClientDirector.getDataManager());\n\n if (jgconnect.hasSucceeded()) {\n Debug.signal(Debug.NOTICE, null, \"ClientManager connected to GameServer\");\n start(ClientManager.DATAMANAGER_DISPLAY);\n } else {\n Debug.signal(Debug.ERROR, this, \"ClientManager ejected from GameServer\");\n }\n }\n });\n rightPanel.add(b_ok);\n\n b_cancel.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n start(ClientManager.MAIN_SCREEN);\n }\n });\n rightPanel.add(b_cancel);\n\n // *** Adding the panels ***\n\n setLeftPanel(leftPanel);\n setRightPanel(rightPanel);\n showScreen();\n break;\n\n // ********************\n // *** Final screen ***\n // ********************\n\n case DATAMANAGER_DISPLAY:\n\n hide();\n\n Thread heavyProcessThread = new Thread() {\n @Override\n public void run() {\n ClientDirector.getDataManager().showInterface();\n }\n };\n\n heavyProcessThread.start();\n break;\n\n default:\n // We should never arrive here\n // --> return to main screen\n start(ClientManager.MAIN_SCREEN);\n }\n }", "private void requestServerToGetInformation() {\n Net net = Net.getInstance();\n Log.i(TAG, \"requestServerToGetInformation: Start connect server\");\n net.get(AppConstant.SERVER_COMBO_URL, new Callback() {\n @Override\n public void onFailure(Call call, IOException e) {\n Log.i(TAG, \"onFailure: connect error; \" + e.getMessage());\n }\n @Override\n public void onResponse(Call call, Response response) throws IOException {\n // get the JSON from responses.\n String jsonStr = response.body().string();\n Log.i(TAG, \"onResponse: --------------------------------\" + jsonStr);\n parseJsonAndUpdateView(jsonStr.trim());\n }\n });\n }", "@Override\r\n\t\tpublic void setstatuschanged(int status) {\n\t\t\tLoger.d(\"test5\",\"gonggao add refresh\");\r\n\t\t\tif(NetworkService.networkBool){\r\n\t\t\t\tforumtopicLists.clear();\r\n\t\t\t\tRequestParams reference = new RequestParams();\r\n\t\t\t\treference.put(\"community_id\", App.sFamilyCommunityId);\t\t\r\n\t\t\t\treference.put(\"user_id\", App.sUserLoginId);\t\r\n\t\t\t\treference.put(\"count\", 6);\t\r\n\t\t\t\treference.put(\"category_type\",App.BAOXIU_TYPE);\r\n\t\t\t\tif(uncompletedbaoxiu.getTag().toString().equals(\"1\")){\r\n\t\t\t\t\treference.put(\"process_type\",1);\r\n\t\t\t\t}else{\r\n\t\t\t\t\treference.put(\"process_type\",3);\r\n\t\t\t\t}\r\n\t\t\t\treference.put(\"tag\",\"getrepair\");\r\n\t\t\t\treference.put(\"apitype\",IHttpRequestUtils.APITYPE[4]);\r\n\t\t\t\tLoger.i(\"test5\", \"community_id=\"+App.sFamilyCommunityId+\"user_id=\"+App.sUserLoginId +App.BAOXIU_TYPE +uncompletedbaoxiu.getTag().toString().equals(\"1\")+IHttpRequestUtils.APITYPE[4]);\r\n\t\t\t\t//reference.put(\"key_word\",searchmessage);\r\n\t\t\t\tAsyncHttpClient client = new AsyncHttpClient();\r\n\t\t\t\tclient.post(IHttpRequestUtils.URL+IHttpRequestUtils.YOULIN,\r\n\t\t\t\t\t\treference, new JsonHttpResponseHandler() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\r\n\t\t\t\t\t\t\tJSONArray response) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub 18945051215\r\n\t\t\t\t\t\trepairInitLayout.setVisibility(View.GONE);\r\n\t\t\t\t\t\trepairInitBelowLayout.setVisibility(View.VISIBLE);\r\n\t\t\t\t\t\trepairInitBelow2Layout.setVisibility(View.VISIBLE);\r\n\t\t\t\t\t\tgetTopicDetailsInfos(response,\"init\");\r\n\t\t\t\t\t\tFlag = \"ok\";\r\n\t\t\t\t\t\tcRequesttype = true;\r\n//\t\t\t\t\t\tmaddapter.notifyDataSetChanged();\r\n\t\t\t\t\t\tsuper.onSuccess(statusCode, headers, response);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\r\n\t\t\t\t\t\t\tJSONObject response) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\tMessage message = new Message();\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tFlag = response.getString(\"flag\");\r\n\t\t\t\t\t\t\tString empty=response.getString(\"empty\");\r\n\t\t\t\t\t\t\tLoger.i(\"test5\", \"5555555555--->\"+response.toString());\r\n\t\t\t\t\t\t\tif(\"no\".equals(empty)){\r\n\t\t\t\t\t\t\t\tcRequesttype = true;\r\n\t\t\t\t\t\t\t\trepairInitLayout.setVisibility(View.VISIBLE);\r\n\t\t\t\t\t\t\t\trepairInitBelowLayout.setVisibility(View.GONE);\r\n\t\t\t\t\t\t\t\trepairInitBelow2Layout.setVisibility(View.GONE);\r\n\t\t\t\t\t\t\t\tLoger.i(\"test5\", \"baoxiutopic is empty yes1111111111111\");\r\n\t\t\t\t\t\t\t}else if(\"ok\".equals(empty)){\r\n\t\t\t\t\t\t\t\trepairInitLayout.setVisibility(View.GONE);\r\n\t\t\t\t\t\t\t\trepairInitBelowLayout.setVisibility(View.VISIBLE);\r\n\t\t\t\t\t\t\t\trepairInitBelow2Layout.setVisibility(View.VISIBLE);\r\n\t\t\t\t\t\t\t\tLoger.i(\"test5\", \"baoxiutopic is empty no\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} catch (JSONException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tsuper.onSuccess(statusCode, headers, response);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\r\n\t\t\t\t\t\t\tString responseString, Throwable throwable) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\tnew ErrorServer(PropertyRepairActivity.this, responseString.toString());\r\n\t\t\t\t\t\tsuper.onFailure(statusCode, headers, responseString, throwable);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t\tLoger.d(\"test5\", \"gongao cRequesttype=\");\r\n\t\t\t\t/*********************refresh*********************/\r\n\t\t\t\tLoger.d(\"test5\", \"gongao cRequesttype=\"+cRequesttype+\"Flag=\"+Flag);\r\n\t\t // TODO Auto-generated method stub\r\n\t\t\t\tnew Thread(new Runnable() {\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tLong currenttime = System.currentTimeMillis();\r\n\t\t\t\t\t\t\twhile (PropertyRepairActivity.this.getSupportFragmentManager().findFragmentByTag(\r\n\t\t\t\t\t\t\t\t\t\"myfragment\") == null) {\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\twhile(!cRequesttype ){\r\n\t\t\t\t\t\t\t\tif((System.currentTimeMillis()-currenttime)>App.WAITFORHTTPTIME+5000){\r\n\t\t\t\t\t\t\t\t\tcRequesttype = true;\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\tPropertyRepairActivity.this.runOnUiThread(new Runnable() {\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\tLoger.d(\"test5\", \"gongao cRequesttype=\"+cRequesttype+\"Flag=\"+Flag);\r\n\t\t\t\t\t\t\t\t\tif(cRequesttype&& (Flag.equals(\"ok\")||Flag.equals(\"no\"))){\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tLoger.d(\"test5\", \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\");\r\n\t\t\t\t\t\t\t\t\t\tfinal PullToRefreshListFragment finalfrag9 = (PullToRefreshListFragment) PropertyRepairActivity.this.getSupportFragmentManager()\r\n\t\t\t\t\t\t\t\t\t\t\t\t.findFragmentByTag(\"myfragment\");\r\n\t\t\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\t\t\tmPullRefreshListView = finalfrag9.getPullToRefreshListView();\r\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t// Set a listener to be invoked when the list should be\r\n\t\t\t\t\t\t\t\t\t\t// refreshed.\r\n\t\t\t\t\t\t\t\t\t\tmPullRefreshListView.setMode(Mode.PULL_FROM_END);\r\n\t\t\t\t\t\t\t\t\t\tmPullRefreshListView.setOnRefreshListener(PropertyRepairActivity.this);\r\n\t\t\t\t\t\t\t\t\t\t// You can also just use\r\n\t\t\t\t\t\t\t\t\t\t// mPullRefreshListFragment.getListView()\r\n\t\t\t\t\t\t\t\t\t\tactualListView = mPullRefreshListView\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getRefreshableView();\r\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\tactualListView.setDividerHeight(0);\r\n//\t\t\t\t\t\t\t\t\t\tactualListView.setDivider(PropertyGonggaoActivity.this.getResources().getDrawable(R.drawable.fengexian));\r\n\t\t\t\t\t\t\t\t\t\tactualListView.setAdapter(maddapter);\r\n\t\t\t\t\t\t\t\t\t\tactualListView.setLayoutParams(new FrameLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT));\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tfinalfrag9.setListShown(true);\r\n\t\t\t\t\t\t\t\t\t\t//Loger.i(\"youlin\",\"11111111111111111->\"+((ForumTopic)forumtopicLists.get(0)).getSender_id()+\" \"+App.sUserLoginId);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tcRequesttype = false;\r\n\t\t\t\t\t\t\t\t\tFlag=\"none\";\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} catch (Exception e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}).start();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}", "public void loadStatus (){\n\t}", "protected void refreshHome()\r\n/* 48: */ throws NamingException\r\n/* 49: */ {\r\n/* 50:121 */ synchronized (this.homeMonitor)\r\n/* 51: */ {\r\n/* 52:122 */ Object home = lookup();\r\n/* 53:123 */ if (this.cacheHome)\r\n/* 54: */ {\r\n/* 55:124 */ this.cachedHome = home;\r\n/* 56:125 */ this.createMethod = getCreateMethod(home);\r\n/* 57: */ }\r\n/* 58: */ }\r\n/* 59: */ }", "void updateLandmarks() {\n\n\t\t\tregisterUpdateLandmarksTimer();\n\n\t\t\tint m = 2;\n\t\t\tfinal int expectedLandmarks = NumberOfLandmarks + m;\n\t\t\tIterator<Long> ier = pendingHSHLandmarks.keySet().iterator();\n\n\t\t\tSet<AddressIF> tmpList = new HashSet<AddressIF>(1);\n\t\t\tLong curRecord = null;\n\n\t\t\t// get a non-empty list of landmarks\n\t\t\twhile (ier.hasNext()) {\n\t\t\t\tLong nxt = ier.next();\n\t\t\t\tif (pendingHSHLandmarks.get(nxt).IndexOfLandmarks != null\n\t\t\t\t\t\t&& pendingHSHLandmarks.get(nxt).IndexOfLandmarks.size() > 0) {\n\t\t\t\t\ttmpList\n\t\t\t\t\t\t\t.addAll(pendingHSHLandmarks.get(nxt).IndexOfLandmarks);\n\t\t\t\t\tcurRecord = nxt;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// if empty, we need to update landmarks immediately\n\t\t\tif (tmpList.size() == 0) {\n\t\t\t\t// remove the record\n\t\t\t\tif (curRecord != null) {\n\t\t\t\t\tpendingHSHLandmarks.get(curRecord).clear();\n\t\t\t\t\tpendingHSHLandmarks.remove(curRecord);\n\t\t\t\t} else {\n\t\t\t\t\t// null curRecord\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tfinal Long Timer = curRecord;\n\t\t\t\t// ping landmarks, if several of them fails, p percentage p=0.2\n\t\t\t\t// , we remove the records, and restart the landmark process\n\t\t\t\t// =================================================================\n\t\t\t\tfinal List<AddressIF> aliveLandmarks = new ArrayList<AddressIF>(\n\t\t\t\t\t\t1);\n\n\t\t\t\tNNManager.collectRTTs(tmpList, new CB2<Set<NodesPair>, String>() {\n\t\t\t\t\tprotected void cb(CBResult ncResult, Set<NodesPair> nps,\n\t\t\t\t\t\t\tString errorString) {\n\t\t\t\t\t\t// send data request message to the core node\n\t\t\t\t\t\tlong timer=System.currentTimeMillis();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (nps != null && nps.size() > 0) {\n\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t.println(\"\\n==================\\n Alive No. of landmarks: \"\n\t\t\t\t\t\t\t\t\t\t\t+ nps.size()\n\t\t\t\t\t\t\t\t\t\t\t+ \"\\n==================\\n\");\n\n\t\t\t\t\t\t\tIterator<NodesPair> NP = nps.iterator();\n\t\t\t\t\t\t\twhile (NP.hasNext()) {\n\t\t\t\t\t\t\t\tNodesPair tmp = NP.next();\n\t\t\t\t\t\t\t\tif (tmp != null && tmp.rtt >= 0) {\n\n\t\t\t\t\t\t\t\t\tAddressIF peer = (AddressIF)tmp.endNode;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//====================================================\n\t\t\t\t\t\t\t\t\tif (!ncManager.pendingLatency.containsKey(peer)) {\n\t\t\t\t\t\t\t\t\t\tncManager.pendingLatency.put(peer,\n\t\t\t\t\t\t\t\t\t\t\t\tnew RemoteState<AddressIF>(peer));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tncManager.pendingLatency.get(peer).addSample(tmp.rtt, timer);\n\t\t\t\t\t\t\t\t\t//=====================================================\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif (!pendingHSHLandmarks.containsKey(Timer)\n\t\t\t\t\t\t\t\t\t\t\t|| pendingHSHLandmarks.get(Timer).IndexOfLandmarks == null) {\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tint index = pendingHSHLandmarks.get(Timer).IndexOfLandmarks\n\t\t\t\t\t\t\t\t\t\t\t.indexOf(peer);\n\n\t\t\t\t\t\t\t\t\tif (index < 0) {\n\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\t// found the element, and it is smaller\n\t\t\t\t\t\t\t\t\t\t// than\n\t\t\t\t\t\t\t\t\t\t// rank, i.e., it is closer to the\n\t\t\t\t\t\t\t\t\t\t// target\n\t\t\t\t\t\t\t\t\t\taliveLandmarks.add(peer);\n\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// wrong measurements\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// empty\n\t\t\t\t\t\t\t// all nodes fail, so there are no alive nodes\n\t\t\t\t\t\t\tif (pendingHSHLandmarks.containsKey(Timer)) {\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).clear();\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.remove(Timer);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// some landmarks are offline, we clear records and\n\t\t\t\t\t\t// start\n\t\t\t\t\t\tif (pendingHSHLandmarks.containsKey(Timer)) {\n\n\t\t\t\t\t\t\tif (aliveLandmarks.size() < 0.8 * expectedLandmarks) {\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).clear();\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.remove(Timer);\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// the landmarks are healthy, so we can sleep\n\t\t\t\t\t\t\t\t// awhile\n\t\t\t\t\t\t\t\t// TODO: remove dead landmarks, and resize the\n\t\t\t\t\t\t\t\t// landmarks\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).IndexOfLandmarks\n\t\t\t\t\t\t\t\t\t\t.clear();\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).IndexOfLandmarks\n\t\t\t\t\t\t\t\t\t\t.addAll(aliveLandmarks);\n\n\t\t\t\t\t\t\t\t// pendingHSHLandmarks.get(Timer).readyForUpdate=false;\n\t\t\t\t\t\t\t\tfinal Set<AddressIF> nodes = new HashSet<AddressIF>(\n\t\t\t\t\t\t\t\t\t\t1);\n\n\t\t\t\t\t\t\t\tnodes\n\t\t\t\t\t\t\t\t\t\t.addAll(pendingHSHLandmarks.get(Timer).IndexOfLandmarks);\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).readyForUpdate = true;\n\n\t\t\t\t\t\t\t\t//update the rtts\n\t\t\t\t\t\t\t\t updateRTTs(Timer.longValue(),nodes, new\n\t\t\t\t\t\t\t\t CB1<String>(){ protected void cb(CBResult\n\t\t\t\t\t\t\t\t ncResult, String errorString){ switch\n\t\t\t\t\t\t\t\t (ncResult.state) { case OK: {\n\t\t\t\t\t\t\t\t System.out.println(\"$: Update completed\");\n\t\t\t\t\t\t\t\t System.out.println();\n\t\t\t\t\t\t\t\t if(errorString.length()<=0){\n\t\t\t\t\t\t\t\t pendingHSHLandmarks\n\t\t\t\t\t\t\t\t .get(Timer).readyForUpdate=true; }\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t break; } case ERROR: case TIMEOUT: { break; }\n\t\t\t\t\t\t\t\t } nodes.clear(); } });\n\t\t\t\t\t\t\t\t \n\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t}\n\n\t\t\t// ==================================================================\n\n\t\t\t// expected landmarks, K+m\n\n\t\t\tfinal Set<AddressIF> pendingNodes = new HashSet<AddressIF>(1);\n\n\t\t\tgetRandomNodes(pendingNodes, expectedLandmarks);\n\n\t\t\t// remove myself\n\t\t\tif (pendingNodes.contains(Ninaloader.me)) {\n\t\t\t\tpendingNodes.remove(Ninaloader.me);\n\t\t\t}\n\n\t\t\tSystem.out.println(\"$: HSH: Total number of landmarks are: \"\n\t\t\t\t\t+ pendingNodes.size());\n\n\t\t\tif (pendingNodes.size() == 0) {\n\t\t\t\tString errorString = \"$: HSH no valid nodes\";\n\t\t\t\tSystem.out.println(errorString);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tBarrier barrierUpdate = new Barrier(true);\n\t\t\tfinal StringBuffer errorBuffer = new StringBuffer();\n\n\t\t\tfinal long TimeStamp = System.currentTimeMillis();\n\n\t\t\tfor (AddressIF addr : pendingNodes) {\n\t\t\t\tseekLandmarks(TimeStamp, addr, barrierUpdate,\n\t\t\t\t\t\tpendingHSHLandmarks, errorBuffer);\n\t\t\t}\n\n\t\t\tEL.get().registerTimerCB(barrierUpdate, new CB0() {\n\t\t\t\tprotected void cb(CBResult result) {\n\t\t\t\t\tString errorString;\n\t\t\t\t\tif (errorBuffer.length() == 0) {\n\t\t\t\t\t\terrorString = new String(\"Success\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\terrorString = new String(errorBuffer);\n\t\t\t\t\t}\n\n\t\t\t\t\t// finish the landmark seeking process\n\n\t\t\t\t\tif (!pendingHSHLandmarks.containsKey(Long\n\t\t\t\t\t\t\t.valueOf(TimeStamp))\n\t\t\t\t\t\t\t|| pendingHSHLandmarks.get(Long.valueOf(TimeStamp)).IndexOfLandmarks == null) {\n\t\t\t\t\t\tSystem.out.println(\"$: NULL elements! \");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (pendingHSHLandmarks.get(Long.valueOf(TimeStamp)).IndexOfLandmarks\n\t\t\t\t\t\t\t.size() < (0.7 * expectedLandmarks)) {\n\t\t\t\t\t\tpendingHSHLandmarks.get(Long.valueOf(TimeStamp))\n\t\t\t\t\t\t\t\t.clear();\n\t\t\t\t\t\tpendingHSHLandmarks.remove(Long.valueOf(TimeStamp));\n\t\t\t\t\t\tSystem.out.println(\"$: not enough landmark nodes\");\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\t//\n\t\t\t\t\t\tpendingHSHLandmarks.get(Long.valueOf(TimeStamp)).readyForUpdate = true;\n\t\t\t\t\t\tSystem.out.println(\"$: enough landmark nodes\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tfinal Set<AddressIF> nodes = new HashSet<AddressIF>(1);\n\t\t\t\t\t\tnodes\n\t\t\t\t\t\t\t\t.addAll(pendingHSHLandmarks.get(Long.valueOf(TimeStamp)).IndexOfLandmarks);\n\t\t\t\t\t\tupdateRTTs(Long.valueOf(TimeStamp), nodes, new CB1<String>() {\n\t\t\t\t\t\t\tprotected void cb(CBResult ncResult, String errorString) {\n\t\t\t\t\t\t\t\tswitch (ncResult.state) {\n\t\t\t\t\t\t\t\tcase OK: {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"$: Update completed\");\n\t\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcase ERROR:\n\t\t\t\t\t\t\t\tcase TIMEOUT: {\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tnodes.clear();\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}\n\t\t\t});\n\t\t}", "public void home_index()\n {\n Home.index(homer);\n }", "@Override\n protected void onProgressUpdate(ResponseInfo... responseInfo) {\n \tif (responseInfo[0].responseCode == 200 | responseInfo[0].responseCode == 201) {\n \t\t//Update the event display - first check for any new devices added\n \tMeshDisplayControllerApplictaion appObject = (MeshDisplayControllerApplictaion)LiveMeshEventControllerActivity.this.getApplicationContext();\n \tMeshDisplayControllerEngine meshDisplayEngine = appObject.getAppMeshDisplayControllerEngine();\n \t\n \t\ttry {\n \t\t\t//First read the JSON response into a new HashMap\n \t\t\t//For large displays this is not particularly efficient and the server should respond with \n \t\t\t//added and deleted clients only, with a full refresh only done periodically. For this proof \n \t\t\t//of concept this is fine.\n \t\t\tJSONArray clientList = responseInfo[0].clientList;\n \t\t\tHashMap<String, MeshDisplayClient> receivedClientsMap = new HashMap<String, MeshDisplayClient>();\n \t\t\tfor (int i = 0; i< clientList.length(); i++) {\n \t\t\t\tMeshDisplayClient receivedClient = new MeshDisplayClient();\n \t\t\t\treceivedClient.id = clientList.getJSONObject(i).getString(\"client_id\").toString();\n \t\t\t\treceivedClient.textToDisplay = clientList.getJSONObject(i).getString(\"client_text\").toString();\n \t\t\t\treceivedClientsMap.put(receivedClient.id, receivedClient);\n \t\t\t}\n \t\t\t\n \t\t\t//Check for anything that is in the Map from the server but not in the engine Map here - this is a \n \t\t\t//new client added\n \t\t\tSet <String> addedClients = new HashSet<String>(receivedClientsMap.keySet());\n \t\t\taddedClients.removeAll(meshDisplayEngine.clientsMap.keySet());\n \t\t\t\n \t\t\tfor (String clientIDToAdd : addedClients) {\n \t\t\t\t//Add this client from the current engine client Map\n \t\t\t\tMeshDisplayClient newClient = receivedClientsMap.get(clientIDToAdd);\n \t\t\t\tmeshDisplayEngine.clientsMap.put(clientIDToAdd, receivedClientsMap.get(clientIDToAdd));\n \t\t\t\t\n \t\t\t\t//Add this client to the display\n \t\t\t\tdisplayNewClient(newClient);\n \t\t\t}\n \t\t\t\n \t\t\t//Now check for anything that is in the current engine clientMap but not the received clientMap\n \t\t\tSet <String> deletedClients = new HashSet<String>(meshDisplayEngine.clientsMap.keySet());\n \t\t\tdeletedClients.removeAll(receivedClientsMap.keySet());\n \t\t\t\n \t\t\tfor (String clientIDToRemove : deletedClients) {\n \t\t\t\t//Remove this client from the current engine client Map\n \t\t\t\tmeshDisplayEngine.clientsMap.remove(clientIDToRemove);\n \t\t\t\t\n \t\t\t\t//Remove this client from the display\n \t\t\t\tremoveClientFromDisplay(clientIDToRemove);\n \t\t\t}\n\t \t\t\n \t\t} catch (JSONException e) {\n\t\t\t\t\t//An Error occurred decoding the JSON\n\t\t\t\t\tLog.d(\"LiveMeshEventControllerActivity PollServerForClients\", \"exception parsing JSON response\");\n\t\t\t\t\te.printStackTrace();\n \t\t}\n\n \t} else {\n \t\t//Log an issue\n \t\tLog.d(\"LiveMeshEventControllerActivity PollServerForClients\",\"-> onProgressUpdate: unexpecetd resposne code: \" + responseInfo[0].responseCode);\n \t}\n }", "MapIsReadyCallback( HomeActivity master ) {\n mMaster = master;\n }", "private void statusCheck() {\n\t\tif(status.equals(\"waiting\")) {if(waitingPlayers.size()>1) status = \"ready\";}\n\t\tif(status.equals(\"ready\")) {if(waitingPlayers.size()<2) status = \"waiting\";}\n\t\tif(status.equals(\"start\")) {\n\t\t\tif(players.size()==0) status = \"waiting\";\n\t\t}\n\t\tview.changeStatus(status);\n\t}", "private void refreshHomePanel() {\n // Set Player Name Text\n view.getHomePanel().getNameLabel().setText(model.getPlayer().getFullname().toUpperCase());\n\n // Update Highscore Table\n view.getHomePanel().getTableModel().setRowCount(0);\n updateHighscores(model.getHighscores());\n }", "private void updateInformations(boolean endOfTurn){\r\n\t\tHashMap<String, Object> list = new HashMap<String, Object>();\r\n\t\tlist.put(\"map\", game.getGameInitialisator().getMap());\r\n\t\tlist.put(\"players\", game.getPlayers());\r\n\t\tlist.put(\"turn\", game.getTurn());\r\n\t\tlist.put(\"endofgame\", game.getEndOfGame());\r\n\t\tlist.put(\"endofturn\", endOfTurn);\r\n\t\tlist.put(\"nbia\", game.getNbIa());\r\n\t\tfor(ServerExecute currentClient : clients){\r\n\t\t\ttry {\r\n\t\t\t\tcurrentClient.updateInformations(list);\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\tSystem.err.println(\"Impossible d'envoyer les informations\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public String processHomePage() {\n return \"success\";\n }", "public void run() {\n\t\tDate curTime;\n\t\twhile(true) {\n\t\t\tcurTime = new Date();\n\t\t\t\n\t\t\t//System.out.println(\"currentTime: \"+ curTime.getTime() +\" prevTime: \"+ _prevPingRequestTime.getTime() +\" diff: \" + (curTime.getTime() - _prevPingRequestTime.getTime()) +\" interval: \"+ _scsynthPingInterval);\n\n\t\t\t//if the previous status request is still pending...\n\t\t\tif (_serverLive && (_prevPingRequestTime.getTime() > _prevPingResponseTime.getTime())) {\n\t\t\t\t//We've not yet heard back from the previous status request.\n\t\t\t\t//Have we timed out?\n\t\t\t\tif (curTime.getTime() - _prevPingRequestTime.getTime() > _serverResponseTimeout) {\n\t\t\t\t\t//We've timed out on the previous status request.\n\t\t\t\t\tSystem.out.println(\"Timed out on previous status request.\");\n\n\t\t\t\t\tif (_notifyListener != null) {\n\t\t\t\t\t\t_notifyListener.receiveNotification_ServerStopped();\n\t\t\t\t\t}\n\t\t\t\t\tif (_controlPanel != null && _controlPanel._statsDisplay != null) {\n\t\t\t\t\t\t_controlPanel._statsDisplay.receiveNotification_ServerStopped();\n\t\t\t\t\t\t_scsclogger.receiveNotification_ServerStopped();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\t_serverLive = false;\n\t\t\t\t\t_serverBooted = false;\n\t\t\t\t}\n\t\t\t\t//else we just keep waiting for a response or a timeout\n\t\t\t}\n\t\t\t//the previous status request is NOT still pending. Is it time to send another?\n\t\t\telse if (curTime.getTime() - _prevPingRequestTime.getTime() > _scsynthPingInterval) {\n\t\t\t\t//It's time to send another status request.\n\t\t\t\t\n\t\t\t\t//generally, ping with a /status message.\n\t\t\t\t//but, if we're live but not booted, query node 1 (the sign that init completed)\n\t\t\t\tif (_serverLive && !_serverBooted) { \n\t\t\t\t\tsendMessage(\"/notify\", new Object[] { 1 });\n\t\t\t\t\tsendMessage(\"/n_query\", new Object[]{_motherGroupID});\n\t\t\t\t\t//System.out.println(\"Querying SCSC mother node\");\n\t\t\t\t\t//debugPrintln(\"Querying SCSC mother node\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//if the server's booted, request a status update.\n\t\t\t\t\tsendMessage(\"/status\"); \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t_prevPingRequestTime = new Date();\n\t\t\t}\n\t\t\t//it's not time to send, and we're not watching \n\t\t\t//for a reply, so go to sleep until it's time to ping again\n\t\t\telse {\n\t\t\t\tlong sleeptime = Math.max(_scsynthPingInterval - (curTime.getTime() - _prevPingRequestTime.getTime()), 0);\n\t\t\t\t//System.out.println(\"sleep \" + sleeptime);\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(sleeptime);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t//NOTE this thread shouldn't get interrupted.\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t}", "public void init() throws ServletException {\n SystemService systemService = new SystemService();\n\n TemplateService templateService = new TemplateService();\n try {\n systemService.loadJoymeWIki();\n systemService.loadChannelConfigure();\n systemService.loadTemplate();\n try {\n templateService.reloadTemplate();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n new MongoDBService().initMongoDB();\n\n SyncCacheService.getInstance();\n\n if (PropertiesContainer.getInstance().isWikiRanking) {\n LogService.infoSystemLog(\"==================this machine isWikiRanking is true===============\");\n SchedulerFactory schedFact = new org.quartz.impl.StdSchedulerFactory();\n Scheduler sched = schedFact.getScheduler();\n sched.start();\n JobDetail jobDetail = new JobDetail(\" Income Report \", \" Report Generation \", WikiLastModifiedFacade.class);\n jobDetail.getJobDataMap().put(\" type \", \" FULL \");\n CronTrigger trigger = new CronTrigger(\" Income Report \", \" Report Generation \");\n //<!--每天16点20分触发--> 0 20 16 ? * *\n\n trigger.setCronExpression(\"0 0 2 ? * *\");\n sched.scheduleJob(jobDetail, trigger);\n }\n\n //生成sitemap定时任务\n WikiSiteMapJob wikiSiteMapJob = new WikiSiteMapJob();\n wikiSiteMapJob.init();\n wikiSiteMapJob.start();\n\n Service service = PropertiesContainer.getInstance().getService();\n if (service != null && !service.getServiceId().contains(\"UNKNOWN\")) {\n NamingService.getInstance(PropertiesContainer.getInstance().getRedisManager()).register(service);\n LogService.infoSystemLog(\"==========register success. service name is:\"+service+\"==========\");\n } else {\n LogService.errorSystemLog(\"==========register failed. plz shutdown and check config==========\");\n return;\n }\n\n System.out.print(\"==========\"+service+\"Success when init==============\");\n } catch (Exception e) {\n System.out.print(\"==========Exception when init==============\");\n e.printStackTrace();\n } catch (Error e) {\n System.out.print(\"==========Error when init==============\");\n e.printStackTrace();\n }\n\n\n }", "@Override\n public void run() {\n EndpointServer random = Preferences.getEndpointServer(mContext);\n\n /** no server found -- notify to user */\n if (random == null) {\n Log.i(TAG, \"no list to pick a random server from - aborting\");\n\n // notify to UI\n if (mListener != null)\n mListener.nodata();\n\n return;\n }\n\n try {\n // TODO\n /*\n mConnection = new ClientHTTPConnection(null, mContext, random, null);\n Protocol.ServerList data = mConnection.serverList();\n if (data != null) {\n // write down to cache\n OutputStream out = new FileOutputStream(getCachedListFile(mContext));\n data.writeTo(out);\n out.close();\n }\n\n // parse cached list :)\n sCurrentList = parseList(data);\n if (mListener != null)\n mListener.updated(sCurrentList);\n\n // restart message center\n MessageCenterService.restartMessageCenter(mContext.getApplicationContext());\n */\n throw new IOException();\n }\n catch (IOException e) {\n if (mListener != null)\n mListener.error(e);\n }\n finally {\n mConnection = null;\n }\n }", "public void setPageInfo(){\n\t\tif(AllP>=1){\n\t\t\tPageInfo=\"<table border='0' cellpadding='3'><tr><td>\";\n\t\t\tPageInfo+=\"Show: \"+PerR+\"/\"+AllR+\" Records!&nbsp;\";\n\t\t\tPageInfo+=\"Current page: \"+CurrentP+\"/\"+AllP;\n\t\t\tPageInfo+=\"</td></tr></table>\";\t\t\t\n\t\t}\t\t\t\t\n\t}", "private void updateStatus() {\n Response block = blockTableModel.getChainHead();\n int height = (block != null ? block.getInt(\"height\") : 0);\n nodeField.setText(String.format(\"<html><b>NRS node: [%s]:%d</b></html>\",\n Main.serverConnection.getHost(),\n Main.serverConnection.getPort()));\n chainHeightField.setText(String.format(\"<html><b>Chain height: %d</b></html>\",\n height));\n connectionsField.setText(String.format(\"<html><b>Peer connections: %d</b></html>\",\n connectionTableModel.getActiveCount()));\n }", "public void populateSwitchTenantMap(Server3 server){\n\n\t\tBridge3 bridge;\n\t\tInterfaces3 interfaces;\n\t\tIterator<Bridge3> iteratorBridge = server.getOpenVSwitch().getArrayListBridge().iterator();\n\t\t//Iterate in all bridges of the server to collect the proper information of the bridge\n\t\twhile(iteratorBridge.hasNext()){\n\t\t\tbridge = iteratorBridge.next();\n\t\t\t//Verify if the brigde name is the one configured to host all the VMs. In this version, all VMs have to be hosted \n\t\t\tif(bridge.getName().compareTo(server.getBridgeName())==0){\n\t\t\t\tIterator<Interfaces3> iteratorInterfaces = bridge.getArrayListInterfaces().iterator();\n\t\t\t\t//Iterate in all interfaces of the configured bridge to get all necessary information to populate the structures \n\t\t\t\twhile(iteratorInterfaces.hasNext()){\n\t\t\t\t\tinterfaces = iteratorInterfaces.next();\n\t\t\t\t\tif(interfaces.getOfport() != null && server != null && server.getSw() != null && server.getSw().getId() != null &&\n\t\t\t\t\t\t\tthis.environmentOfServers.getHostLocationHostMap().get(new HostLocation(server.getSw().getId(), interfaces.getOfport())) != null &&\n\t\t\t\t\t\t\tthis.environmentOfServers.getHostLocationHostMap().get(new HostLocation(server.getSw().getId(), interfaces.getOfport())).getIpAddress() != null){\n\t\t\t\t\t\tthis.addToPortMap(server.getSw(), interfaces.getVmsMacAddress(), VlanVid.ofVlan(0), interfaces.getOfport(), \n\t\t\t\t\t\t\t\tthis.environmentOfServers.getHostLocationHostMap().get(new HostLocation(server.getSw().getId(), interfaces.getOfport())).getIpAddress());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void startupProcess() {\n Timer startupTimer = new Timer();\n TimerTask startupTask = new TimerTask() {\n @Override\n public void run() {\n finishStartup();\n }\n };\n if (this.offlineButton.isSelected() == true) {\n this.statusLed.setStatus(\"warning\");\n } else {\n this.statusLed.setStatus(\"ok\");\n }\n this.statusLed.setSlowBlink(true);\n this.offlineButton.setDisable(true);\n this.shutdownButton.setDisable(true);\n startupTimer.schedule(startupTask, 10000l);\n }", "private void applicationHealthHandler(RoutingContext routingContext) {\n HttpServerResponse httpServerResponse = routingContext.response();\n httpServerResponse.setStatusCode(SUCCESS_CODE);\n httpServerResponse.end(\"myRetailApplication is up and running\");\n }", "private void setStatus(HttpRequest request, HttpResponse response) {\r\n\r\n\t\tString msg = \"OK\";\r\n\t\tint statusCode = 200;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tGridStatus status = GridStatus.fromString(request.getQueryParameter(\"status\"));\r\n\t\r\n\t\t\tif (GridStatus.ACTIVE.equals(status) || GridStatus.INACTIVE.equals(status)) {\r\n\t\t\t\tgetRegistry().getHub().getConfiguration().custom.put(STATUS, status.toString());\r\n\t\t\t} else {\r\n\t\t\t\tthrow new IllegalArgumentException();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor (RemoteProxy proxy : getRegistry().getAllProxies().getSorted()) {\r\n\t\t\t\tNodeStatusServletClient nodeStatusClient = ((CustomRemoteProxy)proxy).getNodeStatusClient();\r\n\t\t\t\tnodeStatusClient.setStatus(status);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\tmsg = \"you must provide a 'status' parameter (either 'active' or 'inactive')\";\r\n\t\t\tstatusCode = 500;\r\n\t\t} catch (UnirestException | SeleniumGridException e) {\r\n\t\t\tmsg = String.format(\"Error while forwarding status to node: %s\", e.getMessage());\r\n\t\t\tstatusCode = 500;\r\n\t\t}\r\n\r\n\t\tresponse.setHeader(\"Content-Type\", MediaType.JSON_UTF_8.toString());\r\n\t\tresponse.setStatus(statusCode);\r\n\t\ttry {\r\n\t\t\tresponse.setContent(msg.getBytes(UTF_8));\r\n\t\t} catch (Throwable e) {\r\n\t\t\tthrow new GridException(e.getMessage());\r\n\t\t}\r\n\t}", "private void initData() {\n requestServerToGetInformation();\n }", "@Override\n\t\t\tpublic void onlogicRes(long server_id) {\n\t\t\t\tif (gameState == GAME_STATE_TOPLIST) {\n\t\t\t\t\tUserRequest.getUser().ReqTopList(); // 排行榜请求\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// case GAME_STATE_USER_VIEW://联网返回了发送好友到服务器\n\t\t\t\tIterator iterator = playerMap.keySet().iterator();\n\t\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t\tFaceBookPlayer player = playerMap.get(iterator.next());\n\t\t\t\t\tif (player.getid_server() == FaceBookPlayer.L_NULL) { // 表示没付过id\n\t\t\t\t\t\t// 联网成功发送请求\n\t\t\t\t\t\tUserViewReq.request(http, 0, player.getId_facebook(), false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(player != null && player.getOrderIndex() == FaceBookPlayer.I_NULL){\n\t\t\t\t\t\t// 联网成功发送请求\n\t\t\t\t\t\tUserViewReq.request(http, 0, player.getId_facebook(), false);\n\t\t\t\t\t \n\t\t\t\t}\n\t\t\t}", "private static void checkStatus() {\n\r\n\t\tDate date = new Date();\r\n\t\tSystem.out.println(\"Checking at :\"+date.toString());\r\n\t\tString response = \"\";\r\n\t\ttry {\r\n\t\t\tresponse = sendGET(GET_URL_COVAXIN);\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//System.out.println(response.toString());\r\n\t\tArrayList<Map> res = formatResponse(response);\r\n\r\n\t\tres = checkAvailability(res);\r\n\t\tif(res.size()>0)\r\n\t\t\tnotifyUser(res);\r\n\t\t//System.out.println(emp.toString());\r\n\t}", "public void handleApiConnected() {\r\n\t\thandler.post(new Runnable(){\r\n\t\t\tpublic void run(){\r\n\t\t \t// Display the list of sessions\r\n\t\t\t\tupdateList();\r\n\t\t\t}\r\n\t\t});\t\t\t\t\r\n }", "private void updateInfoValues() {\n menuPanel.updateInfoPanel( tugCount, simulation.getShipsOnSea(), simulation.getShipsDocked(), simulation.getShipsTugged());\n }", "private void update(boolean update)\n {\n ScoreboardPage page = pages.get(index);\n Objective obj = board.getObjective(slot);\n\n if (!page.hasCache()) {\n Player player = (listeners.isEmpty())\n ? null : listeners.get(listeners.keySet().iterator().next());\n\n page.createCache(library, player);\n\n if (page.shouldResetLastPage()) {\n for (String item : obj.getScoreboard().getEntries()) {\n obj.getScoreboard().resetScores(item);\n }\n }\n }\n\n if (page.getTitle() != null) {\n obj.setDisplayName(page.getTitle().next());\n }\n\n for (int i : page.getEntries().keySet()) {\n String text = page.getEntries().get(i).next();\n\n if (occupiedEntries.containsKey(i) && !occupiedEntries.get(i).equals(text)) {\n board.resetScores(occupiedEntries.get(i));\n occupiedEntries.remove(i);\n }\n\n if (text == null) {\n continue;\n }\n\n team.addEntry(text);\n obj.getScore(text).setScore(i);\n\n occupiedEntries.put(i, text);\n }\n\n if (update) {\n extra = page.getExtraDelay();\n ticks = delay + extra;\n\n page.clearCache();\n }\n }", "@Override\n\tpublic void onStatusChanged(Object arg0, STATUS status) {\n\t\tSystem.out.println(status);\n\t\tswitch (status) {\n\n\t\tcase LAYER_LOADED:\n\t\t\tif (!isPathShow && goodsMap != null && goodsMap.size() > 0) {\n\t\t\t\tshelfList.clear();\n\t\t\t\tsearchTime = 0;\n\t\t\t\tqueryLocator();\n\t\t\t\tisPathShow = true;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}", "protected void displayHome(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\n\t\tArticleDAO articleDAO = ArticleDAO.getInstance();\r\n\r\n\t\t// Getting all the articles as a list\r\n\t\tList<Article> listOfArticles = articleDAO.getAll();\r\n\r\n\t\trequest.setAttribute(\"Articles\", listOfArticles);\r\n\r\n\t\tRequestDispatcher dispatcher = getServletContext().getRequestDispatcher(\"/home.jsp\");\r\n\t\tdispatcher.forward(request, response);\r\n\t}", "public void loadPage() { \n\t \n\t if((sPref.equals(ANY)) && (wifiConnected || mobileConnected)) {\n\t \tnew DownloadXmlTask().execute(URL);\n\t }\n\t else if ((sPref.equals(WIFI)) && (wifiConnected)) {\n\t new DownloadXmlTask().execute(URL);\n\t } else {\n\t // show error\n\t } \n\t }", "public void run()\r\n {\n\ttopLevelSearch=FIND_TOP_LEVEL_PAGES;\r\n\ttopLevelPages=new Vector();\r\n\tnextLevelPages=new Vector();\r\n \r\n\t// Check to see if a proxy is being used. If so then we use IP Address rather than host name.\r\n\tproxyDetected=detectProxyServer();\r\n\t \r\n\tstartSearch();\r\n \r\n\tapp.enableButtons();\r\n\tapp.abort.disable();\r\n \r\n\tif(hitsFound == 0 && pageOpened == true)\r\n\t app.statusArea.setText(\"No Matches Found\");\r\n else if(hitsFound==1)\r\n\t app.statusArea.setText(hitsFound+\" Match Found\");\r\n else app.statusArea.setText(hitsFound+\" Matches Found\");\r\n }", "@Override\n public void refresh() {\n serverJList.removeAll();\n client.searchForServer();\n }", "public void refreshMapInformation() {\n\t\t((JLabel)components.get(\"timeElapsedLabel\")).setText(Integer.toString(ABmap.instance().getTimeElapsed()));\n\t\t((JLabel)components.get(\"oilInMapLabel\")).setText(Integer.toString(ABmap.instance().getOilInMap()));\n\t\t((JLabel)components.get(\"oilInStorageLabel\")).setText(Integer.toString(ABmap.instance().getOilInStorage()));\n\t\t((JProgressBar)components.get(\"oilCleanedProgressBar\")).setValue(100-((ABmap.instance().getOilInMap()*100)/ABmap.instance().initialOilCount));\n\t\t((JLabel)components.get(\"fuelUsedLabel\")).setText(Integer.toString(ABmap.instance().getFuelUsed()));\n\t\t((JLabel)components.get(\"simCompletedLabel\")).setText(Boolean.toString(ABmap.instance().isDone()));\n\t}", "private void setUpOverview() {\n mapInstance = GameData.getInstance();\n //get reference locally for the database\n db = mapInstance.getDatabase();\n\n //retrieve the current player and the current area\n currentPlayer = mapInstance.getPlayer();\n\n }", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\r\n\t\tprivate void checkJobInstanceStatus() {\r\n \t\r\n \tString checkId = UUID.randomUUID().toString();\r\n \t\r\n \tlogger.info(checkId + \", [LivingTaskManager]: start checkJobInstanceStatus\"\r\n \t\t\t+ \", mapSize:\" + livingJobInstanceClientMachineMap.size() \r\n \t\t\t+ \", keySet:\" + LoggerUtil.displayJobInstanceId(livingJobInstanceClientMachineMap.keySet()));\r\n \t\r\n \tint checkAmount = 0;\r\n \t\r\n \tIterator iterator = livingJobInstanceClientMachineMap.entrySet().iterator();\r\n \t\twhile(iterator.hasNext()) { \r\n \t\t\tMap.Entry entry = (Map.Entry)iterator.next();\r\n \t\t\tServerJobInstanceMapping.JobInstanceKey key = (ServerJobInstanceMapping.JobInstanceKey)entry.getKey();\r\n \t\t\t\r\n \t\t\tList<RemoteMachine> machineList = (List<RemoteMachine>)entry.getValue();\r\n \t\t\t\r\n \t\t\tif(CollectionUtils.isEmpty(machineList)) {\r\n \t\t\t\tlogger.info(checkId + \", [LivingTaskManager]: checkJobInstanceStatus machineList isEmpty\"\r\n \t \t\t\t+ \", mapSize:\" + livingJobInstanceClientMachineMap.size() + \", key:\" + key);\r\n \t\t\t\tcontinue ;\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tsynchronized(machineList) {\r\n \t\t\t\tIterator<RemoteMachine> iteratorMachineList = machineList.iterator();\r\n \t\t\t\twhile(iteratorMachineList.hasNext()) {\r\n \t\t\t\t\t\r\n \t\t\t\t\tRemoteMachine client = iteratorMachineList.next();\r\n \t\t\t\t\t\r\n \t\t\t\t\tResult<String> checkResult = null;\r\n try {\r\n client.setTimeout(serverConfig.getHeartBeatCheckTimeout());\r\n InvocationContext.setRemoteMachine(client);\r\n checkResult = clientService.heartBeatCheckJobInstance(key.getJobType(), key.getJobId(), key.getJobInstanceId());\r\n handCheckResult(key, checkResult, client);\r\n } catch (Throwable e) {\r\n logger.error(\"[LivingTaskManager]: task checkJobInstanceStatus error, key:\" + key, e);\r\n handCheckResult(key, null, client);\r\n } finally {\r\n \tcheckAmount ++;\r\n }\r\n \t\t\t\t\t\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\t\r\n \t\t}\r\n \t\t\r\n \t\tlogger.info(checkId + \", [LivingTaskManager]: finish checkJobInstanceStatus\"\r\n \t\t\t\t+ \", mapSize:\" + livingJobInstanceClientMachineMap.size() + \", checkAmount:\" + checkAmount);\r\n }", "public void run()\n {\n try\n {\n logger.debug(\"Starting server-side thread\");\n while (active)\n {\n List<Node> nodesFromQuery = null;\n if (clients.size() > 0)\n {\n nodesFromQuery = BeanLocator.getRouterService().findNodesWithNumberOfMessages(routerId);\n logger.debug(\"Number of nodesFromQuery for this routerId :\" + routerId + \" is:\" + nodesFromQuery.size());\n\n for (Node node : nodesFromQuery)\n {\n // if node exists in map\n if (this.nodes.get(node.getId()) != null)\n {\n logger.debug(\"Node already in map\");\n // check if something has been updated on the node - using hashcode\n\n logger.debug(this.nodes.get(node.getId()).getNumberOfMessagesHandled().toString());\n logger.debug(node.getNumberOfMessagesHandled().toString());\n boolean hasNumberOfMessagesChanged = !this.nodes.get(node.getId()).getNumberOfMessagesHandled().equals(node.getNumberOfMessagesHandled());\n if (hasNumberOfMessagesChanged)\n {\n logger.debug(\"Fire update event..\");\n // if something has changed fire update event\n this.nodes.put(node.getId(), node);\n fireNodeUpdatedEvent(node);\n } else\n {\n // nothing changed - ignore and log\n logger.info(\"Nothing changed on node :\" + node.getId());\n }\n } else\n {\n // else if node does not exist store the node in the map\n logger.debug(\"Storing node in map\");\n this.nodes.put(node.getId(), node);\n fireNodeUpdatedEvent(node);\n }\n }\n } else\n {\n logger.info(\"Thread running but no registered clients\");\n }\n Thread.sleep(CALLBACK_INTERVALL);\n }\n logger.debug(\"Stopping server-side thread. Clearing nodes and clients.\");\n clients.clear();\n nodes.clear();\n }\n catch (InterruptedException ex)\n {\n logger.warn(\"Thread interrupted.\", ex);\n }\n }", "void transStatus()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif(passenger != null && status.equals(\"soon\"))\r\n\t\t\t{\r\n\t\t\t\tService s_temp = new Service(passenger);\r\n\t\t\t\tdes = passenger.loc;\r\n\t\t\t\tmakeService(loc.i*80+loc.j,des.i*80+des.j);\r\n\t\t\t\tstatus = \"stop\";\r\n\t\t\t\tThread.sleep(1000);\r\n\t\t\t\tstatus = \"serve\";\r\n\t\t\t\tdes = passenger.des;\r\n\t\t\t\ts_temp.path.add(loc);\r\n\t\t\t\tmakeService(loc.i*80+loc.j,des.i*80+des.j,s_temp.path);\r\n\t\t\t\tstatus = \"stop\";\r\n\t\t\t\tThread.sleep(1000);\r\n\t\t\t\tcredit += 3;\r\n\t\t\t\tser_times += 1;\r\n\t\t\t\tservices.add(s_temp);\r\n\t\t\t\t//refresh:\r\n\t\t\t\tstatus = \"wait\";\r\n\t\t\t\tpassenger = null;\r\n\t\t\t}\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 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}", "private void setServerList() {\n ArrayList<ServerObjInfo> _serverList =\n ServerConfigurationUtils.getServerListFromFile(mContext, ExoConstants.EXO_SERVER_SETTING_FILE);\n ServerSettingHelper.getInstance().setServerInfoList(_serverList);\n\n int selectedServerIdx = Integer.parseInt(mSharedPreference.getString(ExoConstants.EXO_PRF_DOMAIN_INDEX, \"-1\"));\n mSetting.setDomainIndex(String.valueOf(selectedServerIdx));\n mSetting.setCurrentServer((selectedServerIdx == -1) ? null : _serverList.get(selectedServerIdx));\n }", "public void clientInfo() {\n uiService.underDevelopment();\n }", "public void run() {\n while (true) {\n try {\n // Poll server for snapshots and update client\n GameSnapshot snapshot = this.server.getSnapshot();\n client.updateDisplay(snapshot);\n Thread.sleep(250);\n } catch (InterruptedException e) {\n return;\n } catch (RemoteException e) {\n // Find a new master if current master is down\n GameServer newMaster = this.client.findNewMaster();\n if (newMaster != null)\n this.server = newMaster;\n else\n return;\n } catch (NotMasterException e) {\n // Find new master; if it can't, update its master manually\n GameServer newMaster = this.client.findNewMaster();\n if (newMaster != null)\n this.server = newMaster;\n else\n return;\n }\n }\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tObject server = serverDefinition.getServerFlag().getFlag();\n\t\t\t\t\tif (server == null) {\n\t\t\t\t\t\tshowPanel(CONNECTING_PANEL);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshowPanel(CONNECTED_PANEL);\n\t\t\t\t\t}\n\t\t\t\t}", "public void serverRestarting() {\n notifyServerRestart();\n }", "public void viewListofHomes() {\n\t\ttry {\n\t\t\t\n\t\t}catch(Exception e) {\n\t\t\tLog.addMessage(\"Failed to get list of homes\");\n\t\t\tSystem.out.println(e.getMessage().toString());\n\t\t\tAssert.assertTrue(false, \"Failed to get list of homes\");\n\t\t}\n\t}", "private void getStatus() {\n\t\t\n\t}", "private void addStatus(HttpServletRequest req, JSONObject siteConfigJson, WebUser user, URI resource) throws JSONException {\r\n \t\tString id = siteConfigJson.getString(ProtocolConstants.KEY_ID);\r\n \t\tSiteConfiguration siteConfiguration = SiteConfiguration.fromId(id);\r\n \t\tIHostedSite site = HostingActivator.getDefault().getHostingService().get(siteConfiguration, user);\r\n \t\tJSONObject hostingStatus = new JSONObject();\r\n \t\tif (site != null) {\r\n \t\t\thostingStatus.put(SiteConfigurationConstants.KEY_HOSTING_STATUS_STATUS, \"started\"); //$NON-NLS-1$\r\n \t\t\tString portSuffix = \":\" + req.getLocalPort(); //$NON-NLS-1$\r\n \t\t\t// Whatever scheme was used to access the resource, assume it's used for the sites too\r\n\t\t\t// Hosted site also shares same contextPath \r\n\t\t\tString hostedUrl = resource.getScheme() + \"://\" + site.getHost() + portSuffix + req.getContextPath(); //$NON-NLS-1$\r\n \t\t\thostingStatus.put(SiteConfigurationConstants.KEY_HOSTING_STATUS_URL, hostedUrl);\r\n \t\t} else {\r\n \t\t\thostingStatus.put(SiteConfigurationConstants.KEY_HOSTING_STATUS_STATUS, \"stopped\"); //$NON-NLS-1$\r\n \t\t}\r\n \t\tsiteConfigJson.put(SiteConfigurationConstants.KEY_HOSTING_STATUS, hostingStatus);\r\n \t}", "private void updateGUIStatus() {\r\n\r\n }", "int getServerState();", "@Override\r\n\tpublic String index() {\n\t\treturn \"服务器维护中。。。。\";\r\n\t}", "void updateDashboard() {\n\t}", "protected void loadData() {\n refreshview.setRefreshing(true);\n //小区ID\\t帐号\\t消息类型ID\\t开始时间\\t结束时间\n // ZganLoginService.toGetServerData(26, 0, 2, String.format(\"%s\\t%s\\t%s\\t%s\\t%d\", PreferenceUtil.getUserName(), msgtype, \"2015-01-01\", nowdate, pageindex), handler);\n //ZganCommunityService.toGetServerData(26, 0, 2, String.format(\"%s\\t%s\\t%s\\t%s\\t%d\", PreferenceUtil.getUserName(), msgtype, \"2015-01-01\", nowdate, pageindex), handler);\n ZganCommunityService.toGetServerData(40, String.format(\"%s\\t%s\\t%s\\t%s\", PreferenceUtil.getUserName(), funcPage.gettype_id(), String.format(\"@id=22,@page_id=%s,@page=%s\",funcPage.getpage_id(),pageindex), \"22\"), handler);\n }", "public void updatePossibleActions(Map<Integer, String> availability){\n System.out.println(availability);\n for (Integer i : availability.keySet()) {\n\n coverImages.get(i).setVisible(true);\n }\n\n for(int r=0;r<25;r++) {\n\n if (!availability.containsKey(r)) {\n\n coverImages.get(r).setVisible(false);\n }\n }\n }", "public void info(){\r\n System.out.println(\"Title : \" + title);\r\n System.out.println(\"Author . \" + author);\r\n System.out.println(\"Location : \" + location);\r\n if (isAvailable){\r\n System.out.println(\"Available\");\r\n }\r\n else {\r\n System.out.println(\"Not available\");\r\n }\r\n\r\n }", "public void refresh() {\n if (currentClient != null) {\n Page page = currentClient.getCurrentPage();\n if (page != null) {\n root.setCenter(page.getRoot());\n } else {\n root.setCenter(null);\n }\n }else{\n if (page != null) {\n root.setCenter(page.getRoot());\n } else {\n root.setCenter(null);\n }\n }\n root.setPrefWidth(1280);\n root.setPrefHeight(720);\n root.setTop(clientBar.getRoot());\n root.setRight(null); // remove any errors\n //this.mainStage.setScene(scene);\n mainStage.show();\n\n }", "private void doOK() {\n final JPPFWebSession session = (JPPFWebSession) getPage().getSession();\n final TableTreeData data = session.getTopologyData();\n final List<DefaultMutableTreeNode> selectedNodes = data.getSelectedTreeNodes();\n final CollectionMap<TopologyDriver, String> map = new ArrayListHashMap<>();\n for (final DefaultMutableTreeNode treeNode: selectedNodes) {\n final AbstractTopologyComponent comp = (AbstractTopologyComponent) treeNode.getUserObject();\n if ((comp.getParent() != null) && comp.isNode()) {\n final JPPFManagementInfo info = comp.getManagementInfo();\n if (info != null) map.putValue((TopologyDriver) comp.getParent(), comp.getUuid());\n }\n }\n for (final Map.Entry<TopologyDriver, Collection<String>> entry: map.entrySet()) {\n final TopologyDriver parent = entry.getKey();\n final NodeSelector selector = new UuidSelector(entry.getValue());\n try {\n parent.getForwarder().updateThreadPoolSize(selector, modalForm.getNbThreads());\n parent.getForwarder().updateThreadsPriority(selector, modalForm.getPriority());\n } catch(final Exception e) {\n log.error(e.getMessage(), e);\n }\n }\n }", "private void home(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tresponse.sendRedirect(\"/WebBuyPhone/admin/darkboard.jsp\");\n\t}", "public boolean availableServer(){\n for(int i = 0; i < cntServer; i++){\n if(serverArray[i].busy == false){return true;}\n }\n return false;\n }", "private void updateServerInfo() {\n ServerInfo serverInfo = new ServerInfo(serverConfig.getBaseURL(), serverConfig.getInfoURL(), serverRepositories.keySet());\n String serverInfoJson = new GsonBuilder().setPrettyPrinting().create().toJson(serverInfo);\n try {\n Files.write(Paths.get(\"\").resolve(Filenames.FILENAME_SERVERINFO), serverInfoJson.getBytes(StandardCharsets.UTF_8));\n } catch (IOException e) {\n log.error(\"could not write serverinfo file.\", e);\n }\n }", "public void statusChanged() {\n\t\tif(!net.getArray().isEmpty()) {\n\t\t\tigraj.setEnabled(true);\n\t\t}else\n\t\t\tigraj.setEnabled(false);\n\t\t\n\t\tupdateKvota();\n\t\tupdateDobitak();\n\t}", "public void populateGlobalHotspots() {\n\t\tnew Thread(new Runnable(){\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tairlineData = DataLookup.airlineStats();\n\t\t\t\tairportData = DataLookup.airportStats();\n\t\t\t\tmHandler.post(new Runnable(){\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tsetHotspotListData();\n\t\t\t\t\t}});\n\t\t\t}}).start();\n\t}", "public void run(){\n\t\t\t\t\t\taddToHashmap(key, timestamp);\r\n\r\n\t\t\t\t\t\treq.response().putHeader(\"Content-Type\", \"text/plain\");\r\n\t\t\t\t\t\treq.response().end();\r\n\t\t\t\t\t\treq.response().close();\r\n\t\t\t\t\t}", "GlobalUpdateStatus update(ServerConfiguration serverConfig, @Nullable ProgressMonitor monitor);", "private void controladorHome(Controlador controlador){\n \tthis.contLogout = controlador.getLogout();\n inicioUser.setControlLogout(contLogout);\n inicioAdmin.setControlLogout(contLogout);\n adminUsuarios.setControlLogout(contLogout);\n adminConfig.setControlLogout(contLogout);\n \t\n this.contToInicio = controlador.getToInicio();\n displayCollective.setControlToInicio(contToInicio);\n displayProject.setControlToInicio(contToInicio);\n informes.setControlToInicio(contToInicio);\n notif.setControlToInicio(contToInicio);\n nuevoColectivo.setControlToInicio(contToInicio);\n nuevoProyecto.setControlToInicio(contToInicio);\n perfil.setControlToInicio(contToInicio);\n\n this.contToPerfil = controlador.getToPerfil();\n inicioUser.setControlToPefil(contToPerfil);\n displayCollective.setControlToPefil(contToPerfil);\n displayProject.setControlToPefil(contToPerfil);\n informes.setControlToPefil(contToPerfil);\n notif.setControlToPefil(contToPerfil);\n nuevoColectivo.setControlToPefil(contToPerfil);\n nuevoProyecto.setControlToPefil(contToPerfil);\n\n this.contNotif = controlador.getNotif();\n inicioUser.setControlToNotif(contNotif);\n displayCollective.setControlToNotif(contNotif);\n displayProject.setControlToNotif(contNotif);\n informes.setControlToNotif(contNotif);\n notif.setControlToPefil(contToPerfil);\n nuevoColectivo.setControlToNotif(contNotif);\n nuevoProyecto.setControlToNotif(contNotif);\n perfil.setControlToNotif(contNotif);\n inicioAdmin.setControlToNotif(contNotif);\n adminUsuarios.setControlToNotif(contNotif);\n adminConfig.setControlToNotif(contNotif);\n }", "@When(\"Hotels List page has finished loading\")\n public void listpage_i_am_on_list_page() {\n listPage = new HotelsListPage(driver);\n listPage.check_page_title();\n }", "protected boolean isHomeRefreshable()\r\n/* 92: */ {\r\n/* 93:178 */ return false;\r\n/* 94: */ }", "public void updateServerSecurityMap() {\n \t\tif (isUpdating)\n \t\t\treturn;\n \t\tisUpdating = true;\n \t\tAsyncCallback<Map<String, String>> x = new AsyncCallback<Map<String, String>>() {\n \n \t\t\t@Override\n \t\t\tpublic void onSuccess(Map<String, String> result) {\n \t\t\t\tserverFeatures = new HashSet<String>();\n \t\t\t\tfor (Entry<String, String> entry : result.entrySet()) {\n \t\t\t\t\tserverFeatures.add(entry.getKey());\n \t\t\t\t\taddFeature(entry.getKey(), entry.getValue());\n \t\t\t\t}\n \t\t\t\tcancelCallsWithUnsupportedFeatures();\n \t\t\t}\n \n \t\t\t@Override\n \t\t\tpublic void onFailure(Throwable caught) {\n \t\t\t\tGWT.log(\"RPC-The server does not fully support the kkProtocol\",\n \t\t\t\t\t\tcaught);\n \t\t\t\tsocket.close();\n \t\t\t}\n \t\t};\n \t\t/*\n \t\t * To remove a circular dependency we make the call directly here\n \t\t */\n \t\texecute(x, new Class<?>[] { Map.class, String.class, String.class },\n \t\t\t\tcom.kk_electronic.kkportal.core.rpc.RemoteServer.class,\n \t\t\t\t\"getSecurityMap\");\n \t}", "@Override\n public void periodic() {\n UpdateDashboard();\n }", "@Override\nprotected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\tList<query_status_Bean> query_status_list=new query_status_Dao().select();\n\trequest.setAttribute(\"query_status_list\", query_status_list);\n\trequest.getRequestDispatcher(\"query_status_list_jsp.jsp\").forward(request, response);\n\t}", "public void initialStatus()\r\n\t{\r\n\t\tSystem.out.println(\"--------- The Current Status of Each Elevator ------\");\t\r\n\t\t\r\n\t\tfor(int i =0;i<numberOfElevators; i++)\r\n\t\t{\r\n\t\t\tElevator temp = new Elevator();\r\n\t\t\ttemp.setElevatorNumber(i);\r\n\t\t\tinitialElevatorFloor = (int)(Math.random()*((55-0)+1)); \r\n\t\t\ttemp.setCurrentFloor(initialElevatorFloor);\r\n\t\t\tavailableElevadors.add(temp);\r\n\t\t\tSystem.out.println(\" Elevator no.\" + temp.getElevatorNumber()+\" The current Floor \" + temp.getCurrentFloor());\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "public HDict onAbout()\r\n {\r\n if (!cache.initialized()) \r\n throw new IllegalStateException(Cache.NOT_INITIALIZED);\r\n\r\n if (LOG.isTraceOn())\r\n LOG.trace(\"onAbout\");\r\n\r\n try\r\n {\r\n HDictBuilder hd = new HDictBuilder();\r\n\r\n hd.add(\"serverName\", Sys.getStation().getStationName());\r\n\r\n BModule baja = BComponent.TYPE.getModule();\r\n hd.add(\"productName\", \"Niagara AX\");\r\n hd.add(\"productVersion\", baja.getVendorVersion().toString());\r\n hd.add(\"productUri\", HUri.make(\"http://www.tridium.com/\"));\r\n\r\n BModule module = BNHaystackService.TYPE.getModule();\r\n hd.add(\"moduleName\", module.getModuleName());\r\n hd.add(\"moduleVersion\", module.getVendorVersion().toString());\r\n hd.add(\"moduleUri\", HUri.make(\"https://bitbucket.org/jasondbriggs/nhaystack\"));\r\n\r\n return hd.toDict();\r\n }\r\n catch (RuntimeException e)\r\n {\r\n e.printStackTrace();\r\n throw e;\r\n }\r\n }", "public static void update() {\n\t\tnew Thread() {\n\t\t\tpublic void run() {\n\n\t\t\t\ttry {\n\t\t\t\t\tserverSocket2 = new ServerSocket(50000);\n\t\t\t\t\twhile (yes) {\n\t\t\t\t\t\tSocket connection = serverSocket2.accept();\n\n\t\t\t\t\t\tString out = \"\";\n\t\t\t\t\t\tDataOutputStream output = new DataOutputStream(\n\t\t\t\t\t\t\t\tconnection.getOutputStream());\n\t\t\t\t\t\tfor (int j = 0; j < count; j++) {\n\t\t\t\t\t\t\tout += j + \"::\" + b[j].getText() + \" /:\"; // (index,username)\n\t\t\t\t\t\t}\n\t\t\t\t\t\toutput.writeBytes(out + \"\\n\");\n\t\t\t\t\t\tconnection.close();\n\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}.start();\n\t}", "@Override\n protected void initView() {\n springView.setListener(new SpringView.OnFreshListener() {\n @Override\n public void onRefresh() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n isRefresh = true;\n currentPage = 1;\n handler.sendEmptyMessage(ConstantValue.SHUAXIN_SUCESS);\n }\n }).start();\n }\n\n @Override\n public void onLoadmore() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n isRefresh = false;\n currentPage++;\n handler.sendEmptyMessage(ConstantValue.JIAZAI_SUCESS);\n }\n }).start();\n }\n });\n }", "public boolean updateSoftware()\n\t{\n\t\tif (this.updater.checkNewSoftwareUpdate() == false)\n\t\t{\n\t\t\tSystem.out.println(\"Can't connect to the server\");\n\t\t}\n\t\t\n\t\tif (this.updater.isNeedUpdate() == false)\n\t\t{\n\t\t\tthis.view.setState(new String (\"There is no update\"));\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tthis.view.setState(new String(\"Need New Update\"));\n\t\tthis.view.addProgress();\n\t\t\n\t\tthis.view.setState(new String(\"Start Core Update\"));\n\t\tif (this.updater.updateCore() == false)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tthis.view.setState(new String(\"Core Update Done\"));\n\t\tthis.view.addProgress();\n\t\t\n\t\tthis.view.setState(new String(\"Start Navigation Update\"));\n\t\tif (this.updater.updateNavigation() == false)\n\t\t{\n\t\t\treturn false;\n\t\t\t\n\t\t}\n\t\tthis.view.addProgress();\n\t\tthis.view.setState(new String(\"Navigation Update Done\"));\n\t\t\n\t\tthis.view.setState(new String(\"Start Plugins List Update\"));\n\t\tif (this.updater.updatePluginList() == false)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tthis.view.addProgress();\n\t\tthis.view.setState(new String(\"Plugins List Update Done\"));\n\t\tthis.view.setState(new String(\"Start Workspace Update\"));\n\t\tif (this.updater.updateWorkspace() == false)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tthis.view.addProgress();\n\t\tthis.view.setState(new String(\"Workspace Update Done\"));\n\t\tthis.view.setState(new String(\"Installing Update\"));\n\t\tif (this.updater.patchUpdate() == false)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tthis.view.setState(new String(\"Medley Update Done\"));\n\t\tthis.view.addProgress();\n\t\tthis.view.showPopUpSucces();\n\t\treturn true;\n\t}", "public void run() {\n boolean run = true;\n while (run) {\n try {\n // Update time and \"log\" it.\n d = new Date();\n System.out.println(d);\n // Update all clients.\n String currentPage = wContext.getCurrentPage();\n Collection sessions = wContext.getScriptSessionsByPage(currentPage);\n Util utilAll = new Util(sessions);\n utilAll.setValue(\"divTest\", d.toString(), true);\n // Next update in one second.\n sleep(1000);\n } catch (Exception e) {\n // If anything goes wrong, just end, but also set pointer to this\n // thread to null in parent so it can be restarted.\n run = false;\n t = null;\n }\n }\n }", "private void firstRunning() {\n for (int page = 1; page < 50; page++) {\n vacancies.addAll(parser.parseHtml(URL + page, null));\n }\n LOG.info(vacancies.size());\n try (VacancyDao vacancyDao = new VacancyDao(properties)) {\n vacancyDao.insertSet(vacancies);\n vacancyDao.insertLastUpdateDate(new Date().getTime());\n } catch (Exception e) {\n LOG.error(e.getMessage(), e);\n }\n }", "private void refreshServerList() {\n\t\tcurrentRequestId++;\n\t\tserverNames.clear();\n\t\tserverTable.clear();\n\t\tnew Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\taddresses = client.discoverHosts(WifiHelper.UDP_PORT, 1000);\n\t\t\t\tint removed = 0;\n\t\t\t\tfor(int i = 0; i + removed < addresses.size(); i++) {\n\t\t\t\t\tsynchronized(client) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tclient.connect(1000, addresses.get(i - removed), WifiHelper.TCP_PORT, WifiHelper.UDP_PORT);\n\t\t\t\t\t\t\tclient.sendTCP(new NameRequest(currentRequestId, addresses.size()));\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tclient.wait(5000);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\taddresses.remove(i);\n\t\t\t\t\t\t\tremoved++;\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}).start();\n\t}", "public void onServerSucceeded() {\n if (offline) {\n statusObserver.onServerCameBack();\n offline = false;\n }\n }", "public void refresh() {\r\n\t\tmainGUI.getPlayerFrame().setMyTurn(\r\n\t\t\t\tclient.getID() == island.getCurrentPlayer().getID());\r\n\t\ttradingMenu.update();\r\n\t\tsupplyPanel.update();\r\n\t\tcardMenu.update();\r\n\t\trefreshOpponents();\r\n\t}", "public void requestServerData() throws IOException {\n Iterator it = gameServers.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry<InetSocketAddress, GameServer> pair = (Map.Entry) it.next();\n pair.getValue().requestAll();\n }\n }", "public String home()\n\t{\n\t\treturn SUCCESS;\n\t}", "@RequestMapping(value=\"/indexManager.go\", method={RequestMethod.GET})\r\n public String indexShow(HttpServletRequest req) {\r\n \r\n int n = service.guestcount();\r\n req.setAttribute(\"n\", n);\r\n \r\n int t = service.hostcount();\r\n req.setAttribute(\"t\", t);\r\n \r\n RowBounds rowBounds = new RowBounds(0, 3); \r\n \r\n List<HashMap<String, Object>> indexguestqnaList = service.Showindexguestqna(rowBounds); \r\n List<HashMap<String, Object>> indexhostqnaList = service.Showindexhostqna(rowBounds);\r\n List<HashMap<String, Object>> indexnoticeList = service.Showindexnotice(rowBounds);\r\n \r\n // 인덱스 페이지에 나타내기 위해서 년도를 받아오자\r\n GregorianCalendar today = new GregorianCalendar(); \r\n int year = today.get(today.YEAR);\r\n \r\n // 인덱스 페이지에 그래프 뽑아오기\r\n String Graphyear = req.getParameter(\"year\");\r\n // System.out.println(\"year : \" + Graphyear);\r\n \r\n // 인덱스 해당 년의 총 수입 뽑아오기\r\n HashMap<String, String> map = new HashMap<String, String>();\r\n map.put(\"Graphyear\", Graphyear);\r\n \r\n int totalincome = service.totalincome(map);\r\n \r\n // 오늘 접속자 수 구하기\r\n int jintianCount = service.jintianCount();\r\n \r\n // 지구본에 들어갈 Q&A 가져오기\r\n List<HashMap<String, Object>> LingqnaList = service.ShowqnaList(); \r\n \r\n // 알람 누르지 않은 갯수 구하기\r\n int LingCount = service.LingCount();\r\n \r\n req.setAttribute(\"indexguestqnaList\", indexguestqnaList); \r\n req.setAttribute(\"indexhostqnaList\", indexhostqnaList);\r\n req.setAttribute(\"indexnoticeList\", indexnoticeList);\r\n req.setAttribute(\"year\", year);\r\n req.setAttribute(\"Graphyear\", Graphyear);\r\n req.setAttribute(\"totalincome\", totalincome);\r\n req.setAttribute(\"jintianCount\", jintianCount);\r\n req.setAttribute(\"LingqnaList\", LingqnaList);\r\n req.setAttribute(\"LingCount\", LingCount);\r\n \r\n return \"Manager/index.tilesM\";\r\n }", "@Override\n public void notifyStatusObservers() {\n for(StatusObserver statusObserver : statusObservers){\n //TODO maybe get status render info from current selection instead of entities. This would remove the double calls to functions in EntityOwnership\n StatusRenderInformation temp = entities.returnStatusRenderInformation();\n statusObserver.update(entities.returnStatusRenderInformation());\n }\n }", "@RequestMapping(method = RequestMethod.GET)\n public ModelAndView home() {\n page = new ModelAndView();\n page.setViewName(\"Statistique\");\n page.addObject(\"resources\", resourceService.listMainMenu());\n page.addObject(\"proms\", articleService.getFiveLastProms());\n page.addObject(\"mostPlayedClasses\", statsService.listXMostPlayedClasses(5));\n page.addObject(\"mostPlayedRaces\", statsService.listXMostPlayedRaces(5));\n page.addObject(\"mostPlayedSpecializations\", statsService.listXMostPlayedSpecialization(5));\n page.addObject(\"usersWithoutAvatar\", statsService.listUsersWithoutAvatar());\n page.addObject(\"mostActiveUsers\", statsService.listMostActiveUsers(5));\n if (user != null)\n page.addObject(\"userResources\", resourceService.listUserResources(user.getGroup().getId()));\n return page;\n }", "ResponseDTO startAllServers();", "public void refresh() {\n/* 93 */ if (!this.initialized)\n/* 94 */ return; synchronized (this.o) {\n/* */ \n/* 96 */ this.wanService = null;\n/* 97 */ this.router = null;\n/* 98 */ this.upnpService.getControlPoint().search();\n/* */ } \n/* */ }", "private void setAvailableGames() {\n try {\n listView.getItems().clear();\n DataOutputStream dataOutputStream = new DataOutputStream(socket.getOutputStream());\n dataOutputStream.writeUTF(\"GLst\");\n ObjectInputStream objectInputStream = new ObjectInputStream(socket.getInputStream());\n HashMap<String, String> list = (HashMap<String, String>) objectInputStream.readObject();\n for (String roomCode : list.keySet()) {\n HBox hboxList = new HBox();\n hboxList.setSpacing(8);\n Button buttonJoin = new Button(\"Join\");\n buttonJoin.setOnAction(event -> joinGameRoom(roomCode));\n Separator separator = new Separator();\n separator.setOrientation(Orientation.VERTICAL);\n Label roomName = new Label(list.get(roomCode));\n roomName.setFont(Font.font(\"Arial\", 20));\n hboxList.getChildren().add(buttonJoin);\n hboxList.getChildren().add(separator);\n hboxList.getChildren().add(roomName);\n listView.getItems().add(hboxList);\n }\n } catch (IOException | ClassNotFoundException e) {\n e.printStackTrace();\n }\n }", "static private void showMissions() {\n\n Iterator iteratorMissionStatus = allMissions.missionStatus.entrySet().iterator();\n\n while (iteratorMissionStatus.hasNext()) {\n HashMap.Entry entry = (HashMap.Entry) iteratorMissionStatus.next();\n System.out.println((String) entry.getKey() + \": \");\n\n if ((boolean) (entry.getValue()) == false) {\n System.out.print(\"mission in progress\");\n System.out.println(\"\");\n }\n if ((boolean) (entry.getValue()) == true) {\n System.out.print(\"mission is complete\");\n System.out.println(\"\");\n }\n System.out.println(\"\");\n\n }\n }", "private boolean updateServerTableStatus(Context ctx) {\n if(ctx == null)\n return false;\n\n //Check if network connection is available\n ConnectivityManager connMgr = (ConnectivityManager) ctx.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n if (networkInfo != null && networkInfo.isConnected()) {\n UpdateTableStatusTask updateTask = new UpdateTableStatusTask(ctx);\n updateTask.execute(this);\n }\n\n return true;\n\n }", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String home(Locale locale, Model model) {\n\t\tlogger.info(\"Welcome home! The client locale is {}.\", locale);\n\t\t\n\t\tDate date = new Date();\n\t\tDateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG, locale);\n\t\t\n\t\tString formattedDate = dateFormat.format(date);\n\t\t\n\t\tmodel.addAttribute(\"serverTime\", formattedDate );\n\t\t\n\t\t\n\t\t/*\n\t\t main.jsp에서 보여줄 1차 카테고리에 해당하는 상품 4개씩 각각출력하는 작업\n\t\t * */\n\t\t\n\t\t//Top카테고리에 해당하는 상품 4개출력작업\n\t\t\n\t\tList<ProductVO> hardList = service.mainProductList(1);\n\t\tList<ProductVO> softList = service.mainProductList(2);\n\t\tList<ProductVO> peripheralList = service.mainProductList(3);\n\t\tList<ProductVO> bestList = service.mainProductList(4);\n\t\t\n\t\tList<ProductVO> lastList = service.getLast();\n\n\t\t\n\t\tmodel.addAttribute(\"hardList\", hardList );\n\t\tmodel.addAttribute(\"softList\", softList );\n\t\tmodel.addAttribute(\"peripheralList\", peripheralList );\n\t\tmodel.addAttribute(\"bestList\",bestList );\n\t\tmodel.addAttribute(\"lastList\", lastList);\n\t\t\n\t\treturn \"main\";\n\t}", "private static void CLIapplication() {\n\n\t\tboolean done = false;\n\t\tdo {\n\t\t\tint choice = HQmenu();\n\t\t\tSite newSite;\n\n\t\t\tswitch(choice) {\n\t\t\tcase 1:\n\t\t\t\tSystem.out.println(\"Register exchange office\");\n\t\t\t\tnewSite = createNewSite();\n\t\t\t\tif(sites.containsKey(newSite.getSiteName())) {\n\t\t\t\t\tSystem.out.println(\"Site already registred!1\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsites.putIfAbsent(newSite.getSiteName(), newSite);\t\t\t\t\t\n\t\t\t\t\twriteNewSiteToConfigFile(newSite.getSiteName());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tif(sites.isEmpty()) {\n\t\t\t\t\tSystem.out.println(\"You need to register site(s) first.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tCLIHelper.menuInput();\n\t\t\t\tbreak;\n\t\t\tcase 0:\n\t\t\t\tdone = true;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Not a valid menu choice!\");\n\t\t\t}\n\t\t\tlogger.info(\"-------Task_Done-------\\n\");\n\t\t}while(!done);\n\t}" ]
[ "0.5733776", "0.56841236", "0.5616272", "0.5560948", "0.5454774", "0.5442053", "0.5436939", "0.54083604", "0.5391235", "0.53814244", "0.5375701", "0.53137213", "0.5312211", "0.5269829", "0.52530295", "0.523761", "0.5199967", "0.519943", "0.5177509", "0.5175374", "0.5173698", "0.51693517", "0.51693064", "0.51671684", "0.5158564", "0.5155299", "0.51538044", "0.51434356", "0.5128769", "0.51163876", "0.51077044", "0.5098769", "0.50954825", "0.50884783", "0.5087893", "0.50830996", "0.5079626", "0.5073242", "0.5064741", "0.50631875", "0.506308", "0.5055006", "0.50530696", "0.5052858", "0.5044385", "0.503879", "0.5038307", "0.5018703", "0.5018397", "0.5017111", "0.5010522", "0.5010317", "0.5008991", "0.5002012", "0.5002007", "0.4999809", "0.49994576", "0.49966064", "0.49961746", "0.49942052", "0.4993726", "0.4989702", "0.4982888", "0.49828634", "0.49821946", "0.49791443", "0.49749026", "0.49669686", "0.49632767", "0.4958483", "0.49579167", "0.49521434", "0.49492335", "0.49483988", "0.49472046", "0.49469262", "0.49360874", "0.49354446", "0.49332058", "0.49323997", "0.4931655", "0.49181905", "0.49144122", "0.491251", "0.4911317", "0.49094385", "0.49070778", "0.4904062", "0.4901726", "0.48982933", "0.4894453", "0.48920783", "0.48881555", "0.48865438", "0.4885168", "0.48835272", "0.48823345", "0.48812285", "0.48781177", "0.4878026", "0.48694465" ]
0.0
-1
Stop any existing instances.
private boolean generateDeviceImages() throws Exception { mDevice.executeShellCommand(STOP_CMD); // Start instrumentation test. final CollectingOutputReceiver receiver = new CollectingOutputReceiver(); mDevice.executeShellCommand(START_CMD, receiver, TEST_RESULT_TIMEOUT, TimeUnit.MILLISECONDS, 0); return receiver.getOutput().contains("OK "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void stopAll();", "public void stop() {}", "public void stop() {\n if (isStop.compareAndSet(false, true)) {\n if (bootstrap.config().group() != null) {\n Future future = bootstrap.config().group().shutdownGracefully();\n ((io.netty.util.concurrent.Future) future).syncUninterruptibly();\n }\n for (BrpcChannelGroup channelGroup : healthyInstances) {\n channelGroup.close();\n }\n for (BrpcChannelGroup channelGroup : unhealthyInstances) {\n channelGroup.close();\n }\n if (timeoutTimer != null) {\n timeoutTimer.stop();\n }\n if (namingService != null) {\n namingService.unsubscribe(subscribeInfo);\n }\n if (healthCheckTimer != null) {\n healthCheckTimer.stop();\n }\n if (loadBalanceStrategy != null) {\n loadBalanceStrategy.destroy();\n }\n if (callbackThread != null) {\n callbackThread.shutdown();\n }\n if (threadPool != null) {\n threadPool.stop();\n }\n }\n }", "public void stop() {\n running = false;\n }", "public void stop()\n {\n running = false;\n }", "public void stop() {\n\t\tSystem.out.println(\"Stopping application\");\n\t\trunning = false;\n\t}", "public synchronized void stop() {\n this.running = false;\n }", "public void stop() {\r\n running = false;\r\n }", "private void stop()\n {\n if(running)\n {\n scheduledExecutorService.shutdownNow();\n running = false;\n }\n }", "public void stopping() {\n super.stopping();\n }", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop() {\n }", "public void stop() {\n }", "void stop()\n {\n log.info(\"Begin stop(), instance = '\" + instance + \"'\");\n\n if (isAlive())\n {\n processor.stop();\n try { t.join(); } catch (InterruptedException e) {}\n running = false;\n }\n\n log.info(\"End stop(), instance = '\" + instance + \"'\");\n }", "public void stop() {\n _running = false;\n }", "public final void stop() {\n running = false;\n \n \n\n }", "public void stop()\n\t{\n\t\trunning = false;\n\t}", "public void stop() {\n\t\trunning = false;\n\t\tfor (ArionumHasher hasher : hashers) {\n\t\t\thasher.setForceStop(true);\n\t\t}\n\n\t\tthreadCollection.clear();\n\t\thashers.clear();\n\t}", "public void stop(){\n running = false;\n }", "public void stop()\n {\n }", "public void stop() {\n\t\tthis.controller.terminate();\n\t}", "public void stop() {\n\t}", "public void stop() {\n \t\tfor (Expirator e : expirators) {\n \t\t\te.stop();\n \t\t}\n \t}", "public void stop() {\n server.stop();\n }", "public void stopInstance(Instance instance) throws IOException {\n\t\tCore.stopInstance(instance, getHttpMethodExecutor());\n\n\t}", "void clearInstances();", "public void stopRunning() {\n try {\n _running = false;\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public synchronized void stop() {\n stopping = true;\n }", "public void stop() {\n\t\t\n\t}", "public void stop()\n {\n storage.stop();\n command.stop();\n }", "public void stopping();", "public void stop_all(){\n\t\tfor(Event_Process p:processes){\r\n\t\t\tp.stop();\r\n\t\t}\r\n\t}", "public void stop(){\n }", "public static void shutDown(){\n for(int i = PS3_LIST_.size()-1; i >= 0; i--){\n PS3 instance = PS3_LIST_.get(i);\n instance.setLed(false);\n instance.destroy();\n }\n PS3Logger.log(PS3Logger.TYPE.DEBUG, null, \"PS3 SHUTDOWN\");\n }", "public void stop() {\n // stop all workers and sessions.\n Iterator<Map.Entry<TauSession, Worker>> it\n = sessionToWorkerMap.entrySet().iterator();\n\n while (it.hasNext()) {\n Map.Entry<TauSession, Worker> entry = it.next();\n entry.getValue().stop();\n }\n\n synchronized (lock) {\n sessionToWorkerMap.clear();\n sessionsList.clear();\n }\n }", "public void stopAll() {\n List<String> startedEvents = new ArrayList<>(started.keySet());\n for (String event : startedEvents) {\n stop(event);\n }\n started.clear();\n }", "public void stop() {\n stop = true;\n }", "public void stop() {\n if (this.runningTaskId != -1) {\n plugin.getServer().getScheduler().cancelTask(this.runningTaskId);\n }\n reset(true);\n running = false;\n }", "public void stopAll() throws DynamicCallException, ExecutionException{\n call(\"stopAll\").get();\n }", "void stop()\n {\n this.service_skeleton.stop(0);\n this.registration_skeleton.stop(0);\n }", "public void stopped();", "public void terminate() {\r\n running = false;\r\n }", "public void stopPropose(int instanceId);", "public void stop() {\n log.info(\"Stopped\");\n execFactory.shutdown();\n cg.close();\n }", "public List<InstanceStateChange> terminateInstances() {\n final TerminateInstancesRequest terminateInstancesRequest = new TerminateInstancesRequest(getInstanceIds());\n final TerminateInstancesResult result = ec2.terminateInstances(terminateInstancesRequest);\n return result.getTerminatingInstances();\n }", "public void stop(){\n\t\t\n\t}", "private void stop() {\r\n\t\t\tstopped = true;\r\n\t\t}", "@Override public void stop() {\n\t\t_active = false;\n\t}", "public void terminate(){\n running = false;\n }", "public void stop() {\n\t\texec.stop();\n\t}", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "@Override\n\tpublic void terminateInstances(ITerminateInstancesRequest req) {\n\t\t\n\t}", "void stop() throws Exception {\n var components =\n List.of(metaStorageManager, raftManager, clusterService, cfgManager, vaultManager);\n\n for (IgniteComponent igniteComponent : components)\n igniteComponent.beforeNodeStop();\n\n for (IgniteComponent component : components)\n component.stop();\n }", "public void stop() {\n \tif (elevatorControllerList != null) {\n \t\tfor(ElevatorController elevator : elevatorControllerList) {\n \t\t\televator.stop();\n \t\t}\n \t}\n \tif(mSchedulerFuture != null) {\n \t\tmSchedulerFuture.cancel(false);\n \t}\n \tif(mHandlerFuture != null) {\n \t\tmHandlerFuture.cancel(false);\n \t}\n \tscheduledExecutorService.shutdown();\n }", "public final void stopRunning() {\n\t\t_running = false;\n\t}", "public void stop() {\n\t\tthis.stopper = true;\n\t}", "public void stop(){\n return;\n }", "public abstract void stop();", "public abstract void stop();", "public abstract void stop();", "public abstract void stop();", "public abstract void stop();", "public void stopServer() {\n stop();\n }", "public void stop () {\n if (server != null)\n server.shutDown ();\n server = null;\n }", "public void stop() {\n System.out.println(\"STOP!\");\n xp.stop();\n }", "@Override\n public void stop() {}", "public void stopEngine(){\r\n isEngineRunning = false;\r\n System.out.println(\"[i] Engine is no longer running.\");\r\n }", "public void stop() {\n executor.shutdownNow();\n rescanThread.interrupt();\n }", "public void stop()\r\n\t{\r\n\t\tdoStop = true;\r\n\t}", "public void stop() {\n System.err.println(\"Server will stop\");\n server.stop(0);\n }", "public void shutdown()\n {\n this.running = false;\n }" ]
[ "0.71242726", "0.6826996", "0.68173105", "0.67539126", "0.6746608", "0.6741254", "0.67398703", "0.6732989", "0.6730785", "0.66878843", "0.664806", "0.664806", "0.664806", "0.664806", "0.664806", "0.664806", "0.664806", "0.664806", "0.664806", "0.664806", "0.664806", "0.664806", "0.664806", "0.664806", "0.664806", "0.6644571", "0.6644571", "0.6631349", "0.66226584", "0.6602843", "0.6581488", "0.6576927", "0.65613586", "0.65564084", "0.65102816", "0.6508915", "0.65020156", "0.64975137", "0.64534575", "0.64443886", "0.64400965", "0.64281267", "0.6408613", "0.6405918", "0.6402731", "0.6400691", "0.63907725", "0.637412", "0.63460016", "0.63396764", "0.6318207", "0.63161755", "0.63133854", "0.6313323", "0.6313074", "0.63075435", "0.6303015", "0.6293578", "0.6292465", "0.62906545", "0.62801486", "0.6276289", "0.6271707", "0.62641805", "0.62537956", "0.62537956", "0.62537956", "0.62537956", "0.62537956", "0.62537956", "0.62537956", "0.62537956", "0.62537956", "0.62537956", "0.62537956", "0.62537956", "0.62537956", "0.62537956", "0.62537956", "0.62537956", "0.62537956", "0.6241443", "0.62395376", "0.6238458", "0.6231339", "0.6224576", "0.6220007", "0.6216346", "0.6216346", "0.6216346", "0.6216346", "0.6216346", "0.62162215", "0.620561", "0.6203842", "0.6187675", "0.6186123", "0.6181321", "0.6179158", "0.6176876", "0.6163457" ]
0.0
-1
write your code here
public static void main(String[] args) { boolean result = shouldWakeUp(true, 8); System.out.println(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logic(){\r\n\r\n\t}", "public static void generateCode()\n {\n \n }", "@Override\n\tprotected void logic() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "void pramitiTechTutorials() {\n\t\n}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void ganar() {\n // TODO implement here\n }", "public static void main(String[] args) {\n // write your code here - this is called comment and it always starts with double slash\n // and comlier will ignore this because of the // sign.\n // I am gonna say hello\n // JAVA IS CASE SENSITIVE LANGUAGE\n // System and system are very different things in java\n //Hello AND hello are different for java\n // System.out.println(\"Hello Batch 15!\");\n // System.out.println(\"I am still here.\");\n // System.out.println(\"I love Java.\");\n\n // Write a program to display your information.\n // When you run it, it should have this outcome.\n // I am your name here\n // I am from batch 15\n // I am from your city here\n // I love Java\n\n System.out.println(\"I am Sevim.\");\n System.out.println(\"I am from Batch 15.\");\n System.out.println(\"I'm from New Jersey.\");\n System.out.println(\"I love Java.\");\n\n\n\n }", "CD withCode();", "private stendhal() {\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}", "public void genCode(CodeFile code) {\n\t\t\n\t}", "public void hello(){\n\t\t\r\n \t\r\n\t\t\r\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void baocun() {\n\t\t\n\t}", "public void mo38117a() {\n }", "public void furyo ()\t{\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private void strin() {\n\n\t}", "public void themesa()\n {\n \n \n \n \n }", "Programming(){\n\t}", "@Override\n\tvoid output() {\n\t\t\n\t}", "private void yy() {\n\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "void rajib () {\n\t\t \n\t\t System.out.println(\"Rajib is IT Eng\");\n\t }", "private void kk12() {\n\n\t}", "public void edit() {\n\t\tSystem.out.println(\"编写java笔记\");\r\n\t}", "public static void main(String[] args) {\n\t// write your code here\n }", "private static void ThridUmpireReview() {\n\t\tSystem.out.println(\" Umpier Reviews the Score Board\");\n\t\t \n\t\t\n\t}", "@Override\r\n\t\tpublic void doDomething() {\r\n\t\t\tSystem.out.println(\"I am here\");\r\n\t\t\t\r\n\t\t}", "protected void mo6255a() {\n }", "public void gen(CodeSeq code, ICodeEnv env) {\n\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "public void working()\n {\n \n \n }", "@Override\n\tprotected void postRun() {\n\n\t}", "public void perder() {\n // TODO implement here\n }", "public void smell() {\n\t\t\n\t}", "protected void execute() {\n\t\t\n\t}", "public void mo55254a() {\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void orgasm() {\n\t\t\n\t}", "public void cocinar(){\n\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n\tprotected void interr() {\n\t}", "public void run() {\n\t\t\t\t\n\t\t\t}", "protected void execute() {\n\n\n \n }", "@Override\n public void execute() {\n \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\r\n\tpublic void crawl_data() {\n\t\t\r\n\t}", "@Override\n public void memoria() {\n \n }", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "@Override\r\n\tpublic void code() {\n\t\tus.code();\r\n\t\tSystem.out.println(\"我会java...\");\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "protected void display() {\n\r\n\t}", "private void sout() {\n\t\t\n\t}", "private static void oneUserExample()\t{\n\t}", "public void nhapdltextlh(){\n\n }", "public void miseAJour();", "protected void additionalProcessing() {\n\t}", "private void sub() {\n\n\t}", "@Override\n\tpublic void view() {\n\t\t\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\r\n\tpublic void engine() {\r\n\t\t// TODO Auto-generated method stub\t\t\r\n\t}", "@Override\r\n\tpublic void code() {\n\t\tSystem.out.println(\"我会C语言....\");\r\n\t}", "void mo67924c();", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\r\n public void run() {\n basicEditor.createEdge(); // replaced Bibianas method with Moritz Roidl, Orthodoxos Kipouridis\r\n }", "public void mo5382o() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "public void mo3376r() {\n }", "public static void main(String[] args)\r\n {\n System.out.println(\"Mehedi Hasan Nirob\");\r\n //multiple line comment\r\n /*\r\n At first printing my phone number\r\n then print my address \r\n then print my university name\r\n */\r\n System.out.println(\"01736121659\\nJamalpur\\nDhaka International University\");\r\n \r\n }", "void kiemTraThangHopLi() {\n }", "public void skystonePos5() {\n }", "public final void cpp() {\n }", "public final void mo51373a() {\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"This is the main class of this project\");\r\n\t\tSystem.out.println(\"how about this\");\r\n\r\n\t\t\r\n\t\tSystem.out.println(\"new push\");\r\n\r\n\t\t//how to update this line\r\n\t\t\r\n\t\tSystem.out.println(\"hello there\");\r\n\r\n\t\tSystem.out.println(\"zen me shuoXXXXXXXXXXXKKKKkKKKKKKXXXXXXXX\");\r\n\r\n\t\tSystem.out.println(\"eventually we succeeded!\");\r\n\t\t//wa!!!\r\n\t\t\r\n\r\n\r\n\t\t//hen shu fu !\r\n\t\t\r\n\t\t//it is a good day\r\n\t\t\r\n\t\t//testing\r\n\r\n\t\t\r\n\t\tSystem.out.println(\"hope it works\");\r\n\t\t\r\n\r\n\t\t\r\n\r\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}" ]
[ "0.61019534", "0.6054925", "0.58806974", "0.58270746", "0.5796887", "0.56999695", "0.5690986", "0.56556827", "0.5648637", "0.5640487", "0.56354505", "0.56032085", "0.56016207", "0.56006724", "0.5589654", "0.5583692", "0.55785793", "0.55733466", "0.5560209", "0.55325305", "0.55133164", "0.55123806", "0.55114794", "0.5500045", "0.5489272", "0.5482718", "0.5482718", "0.5477585", "0.5477585", "0.54645246", "0.5461012", "0.54548836", "0.5442613", "0.5430592", "0.5423748", "0.5419415", "0.5407118", "0.54048806", "0.5399331", "0.539896", "0.5389593", "0.5386248", "0.5378453", "0.53751254", "0.5360644", "0.5357343", "0.5345515", "0.53441405", "0.5322276", "0.5318302", "0.53118485", "0.53118485", "0.53085434", "0.530508", "0.53038436", "0.5301922", "0.5296964", "0.52920514", "0.52903354", "0.5289583", "0.5287506", "0.52869135", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.52859664", "0.52849185", "0.52817136", "0.52791214", "0.5278664", "0.5278048", "0.5276269", "0.52728665", "0.5265451", "0.526483", "0.526005", "0.5259683", "0.52577406", "0.5257731", "0.5257731", "0.52560073", "0.5255759", "0.5255707", "0.5250705", "0.5246863", "0.5243053", "0.52429926", "0.5242727", "0.52396125", "0.5239378", "0.5232576", "0.5224529", "0.52240705", "0.52210563", "0.52203166", "0.521787", "0.52172214" ]
0.0
-1
> cadastrar produto no banco de dados
public Map<String, Object> getCd_Produto(int cd_Produto) { return pdao.getCd_Produto(cd_Produto); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void consultaProduto() throws Exception {\r\n boolean erro;\r\n int id;\r\n Produto p;\r\n Categoria c;\r\n System.out.println(\"\\t** Consultar produto **\\n\");\r\n do {\r\n erro = false;\r\n System.out.print(\"ID do produto a ser consultado: \");\r\n id = read.nextInt();\r\n if (id <= 0) {\r\n erro = true;\r\n System.out.println(\"ID Inválida! \");\r\n }\r\n System.out.println();\r\n } while (erro);\r\n p = arqProdutos.pesquisar(id - 1);\r\n if (p != null && p.getID() != -1) {\r\n c = arqCategorias.pesquisar(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 (c != null) {\r\n System.out.println(\"Categoria: \" + c.nome);\r\n } else {\r\n System.out.println(\"Categoria: \" + p.idCategoria);\r\n }\r\n } else {\r\n System.out.println(\"Produto não encontrado!\");\r\n }\r\n }", "public List<Produto> consultarProdutos(int consulta, String valor) {\r\n ConexaoBDJavaDB conexaoBD = new ConexaoBDJavaDB(\"routeexpress\");\r\n Connection conn = null;\r\n Statement stmt = null;\r\n ResultSet rs = null;\r\n List<Produto> produtos = new ArrayList<>();\r\n try {\r\n conn = conexaoBD.obterConexao();\r\n stmt = conn.createStatement();\r\n //Se a consulta for igual a zero(0) uma lista de todos os produtos \"cervejas\" e recuperada\r\n if (consulta == 0) {\r\n rs = stmt.executeQuery(consultas[consulta]);\r\n //Se a consulta for igual a tres(3) uma lista de todos os produtos \"cervejas\" e recuperada a parti do preco\r\n } else {\r\n rs = stmt.executeQuery(consultas[consulta] + \"'\" + valor + \"'\");\r\n }\r\n Produto produto;\r\n while (rs.next()) {\r\n produto = new Produto();\r\n produto.setIdCervejaria(rs.getInt(\"ID_CERVEJARIA\"));\r\n produto.setCervejaria(rs.getString(\"CERVEJARIA\"));\r\n produto.setPais(rs.getString(\"PAIS\"));\r\n produto.setIdCerveja(rs.getInt(\"ID_CERVEJA\"));\r\n produto.setIdFkCervajaria(rs.getInt(\"FK_CERVEJARIA\"));\r\n produto.setRotulo(rs.getString(\"ROTULO\"));\r\n produto.setPreco(rs.getString(\"PRECO\"));\r\n produto.setVolume(rs.getString(\"VOLUME\"));\r\n produto.setTeor(rs.getString(\"TEOR\"));\r\n produto.setCor(rs.getString(\"COR\"));\r\n produto.setTemperatura(rs.getString(\"TEMPERATURA\"));\r\n produto.setFamiliaEEstilo(rs.getString(\"FAMILIA_E_ESTILO\"));\r\n produto.setDescricao(rs.getString(\"DESCRICAO\"));\r\n produto.setSabor(rs.getString(\"SABOR\"));\r\n produto.setImagem1(rs.getString(\"IMAGEM_1\"));\r\n produto.setImagem2(rs.getString(\"IMAGEM_2\"));\r\n produto.setImagem3(rs.getString(\"IMAGEM_3\"));\r\n produtos.add(produto);\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n if (conn != null) {\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n return produtos;\r\n }", "public static void apagarProduto(){\n if(ListaDProduto.size() == 0){\n SaidaDados(\"Nehum produto cadastrado!!\");\n return;\n }\n \n String pesquisarNome = Entrada(\"Informe o nome do produto que deseja deletar: \");\n for(int i =0; i < ListaDProduto.size(); i++){\n \n Produto produtoProcurado = ListaDProduto.get(i);\n \n if(pesquisarNome.equalsIgnoreCase(produtoProcurado.getNome())){\n ListaDProduto.remove(i);\n SaidaDados(\"Produto deletado com sucesso!!\");\n }\n \n }\n \n }", "public void salvarProdutos(Produto produto){\n }", "private static void cadastroProduto() {\n\n\t\tString nome = Entrada(\"PRODUTO\");\n\t\tdouble PrecoComprado = Double.parseDouble(Entrada(\"VALOR COMPRA\"));\n\t\tdouble precoVenda = Double.parseDouble(Entrada(\"VALOR VENDA\"));\n String informacaoProduto = Entrada(\"INFORMAÇÃO DO PRODUTO\");\n String informacaoTecnicas = Entrada(\"INFORMAÇÕES TÉCNICAS\");\n\n\t\tProduto produto = new Produto(nome, PrecoComprado, precoVenda, informacaoProduto,informacaoTecnicas);\n\n\t\tListaDProduto.add(produto);\n\n\t}", "private static void VeureProductes (BaseDades bd) {\n ArrayList <Producte> llista = new ArrayList<Producte>();\n llista = bd.consultaPro(\"SELECT * FROM PRODUCTE\");\n if (llista != null)\n for (int i = 0; i<llista.size();i++) {\n Producte p = (Producte) llista.get(i);\n System.out.println(\"ID=>\"+p.getIdproducte()+\": \"\n +p.getDescripcio()+\"* Estoc: \"+p.getStockactual()\n +\"* Pvp: \"+p.getPvp()+\" Estoc Mínim: \"\n + p.getStockminim());\n }\n }", "public Produto consultarProduto(Produto produto) {\r\n ConexaoBDJavaDB conexaoBD = new ConexaoBDJavaDB(\"routeexpress\");\r\n Connection conn = null;\r\n PreparedStatement stmt = null;\r\n ResultSet rs = null;\r\n Produto cerveja = null;\r\n String sql = \"SELECT TBL_CERVEJARIA.ID_CERVEJARIA, TBL_CERVEJARIA.CERVEJARIA, TBL_CERVEJARIA.PAIS, \"\r\n + \"TBL_CERVEJA.ID_CERVEJA, TBL_CERVEJA.ID_CERVEJARIA AS \\\"FK_CERVEJARIA\\\", \"\r\n + \"TBL_CERVEJA.ROTULO, TBL_CERVEJA.PRECO, TBL_CERVEJA.VOLUME, TBL_CERVEJA.TEOR, TBL_CERVEJA.COR, TBL_CERVEJA.TEMPERATURA, \"\r\n + \"TBL_CERVEJA.FAMILIA_E_ESTILO, TBL_CERVEJA.DESCRICAO, TBL_CERVEJA.SABOR, TBL_CERVEJA.IMAGEM_1, TBL_CERVEJA.IMAGEM_2, TBL_CERVEJA.IMAGEM_3 \"\r\n + \"FROM TBL_CERVEJARIA \"\r\n + \"INNER JOIN TBL_CERVEJA \"\r\n + \"ON TBL_CERVEJARIA.ID_CERVEJARIA = TBL_CERVEJA.ID_CERVEJARIA \"\r\n + \"WHERE ID_CERVEJA = ?\";\r\n try {\r\n conn = conexaoBD.obterConexao();\r\n stmt = conn.prepareStatement(sql);\r\n stmt.setInt(1, produto.getIdCerveja());\r\n rs = stmt.executeQuery();\r\n if (rs.next()) {\r\n cerveja = new Produto();\r\n cerveja.setIdCervejaria(rs.getInt(\"ID_CERVEJARIA\"));\r\n cerveja.setCervejaria(rs.getString(\"CERVEJARIA\"));\r\n cerveja.setPais(rs.getString(\"PAIS\"));\r\n cerveja.setIdCerveja(rs.getInt(\"ID_CERVEJA\"));\r\n cerveja.setIdFkCervajaria(rs.getInt(\"FK_CERVEJARIA\"));\r\n cerveja.setRotulo(rs.getString(\"ROTULO\"));\r\n cerveja.setPreco(rs.getString(\"PRECO\"));\r\n cerveja.setVolume(rs.getString(\"VOLUME\"));\r\n cerveja.setTeor(rs.getString(\"TEOR\"));\r\n cerveja.setCor(rs.getString(\"COR\"));\r\n cerveja.setTemperatura(rs.getString(\"TEMPERATURA\"));\r\n cerveja.setFamiliaEEstilo(rs.getString(\"FAMILIA_E_ESTILO\"));\r\n cerveja.setDescricao(rs.getString(\"DESCRICAO\"));\r\n cerveja.setSabor(rs.getString(\"SABOR\"));\r\n cerveja.setImagem1(rs.getString(\"IMAGEM_1\"));\r\n cerveja.setImagem2(rs.getString(\"IMAGEM_2\"));\r\n cerveja.setImagem3(rs.getString(\"IMAGEM_3\"));\r\n } else {\r\n return cerveja;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n if (conn != null) {\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n return cerveja;\r\n }", "public void executar() {\n\t\tSystem.out.println(dao.getListaPorNome(\"abacatão\"));\n\t}", "public static void getProduto(){\r\n try {\r\n PreparedStatement stmn = connection.prepareStatement(\"select id_produto, codigo, produto.descricao pd,preco, grupo.descricao gd from produto inner join grupo on grupo.id_grupo = produto.idgrupo order by codigo\");\r\n ResultSet result = stmn.executeQuery();\r\n\r\n System.out.println(\"id|codigo|descricao|preco|grupo\");\r\n while (result.next()){\r\n long id_produto = result.getLong(\"id_produto\");\r\n String codigo = result.getString(\"codigo\");\r\n String pd = result.getString(\"pd\");\r\n String preco = result.getString(\"preco\");\r\n String gd = result.getString(\"gd\");\r\n\r\n\r\n\r\n System.out.println(id_produto+\"\\t\"+codigo+\"\\t\"+pd+\"\\t\"+preco+\"\\t\"+gd);\r\n }\r\n\r\n }catch (Exception throwables){\r\n throwables.printStackTrace();\r\n }\r\n\r\n }", "private List<Produto> todosProdutos() {\n\t\treturn produtoService.todosProdutos();\n\t}", "private void buscarProducto() {\n EntityManagerFactory emf= Persistence.createEntityManagerFactory(\"pintureriaPU\");\n List<Almacen> listaproducto= new FacadeAlmacen().buscarxnombre(jTextField1.getText().toUpperCase());\n DefaultTableModel modeloTabla=new DefaultTableModel();\n modeloTabla.addColumn(\"Id\");\n modeloTabla.addColumn(\"Producto\");\n modeloTabla.addColumn(\"Proveedor\");\n modeloTabla.addColumn(\"Precio\");\n modeloTabla.addColumn(\"Unidades Disponibles\");\n modeloTabla.addColumn(\"Localizacion\");\n \n \n for(int i=0; i<listaproducto.size(); i++){\n Vector vector=new Vector();\n vector.add(listaproducto.get(i).getId());\n vector.add(listaproducto.get(i).getProducto().getDescripcion());\n vector.add(listaproducto.get(i).getProducto().getProveedor().getNombre());\n vector.add(listaproducto.get(i).getProducto().getPrecio().getPrecio_contado());\n vector.add(listaproducto.get(i).getCantidad());\n vector.add(listaproducto.get(i).getLocalizacion());\n modeloTabla.addRow(vector);\n }\n jTable1.setModel(modeloTabla);\n }", "public void listarProducto() {\n }", "private void cargarProductos() {\r\n\t\tproductos = productoEJB.listarInventariosProductos();\r\n\r\n\t\tif (productos.size() == 0) {\r\n\r\n\t\t\tList<Producto> listaProductos = productoEJB.listarProductos();\r\n\r\n\t\t\tif (listaProductos.size() > 0) {\r\n\r\n\t\t\t\tMessages.addFlashGlobalWarn(\"Para realizar una venta debe agregar los productos a un inventario\");\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tControladorProducto controlaPro = new ControladorProducto();\n\n\t\t// Guardamos en una lista de objetos de tipo cuenta(Mapeador) los datos\n\t\t// obtenidos\n\t\t// de la tabla Cuenta de la base de datos\n\t\tList<Producto> lista = controlaPro.findAll();\n\n\t\t// Imprimimos la lista\n\t\tSystem.out.println(\"\\n\\nEntidades de la tabla Cuenta:\");\n\t\tfor (Producto c : lista) {\n\t\t\tSystem.out.println(c);\n\t\t}\n\t\t// Vamos a guardar en un objeto el objeto que obtenemos pasando como parametro\n\t\t// el nombre\n\t\tProducto productoNombre = controlaPro.findByNombre(\"Manguera Camuflaje\");\n\n\t\t// Mostramos el objeto\n\t\tSystem.out.println(\"\\nEl objeto con el nombre Manguera Camuflaje es: \\n\" + productoNombre);\n\n\t\t// Vamos a guardar en un objeto el objeto que obtenemos pasando como parametro\n\t\t// su pk\n\n\t\tProducto productoPk = controlaPro.findByPK(2);\n\n\t\t// Mostramos el objeto\n\t\tSystem.out.println(\"\\nEl objeto con la Pk es: \\n\" + productoPk);\n\n\t\t// Vamos a crear un nuevo producto\n\t\tProducto nuevoProducto = new Producto();\n\n\t\tnuevoProducto.setNombreproducto(\"Embery Mono\");\n\t\t\n\t\t//Persistimos el nuevo producto\n\t\tcontrolaPro.crearEntidad(nuevoProducto);\n\n\t\tlista = controlaPro.findAll();\n\t\t// Imprimimos la lista\n\t\tSystem.out.println(\"\\n\\nEntidades de la tabla con nuevo producto:\");\n\t\tfor (Producto c : lista) {\n\t\t\tSystem.out.println(c);\n\t\t}\n\t\t\n\t\t//Modificamos el nuevo producto\n\t\tnuevoProducto.setNombreproducto(\"Caesar Dorada\");\n\n\t\tcontrolaPro.ModificarEntidad(nuevoProducto);\n\t\t\n\t\tlista = controlaPro.findAll();\n\t\t// Imprimimos la lista\n\t\tSystem.out.println(\"\\n\\nEntidades de la tabla con nuevo producto modificado:\");\n\t\tfor (Producto c : lista) {\n\t\t\tSystem.out.println(c);\n\t\t}\n\t\t\n\t\t//Borramos el nuevo producto\n\t\tcontrolaPro.borrarEntidad(controlaPro.findByPK(2));\n\t\t\n\t\tlista = controlaPro.findAll();\n\t\t// Imprimimos la lista\n\t\tSystem.out.println(\"\\n\\nEntidades de la tabla con nuevo producto eliminado:\");\n\t\tfor (Producto c : lista) {\n\t\t\tSystem.out.println(c);\n\t\t}\n\t\t\n\t}", "public List<Produto> buscarProdutos(){\n return new ArrayList<>();\n }", "private void comboCarrega() {\n\n try {\n con = BancoDeDados.getConexao();\n //cria a string para inserir no banco\n String query = \"SELECT * FROM servico\";\n\n PreparedStatement cmd;\n cmd = con.prepareStatement(query);\n ResultSet rs;\n\n rs = cmd.executeQuery();\n\n while (rs.next()) {\n JCservico.addItem(rs.getString(\"id\") + \"-\" + rs.getString(\"modalidade\"));\n }\n\n } catch (SQLException ex) {\n System.out.println(\"Erro de SQL \" + ex.getMessage());\n }\n }", "List<CatalogoAprobadorDTO> buscarAprobador(int cveADM, String numEmpleado, Integer claveNivel, Integer centroCostoOP) throws SIATException;", "private List<Produto> retornaProduto (Long cod){\n \n Query q = entityManager.createNamedQuery(\"Produto.findByCodigo\");\n q.setParameter(\"codigo\", cod);\n List <Produto> p = q.getResultList();\n return p; \n}", "public void adiciona(Produto produto) {\n\t\tthis.produtos.addAll(produtos);\n\t}", "public static void deletarProdutos(){\n if(ListaDProduto.isEmpty()){\n SaidaDados(\"Nenhum produto cadastrado\");\n return;\n } \n ListaDProduto.clear();\n SaidaDados(\"Todos produto deletado com sucesso\");\n \n \n }", "private static void menuProdutos() throws Exception {//Inicio menuProdutos\r\n byte opcao;\r\n boolean encerrarPrograma = false;\r\n do {\r\n System.out.println(\r\n \"\\n\\t*** MENU DE PRODUTOS ***\\n\"\r\n + \"0 - Adicionar produto\\n\"\r\n + \"1 - Remover produto\\n\"\r\n + \"2 - Alterar produto\\n\"\r\n + \"3 - Consultar produto\\n\"\r\n + \"4 - Listar produtos cadastrados\\n\"\r\n + \"5 - Sair\"\r\n );\r\n System.out.print(\"Digite a opção: \");\r\n opcao = read.nextByte();\r\n System.out.println();\r\n switch (opcao) {\r\n case 0:\r\n adicionarProduto();\r\n break;\r\n case 1:\r\n removerProduto();\r\n break;\r\n case 2:\r\n alterarProduto();\r\n break;\r\n case 3:\r\n consultaProduto();\r\n break;\r\n case 4:\r\n listaProdutosCadastrados();\r\n break;\r\n case 5:\r\n encerrarPrograma = true;\r\n break;\r\n default:\r\n System.out.println(\"Opcao invalida!\\n\");\r\n Thread.sleep(1000);\r\n break;\r\n }\r\n } while (!encerrarPrograma);\r\n }", "public static String obtenerListaNombres (String producto) {\n StringBuilder sb;\n Statement stmt;\n String query;\n ResultSet result;\n try {\n iniciarConexion();\n sb = new StringBuilder();\n stmt = connection.createStatement();\n query = \"SELECT * FROM \" + producto;\n result = stmt.executeQuery(query);\n while (result.next()) {\n sb.append(result.getString(2));\n sb.append(\" \");\n }\n return sb.toString();\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n return \"\";\n }\n }", "public String getIdProduto() {\r\n\t\treturn idProduto;\r\n\t}", "public List<Soldados> conectar(){\n EntityManagerFactory conexion = Persistence.createEntityManagerFactory(\"ABP_Servicio_MilitarPU\");\n //creamos una instancia de la clase controller\n SoldadosJpaController tablasoldado = new SoldadosJpaController(conexion);\n //creamos una lista de soldados\n List<Soldados> listasoldado = tablasoldado.findSoldadosEntities();\n \n return listasoldado;\n }", "private static void listaProdutosCadastrados() throws Exception {\r\n String nomeCategoria;\r\n ArrayList<Produto> lista = arqProdutos.toList();\r\n if (!lista.isEmpty()) {\r\n System.out.println(\"\\t** Lista dos produtos cadastrados **\\n\");\r\n }\r\n for (Produto p : lista) {\r\n if (p != null && p.getID() != -1) {\r\n nomeCategoria = getNomeCategoria(p.idCategoria - 1);\r\n System.out.println(\r\n \"Id: \" + p.getID()\r\n + \"\\nNome: \" + p.nomeProduto\r\n + \"\\nDescricao: \" + p.descricao\r\n + \"\\nPreco: \" + tf.format(p.preco)\r\n + \"\\nMarca: \" + p.marca\r\n + \"\\nOrigem: \" + p.origem\r\n );\r\n if (nomeCategoria != null) {\r\n System.out.println(\"Categoria: \" + nomeCategoria);\r\n } else {\r\n System.out.println(\"Categoria: \" + p.idCategoria);\r\n }\r\n System.out.println();\r\n Thread.sleep(500);\r\n }\r\n }\r\n }", "public List<Producto> verProductos(){\n SessionFactory sf = NewHibernateUtil.getSessionFactory();\n Session session = sf.openSession();\n // El siguiente objeto de query se puede hacer de dos formas una delgando a hql (lenguaje de consulta) que es el\n //lenguaje propio de hibernate o ejecutar ancestarmente la colsulta con sql\n Query query = session.createQuery(\"from Producto\");\n // En la consulta hql para saber que consulta agregar se procede a añadirla dandole click izquierdo sobre\n // hibernate.cfg.xml y aquí añadir la correspondiente consulta haciendo referencia a los POJOS\n List<Producto> lista = query.list();\n session.close();\n return lista;\n }", "@Override\n\tpublic String executa(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\tJuncaoEstoqueProduto estoque = new JuncaoEstoqueProduto(Integer.parseInt(request.getParameter(\"quantidade\")),\n\t\t\t\trequest.getParameter(\"nome\"),request.getParameter(\"codProduto\"),Integer.parseInt(request.getParameter(\"quantidadeMinima\")));\n\t\t// enviar dados para o DAO persistir\n\t\tnew JuncaoEstoqueProdutoDAO().salvar(estoque);\n\t\t//retornar o nome da view\n\t\trequest.setAttribute(\"msg\", \"parabéns produto cadastrado com sucesso\");\n\t\treturn \"cadastroProduto\";\n\t}", "static void executa() {\n\t\tlistaProdutos = LoaderUtils.loadProdutos();\n\n\t\t// imprime lista de produtos cadastrados\n\t\tSystem.out.println(\"----------------------------------------------\");\n\t\tloadEstoque();\n\t\t\n\t\t// imprime estoque\n\t\tSystem.out.println(\"----------------------------------------------\");\n\t\tprintEstoque(listaEstoque);\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tEntityManagerFactory fabrica = Persistence.createEntityManagerFactory(\"mysql\");\n\t\t\n\t\tEntityManager em = fabrica.createEntityManager();\n\t\t\n\t\tProducto p=em.find(Producto.class, \"P0031\");\n\t\t\n\t\tif(p==null) {\n\t\t\tSystem.out.println(\"Producto no Existe\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Producto Encontrado : \"+p.getDescrip());\n\t\t\tSystem.out.println(p);\n\t\t}\n\t\tem.close();\n\n\t}", "public List<Produto> listar() {\n return manager.createQuery(\"select distinct (p) from Produto p\", Produto.class).getResultList();\n }", "public TelaProduto() {\n initComponents();\n \n carregaProdutos();\n }", "@Override\n\tpublic List<Produto> listarTodos() throws ControleEstoqueSqlException {\n\t\treturn null;\n\t}", "private void removeProdutos() {\n Collection<IProduto> prods = this.controller.getProdutos();\n for(IProduto p : prods) System.out.println(\" -> \" + p.getCodigo() + \" \" + p.getNome());\n System.out.println(\"Insira o codigo do produto que pretende remover da lista de produtos?\");\n String codigo = Input.lerString();\n // Aqui devia se verificar se o produto existe mas nao sei fazer isso.\n this.controller.removeProdutoControl(codigo);\n }", "public static List<Produto> consultaProduto(int codigo, String nome, String tipo, String fornecedor) throws Exception {\n List<Produto> produto = ProdutoDAO.procurarProduto(codigo, nome, tipo, fornecedor);\r\n for (int i = 0; i < produto.size(); i++) {\r\n if (!produto.isEmpty()) {\r\n return produto;\r\n }\r\n }\r\n return null;\r\n }", "public BuscarProducto(AgregandoProductos ventanaPadre) {\n this.daoProductos = new ProductoJpaController();\n this.ventanaPadre = ventanaPadre;\n initComponents();\n this.setupComponents();\n }", "public void obtenerCantidadProducto() {\n \n if (codigoBarra.equals(\"\")) {\n return; //para que nos mantenga siempre en el imput\n }\n\n ProductoDao productoDao = new ProductoDaoImp();\n try {\n //obtenemos la instancia de Producto en Base a su codigo de Barra\n producto = productoDao.obtenerProductoPorCodigoBarra(codigoBarra);\n\n if (producto != null) {\n //Levantamos dialog\n RequestContext.getCurrentInstance().execute(\"PF('dialogCantidadProducto2').show();\");\n } else {\n codigoBarra = \"\";\n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_ERROR, \"Error\", \n \"Producto No encontrado con ese Codigo de Barra\");\n FacesContext.getCurrentInstance().addMessage(null, message);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public List<Tb_Prod_Painel_PromoBeans> getProdPainel(Integer terminal, Integer painel) throws SQLException {\r\n try (Connection conexao = new ConexaoLocalDBMySql().getConnect()) {\r\n String sql = \"SELECT tb_prod_painel_promo.* FROM tb_prod_painel_promo \"\r\n + \" INNER JOIN tb_prod ON(tb_prod_painel_promo.codigo=tb_prod.codigo) where terminal=? and painel=? order by tb_prod_painel_promo.idtb_painel_promo\"; \r\n PreparedStatement pstm = conexao.prepareStatement(sql);\r\n pstm.setInt(1, terminal);\r\n pstm.setInt(2, painel);\r\n ResultSet rs = pstm.executeQuery();\r\n List<Tb_Prod_Painel_PromoBeans> lpb = new ArrayList<>();\r\n while (rs.next()) {\r\n Tb_Prod_Painel_PromoBeans pb = new Tb_Prod_Painel_PromoBeans();\r\n pb.setCodigo(rs.getString(\"codigo\"));\r\n pb.setDescricao(rs.getString(\"descricao\"));\r\n pb.setUnid(rs.getString(\"unid\"));\r\n pb.setValor1(rs.getFloat(\"valor1\"));\r\n pb.setValor2(rs.getFloat(\"valor2\"));\r\n pb.setOferta(rs.getBoolean(\"oferta\"));\r\n pb.setReceita(rs.getString(\"receita\")); \r\n pb.setTerminal(rs.getInt(\"terminal\"));\r\n pb.setPainel(rs.getInt(\"painel\"));\r\n lpb.add(pb);\r\n }\r\n rs.close();\r\n pstm.close();\r\n conexao.close();\r\n return lpb;\r\n }\r\n }", "public List<Producto> buscar(String nombre) throws Exception {\n\t\ttry{\n\t\t\tthis.objCnx = new Conexion(\"MYSQL\");\n\t\t\tList<Producto> lista = new ArrayList<Producto>();\n\t\t\tthis.objCnx.conectarBD();\n\t\t\tString sql = \"SELECT idproducto, nombre_producto, imagen \"\n\t\t\t\t\t+ \" FROM conftbc_producto WHERE nombre_producto like '%\"+nombre+\"%' \";\n\t\t\tPreparedStatement ps = this.objCnx.cnx.prepareStatement(sql);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tProducto producto = new Producto();\n\t\t\t\tproducto.setIdproducto(rs.getInt(\"idproducto\"));\n\t\t\t\tproducto.setNombre(rs.getString(\"nombre_producto\"));\n\t\t\t\tproducto.setImagen(rs.getString(\"imagen\"));\n//\t\t\t\tCategoria categoria = new Categoria();\n//\t\t\t\tcategoria.setIdcategoria(rs.getInt(\"idcategoria\"));\n//\t\t\t\tcategoria.setNombre(rs.getString(\"categoria\"));\n//\t\t\t\tproducto.setCategoria(categoria);\n//\t\t\t\tMarca marca = new Marca();\n//\t\t\t\tmarca.setIdmarca(rs.getInt(\"idmarca\"));\n//\t\t\t\tmarca.setNombre(rs.getString(\"marca\"));\n//\t\t\t\tproducto.setMarca(marca);\n//\t\t\t\tModelo modelo = new Modelo();\n//\t\t\t\tmodelo.setIdmodelo(rs.getInt(\"idmodelo\"));\n//\t\t\t\tmodelo.setNombre(rs.getString(\"modelo\"));\n//\t\t\t\tproducto.setModelo(modelo);\n\t\t\t\tlista.add(producto);\n\t\t\t}\n\t\t\treturn lista;\n\t\t\t\n\t\t}catch(Exception ex){\n\t\t\tthis.objCnx.deshacerDB();\n\t\t\tthrow ex;\n\t\t}finally{\n\t\t\tthis.objCnx.closeDB();\n\t\t\tthis.objCnx = null;\n\t\t}\n\t}", "public void buscarxdescrip() {\r\n try {\r\n modelo.setDescripcion(vista.jTbdescripcion.getText());//C.P.M le enviamos al modelo la descripcion y consultamos\r\n rs = modelo.Buscarxdescrip();//C.P.M cachamos el resultado de la consulta\r\n\r\n DefaultTableModel buscar = new DefaultTableModel() {//C.P.M creamos el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }\r\n };\r\n vista.jTbuscar.setModel(buscar);//C.P.M le mandamos el modelo a la tabla\r\n modelo.estructuraProductos(buscar);//C.P.M obtenemos la estructura de la tabla \"encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de la consulta\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos la cantidad de columnas de la consulta\r\n while (rs.next()) {//C.P.M recorremos el resultado\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un arreglo con una dimencion igual a la cantidad de columnas\r\n for (int i = 0; i < cantidadColumnas; i++) { //C.P.M lo recorremos \r\n fila[i] = rs.getObject(i + 1); //C.P.M vamos insertando los resultados dentor del arreglo\r\n }\r\n buscar.addRow(fila);//C.P.M y lo agregamos como una nueva fila a la tabla\r\n }\r\n\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al buscar producto por descripcion\");\r\n }\r\n }", "public List<Producto> traerTodos () {\n \n return jpaProducto.findProductoEntities();\n \n \n \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 }", "@GetMapping(\"buscarProductos\")\n\tpublic List<Producto> getProductos(){\n\t\treturn this.productoServicios.findAll();\n\t}", "public void buscarproducto() {\r\n try {\r\n modelo.setNombre(vista.jTbnombre2.getText());//C.P.M le mandamos al modelo el nombre del producto\r\n rs = modelo.Buscar();//C.P.M obtenemos el resultado del modelos\r\n if (rs.equals(\"\")) {//C.P.M en caso de que el resultado venga vacio notificamos a el usuario que no encontro el producto\r\n JOptionPane.showMessageDialog(null, \"No se encontro: \" + vista.jTbnombre2.getText() + \" en la base de datos.\");\r\n }\r\n //C.P.M Para establecer el modelo al JTable\r\n DefaultTableModel buscar = new DefaultTableModel() {\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {//C.P.M Aqui le decimos que no seran editables los campos de la tabla\r\n return false;\r\n }\r\n };\r\n vista.jTbuscar.setModel(buscar);//C.P.M le mandamos el modelo\r\n modelo.estructuraProductos(buscar);//C.P.M Auui obtenemos la estructura de la tabla(\"Los encabezados\")\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M Obtenemos los metadatos para obtener la cantidad del columnas que llegan\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M la cantidad la alojamos dentro de un entero\r\n while (rs.next()) {//C.P.M recorremos el resultado \r\n Object[] fila = new Object[cantidadColumnas];//C.P.M Creamos un objeto con el numero de columnas\r\n for (int i = 0; i < cantidadColumnas; i++) {//C.P.M lo recoremos ese vector\r\n fila[i] = rs.getObject(i + 1);//C.P.M Aqui vamos insertando la informacion obtenida de la base de datos\r\n }\r\n buscar.addRow(fila);//C.P.M y agregamos el arreglo como una nueva fila a la tabla\r\n }\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurio un error al buscar el producto\");\r\n }\r\n\r\n }", "public List<Produto> consultarProdutoPorParteNome(String nome) {\n\t\t\tQuery q = manager.query();\n\t\t\tq.constrain(Produto.class);\n\t\t\tq.descend(\"nome\").constrain(nome).like();\n\t\t\tList<Produto> result = q.execute(); \n\t\t\treturn result;\n\t\t}", "public void consultarProductos() throws StoreException {\n\t\tproductos = productoService.consultarProductos();\n\t}", "public void confirmarBusqueda(){\n\t\tList<Producto> productos=productoService.getByAll();\n\t\tfor(Producto p: productos){\n\t\t\tProductoEmpresa proEmpr = new ProductoEmpresa();\n\t\t\tproEmpr.setCantidad(p.getCantidad()==null?0.0:p.getCantidad());\n\t\t\tproEmpr.setPrecio(p.getCostoPublico()==null?0.0:p.getCostoPublico());\n\t\t\tEmpresa empr=new Empresa();\n\t\t\tempr.setEmpresaId(getEmpresaId());\n\t\t\tproEmpr.setEmpresaId(empr);\n\t\t\tproEmpr.setFechaRegistro(new Date());\n\t\t\tproEmpr.setProductoId(p);\n\t\t\tgetProductoEmpresaList().add(proEmpr);\n\t\t\tproductoEmpresaService.save(proEmpr);\t\t\n\t\t\tRequestContext.getCurrentInstance().execute(\"PF('confirmarBusqueda').hide();\");\n\t\t}\n\t\tFacesContext.getCurrentInstance().addMessage(null, new FacesMessage(\"Productos creados Exitosamente para la sucursal seleccionada\"));\n\t\tsetProductoEmpresaList(productoEmpresaService.getByEmpresa(getEmpresaId()));\n\t}", "private void cargarCatalogo() throws DAOException {\n\t\t List<Usuario> usuariosBD = adaptadorUsuario.recuperarTodosUsuarios();\n\t\t for (Usuario u: usuariosBD) \n\t\t\t usuarios.put(u.getTelefono(), u);\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 }", "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 static void consultaCategoria() throws Exception {\r\n boolean erro;\r\n int idCategoria;\r\n String nomeCategoria;\r\n ArrayList<Produto> lista;\r\n System.out.println(\"\\t** Listar produtos de uma categoria **\\n\");\r\n do {\r\n erro = false;\r\n System.out.print(\"ID da categoria a ser consultada: \");\r\n idCategoria = read.nextInt();\r\n if (idCategoria <= 0) {\r\n erro = true;\r\n System.out.println(\"ID Inválida! \");\r\n }\r\n System.out.println();\r\n } while (erro);\r\n lista = listProdutosPorCategoria(idCategoria);\r\n if (lista != null && !lista.isEmpty()) {\r\n nomeCategoria = getNomeCategoria(idCategoria - 1);\r\n System.out.println(\"Produtos pertencentes a '\" + nomeCategoria + \"'\");\r\n for (Produto p : lista) {\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 + \"\\nCategoria: \" + nomeCategoria\r\n );\r\n }\r\n } else {\r\n System.out.println(\"Não ha produtos nessa categoria, ou ela não existe!\");\r\n }\r\n }", "public void execProInventarioCarga(CatalogoBean catalogoBean) throws Exception;", "public List<Producto> listar() throws Exception {\n\t\ttry{\n\t\t\tthis.objCnx = new Conexion(\"MYSQL\");\n\t\t\tList<Producto> lista = new ArrayList<Producto>();\n\t\t\tthis.objCnx.conectarBD();\n\t\t\tString sql = \"SELECT t.idproducto, t.nombre_producto, t.imagen, t.idcategoria, t.idmarca, t.idmodelo, c.nombre as categoria, m.nombre as marca, d.nombre as modelo \"\n\t\t\t\t\t+ \" FROM conftbc_producto t INNER JOIN conftbc_categoria c on c.idcategoria = t.idcategoria\"\n\t\t\t\t\t+ \" INNER JOIN conftbc_marca m on m.idmarca = t.idmarca INNER JOIN conftbc_modelo d on d.idmodelo = t.idmodelo \";\n\t\t\tPreparedStatement ps = this.objCnx.cnx.prepareStatement(sql);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tProducto producto = new Producto();\n\t\t\t\tproducto.setIdproducto(rs.getInt(\"idproducto\"));\n\t\t\t\tproducto.setNombre(rs.getString(\"nombre_producto\"));\n\t\t\t\tproducto.setImagen(rs.getString(\"imagen\"));\n\t\t\t\tCategoria categoria = new Categoria();\n\t\t\t\tcategoria.setIdcategoria(rs.getInt(\"idcategoria\"));\n\t\t\t\tcategoria.setNombre(rs.getString(\"categoria\"));\n\t\t\t\tproducto.setCategoria(categoria);\n\t\t\t\tMarca marca = new Marca();\n\t\t\t\tmarca.setIdmarca(rs.getInt(\"idmarca\"));\n\t\t\t\tmarca.setNombre(rs.getString(\"marca\"));\n\t\t\t\tproducto.setMarca(marca);\n\t\t\t\tModelo modelo = new Modelo();\n\t\t\t\tmodelo.setIdmodelo(rs.getInt(\"idmodelo\"));\n\t\t\t\tmodelo.setNombre(rs.getString(\"modelo\"));\n\t\t\t\tproducto.setModelo(modelo);\n\t\t\t\tlista.add(producto);\n\t\t\t}\n\t\t\treturn lista;\n\t\t\t\n\t\t}catch(Exception ex){\n\t\t\tthis.objCnx.deshacerDB();\n\t\t\tthrow ex;\n\t\t}finally{\n\t\t\tthis.objCnx.closeDB();\n\t\t\tthis.objCnx = null;\n\t\t}\n\t}", "public ConsultaPNporproducto() {\n initComponents();\n ListarPro();\n }", "@Override\n\tpublic List<Produto> listar(Produto entidade) {\n\t\treturn null;\n\t}", "public Response getProdutos_e_suas_receitas() {\n\t\tList<Produto> lista = ((ProdutoDao) getDao()).buscarProdutos_e_suas_receitas();\n\t\tif (lista != null) {\n\t\t\tList<Produto> produtos = new ArrayList<>();\n\t\t\t// percorrer a lista retornado do BD.\n\t\t\tfor (Produto produto : lista) {\n\t\t\t\tList<ItemReceita> componentes = new ArrayList<>();\n\t\t\t\t// pega os componentes da receita de cada produto.\n\t\t\t\tfor (ItemReceita item : produto.getReceita().getComponentes()) {\n\t\t\t\t\tcomponentes.add(new ItemReceita(item.getComponente(), item.getQtdUtilizada()));\n\t\t\t\t}\n\t\t\t\t// add um novo produto com os dados da lista percorrida.\n\t\t\t\tprodutos.add(new Produto(produto.getCodigo(), produto.getDescricao(), produto.getCategoria(),\n\t\t\t\t\t\tproduto.getSimbolo(), produto.getPreco(),\n\t\t\t\t\t\tnew Receita(produto.getReceita().getCodigo(), produto.getReceita().getRendimento(),\n\t\t\t\t\t\t\t\tproduto.getReceita().getTempoPreparo(), componentes)));\n\t\t\t}\n\t\t\t// converte a lista com os novos produtos para uma string em JSON.\n\t\t\tString listaEmJson = converterParaArrayJSON(produtos);\n\t\t\t// retorna um response com o lista de produtos em JSON.\n\t\t\tsetResposta(mensagemSucesso(listaEmJson));\n\t\t} else {\n\t\t\t// retorna um response informando que não possui cadastro.\n\t\t\tsetResposta(mensagemNaoEncontrado());\n\t\t}\n\t\treturn getResposta();\n\n\t}", "@Override\n public List<Produto> filtrarProdutos() {\n\n Query query = em.createQuery(\"SELECT p FROM Produto p ORDER BY p.id DESC\");\n\n// query.setFirstResult(pageRequest.getPageNumber() * pageRequest.getPageSize());\n// query.setMaxResults(pageRequest.getPageSize());\n return query.getResultList();\n }", "public void validaCadastro(List<ProdutoModel> produto) {\n\n if (produto.size() == 0) {\n cadastraProduto();\n } else {\n JOptionPane.showMessageDialog(null, \"Produto existente\");\n jtf_nome.requestFocus();\n }\n }", "private static void adicionarProduto() throws Exception {\r\n //inserir produto \r\n String nomeProduto, descricao, marca, origem;\r\n int idCategoria = 0;\r\n Integer[] idsValidosC;\r\n float preco;\r\n int id;\r\n boolean erro, valido;\r\n System.out.println(\"\\t** Adicionar produto **\\n\");\r\n System.out.print(\"Nome do produto: \");\r\n nomeProduto = read.nextLine();\r\n nomeProduto = read.nextLine();\r\n System.out.print(\"Descricao do produto: \");\r\n descricao = read.nextLine();\r\n System.out.print(\"Preco do produto: \");\r\n preco = read.nextFloat();\r\n System.out.print(\"Marca do produto: \");\r\n marca = read.nextLine();\r\n marca = read.nextLine();\r\n System.out.print(\"Origem do produto: \");\r\n origem = read.nextLine();\r\n System.out.println();\r\n if ((idsValidosC = listaCategoriasCadastradas()) != null) {\r\n System.out.print(\"\\nEscolha uma categoria para o produto,\\ne digite o ID: \");\r\n do {\r\n valido = false;\r\n idCategoria = read.nextInt();\r\n valido = Arrays.asList(idsValidosC).contains(idCategoria);\r\n if (!valido) {\r\n System.out.println(\"Esse ID não é valido!\\nDigite um ID valido: \");\r\n }\r\n } while (!valido);\r\n do {\r\n erro = false;\r\n System.out.println(\"\\nAdicionar novo produto?\");\r\n System.out.print(\"1 - SIM\\n2 - NÂO\\nR: \");\r\n switch (read.nextByte()) {\r\n case 1:\r\n id = arqProdutos.inserir(new Produto(nomeProduto, descricao, preco, marca, origem, idCategoria));\r\n System.out.println(\"\\nProduto inserido com o ID: \" + id);\r\n break;\r\n case 2:\r\n System.out.println(\"\\nNovo produto não foi inserido!\");\r\n break;\r\n default:\r\n System.out.println(\"\\nOpção Inválida!\\n\");\r\n erro = true;\r\n break;\r\n }\r\n } while (erro);\r\n } else {\r\n System.out.println(\"\\nOps..! Aparentemente não existem categorias para associar o novo produto!\");\r\n System.out.println(\"Por favor, crie ao menos uma categoria antes de adicionar um produto!\");\r\n Thread.sleep(1000);\r\n }\r\n }", "public List<Tb_Prod_Painel_PromoBeans> getProdPainelTabelas(Integer terminal, String painel) throws SQLException {\r\n try (Connection conexao = new ConexaoLocalDBMySql().getConnect()) {\r\n String sql = \"SELECT tb_prod_painel_promo.* FROM tb_prod_painel_promo \"\r\n + \" INNER JOIN tb_prod ON(tb_prod_painel_promo.codigo=tb_prod.codigo) where terminal=? and painel in(\" + painel + \") order by tb_prod_painel_promo.idtb_painel_promo\"; \r\n PreparedStatement pstm = conexao.prepareStatement(sql);\r\n pstm.setInt(1, terminal); \r\n ResultSet rs = pstm.executeQuery();\r\n List<Tb_Prod_Painel_PromoBeans> lpb = new ArrayList<>(); \r\n while (rs.next()) {\r\n Tb_Prod_Painel_PromoBeans pb = new Tb_Prod_Painel_PromoBeans();\r\n pb.setCodigo(rs.getString(\"codigo\"));\r\n pb.setDescricao(rs.getString(\"descricao\"));\r\n pb.setUnid(rs.getString(\"unid\"));\r\n pb.setValor1(rs.getFloat(\"valor1\"));\r\n pb.setValor2(rs.getFloat(\"valor2\"));\r\n pb.setOferta(rs.getBoolean(\"oferta\"));\r\n pb.setReceita(rs.getString(\"receita\")); \r\n pb.setTerminal(rs.getInt(\"terminal\"));\r\n pb.setPainel(rs.getInt(\"painel\"));\r\n lpb.add(pb);\r\n }\r\n rs.close();\r\n pstm.close();\r\n conexao.close();\r\n return lpb;\r\n }\r\n }", "@Override\n public void compraProducto(String nombre, int cantidad) {\n\n }", "private static void ListaProduto() throws IOException {\n \n if(ListaDProduto.isEmpty()){\n SaidaDados(\"Nenhum produto cadastrado\");\n return;\n }\n \n \n\t\tFileWriter arq = new FileWriter(\"lista_produto.txt\"); // cria o arquivo\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// será criado o\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// arquivo para\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// armazenar os\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// dados\n\t\tPrintWriter gravarArq = new PrintWriter(arq); // imprimi no arquivo \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// dados.\n\n\t\tString relatorio = \"\";\n\n\t\tgravarArq.printf(\"+--LISTA DE PRODUTOS--+\\r\\n\");\n\n\t\tfor (int i = 0; i < ListaDProduto.size(); i++) {\n\t\t\tProduto Lista = ListaDProduto.get(i);\n\t\t\t\n\n\t\t\tgravarArq.printf(\n\t\t\t\t\t\" - |Codigo: %d |NOME: %s | VALOR COMPRA: %s | VALOR VENDA: %s | INFORMAÇÕES DO PRODUTO: %s | INFORMAÇÕES TÉCNICAS: %s\\r\\n\",\n\t\t\t\t\tLista.getCodigo(), Lista.getNome(), Lista.getPrecoComprado(),\n\t\t\t\t\tLista.getPrecoVenda(), Lista.getInformacaoProduto(), Lista.getInformacaoTecnicas()); // formatação dos dados no arquivos\n \n\t\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\n\n\t\t\trelatorio += \"\\nCódigo: \" + Lista.getCodigo() +\n \"\\nNome: \" + Lista.getNome() +\n\t\t\t\t \"\\nValor de Compra: \" + Lista.getPrecoComprado() + \n \"\\nValor de Venda: \" + Lista.getPrecoVenda() +\n \"\\nInformações do Produto: \" + Lista.getInformacaoProduto() +\n \"\\nInformações Técnicas: \" + Lista.getInformacaoTecnicas() +\n \"\\n------------------------------------------------\";\n\n\t\t}\n \n \n\n\t\tgravarArq.printf(\"+------FIM------+\\r\\n\");\n\t\tgravarArq.close();\n\n\t\tSaidaDados(relatorio);\n\n\t}", "@Override\n\tpublic void entregarProductos(AgenteSaab a, Oferta o) {\n\t\t\n\t}", "@Override\r\n public List<Prova> consultarTodosProva() throws Exception {\n return rnProva.consultarTodos();\r\n }", "public Producto BuscarProducto(int id) {\n Producto nuevo = new Producto();\n try {\n conectar();\n ResultSet result = state.executeQuery(\"select * from producto where idproducto=\"+id+\";\");\n while(result.next()) {\n \n nuevo.setIdProducto((int)result.getObject(1));\n nuevo.setNombreProducto((String)result.getObject(2));\n nuevo.setFabricante((String)result.getObject(3));\n nuevo.setCantidad((int)result.getObject(4));\n nuevo.setPrecio((int)result.getObject(5));\n nuevo.setDescripcion((String)result.getObject(6));\n nuevo.setSucursal((int)result.getObject(7));\n }\n con.close();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return nuevo;\n }", "public void buscarProductosXSucursal(){\n\t\tif(getEmpresaId()==null){\n\t\t\tFacesContext.getCurrentInstance().addMessage(null, new FacesMessage(\"Seleccione una sucursal\"));\n\t\t\treturn;\t\t\n\t\t}\n\t\tsetProductoEmpresaList(productoEmpresaService.getByEmpresa(getEmpresaId()));\n\t\tif(getProductoEmpresaList()==null||getProductoEmpresaList().isEmpty()){\n\t\t\tRequestContext.getCurrentInstance().execute(\"PF('confirmarBusqueda').show();\");\n\t\t}\n\t}", "private void somarQuantidade(Integer id_produto){\n\t for (ItensCompra it : itensCompra){\n\t\t //verifico se o item do meu arraylist é igual ao ID passado no Mapping\n\t\t if(it.getTable_Produtos().getId_produto().equals(id_produto)){\n\t //defino a quantidade atual(pego a quantidade atual e somo um)\n\t it.setQuantidade(it.getQuantidade() + 1);\n\t //a apartir daqui, faço o cálculo. Valor Total(ATUAL) + ((NOVA) quantidade * valor unitário do produto(ATUAL))\n\t it.setValorTotal(0.);\n\t it.setValorTotal(it.getValorTotal() + (it.getQuantidade() * it.getValorUnitario()));\n }\n}\n\t}", "public void AgregarVenta() {\r\n if (vista.jTcodigodebarras.equals(\"\")) {//C.P.M si el componete esta vacio es que no a insertado algun codigo a buscar\r\n JOptionPane.showMessageDialog(null, \"No has ingresado un codigo de barras\");//C.P.M se lo notificamos a el usuario\r\n } else {//C.P.M de lo contrario es que inserto algo y ay que buscarlo\r\n try {\r\n modelo.setCodigobarras(vista.jTcodigodebarras.getText());//C.P.M le mandamos el codigo a buscar a el modelo\r\n rs = modelo.Buscarcodigobarras();//C.P.M cachamos el resultado de la consulta\r\n if (rs.next() == true) {//C.P.M preguntamos si trai datos si es asi \r\n String nombre = rs.getString(\"nombre_producto\");//C.P.M obtenemos el nombre de el resultado\r\n float precio = Float.parseFloat(rs.getString(\"precio\"));//C.P.M obtenemos el precio\r\n String precioformato = format.format(precio);//C.P.M le damos el formato adecuado esta variable la utilizamos para enviarla a la vista\r\n float totalPro = Float.parseFloat(precioformato);//C.P.M cambiamos a flotante ya el precio con el formato adecuado\r\n String cant = JOptionPane.showInputDialog(null, \"Cantidad: \");//C.P.M preguntamos la cantidad del prducto\r\n float cantidad = Float.parseFloat(cant);//C.P.M convertimos a flotante la cantidad\r\n totalPro = totalPro * cantidad;//C.P.M obtenemos el total de ese producto multiplicando al cantidad por el precio\r\n total = Float.parseFloat(vista.jTtotal.getText());//C.P.M obtenemos el total de la venta \r\n total = totalPro + total;//C.P.M le sumamos el total del producto ingresado al total ya de la venta\r\n String totalaenviar = format.format(total);//C.P.M le damos el formato adecuado para enviar el nuevo total\r\n vista.jTtotal.setText(totalaenviar);//C.P.M le enviamos el nuevo total a la vista\r\n DefaultTableModel temp = (DefaultTableModel) vista.Tlista.getModel();//C.P.M obtenemos el modelo de la tabla\r\n Object[] fila = new Object[3];//C.P.M creamos un areglo con el tamano de la nota\r\n fila[0] = cant;//C.P.M le agregamos la cantidad \r\n fila[1] = nombre;//C.P.M le agregamos el nombre\r\n fila[2] = precioformato;//C.P.M y el precio con el formato\r\n temp.addRow(fila);//C.P.M lo agregamos a la tabla como una nueva fila\r\n } else {\r\n JOptionPane.showMessageDialog(null, \"No existe un artículo con dicho código\");\r\n }\r\n vista.jTcodigodebarras.setText(\"\");//C.P.M limpiamos el codigo de barras y le colocamos el foco\r\n vista.jTcodigodebarras.requestFocus();//C.P.M le colocamos el foco\r\n } catch (SQLException ex) {//C.P.M si ocurre un error le notificamos a el usuario\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al consultar el codigo de barras\");\r\n }\r\n }\r\n }", "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 }", "public List<Tb_Prod_Painel_PromoBeans> getProdPainelConfig(Integer terminal, Integer painel) throws SQLException {\r\n try (Connection conexao = new ConexaoLocalDBMySql().getConnect()) {\r\n String sql = \"SELECT tb_prod_painel_promo.* FROM tb_prod_painel_promo \"\r\n + \"where terminal=? and painel=? order by tb_prod_painel_promo.idtb_painel_promo\"; \r\n PreparedStatement pstm = conexao.prepareStatement(sql);\r\n pstm.setInt(1, terminal);\r\n pstm.setInt(2, painel);\r\n ResultSet rs = pstm.executeQuery();\r\n List<Tb_Prod_Painel_PromoBeans> lpb = new ArrayList<>();\r\n while (rs.next()) {\r\n Tb_Prod_Painel_PromoBeans pb = new Tb_Prod_Painel_PromoBeans();\r\n pb.setCodigo(rs.getString(\"codigo\"));\r\n pb.setDescricao(rs.getString(\"descricao\"));\r\n pb.setUnid(rs.getString(\"unid\"));\r\n pb.setValor1(rs.getFloat(\"valor1\"));\r\n pb.setValor2(rs.getFloat(\"valor2\"));\r\n pb.setOferta(rs.getBoolean(\"oferta\"));\r\n pb.setReceita(rs.getString(\"receita\")); \r\n pb.setTerminal(rs.getInt(\"terminal\"));\r\n pb.setPainel(rs.getInt(\"painel\"));\r\n lpb.add(pb);\r\n }\r\n rs.close();\r\n pstm.close();\r\n conexao.close();\r\n return lpb;\r\n }\r\n }", "QuartoConsumo[] busca(Object dadoBusca, String coluna) throws SQLException;", "public void pesquisar() {\n\t\tthis.alunos = this.alunoDao.listarTodos();\n\t\tthis.quantPesquisada = this.alunos.size();\n\t\tSystem.out.println(\"Teste\");\n\n\t}", "public IProduto getCodProd();", "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 List getProdutos() {\n\t\treturn null;\n\t}", "public void riempiProceduraComboBox(){\n Statement stmt;\n ResultSet rst;\n String query = \"SELECT P.schema, P.nomeProcedura FROM Procedura P\";\n \n proceduraComboBox.removeAllItems();\n try{\n stmt = Database.getDefaultConnection().createStatement();\n rst = stmt.executeQuery(query);\n \n while(rst.next()){\n //le Procedure nella comboBox saranno mostrate secondo il modello: nomeSchema.nomeProcedura\n //in quanto Procedure appartenenti a Schemi diversi possono avere lo stesso nome\n proceduraComboBox.addItem(rst.getString(1)+\".\"+rst.getString(2));\n }\n proceduraComboBox.setSelectedIndex(-1);\n \n stmt.close();\n }catch(SQLException e){\n mostraErrore(e);\n }\n }", "public void selecteazaComanda()\n {\n for(String[] comanda : date) {\n if (comanda[0].compareTo(\"insert client\") == 0)\n clientBll.insert(idClient++, comanda[1], comanda[2]);\n else if (comanda[0].compareTo(\"insert product\") == 0)\n {\n Product p = productBll.findProductByName(comanda[1]);\n if(p!=null)//daca produsul exista deja\n productBll.prelucreaza(p.getId(), comanda[1], Float.parseFloat(comanda[2]), Float.parseFloat(comanda[3]));\n else\n productBll.prelucreaza(idProduct++, comanda[1], Float.parseFloat(comanda[2]), Float.parseFloat(comanda[3]));\n\n }\n else if (comanda[0].contains(\"delete client\"))\n clientBll.sterge(comanda[1]);\n else if (comanda[0].contains(\"delete product\"))\n productBll.sterge(comanda[1]);\n else if (comanda[0].compareTo(\"order\")==0)\n order(comanda);\n else if (comanda[0].contains(\"report\"))\n report(comanda[0]);\n }\n }", "public void cargarTabla(String servidor){\n String base_de_datos=\"Renta de Autos\";\n String sql =\"USE [\"+base_de_datos+\"]\\n\" +\n \"SELECT name FROM sysobjects where xtype='U' and name='Clientes' \";\n Conexion cc = new Conexion();\n Connection cn=cc.conectarBase(servidor, base_de_datos);\n \n try {\n Statement psd = cn.createStatement();\n ResultSet rs=psd.executeQuery(sql);\n while(rs.next()){\n cbTablas.addItem(rs.getString(\"name\"));\n }\n }catch(Exception ex){\n JOptionPane.showMessageDialog(null, ex+\" al cargar tabla\");\n }\n }", "public List<Tblproductos> getAll(){\n String hql = \"Select tp from Tblproductos tp\";\n try{\n em = getEntityManager();\n Query q = em.createQuery(hql);\n List<Tblproductos> listProductos = q.getResultList();\n return listProductos; \n }catch(Exception e){\n e.printStackTrace();\n }\n return null;\n }", "@Override\n\t@Transactional(readOnly = true)\n\tpublic List<ProdutoPedido> buscarTodos() {\n\t\treturn dao.findAll();\n\t}", "public String crearProducto(String id, String nombre, String precio, String idCategoria, \n String estado, String descripcion) {\n \n String validacion = \"\";\n if (verificarCamposVacios(id, nombre, precio, idCategoria, estado, descripcion) == false) {\n //Se crea en EntityManagerFactory con el nombre de nuestra unidad de persistencia\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"SG-RESTPU\");\n //se crea un objeto producto y se le asignan sus atributos\n if (verificarValoresNum(id,precio,idCategoria)) {\n //Se crea el controlador de la categoria del producto\n CategoriaProductoJpaController daoCategoriaProducto = new CategoriaProductoJpaController(emf);\n CategoriaProducto categoriaProducto = daoCategoriaProducto.findCategoriaProducto(Integer.parseInt(idCategoria));\n //se crea el controlador del producto \n ProductoJpaController daoProducto = new ProductoJpaController(emf);\n Producto producto = new Producto(Integer.parseInt(id), nombre);\n producto.setPrecio(Long.parseLong(precio));\n producto.setIdCategoria(categoriaProducto);\n producto.setDescripcion(descripcion);\n producto.setFotografia(copiarImagen());\n if (estado.equalsIgnoreCase(\"Activo\")) {\n producto.setEstado(true);\n } else {\n producto.setEstado(false);\n }\n try {\n if (ExisteProducto(nombre) == false) {\n daoProducto.create(producto);\n deshabilitar();\n limpiar();\n validacion = \"El producto se agrego exitosamente\";\n } else {\n validacion = \"El producto ya existe\";\n }\n } catch (NullPointerException ex) {\n limpiar();\n } catch (Exception ex) {\n Logger.getLogger(Gui_empleado.class.getName()).log(Level.SEVERE, null, ex);\n }\n } else {\n validacion = \"El campo id, precio, idCategoria deben ser numéricos\";\n }\n } else {\n validacion = \"Llene los datos obligatorios\";\n }\n return validacion;\n }", "public void llenadoDeCombos() {\n PerfilDAO asignaciondao = new PerfilDAO();\n List<Perfil> asignacion = asignaciondao.listar();\n cbox_perfiles.addItem(\"\");\n for (int i = 0; i < asignacion.size(); i++) {\n cbox_perfiles.addItem(Integer.toString(asignacion.get(i).getPk_id_perfil()));\n }\n \n }", "List<CarritoProductoResponseDTO> consultarCarritoCompras(String userName,TipoMoneda tipoMoneda);", "public String borra() { \n clienteDAO.borra(c.getId());\n return \"listado\";\n }", "public Producto buscarProducto(int id) throws Exception {\n ProductoLogica pL = new ProductoLogica();\n Producto producto = pL.buscarProductoID(id);\n return producto;\n }", "public List<Color> coloresProducto(Producto producto) throws Exception {\n\t\ttry{\n\t\t\tthis.objCnx = new Conexion(\"MYSQL\");\n\t\t\tList<Color> lista = new ArrayList<Color>();\n\t\t\tthis.objCnx.conectarBD();\n\t\t\tString sql = \"SELECT t.idcolor, t.nombre, t.observacion FROM conftbc_color t \"\n\t\t\t\t\t+ \" INNER JOIN conftbc_producto p ON t.idmarca = p.idmarca WHERE p.idproducto = \"+producto.getIdproducto();\n\t\t\tPreparedStatement ps = this.objCnx.cnx.prepareStatement(sql);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tColor color = new Color();\n\t\t\t\tcolor.setIdcolor(rs.getInt(\"idcolor\"));\n\t\t\t\tcolor.setNombre(rs.getString(\"nombre\"));\n\t\t\t\tcolor.setObservacion(rs.getString(\"observacion\"));\n\t\t\t\tlista.add(color);\n\t\t\t}\n\t\t\treturn lista;\n\t\t\t\n\t\t}catch(Exception ex){\n\t\t\tthis.objCnx.deshacerDB();\n\t\t\tthrow ex;\n\t\t}finally{\n\t\t\tthis.objCnx.closeDB();\n\t\t\tthis.objCnx = null;\n\t\t}\n\t}", "public void cargarJComboBoxProductos(JComboBox cbxProductos) { \n bodega Bodega = new bodega();\n for (producto Producto : Bodega.getProductosList()) {\n cbxProductos.addItem(Producto.getNombreProducto());\n //cbxCantidad.addItem(String.valueOf(Producto.getStockProducto()));\n }\n }", "public String borra(Cliente cliente) {\n clienteDAO.borra(cliente.getId());\n return \"listado\";\n }", "public void setProduto(com.gvt.www.metaData.configuradoronline.DadosProduto produto) {\r\n this.produto = produto;\r\n }", "public static void promedioBoletaCliente() {\r\n\t\tPailTap clienteBoleta = getDataTap(\"C:/Paula/masterset/data/9\");\r\n\t\tPailTap boletaProperty = getDataTap(\"C:/Paula/masterset/data/4\");\r\n\t\t\r\n\t\tSubquery promedio = new Subquery(\"?Cliente_id\", \"?Promedio\", \"?Dia\")\r\n\t\t\t\t.predicate(clienteBoleta, \"_\", \"?data\")\r\n\t\t\t\t.predicate(boletaProperty, \"_\", \"?data2\")\r\n\t\t\t\t.predicate(new ExtractClienteBoleta(), \"?data\").out(\"?Cliente_id\", \"?Boleta_id\", \"?Dia\")\r\n\t\t\t\t.predicate(new ExtractBoletaTotal(), \"?data2\").out(\"?Boleta_id\",\"?Total\")\r\n\t\t\t\t.predicate(new Avg(), \"?Total\").out(\"?Promedio\");\r\n\t\t\r\n\t\tSubquery tobatchview = new Subquery(\"?json\")\r\n\t\t\t\t.predicate(promedio, \"?Cliente\", \"?Promedio\", \"?Dia\")\r\n\t\t\t\t.predicate(new ToJSON(), \"?Cliente\", \"?Promedio\", \"?Dia\").out(\"?json\");\r\n\t\tApi.execute(new batchview(), tobatchview);\r\n\t\t//Api.execute(new StdoutTap(), promedio);\r\n\t}", "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 ArrayList<obj_dos_campos> carga_tipo_producto() {\n ArrayList<obj_dos_campos> lista = new ArrayList<obj_dos_campos>();\n Connection c=null;\n try {\n c = conexion_odbc.Connexion_datos();\n Statement s = c.createStatement();\n ResultSet rs = s.executeQuery(\"select tip_prod_idn as data, tip_prod_nombre as label from tipo_producto order by tip_prod_nombre desc\");\n lista.add(new obj_dos_campos(\"0\",\"-- Seleccione --\"));\n while (rs.next()){\n lista.add(new obj_dos_campos(rs.getString(\"data\"),rs.getString(\"label\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n c.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n return lista;\n }", "@Override\r\n\tpublic List<Producto> getAll() throws Exception {\n\t\treturn productRepository.buscar();\r\n\t}", "public void buscar() {\r\n sessionProyecto.getProyectos().clear();\r\n sessionProyecto.getFilterProyectos().clear();\r\n try {\r\n List<ProyectoCarreraOferta> proyectoCarreraOfertas = proyectoCarreraOfertaService.buscar(\r\n new ProyectoCarreraOferta(null, sessionProyecto.getCarreraSeleccionada().getId() != null\r\n ? sessionProyecto.getCarreraSeleccionada().getId() : null, null, Boolean.TRUE));\r\n \r\n if (proyectoCarreraOfertas == null) {\r\n return;\r\n }\r\n for (ProyectoCarreraOferta proyectoCarreraOferta : proyectoCarreraOfertas) {\r\n proyectoCarreraOferta.getProyectoId().setEstado(itemService.buscarPorId(proyectoCarreraOferta.getProyectoId().\r\n getEstadoProyectoId()).getNombre());\r\n proyectoCarreraOferta.getProyectoId().setCatalogo(itemService.buscarPorId(proyectoCarreraOferta.getProyectoId().\r\n getCatalogoProyectoId()).getNombre());\r\n proyectoCarreraOferta.getProyectoId().setTipo(itemService.buscarPorId(proyectoCarreraOferta.getProyectoId().\r\n getTipoProyectoId()).getNombre());\r\n proyectoCarreraOferta.getProyectoId().setAutores(autores(proyectoCarreraOferta.getProyectoId()));\r\n proyectoCarreraOferta.getProyectoId().setDirectores(directores(proyectoCarreraOferta.getProyectoId()));\r\n proyectoCarreraOferta.getProyectoId().setNombreOferta(ofertaAcademicaService.find(proyectoCarreraOferta.getOfertaAcademicaId()).getNombre());\r\n if (!this.sessionProyecto.getProyectos().contains(proyectoCarreraOferta.getProyectoId())) {\r\n proyectoCarreraOferta.getProyectoId().setCarrera(carreraService.find(proyectoCarreraOferta.getCarreraId()).getNombre());\r\n this.sessionProyecto.getProyectos().add(proyectoCarreraOferta.getProyectoId());\r\n }\r\n }\r\n sessionProyecto.setFilterProyectos(sessionProyecto.getProyectos());\r\n } catch (Exception e) {\r\n LOG.info(e.getMessage());\r\n }\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n \n \n \n insertar insert=new insertar();\n busquedas buscar=new busquedas();\n \n \n String accion = request.getParameter(\"accion\");\n String prod = request.getParameter(\"prod\");\n String cant = request.getParameter(\"cant\");\n String subtotal=request.getParameter(\"sb\");\n\n \n if (accion.equals(\"AnadirCarrito\")) {\n \n HttpSession sesion = request.getSession();\n ArrayList<DetalleVenta> carrito;\n //Si no existe la sesion creamos al carrito de cmoras\n if (sesion.getAttribute(\"carrito\") == null) {\n carrito = new ArrayList<DetalleVenta>();\n } else {\n carrito = (ArrayList<DetalleVenta>) sesion.getAttribute(\"carrito\");\n }\n\n //Obtenemos el producto que deseamos añadir al carrito\n Producto p = buscar.obtenerProducto(request.getParameter(\"txtcodigo\"));\n \n //Creamos un detalle para el carrtio\n DetalleVenta d = new DetalleVenta();\n //Obtenemos los valores de la caja de texto\n d.setCodigop(request.getParameter(\"txtcodigo\"));\n d.setProducto(p);\n d.setCantidad(request.getParameter(\"txtcantidad\"));\n //Calculamos el descuento, si es sub detalle es mayor a 50 se le hace\n //un descuento del 5% aca es donde se encuentra la logica del negocio\n \n //Sirva para saber si tenemos agregado el producto al carrito de compras\n int indice = -1;\n //recorremos todo el carrito de compras\n for (int i = 0; i < carrito.size(); i++) {\n DetalleVenta det = carrito.get(i);\n if (det.getCodigop() == p.getCodigo()) {\n //Si el producto ya esta en el carrito, obtengo el indice dentro\n //del arreglo para actualizar al carrito de compras\n indice = i;\n break;\n }\n }\n if (indice == -1) {\n //Si es -1 es porque voy a registrar\n carrito.add(d);\n } else {\n //Si es otro valor es porque el producto esta en el carrito\n //y vamos actualizar la \n carrito.set(indice, d);\n }\n //Actualizamos la sesion del carrito de compras\n sesion.setAttribute(\"carrito\", carrito);\n //Redireccionamos al formulario de culminar la venta\n response.sendRedirect(\"web/carrito.jsp\");\n \n } \n \n \n \n \n \n \n \n \n \n \n \n \n else if (accion.equals(\"RegistrarVenta\")) {\n \n \n HttpSession sesion = request.getSession();\n Venta v=new Venta();\n v.setCliente(request.getParameter(\"cliente\"));\n v.setPersonal(\"Pe001\");\n v.setTipo(\"TC001\");\n v.setSubtotal(subtotal);;\n ArrayList<DetalleVenta> detalle = (ArrayList<DetalleVenta>) sesion.getAttribute(\"carrito\");\n boolean rpta=insert.insertarVenta(v, detalle);\n if (rpta) {\n response.sendRedirect(\"web/felicidades.jsp?s=1\");\n } else {\n response.sendRedirect(\"mensaje.jsp?men=No se registro la venta\");\n } \n \n \n } \n \n \n \n \n else if (accion.equals(\"EliminarProducto\")){\n \n HttpSession sesion = request.getSession();\n ArrayList<DetalleVenta> carrito;\n //Si no existe la sesion creamos al carrito de cmoras\n carrito = (ArrayList<DetalleVenta>) sesion.getAttribute(\"carrito\");\n \n int indice = -1;\n //recorremos todo el carrito de compras\n for (int i = 0; i < carrito.size(); i++) {\n DetalleVenta det = carrito.get(i);\n if (det.getCodigop().equals(prod)) {\n //Si el producto ya esta en el carrito, obtengo el indice dentro\n //del arreglo para actualizar al carrito de compras\n indice = i;\n break;\n }\n }\n if (indice == -1) {\n } else {\n carrito.remove(indice);\n }\n //Actualizamos la sesion del carrito de compras\n sesion.setAttribute(\"carrito\", carrito);\n //Redireccionamos al formulario de culminar la venta\n response.sendRedirect(\"web/carrito.jsp\");\n \n } \n \n \n \n else if (accion.equals(\"ActualizarProducto\")){\n \n HttpSession sesion = request.getSession();\n ArrayList<DetalleVenta> carrito;\n carrito = (ArrayList<DetalleVenta>) sesion.getAttribute(\"carrito\");\n int indice = -1;\n //recorremos todo el carrito de compras\n for (int i = 0; i < carrito.size(); i++) {\n DetalleVenta det = carrito.get(i);\n if (det.getCodigop().equals(prod)) {\n //Si el producto ya esta en el carrito, obtengo el indice dentro\n //del arreglo para actualizar al carrito de compras\n indice = i;\n break;\n }\n }\n if (indice == -1) {\n } else {\n //Obtenemos el producto que deseamos añadir al carrito\n Producto p = buscar.obtenerProducto(prod);\n \n DetalleVenta d = new DetalleVenta();\n d.setCodigop(prod);\n d.setProducto(p);\n d.setCantidad(cant);\n carrito.set(indice, d);\n }\n //Actualizamos la sesion del carrito de compras\n sesion.setAttribute(\"carrito\", carrito);\n //Redireccionamos al formulario de culminar la venta\n response.sendRedirect(\"web/carrito.jsp\");\n }\n }", "Reserva Obtener();", "private void cargaComboBoxTipoGrano() {\n Session session = Conexion.getSessionFactory().getCurrentSession();\n Transaction tx = session.beginTransaction();\n\n Query query = session.createQuery(\"SELECT p FROM TipoGranoEntity p\");\n java.util.List<TipoGranoEntity> listaTipoGranoEntity = query.list();\n\n Vector<String> miVectorTipoLaboreo = new Vector<>();\n for (TipoGranoEntity tipoGrano : listaTipoGranoEntity) {\n miVectorTipoLaboreo.add(tipoGrano.getTgrNombre());\n cbxSemillas.addItem(tipoGrano);\n\n// cboCampania.setSelectedItem(null);\n }\n tx.rollback();\n }", "public Produto salvarProduto(Produto Produto) {\n\t\treturn null;\n\t}", "public abstract List<Subproducto> listarSubproducto(EntityManager sesion, Subproducto subproducto);", "public BaseDatosProductos iniciarProductos() {\n\t\tBaseDatosProductos baseDatosProductos = new BaseDatosProductos();\n\t\t// construcion datos iniciales \n\t\tProductos Manzanas = new Productos(1, \"Manzanas\", 8000.0, 65);\n\t\tProductos Limones = new Productos(2, \"Limones\", 2300.0, 15);\n\t\tProductos Granadilla = new Productos(3, \"Granadilla\", 2500.0, 38);\n\t\tProductos Arandanos = new Productos(4, \"Arandanos\", 9300.0, 55);\n\t\tProductos Tomates = new Productos(5, \"Tomates\", 2100.0, 42);\n\t\tProductos Fresas = new Productos(6, \"Fresas\", 4100.0, 3);\n\t\tProductos Helado = new Productos(7, \"Helado\", 4500.0, 41);\n\t\tProductos Galletas = new Productos(8, \"Galletas\", 500.0, 8);\n\t\tProductos Chocolates = new Productos(9, \"Chocolates\", 3500.0, 806);\n\t\tProductos Jamon = new Productos(10, \"Jamon\", 15000.0, 10);\n\n\t\t\n\n\t\tbaseDatosProductos.agregar(Manzanas);\n\t\tbaseDatosProductos.agregar(Limones);\n\t\tbaseDatosProductos.agregar(Granadilla);\n\t\tbaseDatosProductos.agregar(Arandanos);\n\t\tbaseDatosProductos.agregar(Tomates);\n\t\tbaseDatosProductos.agregar(Fresas);\n\t\tbaseDatosProductos.agregar(Helado);\n\t\tbaseDatosProductos.agregar(Galletas);\n\t\tbaseDatosProductos.agregar(Chocolates);\n\t\tbaseDatosProductos.agregar(Jamon);\n\t\treturn baseDatosProductos;\n\t\t\n\t}", "VentaJPA obtenerVenta(int comprobante);", "@Override\r\n public Cliente buscarCliente(String cedula) throws Exception {\r\n return entity.find(Cliente.class, cedula);//busca el cliente\r\n }" ]
[ "0.7300297", "0.69971365", "0.6956251", "0.69489616", "0.6879502", "0.67341495", "0.66879183", "0.6682588", "0.6567664", "0.6565511", "0.65509653", "0.6543371", "0.65338963", "0.65154845", "0.64974725", "0.64967203", "0.6481737", "0.6463397", "0.6430242", "0.6404176", "0.64024717", "0.63914204", "0.6336958", "0.6335965", "0.6333628", "0.6326295", "0.631271", "0.6297122", "0.62910575", "0.6284874", "0.627557", "0.6251802", "0.62517524", "0.6209834", "0.6186972", "0.6182987", "0.6134342", "0.61292934", "0.61258256", "0.61056083", "0.60933834", "0.6088032", "0.6084704", "0.6075768", "0.60676", "0.6067288", "0.60667944", "0.60523117", "0.6046228", "0.60378236", "0.6025607", "0.6024318", "0.60218763", "0.60150003", "0.60129803", "0.6012912", "0.60085523", "0.600794", "0.6006138", "0.6005256", "0.599315", "0.59931475", "0.59926", "0.5984015", "0.59813493", "0.59800935", "0.5975665", "0.59718037", "0.5966378", "0.59545636", "0.5952036", "0.5936638", "0.5918466", "0.5915179", "0.5897907", "0.58920354", "0.5876837", "0.587397", "0.58731574", "0.5871137", "0.58688974", "0.58553183", "0.58400184", "0.58391297", "0.58304137", "0.58285946", "0.58200717", "0.58184123", "0.58067346", "0.5794871", "0.5791181", "0.5790909", "0.578632", "0.5784633", "0.578388", "0.57807994", "0.5779786", "0.5771615", "0.5763621", "0.5759285", "0.57591295" ]
0.0
-1
> busca somente pelo codigo
public List<Map<String, Object>> getListaProdutos() { return pdao.getListaProdutos(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getCodiceFiscale();", "public abstract java.lang.String getCod_tecnico();", "public abstract java.lang.String getCod_dpto();", "public java.lang.String getCodigo(){\n return localCodigo;\n }", "private static void cajas() {\n\t\t\n\t}", "public abstract java.lang.String getCod_localidad();", "public void setCodice(String codice) {\n\t\tthis.codice = codice;\n\t}", "public java.lang.String getCodigo_pcom();", "Reserva Obtener();", "public void setCodigo(String codigo) {\n this.codigo = codigo;\n }", "public java.lang.String getCodigo_agencia();", "public void setCodigo( String codigo ) {\n this.codigo = codigo;\n }", "String getAnnoPubblicazione();", "@Override\n protected int getCodigoJuego() {\n return 5;\n }", "public void setCodigo(java.lang.String codigo) {\n this.codigo = codigo;\n }", "@Override\n public String generaCodigo() {\n return \"\";\n }", "public void setCodigo(java.lang.String param){\n \n this.localCodigo=param;\n \n\n }", "public String cargarDatos()\r\n/* 109: */ {\r\n/* 110:119 */ return null;\r\n/* 111: */ }", "Code getCode();", "private void cargarCodDocente() {\n ClsNegocioDocente negoDoc = new ClsNegocioDocente(); \n txtCodDocente.setText(negoDoc.ObtenerCodigo());\n try {\n negoDoc.conexion.close();\n } catch (SQLException ex) {\n Logger.getLogger(FrmCRUDDocente.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public boolean buscarLibro(String codigoLibro){\n libro = manejadorArchivoLibro.leerArchivo(LIBRO, codigoLibro, \".lib\");\n return libro != null;\n }", "public abstract java.lang.String getAcma_cierre();", "public void generarCodigo(){\r\n this.setCodigo(\"c\"+this.getNombre().substring(0,3));\r\n }", "public String cargarDatos()\r\n/* 514: */ {\r\n/* 515:540 */ return null;\r\n/* 516: */ }", "public String cargarDatos()\r\n/* 137: */ {\r\n/* 138:163 */ limpiar();\r\n/* 139:164 */ return \"\";\r\n/* 140: */ }", "@Override\n\tpublic Fornecedor carregar(Integer codigo) {\n\t\treturn null;\n\t}", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "void setCodiceFiscale(String codiceFiscale);", "public String MarcaCodigo(String nombre) {\n ResultSet rs = null;\n marca chf = new marca();\n Statement st;\n try {\n con = conexion.establecerConexionSQL();\n st = con.createStatement();\n String strSql = \"SELECT CODIGO_MAR FROM MARCA WHERE NOMBRE_MAR = '\" + nombre + \"'\";\n rs = st.executeQuery(strSql);\n while (rs.next()) {\n \n chf.setCodigo(rs.getString(\"CODIGO_MAR\"));\n \n \n }\n rs.close();\n st.close();\n con.close();\n \n } catch (SQLException ex) {\n System.out.println(\"Error: \" + ex);\n }\n return chf.getCodigo();\n }", "public String getCodigo() {\n return codigo;\n }", "public String getCodigo() {\n return codigo;\n }", "public int getCodigo() {\r\n return Codigo;\r\n }", "public void setContrasena(String contrasena) {this.contrasena = contrasena;}", "public void setCodDistrito(String codDistrito);", "String getCognome();", "public abstract void setCod_tecnico(java.lang.String newCod_tecnico);", "public interface trans_ArqOperations \r\n{\r\n byte[] envia_Arq (String fName);\r\n void set_clienteSA (String parth, int id);\r\n}", "String getCidade();", "public String getCode();", "public String getCode();", "public abstract java.lang.Long getCod_actividad();", "@Override\n\tpublic String getCtarCode() {\n\t\treturn null;\n\t}", "public String getCodice() {\n\t\treturn codice;\n\t}", "public Juegos getJuegoPorCodigo(int codigo) {\n\n String metodo = \"getJuegoPorCodigo\";\n\n Juegos juego = null;\n Session session = null;\n Transaction tx = null;\n\n try {\n session = HibernateUtil.currentSession();\n tx = session.beginTransaction();\n\n juego = (Juegos) session.createQuery(\"from Juegos j where j.codigo= ?\").setString(0, \"\"+codigo).uniqueResult();\n\n session.flush();\n tx.commit();\n\n log.info(\"DAOJuegos: \" + metodo + \": Juego obtenido con CODIGO: \" + juego.getCodigo());\n\n } catch (org.hibernate.HibernateException he) {\n tx.rollback();\n log.error(\"DAOJuegos: \" + metodo + \": Error de Hibernate: \" + he.getMessage());\n } catch (SQLException sqle) {\n tx.rollback();\n log.error(\"DAOJuegos: \" + metodo + \": Error SQLException: \" + sqle.getMessage());\n } catch (Exception e) {\n tx.rollback();\n log.error(\"DAOJuegos: \" + metodo + \": Error Exception: \" + e.getMessage());\n } finally {\n // Liberamos sesión\n HibernateUtil.closeSession();\n log.info(\"DAOJuegos: \" + metodo + \": Sesion liberada. Finished\");\n }\n\n return juego;\n }", "public String getCode()\n {\n return code;\n}", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "public int getCodigo() {\n return codigo;\n }", "public int getCodigo() {\n return codigo;\n }", "public int getCodigo() {\n return codigo;\n }", "public int getCodigo() {\n return codigo;\n }", "boolean comprovarCodi(String codi) {\r\n if(codi == id) {\r\n return true;\r\n }\r\n else {\r\n return false;\r\n }\r\n }", "private void limpiarDatos() {\n\t\t\n\t}", "Jugador consultarGanador();", "public void setCodigo(Integer codigo) { this.codigo = codigo; }", "@Test\r\n\tpublic void CT04ConsultarLivroComNomeEmBranco() {\r\n\t\ttry {\r\n\t\t\t// cenario\r\n\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\tUsuario usuario;\r\n\t\t\t// acao\r\n\t\t\tusuario = ObtemUsuario.comNome_branco();\r\n\t\t} catch (RuntimeException e) {\r\n\t\t\t// verificacao\r\n\t\t\tassertEquals(\"Nome inválido\", e.getMessage());\r\n\t\t}\r\n\t}", "public int getCode();", "public Integer getExisteCliente(String codigoCliente);", "public ICliente getCodCli();", "public IProduto getCodProd();", "public Conserto buscarCodigo(int codigo) throws SQLException{\r\n Conserto conserto = null;\r\n conecta = FabricaConexao.conexaoBanco();\r\n sql = \"select * from conserto join carro on carchassi = concarchassi join modelo on oficodigo = conoficodigo where concodigo = ? \";\r\n pstm = conecta.prepareStatement(sql);\r\n pstm.setInt(1, codigo);\r\n rs = pstm.executeQuery();\r\n \r\n if(rs.next()){\r\n conserto = new Conserto();\r\n conserto.setCodigo(rs.getInt(\"concodigo\"));\r\n conserto.setDataEntrada(rs.getDate(\"condataentrada\"));\r\n conserto.setDataSaida(rs.getDate(\"condatasaida\"));\r\n \r\n //instanciando o carro\r\n Carro carro = new Carro();\r\n carro.setChassi(rs.getString(\"carchassi\"));\r\n carro.setPlaca(rs.getString(\"carplaca\"));\r\n carro.setAno(rs.getInt(\"carano\"));\r\n carro.setCor(rs.getString(\"carcor\"));\r\n carro.setStatus(rs.getInt(\"carstatus\"));\r\n conserto.setCarro(carro);\r\n \r\n //instanciando a oficina\r\n Oficina oficina = new Oficina();\r\n oficina.setCodigo(rs.getInt(\"oficodigo\"));\r\n oficina.setNome(rs.getString(\"ofinome\"));\r\n conserto.setOficina(oficina);\r\n }\r\n FabricaConexao.fecharConexao();\r\n \r\n return conserto;\r\n }", "public Long getCodigo() {\n return codigo;\n }", "public void enviarValoresCabecera(){\n }", "@Override\n\tpublic void coba() {\n\t\t\n\t}", "zzang mo29839S() throws RemoteException;", "public abstract String getFullCode();", "public String getContrasena() {return contrasena;}", "public int getCodigo_producto() {\n return codigo_producto;\n }", "public void chocoContraBomba(Bomba bomba){}", "private Filtro filtroEscludiRiga(int codice) {\n /* variabili e costanti locali di lavoro */\n Filtro filtro = null;\n Campo campo = null;\n\n try { // prova ad eseguire il codice\n campo = this.getModulo().getCampoChiave();\n filtro = FiltroFactory.crea(campo, Operatore.DIVERSO, codice);\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n /* valore di ritorno */\n return filtro;\n }", "private UsineJoueur() {}", "public abstract String getLibelle();", "@java.lang.Override\n public java.lang.String getCodigo() {\n java.lang.Object ref = codigo_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n codigo_ = s;\n return s;\n }\n }", "private TipoFonteRendaEnum(Short codigo, String descricao) {\n\t\tthis.codigo = codigo;\n\t\tthis.descricao = descricao;\n\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n public void agregarSocio(String nombre, int dni, int codSocio) {\n }", "public String getCODIGO() {\r\n return CODIGO;\r\n }", "public int getId()\r\n/* 208: */ {\r\n/* 209:381 */ return this.idCargaEmpleado;\r\n/* 210: */ }", "public int getIdCargaEmpleado()\r\n/* 103: */ {\r\n/* 104:185 */ return this.idCargaEmpleado;\r\n/* 105: */ }", "public String limpiar()\r\n/* 509: */ {\r\n/* 510:529 */ return null;\r\n/* 511: */ }", "private String findObj(Integer codigoObj) {\r\n\t\tString valorObj = null;\r\n\t\tif (codigoObj != null) {\r\n\t\t\tsinObjList.setCod(codigoObj);\r\n\t\t\tList<SinObj> lista = new ArrayList<SinObj>();\r\n\t\t\tlista = sinObjList.listaResultados();\r\n\t\t\tif (lista.size() > 0)\r\n\t\t\t\tvalorObj = lista.get(0).getObjNombre();\r\n\t\t}\r\n\t\treturn valorObj;\r\n\t}", "Compleja createCompleja();", "long getCodeId();", "long getCodeId();", "long getCodeId();", "int getCode();", "int getCode();", "int getCode();", "public String getEstablecimiento()\r\n/* 114: */ {\r\n/* 115:188 */ return this.establecimiento;\r\n/* 116: */ }", "public void HordaHardcodeada() {\n\t\t\n\t\tObjetoDelJuego c = mapa.AgregarEnemigo();\n\t\tlistaDeEnemigos.add( (Enemigo) c );\n\t\t\n\t}", "public Integer getCodTienda();", "public interface CodeService {\n\n\n /**\n * 获取 codesTable 通过 schema\n * @param schema\n * @return\n */\n public List<CodeTable> getCodeTablesBySchema(CodeSchema schema);\n\n /**\n * 构建代码库\n * @param codeSchema\n * @return\n */\n String generateCode(CodeSchema codeSchema) throws Exception;\n}", "private void inizia() throws Exception {\n try { // prova ad eseguire il codice\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "java.lang.String getAdresa();", "public Modul buscarModul(String nomModul) throws ExceptionBuscar;", "@Test\r\n\tpublic void CT05ConsultarLivroComNomeNulo() {\r\n\t\ttry {\r\n\t\t\t// cenario\r\n\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\tUsuario usuario;\r\n\t\t\t// acao\r\n\t\t\tusuario = ObtemUsuario.comNome_nulo();\r\n\t\t} catch (RuntimeException e) {\r\n\t\t\t// verificacao\r\n\t\t\tassertEquals(\"Nome inválido\", e.getMessage());\r\n\t\t}\r\n\t}", "public Integer getCodigo() {\n return codigo;\n }", "public Info_laboral findByID(int cod){\n ConexionBD con = new ConexionBD();\n Connection c = con.conOracle();\n Info_laboral IL = new Info_laboral();\n try{\n CallableStatement cs = c.prepareCall(\"{? = call F_BUSNOMINFO(?)}\");\n cs.registerOutParameter(1, Types.VARCHAR);\n cs.setInt(2, cod);\n cs.execute();\n //IL.setId(cod);\n //IL.setJefe(cs.getString(1));\n System.out.println(cs.getString(1));\n con.CerrarCon();\n return IL;\n }catch(SQLException e){\n System.out.println(\"erorrrr findbyid \"+e);\n con.CerrarCon();\n return null;\n }\n \n }" ]
[ "0.69110703", "0.6815939", "0.6350655", "0.62973464", "0.62190235", "0.60878336", "0.6082022", "0.60796326", "0.606188", "0.60396177", "0.59871566", "0.59679264", "0.59675145", "0.595396", "0.5923987", "0.59228855", "0.5903597", "0.589193", "0.58869743", "0.5883903", "0.5879761", "0.5877374", "0.58656585", "0.5856082", "0.58513725", "0.58318824", "0.58163285", "0.5812024", "0.5809252", "0.58078146", "0.58078146", "0.57863104", "0.5765649", "0.5762692", "0.5756186", "0.5740084", "0.5737615", "0.5732626", "0.57272947", "0.57272947", "0.5723547", "0.57217777", "0.57037574", "0.5698961", "0.56931436", "0.5688317", "0.5688317", "0.5688317", "0.5688317", "0.5688317", "0.5680887", "0.5680887", "0.5680887", "0.5680887", "0.5678006", "0.5673259", "0.56701875", "0.56650805", "0.5664368", "0.56637883", "0.5655929", "0.5652454", "0.56486946", "0.5640689", "0.5627712", "0.56231207", "0.56219524", "0.5619244", "0.56178534", "0.56170046", "0.5615702", "0.5615521", "0.56101406", "0.5609548", "0.56079066", "0.5593704", "0.5581909", "0.557774", "0.5569418", "0.55669045", "0.55635816", "0.55426294", "0.5535114", "0.55322665", "0.5530967", "0.5530269", "0.5530269", "0.5530269", "0.55283666", "0.55283666", "0.55283666", "0.55279404", "0.5522176", "0.5520677", "0.5520527", "0.5517177", "0.55135626", "0.5513013", "0.5510737", "0.5510575", "0.5508354" ]
0.0
-1